:root {
    --site-bg: #0f1419;
    --site-panel: rgba(15, 23, 42, 0.74);
    --site-panel-soft: rgba(30, 41, 59, 0.54);
    --site-border: rgba(148, 163, 184, 0.22);
    --site-text: #e2e8f0;
    --site-muted: #94a3b8;
    --site-muted-2: #64748b;
    --site-white: #ffffff;
    --site-silver: #c0c0c0;
    --site-silver-light: #e8e8e8;
    --site-radius: 24px;
    --site-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(192, 192, 192, 0.18), transparent 32rem),
        radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(180deg, #0f1419 0%, #1a1f35 52%, #0f1419 100%);
    color: var(--site-text);
}

body.menu-open {
    overflow: hidden;
}

img {
    background: rgba(15, 23, 42, 0.7);
}

.site-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.site-header {
    position: fixed;
    z-index: 80;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.site-header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
}

.logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #0f1419;
    background: linear-gradient(135deg, #ffffff, #a8a8a8);
    box-shadow: 0 0 32px rgba(192, 192, 192, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-size: 14px;
}

.site-nav a {
    position: relative;
    transition: color 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fff;
}

.site-nav a.active:after,
.site-nav a:hover:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #e8e8e8, transparent);
}

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

.header-search {
    position: relative;
    width: min(320px, 28vw);
}

.header-search input,
.search-panel input,
.search-panel select,
.channel-filter input,
.channel-filter select {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.header-search input {
    height: 42px;
    padding: 0 46px 0 18px;
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.08);
}

.header-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.channel-filter input:focus,
.channel-filter select:focus {
    border-color: rgba(232, 232, 232, 0.72);
    box-shadow: 0 0 0 4px rgba(192, 192, 192, 0.1);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mobile-panel a:last-child {
    border-bottom: 0;
}

.main-offset {
    padding-top: 96px;
}

.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-stage {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.42) saturate(1.05);
}

.hero-slide:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 20, 25, 0.92) 0%, rgba(15, 20, 25, 0.6) 38%, rgba(15, 20, 25, 0.18) 100%),
        linear-gradient(0deg, rgba(15, 20, 25, 1) 0%, transparent 40%, rgba(15, 20, 25, 0.36) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0 82px;
}

.hero-copy {
    max-width: 720px;
    animation: fadeIn 0.75s ease;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero h1 {
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    margin: 0 0 24px;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    margin: 0 0 28px;
}

.hero-meta,
.movie-meta,
.card-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.pill.light {
    color: #0f1419;
    background: linear-gradient(135deg, #ffffff, #c0c0c0);
    border-color: transparent;
    font-weight: 700;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 700;
    color: #0f1419;
    background: linear-gradient(135deg, #ffffff, #a8a8a8);
    box-shadow: 0 16px 40px rgba(192, 192, 192, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(192, 192, 192, 0.26);
}

.btn.secondary {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(14px);
}

.hero-dots {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.active {
    width: 64px;
    background: #e8e8e8;
}

.hero-side {
    position: absolute;
    z-index: 6;
    right: max(32px, calc((100vw - 1280px) / 2));
    bottom: 112px;
    width: min(380px, 34vw);
    padding: 20px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: var(--site-shadow);
}

.hero-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: #fff;
    font-weight: 800;
}

.hero-mini-list {
    display: grid;
    gap: 12px;
}

.hero-mini {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 12px;
    align-items: center;
    color: #e2e8f0;
}

.hero-mini img {
    width: 66px;
    height: 86px;
    border-radius: 16px;
    object-fit: cover;
}

.hero-mini strong {
    display: block;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 6px;
}

.hero-mini span {
    color: #94a3b8;
    font-size: 12px;
}

.section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section.tight {
    padding-top: 36px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h1,
.section-heading h2 {
    margin: 0 0 8px;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.page-intro {
    color: #94a3b8;
    line-height: 1.8;
    max-width: 760px;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
}

.movie-card-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
}

.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-card-poster img {
    transform: scale(1.07);
    filter: brightness(0.76);
}

.card-badge {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #0f1419;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #c0c0c0);
}

.card-shade {
    position: absolute;
    inset: auto 0 0;
    min-height: 48%;
    background: linear-gradient(0deg, rgba(15, 20, 25, 0.92), transparent);
}

.movie-card-body {
    padding: 14px;
}

.movie-card h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 8px;
}

.movie-card p {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 12px;
}

.card-meta {
    color: #64748b;
    font-size: 12px;
}

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

.channel-card {
    position: relative;
    min-height: 190px;
    padding: 24px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.channel-card:before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -64px;
    top: -64px;
    border-radius: 50%;
    background: rgba(232, 232, 232, 0.11);
}

.channel-card h2,
.channel-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.channel-card p {
    position: relative;
    z-index: 1;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0 0 18px;
}

.channel-card span {
    position: relative;
    z-index: 1;
    color: #e2e8f0;
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.rank-num {
    font-size: 26px;
    font-weight: 900;
    color: #e8e8e8;
    text-align: center;
}

.rank-item img {
    width: 92px;
    height: 122px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-item h2,
.rank-item h3 {
    color: #fff;
    font-weight: 900;
    margin: 0 0 8px;
    line-height: 1.35;
}

.rank-item p {
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 12px;
}

.rank-heat {
    color: #cbd5e1;
    font-size: 13px;
    white-space: nowrap;
}

.feature-panel,
.search-panel,
.detail-panel,
.player-panel,
.channel-filter {
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(18px);
}

.feature-panel {
    padding: 24px;
}

.feature-panel h2,
.feature-panel h3 {
    color: #fff;
    font-weight: 900;
    margin: 0 0 16px;
}

.feature-panel a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.feature-panel a:last-child {
    border-bottom: 0;
}

.feature-panel img {
    width: 72px;
    height: 94px;
    object-fit: cover;
    border-radius: 14px;
}

.feature-panel strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.feature-panel span {
    color: #94a3b8;
    font-size: 12px;
}

.search-panel,
.channel-filter {
    padding: 22px;
    margin-bottom: 28px;
}

.search-panel form,
.channel-filter form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(140px, 0.36fr));
    gap: 12px;
}

.search-panel input,
.search-panel select,
.channel-filter input,
.channel-filter select {
    height: 46px;
    padding: 0 16px;
}

.empty-message {
    display: none;
    padding: 28px;
    border-radius: 22px;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.empty-message.show {
    display: block;
}

.hidden-card {
    display: none !important;
}

.detail-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: end;
    overflow: hidden;
    padding-top: 92px;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.34) saturate(1.08);
    transform: scale(1.08);
}

.detail-bg:after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #0f1419 0%, rgba(15, 20, 25, 0.82) 36%, rgba(15, 20, 25, 0.42) 100%),
        radial-gradient(circle at 20% 20%, rgba(232, 232, 232, 0.12), transparent 30rem);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    padding: 78px 0 42px;
}

.detail-poster img {
    width: 260px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--site-shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 18px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-title {
    color: #fff;
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.08;
    margin: 0 0 18px;
}

.detail-summary {
    max-width: 860px;
    color: #cbd5e1;
    line-height: 1.85;
    font-size: 17px;
    margin: 22px 0 0;
}

.detail-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 42px 0 72px;
}

.player-panel {
    overflow: hidden;
    margin-bottom: 28px;
}

.player-shell {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 22rem),
        linear-gradient(0deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.1));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0f1419;
    background: linear-gradient(135deg, #ffffff, #c0c0c0);
    box-shadow: 0 0 48px rgba(232, 232, 232, 0.28);
    font-size: 34px;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.player-button:hover {
    transform: scale(1.06);
}

.detail-panel {
    padding: 28px;
    margin-bottom: 28px;
}

.detail-panel h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 18px;
}

.detail-panel p {
    color: #cbd5e1;
    line-height: 1.9;
    margin: 0 0 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

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

.sidebar-list {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(15, 23, 42, 0.36);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #64748b;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer a:hover {
    color: #cbd5e1;
}

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-side {
        display: none;
    }

    .search-panel form,
    .channel-filter form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .site-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .mobile-panel.open {
        display: block;
    }

    .hero {
        min-height: 680px;
    }

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

    .channel-grid,
    .rank-layout,
    .detail-layout,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster img {
        width: min(240px, 64vw);
    }

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

    .rank-item {
        grid-template-columns: 44px 72px minmax(0, 1fr);
    }

    .rank-heat {
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        width: min(100% - 24px, 1280px);
        height: 64px;
    }

    .main-offset {
        padding-top: 82px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content,
    .section,
    .detail-layout,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1280px);
    }

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

    .channel-grid,
    .search-panel form,
    .channel-filter form {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 38px 64px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-item img {
        width: 64px;
        height: 88px;
        border-radius: 12px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
