:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #020617;
    --slate: #0f172a;
    --orange: #f97316;
    --amber: #fbbf24;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.22);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #111827;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.logo-text {
    background: linear-gradient(90deg, #fb923c, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 12px;
    color: #e2e8f0;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--orange);
    color: #ffffff;
    transform: translateY(-1px);
}

.global-search {
    position: relative;
    width: min(310px, 28vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 8px 8px 12px;
}

.global-search input::placeholder {
    color: #94a3b8;
}

.search-button,
.menu-button {
    border: 0;
    cursor: pointer;
}

.search-button {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 8px 13px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #111827;
    font-weight: 900;
}

.search-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    max-height: 420px;
    overflow: auto;
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 8px;
}

.search-panel.is-open {
    display: block;
}

.search-result {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    padding: 9px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-result:hover {
    background: #f1f5f9;
}

.search-result img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #e2e8f0;
}

.search-result strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
}

.search-result span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 3px;
}

.menu-button {
    display: none;
    margin-left: auto;
    border-radius: 12px;
    padding: 8px 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

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

.mobile-nav .nav-link {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
}

.main-content {
    min-height: 60vh;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.25), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 48%, #0f172a);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 62px 62px;
}

.hero-slide {
    display: none;
    min-height: 650px;
    position: relative;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.93), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.18));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    min-height: 650px;
    margin: 0 auto;
    padding: 92px 22px 74px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 38px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.38);
    color: #fed7aa;
    font-weight: 800;
    font-size: 14px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h1 span,
.hero-copy h2 span,
.section-title span {
    background: linear-gradient(90deg, #fb923c, #fde68a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 700px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.movie-meta,
.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta .pill,
.detail-hero .pill {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: #ffffff;
    color: var(--text);
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #111827;
}

.btn-dark {
    background: var(--slate);
    color: #ffffff;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card {
    position: relative;
    padding: 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 80px rgba(2, 6, 23, 0.42);
    backdrop-filter: blur(18px);
}

.hero-card img {
    aspect-ratio: 3 / 4;
    width: 100%;
    object-fit: cover;
    border-radius: 22px;
    background: #1e293b;
}

.hero-card-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.88));
}

.hero-card-caption strong {
    display: block;
    font-size: 20px;
    line-height: 1.25;
}

.hero-card-caption span {
    display: block;
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 13px;
}

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

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

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--orange), var(--amber));
}

.section {
    padding: 62px 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(180deg, #ffffff, #f1f5f9);
}

.section-dark {
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #ffffff;
}

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

.section-title {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
}

.section-dark .section-desc {
    color: #cbd5e1;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 174px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -44px;
    top: -44px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(6, 182, 212, 0.14));
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 23px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.78));
}

.card-year {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    border-radius: 999px;
    padding: 4px 9px;
    background: var(--orange);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

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

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

.movie-card h3 {
    margin: 0 0 7px;
    min-height: 44px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 90px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

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

.rank-item img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    background: #e2e8f0;
}

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

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.rank-score {
    font-weight: 900;
    color: var(--orange);
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(140px, 190px));
    gap: 12px;
    padding: 16px;
    margin: 0 0 26px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.filter-box input,
.filter-box select {
    min-height: 44px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 0 13px;
    outline: 0;
    background: #f8fafc;
}

.filter-box input:focus,
.filter-box select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.no-results {
    display: none;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    border: 1px solid var(--line);
}

.no-results.is-visible {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-weight: 700;
}

.breadcrumb a {
    color: #2563eb;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.26), transparent 26%), linear-gradient(135deg, #0f172a, #1e3a8a, #111827);
}

.page-hero h1,
.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-hero p,
.detail-copy p {
    max-width: 820px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.44);
    background: #1e293b;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.content-card {
    padding: 26px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.content-card + .content-card {
    margin-top: 20px;
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.28);
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.35), rgba(2, 6, 23, 0.68));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-shell.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon-large {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: #111827;
    font-size: 32px;
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.35);
}

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

.side-item {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.side-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.side-item img {
    width: 78px;
    height: 104px;
    object-fit: cover;
    border-radius: 12px;
    background: #e2e8f0;
}

.side-item strong {
    display: block;
    color: var(--text);
    line-height: 1.35;
}

.side-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    background: linear-gradient(180deg, #0f172a, #020617);
    color: #cbd5e1;
    padding: 44px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 28px;
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.footer-grid p,
.footer-grid a {
    color: #cbd5e1;
}

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

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

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

    .menu-button {
        display: inline-flex;
    }

    .global-search {
        margin-left: auto;
        width: min(390px, 42vw);
    }

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

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .global-search {
        order: 3;
        width: 100%;
    }

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

    .hero-card {
        max-width: 330px;
    }

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

    .filter-box {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 42px 72px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .container,
    .header-inner,
    .mobile-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo-text {
        font-size: 18px;
    }

    .section {
        padding: 44px 0;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

    .hero-content {
        padding-top: 70px;
    }

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

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

    .section-head {
        display: block;
    }

    .rank-item {
        grid-template-columns: 38px 64px 1fr;
        gap: 10px;
    }

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

    .content-card {
        padding: 20px;
    }
}
