* {
    box-sizing: border-box;
}

:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --cyan-50: #ecfeff;
    --blue-50: #eff6ff;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(28, 25, 23, 0.13);
    --shadow-card: 0 12px 28px rgba(28, 25, 23, 0.1);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--stone-800);
    background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
    line-height: 1.6;
}

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;
    color: var(--white);
    background: linear-gradient(90deg, var(--stone-800), var(--stone-700), var(--stone-800));
    box-shadow: 0 10px 30px rgba(28, 25, 23, 0.24);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

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

.brand-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--stone-900);
    background: var(--amber-500);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-tagline {
    margin-top: -4px;
    font-size: 12px;
    color: var(--stone-300);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.mobile-nav-link {
    border-radius: 12px;
    transition: 180ms ease;
}

.nav-link {
    padding: 9px 14px;
    color: var(--stone-200);
    font-size: 15px;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.18);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(231, 229, 228, 0.18);
    padding: 8px 16px 14px;
}

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

.mobile-nav-link {
    padding: 12px 14px;
    color: var(--stone-200);
}

.hero-section,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--stone-900);
}

.hero-section {
    min-height: 70vh;
}

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

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.hero-media.faded img {
    opacity: 0.42;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.32), transparent 26%),
        linear-gradient(0deg, rgba(28, 25, 23, 0.98), rgba(28, 25, 23, 0.48), rgba(28, 25, 23, 0.16));
}

.hero-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 70vh;
    padding: 92px 0 70px;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 5px 12px;
    color: var(--white);
    background: var(--amber-600);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 16px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    font-size: clamp(38px, 7vw, 72px);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.rank-meta,
.movie-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 22px;
}

.primary-button,
.ghost-button,
.text-button,
.search-panel button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: 180ms ease;
}

.primary-button,
.search-panel button {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.3);
}

.primary-button {
    min-height: 48px;
    padding: 0 28px;
    border-radius: 14px;
}

.primary-button:hover,
.search-panel button:hover {
    background: var(--amber-500);
    transform: translateY(-1px);
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 160px auto;
    gap: 10px;
    max-width: 760px;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(16px);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    outline: none;
    color: var(--stone-800);
    background: rgba(255, 255, 255, 0.92);
}

.search-panel button {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
}

.focus-grid-section,
.section-block,
.detail-section {
    padding: 48px 0;
}

.focus-grid,
.movie-grid,
.category-grid,
.category-card-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.content-band {
    padding: 56px 0;
}

.white-band {
    background: var(--white);
}

.cool-band {
    background: linear-gradient(90deg, var(--cyan-50), var(--blue-50));
}

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

.section-heading h2 {
    margin: 0 0 6px;
    color: var(--stone-800);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
}

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

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--amber-600);
    font-weight: 800;
    white-space: nowrap;
}

.section-more span {
    font-size: 24px;
    line-height: 1;
}

.movie-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(214, 211, 209, 0.78);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: 180ms ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--stone-800);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

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

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    color: var(--white);
    background: rgba(217, 119, 6, 0.92);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

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

.movie-meta-line {
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--stone-500);
    font-size: 13px;
}

.movie-meta-line strong {
    color: var(--amber-600);
}

.movie-card h3 {
    margin: 0 0 8px;
    color: var(--stone-800);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--stone-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--stone-700);
    background: var(--stone-100);
    border-radius: 999px;
    font-size: 12px;
}

.large-card .poster-link {
    aspect-ratio: 16 / 11;
}

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    background: var(--stone-900);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 220ms ease;
}

.category-tile:hover img {
    transform: scale(1.06);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.9), transparent 70%);
}

.category-tile strong,
.category-tile small {
    position: absolute;
    left: 18px;
    right: 18px;
    color: var(--white);
}

.category-tile strong {
    bottom: 52px;
    font-size: 22px;
}

.category-tile small {
    bottom: 18px;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: var(--white);
    border: 1px solid rgba(214, 211, 209, 0.72);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.rank-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--white);
    background: var(--stone-800);
    border-radius: 50%;
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: var(--stone-800);
}

.rank-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.rank-item p {
    margin: 0 0 8px;
    color: var(--stone-600);
    font-size: 14px;
}

.rank-meta {
    gap: 6px;
    color: var(--stone-600);
    font-size: 12px;
}

.rank-meta span {
    background: var(--stone-100);
}

.page-hero {
    padding: 78px 0 58px;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.slim-hero {
    background:
        radial-gradient(circle at 16% 10%, rgba(245, 158, 11, 0.3), transparent 28%),
        linear-gradient(120deg, var(--stone-900), var(--stone-700));
}

.category-hero {
    background:
        radial-gradient(circle at 84% 16%, rgba(245, 158, 11, 0.24), transparent 30%),
        linear-gradient(120deg, var(--stone-900), var(--stone-700));
}

.ranking-hero {
    min-height: 430px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(214, 211, 209, 0.78);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.category-card-cover {
    min-height: 250px;
    background: var(--stone-800);
}

.category-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.category-card-body span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 10px;
    color: var(--amber-600);
    background: #fff7ed;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.category-card-body h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--stone-600);
}

.mini-links {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.mini-links a {
    color: var(--stone-700);
    font-weight: 700;
}

.text-button {
    color: var(--amber-600);
}

.category-feature {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 44px;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(120deg, var(--stone-900), var(--stone-700));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.category-feature img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
}

.category-feature h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 44px);
}

.category-feature p {
    color: rgba(255, 255, 255, 0.82);
}

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

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 44px 0 56px;
}

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

.detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 68px);
}

.detail-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

.watch-shell {
    position: relative;
    overflow: hidden;
    background: #050505;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54));
    cursor: pointer;
}

.play-cover span {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    padding-left: 6px;
    color: var(--white);
    background: var(--amber-600);
    border-radius: 999px;
    box-shadow: 0 20px 45px rgba(217, 119, 6, 0.42);
    font-size: 34px;
}

.play-cover[hidden] {
    display: none;
}

.article-section {
    padding-top: 6px;
}

.detail-article {
    padding: 34px;
    background: var(--white);
    border: 1px solid rgba(214, 211, 209, 0.78);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.detail-article h2 {
    margin: 0 0 12px;
    color: var(--stone-800);
    font-size: 26px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: var(--stone-700);
    font-size: 17px;
}

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

.inline-links a {
    padding: 8px 12px;
    color: var(--stone-800);
    background: var(--stone-100);
    border-radius: 999px;
    font-weight: 700;
}

.site-footer {
    margin-top: 42px;
    padding: 48px 0;
    color: var(--stone-300);
    background: linear-gradient(180deg, var(--stone-800), var(--stone-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    color: var(--stone-300);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

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

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

    .menu-toggle {
        display: flex;
    }

    .focus-grid,
    .rank-list.compact,
    .category-card-grid,
    .category-feature,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .detail-cover {
        max-width: 280px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero-content {
        min-height: 620px;
        padding: 74px 0 42px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .search-panel {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-number {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .category-card {
        grid-template-columns: 1fr;
    }

    .category-card-cover {
        min-height: 210px;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-hero-inner {
        padding-bottom: 40px;
    }

    .detail-cover {
        max-width: 220px;
    }

    .detail-article {
        padding: 24px;
    }

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