* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #080808;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    background: #080808;
    border-bottom: 1px solid #292929;
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #e50914;
    background: #171717;
    display: grid;
    place-items: center;
    font-size: 27px;
    font-weight: 900;
}

.brand-title {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-subtitle {
    margin-top: 5px;
    color: #999;
    font-size: 16px;
}

.back-button {
    padding: 9px 14px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #181818;
    font-size: 14px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 38px 25px 80px;
}

.intro {
    margin-bottom: 25px;
}

.intro h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.intro p {
    color: #999;
    font-size: 18px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.video-card {
    min-width: 0;
    overflow: hidden;
    background: #111;
    border: 1px solid #292929;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: #555;
}

.thumbnail,
.related-thumb {
    position: relative;
    width: 100%;
    background: #151515;
    overflow: hidden;
}

.thumbnail {
    aspect-ratio: 9 / 13;
}

.thumbnail video,
.related-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #151515;
}

.play-icon {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    display: grid;
    place-items: center;
    font-size: 18px;
    pointer-events: none;
}

.play-icon.small {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.video-card-content {
    padding: 13px;
}

.video-card-content h2 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.video-card-content p {
    color: #999;
    font-size: 14px;
    line-height: 1.4;
}

.loading,
.error {
    grid-column: 1 / -1;
    padding: 40px 10px;
    text-align: center;
    color: #999;
}

.error {
    color: #ff6b6b;
}

.error small {
    color: #999;
}

.site-footer {
    border-top: 1px solid #292929;
    background: #080808;
    text-align: center;
    color: #777;
    padding: 20px;
}

.player-page {
    max-width: 1100px;
}

.player-box {
    width: 100%;
}

#videoPlayer {
    display: block;
    width: 100%;
    max-height: 75vh;
    background: #000;
    border-radius: 12px;
}

.player-info {
    padding: 20px 0;
}

.player-info h1 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.player-info p {
    color: #999;
    line-height: 1.6;
}

.related-section {
    margin-top: 28px;
}

.related-section h2 {
    font-size: 24px;
    margin-bottom: 18px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.related-video {
    min-width: 0;
    overflow: hidden;
    background: #111;
    border: 1px solid #292929;
    border-radius: 10px;
    cursor: pointer;
}

.related-thumb {
    aspect-ratio: 9 / 13;
}

.related-video h3 {
    padding: 10px;
    font-size: 15px;
    line-height: 1.3;
}

@media (max-width: 1000px) {
    .video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .header-inner {
        padding: 14px 18px;
    }

    .brand {
        gap: 11px;
    }

    .brand-avatar {
        width: 55px;
        height: 55px;
    }

    .brand-title {
        font-size: 20px;
    }

    .brand-subtitle {
        font-size: 14px;
    }

    .container {
        padding: 28px 16px 75px;
    }

    .intro h1 {
        font-size: 28px;
    }

    .intro p {
        font-size: 16px;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .video-card {
        border-radius: 10px;
    }

    .video-card-content {
        padding: 10px;
    }

    .video-card-content h2 {
        font-size: 16px;
    }

    .video-card-content p {
        font-size: 12px;
    }

    .play-icon {
        width: 34px;
        height: 34px;
        left: 9px;
        bottom: 9px;
        font-size: 15px;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .player-info h1 {
        font-size: 22px;
    }

    #videoPlayer {
        border-radius: 8px;
    }
}

@media (max-width: 420px) {
    .brand-title {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    .video-grid {
        gap: 10px;
    }

    .video-card-content h2 {
        font-size: 15px;
    }
}
