* {
    box-sizing: border-box;
}

:root {
    --warm-50: #fdf8f6;
    --warm-100: #f5ebe6;
    --warm-200: #e7d2c6;
    --warm-300: #d6b8a6;
    --warm-600: #7c5d4d;
    --warm-700: #5b4033;
    --warm-800: #3d2a21;
    --warm-900: #20140f;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --white: #ffffff;
    --text: #231713;
    --muted: #765f54;
    --shadow: 0 18px 48px rgba(32, 20, 15, 0.12);
    --soft-shadow: 0 12px 28px rgba(32, 20, 15, 0.08);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--warm-50) 0%, #ffffff 42%, var(--warm-100) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.7;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(32, 20, 15, 0.08);
    backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--warm-900);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-600), var(--amber-500));
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--warm-700);
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.section-link,
.text-link {
    transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.section-link:hover,
.text-link:hover {
    color: var(--sky-600);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--warm-900);
    background: var(--warm-100);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px 20px;
    color: var(--warm-700);
    font-weight: 650;
}

.mobile-nav.open {
    display: flex;
}

.hero {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    background: var(--warm-900);
}

.hero-stage {
    position: relative;
    min-height: 690px;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 690px;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 36%, rgba(14, 165, 233, 0.24), transparent 36%),
        linear-gradient(90deg, rgba(32, 20, 15, 0.94) 0%, rgba(32, 20, 15, 0.72) 46%, rgba(32, 20, 15, 0.18) 100%),
        linear-gradient(0deg, rgba(32, 20, 15, 0.65), transparent 52%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100% - 1180px) / 2));
    bottom: 92px;
    width: min(680px, calc(100% - 64px));
    color: var(--white);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber-500);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-main-copy h1 {
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 86px);
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.42);
}

.hero-summary {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.hero-tags,
.hero-actions,
.slim-actions,
.card-actions,
.detail-nav,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

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

.hero-tags span,
.tag-cloud a,
.pill-link {
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--warm-900);
    background: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 750;
}

.hero-actions {
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-form button {
    color: var(--white);
    background: linear-gradient(135deg, var(--sky-600), var(--sky-700));
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.26);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

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

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--amber-400);
}

.search-band {
    margin-top: -48px;
    position: relative;
    z-index: 5;
}

.search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 28px;
    align-items: center;
    border-radius: var(--radius);
    padding: 32px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.search-card h2,
.section-heading h2,
.ranking-copy h2,
.category-panel-title {
    margin: 0;
    color: var(--warm-900);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.search-card p,
.section-heading p,
.category-panel p,
.ranking-copy p,
.page-hero p,
.detail-main-copy p,
.movie-card p,
.site-footer p {
    color: var(--muted);
}

.search-form,
.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-form input,
.toolbar input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--warm-200);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--warm-900);
    background: var(--white);
    outline: none;
}

.search-form input:focus,
.toolbar input:focus {
    border-color: var(--sky-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.section-block {
    padding: 74px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-link,
.text-link {
    color: var(--sky-600);
    font-weight: 800;
}

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

.category-tile,
.category-panel {
    min-height: 160px;
    border: 1px solid rgba(124, 93, 77, 0.12);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.category-panel:hover,
.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-panel-title {
    display: block;
    margin-bottom: 10px;
    color: var(--warm-900);
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(124, 93, 77, 0.12);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--warm-200);
}

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

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

.play-badge,
.year-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.play-badge {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: var(--sky-600);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-badge {
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--white);
    background: var(--amber-500);
    font-size: 12px;
}

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

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: var(--sky-600);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.4em;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card .movie-meta {
    display: block;
    min-height: auto;
    margin-bottom: 10px;
    color: var(--warm-600);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-actions {
    justify-content: space-between;
    margin-top: 16px;
}

.pill-link {
    color: var(--warm-700);
    background: var(--warm-100);
}

.ranking-band {
    padding: 82px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 30%, rgba(245, 158, 11, 0.25), transparent 32%),
        linear-gradient(135deg, var(--warm-900), #0f172a 70%, #082f49);
}

.ranking-layout,
.ranking-page-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.ranking-copy h2,
.ranking-copy p {
    color: var(--white);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 44px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-page-layout .rank-item a {
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.rank-item a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.ranking-page-layout .rank-item a:hover {
    background: var(--warm-50);
}

.rank-number {
    color: var(--amber-400);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

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

.rank-title {
    color: inherit;
    font-weight: 850;
}

.rank-meta {
    grid-column: 3 / 4;
    color: var(--warm-300);
    font-size: 13px;
}

.ranking-page-layout .rank-meta {
    color: var(--muted);
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 72% 22%, rgba(14, 165, 233, 0.28), transparent 30%),
        linear-gradient(135deg, var(--warm-900), #082f49);
    padding: 88px 0 80px;
}

.compact-page-hero {
    padding: 72px 0 64px;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(40px, 6vw, 76px);
}

.page-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.slim-actions {
    margin-top: 22px;
}

.slim-actions a {
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.toolbar {
    margin-bottom: 28px;
}

.search-toolbar {
    position: sticky;
    top: 84px;
    z-index: 30;
    border: 1px solid rgba(124, 93, 77, 0.12);
    border-radius: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--soft-shadow);
}

.empty-state {
    display: none;
    border-radius: 18px;
    padding: 22px;
    color: var(--muted);
    background: var(--warm-100);
    text-align: center;
}

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

.category-panel-grid {
    align-items: stretch;
}

.mini-link-list {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.mini-link-list a {
    color: var(--sky-600);
    font-weight: 750;
}

.detail-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.23), transparent 26%),
        linear-gradient(135deg, var(--warm-900), #082f49 72%, #0f172a);
    padding: 36px 0 68px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 32px 88px rgba(0, 0, 0, 0.38);
    aspect-ratio: 16 / 9;
}

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

.player-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    font-size: 18px;
    font-weight: 850;
}

.player-mask.hidden {
    display: none;
}

.player-icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    color: var(--sky-600);
    background: rgba(255, 255, 255, 0.92);
    font-size: 32px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.movie-side {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.movie-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.side-info {
    padding: 18px;
}

.side-info p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.82);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    padding: 70px 0;
}

.detail-main-copy {
    border-radius: 26px;
    padding: 34px;
    background: var(--white);
    box-shadow: var(--soft-shadow);
}

.detail-main-copy h1 {
    color: var(--warm-900);
    font-size: clamp(34px, 5vw, 58px);
}

.detail-main-copy h2,
.detail-aside h2 {
    margin: 30px 0 12px;
    color: var(--warm-900);
    font-size: 24px;
}

.lead-text {
    color: var(--warm-700) !important;
    font-size: 20px;
    font-weight: 700;
}

.tag-cloud {
    margin-top: 26px;
}

.tag-cloud a {
    color: var(--warm-700);
    background: var(--warm-100);
}

.detail-nav {
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--warm-100);
}

.detail-nav a {
    color: var(--sky-600);
    font-weight: 800;
}

.detail-aside {
    position: sticky;
    top: 96px;
    align-self: start;
}

.aside-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.aside-grid .movie-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
}

.aside-grid .poster-link {
    height: 100%;
    min-height: 168px;
}

.aside-grid .movie-card p {
    -webkit-line-clamp: 3;
}

.site-footer {
    color: var(--warm-100);
    background: var(--warm-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-brand {
    color: var(--white);
}

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

.footer-links {
    display: grid;
    gap: 8px;
    color: var(--warm-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    color: var(--warm-300);
    text-align: center;
}

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .search-card,
    .ranking-layout,
    .ranking-page-layout,
    .detail-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-side {
        display: none;
    }

    .detail-aside {
        position: static;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .hero,
    .hero-stage,
    .hero-slide img {
        min-height: 620px;
    }

    .hero-content {
        bottom: 72px;
    }

    .category-grid,
    .category-panel-grid,
    .movie-grid,
    .small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .split-heading,
    .toolbar,
    .search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .search-card,
    .detail-main-copy {
        padding: 24px;
    }
}

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

    .brand {
        font-size: 18px;
    }

    .hero,
    .hero-stage,
    .hero-slide img {
        min-height: 560px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .hero-summary {
        font-size: 16px;
    }

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

    .aside-grid .movie-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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