:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --text: #1e293b;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.28);
    --card: #ffffff;
    --amber: #f59e0b;
    --amber-dark: #92400e;
    --orange: #ea580c;
    --rose: #e11d48;
    --teal: #0f766e;
    --cyan: #0891b2;
    --slate: #0f172a;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 42%, #ecfeff 100%);
    line-height: 1.75;
}

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

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(154, 52, 18, 0.96));
    color: #fff;
    box-shadow: 0 18px 40px rgba(69, 26, 3, 0.18);
    backdrop-filter: blur(14px);
}

.site-nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    color: #7c2d12;
    box-shadow: 0 0 30px rgba(253, 230, 138, 0.45);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a,
.category-strip a {
    border-radius: 999px;
    padding: 9px 16px;
    color: rgba(255, 255, 255, 0.88);
    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.category-strip a:hover {
    color: #451a03;
    background: #fde68a;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.category-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(69, 26, 3, 0.24);
}

.category-strip-scroll {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-x: auto;
}

.category-strip-scroll a {
    flex: 0 0 auto;
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #fff;
    background: #451a03;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.15);
    transform: scale(1.12);
    opacity: 0.78;
}

.hero-visual {
    position: absolute;
    right: 7vw;
    bottom: 86px;
    width: min(420px, 34vw);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(69, 26, 3, 0.92) 0%, rgba(69, 26, 3, 0.68) 45%, rgba(15, 23, 42, 0.30) 100%),
        radial-gradient(circle at 22% 15%, rgba(245, 158, 11, 0.35), transparent 35%),
        radial-gradient(circle at 75% 22%, rgba(8, 145, 178, 0.26), transparent 32%);
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    min-height: 660px;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    padding-top: 70px;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: #fde68a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-text,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-tags,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.tag-row {
    margin: 0;
}

.tag-row span {
    border-color: rgba(15, 118, 110, 0.14);
    background: #ecfeff;
    color: #0f766e;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #fff;
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 38px rgba(234, 88, 12, 0.38);
}

.btn-glass {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(12px);
}

.btn-light {
    background: #fff7ed;
    color: #9a3412;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 36px;
    background: #fde68a;
}

.hero-orb {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.4;
    pointer-events: none;
}

.orb-one {
    width: 190px;
    height: 190px;
    right: 24%;
    top: 15%;
    background: rgba(253, 230, 138, 0.3);
}

.orb-two {
    width: 120px;
    height: 120px;
    left: 8%;
    bottom: 18%;
    background: rgba(20, 184, 166, 0.22);
}

.stats-band {
    background: linear-gradient(90deg, #0f766e, #0891b2);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    padding: 34px 0;
    text-align: center;
}

.stats-grid strong {
    display: block;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
}

.stats-grid span {
    color: #cffafe;
    font-size: 14px;
}

.content-section {
    padding: 72px 0;
}

.section-soft {
    background: rgba(255, 255, 255, 0.56);
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    color: var(--slate);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    color: #ea580c;
    font-weight: 800;
}

.category-grid,
.overview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.category-card,
.category-overview-card,
.ranking-panel,
.detail-article,
.watch-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.category-card {
    min-height: 210px;
    padding: 22px;
    transition: 0.25s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.category-card span {
    color: #ea580c;
    font-weight: 900;
}

.category-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 32px;
    color: #0f172a;
}

.category-card p,
.category-card em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 46px rgba(15, 23, 42, 0.10);
    transition: 0.25s ease;
}

.movie-card-small {
    display: grid;
    grid-template-columns: 126px 1fr;
    min-height: 170px;
}

.movie-poster {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8fafc;
}

.movie-card-small .movie-poster {
    height: 100%;
    aspect-ratio: auto;
}

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

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

.poster-year,
.poster-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    backdrop-filter: blur(10px);
}

.poster-year {
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
}

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

.movie-meta {
    margin: 0 0 8px;
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 56px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-one-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.ranking-panel {
    position: sticky;
    top: 126px;
    padding: 24px;
}

.ranking-panel-head h2 {
    margin: 0 0 18px;
    font-size: 32px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    background: #fff;
    transition: 0.25s ease;
}

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

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #e11d48);
    color: #fff;
    font-weight: 900;
}

.rank-item img {
    width: 86px;
    height: 112px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-item.compact img {
    width: 64px;
    height: 78px;
}

.rank-content strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
}

.rank-content em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    border-radius: 999px;
    padding: 6px 12px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 13px;
    font-weight: 800;
}

.compact .rank-score {
    display: none;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(15, 118, 110, 0.82)),
        radial-gradient(circle at 74% 25%, rgba(253, 230, 138, 0.26), transparent 34%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    padding: 96px 0 76px;
}

.compact-hero .container {
    padding-bottom: 60px;
}

.page-hero h1 {
    max-width: 820px;
}

.hero-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-mini-meta span {
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.16);
}

.filter-toolbar {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

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

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 14px;
    background: #fff;
    color: var(--text);
    outline: none;
}

.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.filter-result {
    margin: 0;
    color: #0f766e;
    font-weight: 900;
}

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.category-overview-head h2 {
    margin: 0;
}

.category-overview-head span {
    color: #ea580c;
    font-weight: 900;
}

.category-overview-card p {
    color: var(--muted);
}

.category-overview-card ul {
    display: grid;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.category-overview-card li a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 9px;
    color: #0f172a;
    font-weight: 800;
}

.category-overview-card li span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.detail-hero {
    min-height: 680px;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(24px) saturate(1.2);
    transform: scale(1.1);
}

.detail-hero-content {
    position: relative;
    z-index: 3;
    padding: 48px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-cover {
    width: 310px;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-info h1 {
    max-width: 780px;
}

.detail-tags span {
    background: rgba(253, 230, 138, 0.16);
    color: #fff7ed;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.watch-panel,
.detail-article {
    padding: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.76));
    color: #fff;
    cursor: pointer;
}

.player-start span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    margin-bottom: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.34);
}

.player-start strong {
    font-size: 18px;
}

.player-shell.is-playing .player-start {
    display: none;
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 12px;
    margin: 0;
    color: #fde68a;
    text-align: center;
    font-size: 14px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.detail-meta-grid div {
    border-radius: 18px;
    padding: 14px;
    background: #fff7ed;
}

.detail-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
}

.detail-article h2 {
    margin: 26px 0 10px;
    color: #0f172a;
}

.detail-article h2:first-of-type {
    margin-top: 0;
}

.detail-article p {
    margin: 0;
    color: #475569;
    text-align: justify;
}

.rank-list-large .rank-item {
    grid-template-columns: 64px 96px minmax(0, 1fr) 150px;
}

.site-footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #cbd5e1;
    padding: 58px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 1.2fr;
    gap: 34px;
}

.site-footer h2,
.site-footer h3 {
    color: #fde68a;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #fde68a;
}

.footer-cats {
    columns: 2;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #94a3b8;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .category-grid,
    .overview-grid,
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .two-column-layout,
    .detail-main {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 780px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        padding: 14px;
        background: rgba(120, 53, 15, 0.98);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-visual {
        right: 24px;
        bottom: 70px;
        width: 190px;
        opacity: 0.45;
    }

    .stats-grid,
    .category-grid,
    .overview-grid,
    .movie-grid,
    .footer-grid,
    .filter-toolbar,
    .detail-layout,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-small {
        grid-template-columns: 112px 1fr;
    }

    .rank-item,
    .rank-list-large .rank-item {
        grid-template-columns: 48px 74px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 2 / 4;
        justify-self: start;
    }

    .detail-cover {
        width: min(280px, 78vw);
    }

    .footer-bottom {
        flex-direction: column;
    }
}
