:root {
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-soft: #fff7ed;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --night: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(234, 88, 12, 0.10), transparent 34rem),
        linear-gradient(180deg, #fff7ed 0%, #f9fafb 22rem, #ffffff 100%);
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #ea580c, #f97316);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(154, 52, 18, 0.28);
}

.nav-shell {
    max-width: 1280px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ea580c;
    background: #ffffff;
    box-shadow: inset 0 -4px 12px rgba(234, 88, 12, 0.16);
    font-weight: 900;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
}

.desktop-nav a {
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #ffedd5;
    opacity: 1;
}

.site-search {
    width: 220px;
    position: relative;
}

.site-search input {
    width: 100%;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    padding: 0 44px 0 16px;
    outline: none;
}

.site-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.site-search button {
    position: absolute;
    right: 6px;
    top: 5px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 9px 11px;
    font-size: 20px;
}

.mobile-panel {
    display: none;
    background: #c2410c;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px 22px 20px;
}

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

.mobile-panel a {
    display: block;
    padding: 10px 2px;
    font-weight: 650;
}

.mobile-panel .site-search {
    width: 100%;
    margin-bottom: 8px;
}

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

.hero {
    padding: 34px 0 28px;
}

.hero-stage {
    position: relative;
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.06);
}

.hero-cover {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.10) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 45%);
}

.hero-content {
    position: absolute;
    z-index: 2;
    left: clamp(22px, 6vw, 76px);
    bottom: clamp(30px, 8vw, 78px);
    max-width: 680px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.section-actions,
.player-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

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

.btn-primary {
    background: #ea580c;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

.btn-primary:hover {
    background: #c2410c;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}

.btn-light {
    background: #ffffff;
    color: #ea580c;
    border-color: #fed7aa;
}

.btn-outline {
    color: #ea580c;
    background: #ffffff;
    border-color: #fed7aa;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: clamp(22px, 6vw, 76px);
    bottom: 24px;
    display: flex;
    gap: 9px;
}

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

.hero-dot.active {
    background: #ffffff;
}

.section {
    padding: 34px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.category-tile {
    padding: 22px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 14px 35px rgba(154, 52, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
    border: 1px solid rgba(229, 231, 235, 0.9);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

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

.score-pill,
.year-pill {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.score-pill {
    right: 12px;
    background: rgba(0, 0, 0, 0.68);
}

.year-pill {
    left: 12px;
    background: rgba(234, 88, 12, 0.88);
}

.movie-body {
    padding: 17px;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

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

.movie-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.feature-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 22px;
    align-items: start;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 84px 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rank-no {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #fff7ed;
    color: #ea580c;
    font-weight: 900;
}

.rank-item img {
    width: 84px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    background: #111827;
}

.rank-item h3 {
    margin: 0 0 4px;
    font-size: 16px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.rank-score {
    color: #ea580c;
    font-weight: 900;
}

.page-hero {
    padding: 56px 0 30px;
}

.page-card {
    padding: clamp(24px, 5vw, 48px);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(124, 45, 18, 0.90)),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.32), transparent 26rem);
    color: #ffffff;
    box-shadow: var(--shadow);
}

.page-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.12;
}

.page-card p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.filter-panel {
    display: grid;
    gap: 14px;
    margin: 22px 0;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.filter-panel input {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    outline: none;
    padding: 0 17px;
    font-size: 15px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #c2410c;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 800;
    cursor: pointer;
}

.filter-button.active {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    background: #fff7ed;
    color: #9a3412;
    text-align: center;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #ea580c;
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 28px;
    padding: clamp(20px, 4vw, 38px);
    border-radius: 32px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(124, 45, 18, 0.92)),
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.33), transparent 24rem);
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 10;
    background: #111827;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
}

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

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 58px);
    line-height: 1.05;
}

.detail-info p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #ffffff;
    font-size: 14px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(234, 88, 12, 0.18), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: #ea580c;
    color: #ffffff;
    font-size: 42px;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(234, 88, 12, 0.45);
}

.content-card {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 36px);
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

.content-card p {
    margin: 0 0 15px;
    color: #374151;
    line-height: 1.85;
}

.site-footer {
    margin-top: 60px;
    background: #111827;
    color: #d1d5db;
}

.footer-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 28px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer p,
.site-footer a {
    color: #d1d5db;
}

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

.footer-bottom {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #1f2937;
    text-align: center;
    font-size: 14px;
    color: #9ca3af;
}

@media (max-width: 1080px) {
    .desktop-nav,
    .nav-shell > .site-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

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

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

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

@media (max-width: 760px) {
    .container,
    .footer-shell {
        width: min(100% - 28px, 1280px);
    }

    .hero-stage {
        min-height: 520px;
        border-radius: 24px;
    }

    .hero-content {
        left: 22px;
        right: 22px;
    }

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

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

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

    .rank-score {
        display: none;
    }

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

    .detail-hero {
        padding: 18px;
        border-radius: 24px;
    }
}

@media (max-width: 520px) {
    .nav-shell {
        height: 62px;
        padding: 0 14px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    .hero {
        padding-top: 18px;
    }

    .hero-stage {
        min-height: 500px;
    }

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

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

    .play-button {
        width: 74px;
        height: 74px;
        font-size: 34px;
    }
}
