:root {
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --white: #ffffff;
    --page-bg: #fafaf9;
    --shadow-soft: 0 24px 80px rgba(28, 25, 23, 0.18);
    --shadow-card: 0 18px 45px rgba(28, 25, 23, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--stone-800);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34rem),
        linear-gradient(180deg, #fffaf0 0%, var(--page-bg) 24rem, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(28, 25, 23, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.18);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.04em;
    color: var(--amber-300);
}

.brand-text em {
    margin-top: 3px;
    color: rgba(252, 211, 77, 0.78);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
    color: #fff7ed;
    font-weight: 700;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--white);
    background: rgba(217, 119, 6, 0.92);
}

.header-search {
    width: min(260px, 22vw);
}

.page-search {
    width: 100%;
    padding: 11px 14px;
    border-radius: 999px;
    color: var(--stone-100);
    background: rgba(255, 247, 237, 0.08);
    border: 1px solid rgba(252, 211, 77, 0.22);
    outline: none;
}

.page-search:focus {
    border-color: rgba(252, 211, 77, 0.65);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.92);
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(252, 211, 77, 0.15);
    padding: 10px 20px 18px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav-link {
    padding: 12px 14px;
}

.hero {
    padding: 0 20px 32px;
    background: linear-gradient(135deg, var(--stone-950), #451a03 52%, var(--stone-900));
}

.hero-shell {
    position: relative;
    max-width: 1280px;
    min-height: 640px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.hero-track,
.hero-slide {
    min-height: 640px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
    align-items: stretch;
    background:
        radial-gradient(circle at 20% 28%, rgba(251, 191, 36, 0.25), transparent 26rem),
        linear-gradient(120deg, rgba(12, 10, 9, 0.94), rgba(68, 64, 60, 0.68));
}

.hero-slide.is-active {
    display: grid;
    animation: heroFade 0.7s ease both;
}

.hero-media {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.55), rgba(12, 10, 9, 0.92)),
        radial-gradient(circle, rgba(252, 211, 77, 0.34), transparent 28rem);
}

.hero-media::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 9, 0.78), rgba(12, 10, 9, 0.28) 48%, rgba(12, 10, 9, 0.82));
}

.hero-media img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transform: scale(1.04);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: clamp(48px, 7vw, 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--amber-400);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-label::before,
.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 22px currentColor;
}

.hero-copy h1 {
    max-width: 740px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 660px;
    margin-top: 24px;
    color: rgba(245, 245, 244, 0.88);
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.75;
}

.hero-tags,
.detail-tags,
.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 13px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    padding: 0 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.32);
}

.ghost-button {
    padding: 0 22px;
    color: #fff7ed;
    background: rgba(255, 247, 237, 0.1);
    border: 1px solid rgba(252, 211, 77, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    left: clamp(42px, 7vw, 96px);
    bottom: 36px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.38);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-category-row {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 520px;
}

.hero-category-row a {
    padding: 8px 13px;
    color: #fff7ed;
    border-radius: 999px;
    background: rgba(12, 10, 9, 0.42);
    border: 1px solid rgba(252, 211, 77, 0.22);
    font-size: 13px;
    font-weight: 800;
}

.page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 20px;
}

.content-section + .content-section,
.rank-section {
    margin-top: 72px;
}

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

.section-heading h2,
.compact-hero h1,
.detail-info h1,
.detail-article h2 {
    color: var(--stone-900);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-more {
    padding: 0 20px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.movie-grid,
.ranking-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

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

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

.full-ranking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(120, 113, 108, 0.12);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 75px rgba(28, 25, 23, 0.18);
}

.movie-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(252, 211, 77, 0.44), transparent 13rem),
        linear-gradient(135deg, #78350f, var(--stone-900));
}

.movie-card-featured .movie-poster {
    aspect-ratio: 16 / 13;
}

.movie-poster img,
.detail-poster img,
.video-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-poster img,
.detail-poster img,
.video-player video,
.hero-media img,
.detail-backdrop img {
    transition: opacity 0.2s ease, transform 0.45s ease;
}

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

.image-hidden {
    opacity: 0 !important;
}

.poster-overlay {
    position: absolute;
    inset: auto 14px 14px auto;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(12, 10, 9, 0.72);
    border: 1px solid rgba(252, 211, 77, 0.24);
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-400), var(--amber-700));
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.35);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--stone-500);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    color: var(--stone-900);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: var(--amber-700);
}

.movie-card p {
    display: -webkit-box;
    min-height: 46px;
    margin-top: 10px;
    overflow: hidden;
    color: var(--stone-600);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-tags {
    margin-top: 14px;
}

.mini-tags .tag {
    min-height: 24px;
    padding: 3px 9px;
    font-size: 12px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--stone-950), #78350f 58%, var(--stone-900));
}

.compact-hero {
    padding: 86px 20px;
}

.compact-hero > div {
    max-width: 1040px;
    margin: 0 auto;
}

.compact-hero h1 {
    color: var(--white);
    font-size: clamp(38px, 6vw, 64px);
}

.compact-hero p {
    max-width: 840px;
    margin-top: 18px;
    color: rgba(245, 245, 244, 0.82);
    font-size: 19px;
    line-height: 1.85;
}

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: var(--shadow-card);
}

.category-main {
    display: block;
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(252, 211, 77, 0.28), transparent 14rem),
        linear-gradient(135deg, #fff7ed, #ffffff);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--white);
    border-radius: 15px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
}

.category-card h2 {
    color: var(--stone-900);
    font-size: 26px;
    font-weight: 900;
}

.category-card p {
    margin-top: 12px;
    color: var(--stone-600);
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 8px;
    padding: 18px 26px 24px;
}

.category-samples a {
    color: var(--stone-700);
    font-weight: 800;
}

.category-samples a:hover {
    color: var(--amber-700);
}

.detail-hero {
    min-height: 620px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.22), transparent 24rem),
        linear-gradient(135deg, #78350f, var(--stone-950));
}

.detail-layout {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 84px 20px 72px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(30px, 6vw, 72px);
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 25% 18%, rgba(252, 211, 77, 0.46), transparent 12rem),
        linear-gradient(135deg, #78350f, var(--stone-900));
    border: 1px solid rgba(252, 211, 77, 0.28);
    box-shadow: 0 38px 92px rgba(0, 0, 0, 0.45);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 247, 237, 0.76);
    font-weight: 800;
}

.breadcrumbs a:hover {
    color: var(--amber-300);
}

.detail-info h1 {
    max-width: 860px;
    color: var(--white);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 850px;
    margin-top: 22px;
    color: rgba(245, 245, 244, 0.88);
    font-size: 20px;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.detail-meta span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 13px;
    color: #fff7ed;
    border-radius: 999px;
    background: rgba(255, 247, 237, 0.1);
    border: 1px solid rgba(252, 211, 77, 0.22);
}

.detail-meta b {
    color: var(--amber-300);
}

.detail-tags {
    margin-top: 18px;
}

.detail-play-link {
    margin-top: 30px;
}

.detail-page-wrap {
    padding-top: 48px;
}

.player-section {
    margin-bottom: 46px;
}

.video-player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #050505;
    box-shadow: var(--shadow-soft);
}

.video-player video {
    position: absolute;
    inset: 0;
    background: #050505;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(12, 10, 9, 0.32), rgba(12, 10, 9, 0.78));
}

.player-start span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-700));
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.42);
    font-size: 34px;
}

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

.player-start.is-hidden {
    display: none;
}

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

.detail-article {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(120, 113, 108, 0.12);
}

.detail-article h2 {
    font-size: clamp(26px, 4vw, 38px);
}

.article-text {
    margin-top: 18px;
    color: var(--stone-700);
    font-size: 17px;
    line-height: 1.95;
}

.article-text p + p {
    margin-top: 14px;
}

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

.site-footer {
    margin-top: 40px;
    color: rgba(245, 245, 244, 0.82);
    background: linear-gradient(135deg, var(--stone-950), #451a03 55%, var(--stone-900));
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
}

.brand-footer .brand-text strong {
    color: var(--amber-300);
}

.footer-brand p {
    max-width: 620px;
    margin-top: 18px;
    line-height: 1.75;
}

.footer-links strong {
    color: var(--amber-300);
    font-size: 18px;
}

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
}

.footer-links a:hover {
    color: var(--amber-300);
}

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

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.012);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-slide,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: 360px;
    }

    .hero-media {
        min-height: 360px;
    }

    .hero-category-row {
        left: 28px;
        right: 28px;
        justify-content: flex-start;
    }

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

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

    .detail-layout {
        padding-top: 54px;
    }

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

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 16px;
    }

    .brand-text em {
        display: none;
    }

    .hero {
        padding: 0 0 24px;
    }

    .hero-shell {
        min-height: 720px;
        border-radius: 0 0 24px 24px;
    }

    .hero-track,
    .hero-slide {
        min-height: 720px;
    }

    .hero-copy {
        padding: 34px 22px 136px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-copy p,
    .detail-one-line {
        font-size: 17px;
    }

    .hero-dots {
        left: 22px;
        bottom: 86px;
    }

    .hero-category-row {
        bottom: 22px;
        left: 22px;
        right: 22px;
    }

    .page-wrap,
    .compact-hero,
    .detail-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .movie-grid,
    .ranking-grid,
    .full-ranking-grid,
    .category-grid,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .movie-card-featured {
        grid-column: auto;
        grid-row: auto;
    }

    .detail-info h1 {
        font-size: 38px;
    }

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

    .player-start span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
