:root {
    --bg: #f7fafc;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --card: #ffffff;
    --orange: #ea580c;
    --amber: #d97706;
    --teal: #0d9488;
    --cyan: #0891b2;
    --blue: #2563eb;
    --emerald: #059669;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.7;
}

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: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.25);
}

.brand-text,
.footer-brand {
    font-size: 24px;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 650;
    color: #334155;
}

.desktop-nav a,
.mobile-menu a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.footer-links a:hover {
    color: var(--orange);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #334155;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-inner {
    display: grid;
    gap: 12px;
    padding: 16px 0 20px;
    font-weight: 650;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 0.75s ease, transform 1s ease;
}

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

.hero-content {
    width: min(720px, calc(100% - 48px));
    margin-left: max(24px, calc((100vw - 1180px) / 2));
    padding: 90px 0;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.hero-content p {
    max-width: 650px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-content strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 24px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.32);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-small {
    min-height: 38px;
    padding: 0 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
}

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

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

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    font-size: 30px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: #ffffff;
}

.search-strip {
    padding: 28px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.search-panel,
.tool-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.search-panel h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(420px, 100%);
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.search-box.slim {
    min-width: min(360px, 100%);
}

.search-box span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    font-size: 15px;
}

.section {
    padding: 72px 0;
}

.section-white {
    background: #ffffff;
}

.section-blue {
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.section-green {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.more-link {
    color: var(--blue);
    font-weight: 800;
}

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

.category-card {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 26px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font-weight: 900;
}

.category-card h3,
.movie-card h3,
.rank-item h3,
.category-overview-card h2 {
    margin: 0;
    line-height: 1.3;
}

.category-card p,
.movie-card p,
.rank-item p,
.category-overview-card p,
.footer-grid p {
    margin: 0;
    color: var(--muted);
}

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

.movie-card,
.rank-item,
.category-overview-card,
.content-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img,
.rank-poster img,
.category-collage img,
.detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img,
.rank-poster img {
    transition: transform 0.5s ease;
}

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

.play-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.movie-card-meta,
.detail-meta,
.rank-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    font-size: 18px;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover {
    color: var(--orange);
}

.tag-row span {
    background: #f1f5f9;
    color: #475569;
}

.tag-row.large span {
    background: rgba(234, 88, 12, 0.1);
    color: #9a3412;
}

.genre-line {
    color: var(--muted);
    font-size: 13px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    overflow: hidden;
    border-radius: 18px;
}

.rank-poster {
    min-height: 132px;
    overflow: hidden;
    background: #0f172a;
}

.rank-copy {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px 20px 18px 0;
}

.rank-no {
    display: inline-grid;
    min-width: 36px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    font-size: 12px;
    font-weight: 900;
}

.page-hero,
.detail-hero {
    padding: 64px 0;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(234, 88, 12, 0.38), transparent 32%), linear-gradient(135deg, #0f172a, #111827 48%, #1f2937);
}

.compact-hero,
.category-hero,
.ranking-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.tool-bar {
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.tool-bar select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
    border-radius: var(--radius);
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 260px;
    background: #0f172a;
}

.category-overview-copy {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 28px;
}

.category-overview-copy > span {
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
    gap: 28px;
    align-items: stretch;
}

.player-panel,
.detail-info {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

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

.big-play {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.38);
    font-size: 32px;
}

.detail-info {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 18px;
    padding: 18px;
}

.detail-cover {
    min-height: 230px;
    border-radius: 18px;
}

.detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}

.detail-one-line {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.84);
}

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

.content-card {
    padding: 28px;
    border-radius: var(--radius);
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.content-card p {
    margin: 0 0 14px;
    color: #334155;
}

.accent-card {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.site-footer {
    padding-top: 48px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 34px;
}

.footer-grid p {
    max-width: 620px;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px;
    font-weight: 800;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.is-filtered-out {
    display: none !important;
}

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

    .nav-toggle {
        display: block;
    }

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

    .detail-layout,
    .detail-content-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 780px) {
    .hero-carousel {
        min-height: 560px;
    }

    .hero-content {
        width: calc(100% - 32px);
        margin: 0 auto;
        padding-top: 80px;
    }

    .search-panel,
    .section-head,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-item,
    .category-overview-card,
    .detail-info {
        grid-template-columns: 1fr;
    }

    .rank-copy {
        padding: 18px;
    }

    .rank-poster {
        aspect-ratio: 16 / 9;
    }

    .player-shell {
        min-height: 240px;
    }
}

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

    .brand-text {
        font-size: 20px;
    }

    .hero-content h1,
    .hero-content h2,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-actions,
    .tool-bar {
        flex-direction: column;
        align-items: stretch;
    }

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

    .section {
        padding: 54px 0;
    }

    .category-collage {
        min-height: 210px;
    }
}
