:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --orange-500: #f97316;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: #f8fafc;
    color: var(--slate-900);
    -webkit-font-smoothing: antialiased;
}

img,
video {
    display: block;
    max-width: 100%;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, var(--slate-950), var(--slate-900) 45%, var(--slate-800));
    color: var(--white);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.26);
}

.nav-shell {
    max-width: 1280px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.45);
    font-weight: 900;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.03em;
}

.brand-text small {
    margin-top: 5px;
    color: var(--slate-300);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.mobile-nav-link {
    padding: 10px 15px;
    border-radius: 12px;
    color: var(--slate-300);
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--white);
    background: rgba(245, 158, 11, 0.95);
    box-shadow: 0 12px 25px rgba(245, 158, 11, 0.22);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 290px;
}

.header-search input,
.mobile-search input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.72);
    color: var(--white);
    border-radius: 12px;
    padding: 11px 13px;
    outline: none;
}

.header-search input:focus,
.mobile-search input:focus {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    padding: 11px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    color: var(--white);
    border: 0;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.14);
    padding: 10px 13px;
    cursor: pointer;
}

.mobile-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding-top: 16px;
}

.hero-slider {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: linear-gradient(135deg, #020617, #0f172a 42%, #1e293b);
    color: var(--white);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.6fr);
    align-items: center;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 92px 24px 120px;
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.35)),
        var(--hero-image) center / cover no-repeat;
    filter: blur(4px) saturate(1.05);
    opacity: 0.52;
    transform: scale(1.04);
    z-index: -1;
}

.hero-content {
    max-width: 740px;
    position: relative;
    z-index: 2;
}

.hero-kicker,
.page-hero span,
.section-heading > span,
.rank-panel-head span,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 8px 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 12px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    background: linear-gradient(90deg, #fbbf24, #fde68a, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    max-width: 720px;
    color: var(--slate-200);
    font-size: clamp(17px, 2.4vw, 23px);
    line-height: 1.75;
}

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--slate-100);
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 23px;
    font-weight: 900;
    transition: 0.25s ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.32);
}

.primary-btn:hover,
.section-more:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    justify-self: center;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 85px rgba(2, 6, 23, 0.55);
    transform: rotate(1.3deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active {
    width: 32px;
    background: var(--amber-500);
}

.quick-categories {
    position: relative;
    z-index: 5;
    margin-top: -38px;
    padding: 0 24px;
}

.quick-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.quick-inner a,
.category-main,
.story-card,
.rank-panel,
.filter-toolbar,
.category-card,
.movie-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.quick-inner a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-weight: 900;
    color: var(--slate-900);
}

.quick-inner span {
    color: var(--amber-600);
    font-size: 24px;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 24px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: end;
    margin-bottom: 26px;
}

.section-heading > span,
.rank-panel-head span,
.page-hero span,
.detail-kicker {
    color: var(--amber-700, #b45309);
    background: #fef3c7;
    border-color: #fde68a;
}

.section-heading h2,
.rank-panel-head h2,
.related-channels h2,
.story-card h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.section-more {
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-800), var(--slate-700));
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.movie-card.is-hidden {
    display: none;
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-900);
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.08);
    filter: saturate(1.1) brightness(0.82);
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--slate-950);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.28);
}

.rank-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 10px 0 8px;
    color: var(--slate-950);
    font-size: 20px;
    line-height: 1.28;
}

.movie-info h3 a:hover {
    color: var(--amber-600);
}

.movie-info p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.7;
    font-size: 14px;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    color: var(--slate-700);
    background: var(--slate-100);
    border-color: var(--slate-200);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.rank-panel {
    padding: 24px;
    position: sticky;
    top: 104px;
}

.rank-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: var(--slate-100);
    transition: 0.25s ease;
}

.rank-row:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.rank-num {
    font-size: 18px;
    font-weight: 900;
    color: var(--amber-600);
}

.rank-row img {
    width: 64px;
    height: 52px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-title {
    min-width: 0;
}

.rank-title strong,
.rank-title em {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-title strong {
    color: var(--slate-900);
}

.rank-title em {
    color: var(--slate-500);
    font-style: normal;
    font-size: 13px;
    margin-top: 3px;
}

.page-main {
    padding-bottom: 80px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.84)),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.28), transparent 34%),
        linear-gradient(135deg, #020617, #1e293b);
    padding: 86px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--slate-200);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    padding: 22px;
}

.category-main {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    color: var(--white);
}

.category-main span {
    display: block;
    color: #fde68a;
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 12px;
}

.category-main strong {
    display: block;
    color: var(--slate-200);
    font-weight: 600;
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.category-samples a,
.related-channels a {
    display: inline-flex;
    border-radius: 999px;
    padding: 9px 13px;
    background: var(--slate-100);
    color: var(--slate-700);
    font-weight: 700;
}

.category-samples a:hover,
.related-channels a:hover {
    color: var(--white);
    background: var(--amber-500);
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 0.22fr));
    gap: 14px;
    padding: 18px;
    margin-bottom: 26px;
}

.filter-toolbar label {
    display: grid;
    gap: 7px;
    color: var(--slate-500);
    font-weight: 800;
    font-size: 13px;
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 12px 13px;
    outline: none;
    color: var(--slate-900);
    background: var(--white);
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.related-channels h2 {
    margin-bottom: 16px;
}

.related-channels div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.breadcrumb {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--slate-500);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--amber-600);
}

.detail-hero {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 34px;
    border-radius: 34px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 34px;
    align-items: center;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78)),
        var(--detail-image) center / cover no-repeat;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-poster {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.55);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
}

.detail-info p {
    max-width: 820px;
    color: var(--slate-100);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    margin: 22px 0 8px;
}

.player-section {
    max-width: 1280px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 34px 75px rgba(2, 6, 23, 0.32);
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--white);
    background: #000000;
    z-index: 3;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--slate-950);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.32);
    font-size: 36px;
    line-height: 1;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-card {
    padding: 28px;
}

.story-card p {
    margin: 14px 0 0;
    color: var(--slate-600);
    line-height: 1.9;
    font-size: 17px;
}

.rank-wide .rank-panel {
    position: static;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
    margin-top: 90px;
    color: var(--slate-300);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    gap: 22px;
}

.footer-inner strong {
    display: block;
    color: var(--white);
    font-size: 22px;
    margin-bottom: 8px;
}

.footer-inner p {
    margin: 0;
    line-height: 1.7;
}

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

.footer-links a {
    color: var(--slate-200);
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(245, 158, 11, 0.9);
}

.copyright {
    color: var(--slate-400);
    font-size: 14px;
}

@media (max-width: 1120px) {
    .header-search {
        display: none;
    }

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

@media (max-width: 860px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-shell {
        min-height: 68px;
        padding: 0 16px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text small {
        display: none;
    }

    .hero-slider {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 78px 18px 118px;
    }

    .hero-content h1 {
        font-size: clamp(38px, 12vw, 58px);
    }

    .hero-poster {
        width: min(330px, 86vw);
    }

    .quick-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .detail-content,
    .two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        margin: 18px 16px 0;
        padding: 22px;
    }

    .detail-poster {
        max-width: 330px;
    }
}

@media (max-width: 560px) {
    .mobile-search {
        display: grid;
    }

    .hero-slider {
        min-height: 820px;
    }

    .hero-actions,
    .section-heading,
    .rank-panel-head {
        align-items: stretch;
    }

    .hero-actions,
    .section-heading {
        display: grid;
        grid-template-columns: 1fr;
    }

    .quick-inner,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .detail-content,
    .two-column,
    .filter-toolbar {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 56px 16px 0;
    }

    .page-hero {
        min-height: 320px;
        padding: 66px 16px;
    }

    .player-section {
        padding: 0 16px;
    }

    .player-shell {
        border-radius: 18px;
    }

    .play-ring {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .rank-row {
        grid-template-columns: 34px 58px 1fr;
    }
}
