:root {
    --page-bg: #f8fafc;
    --card-bg: #ffffff;
    --soft-bg: #fff7ed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 34%, #fff7ed 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #111827;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706 50%, #7c2d12);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.32);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    border-radius: 14px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--brand-dark);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: #111827;
}

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

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

.main-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 70px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-radius: 32px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    gap: 44px;
    align-items: center;
    padding: 64px;
    color: #ffffff;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 48%, rgba(17, 24, 39, 0.34) 100%);
    z-index: -1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.42), transparent 32%), radial-gradient(circle at 76% 12%, rgba(251, 191, 36, 0.18), transparent 30%);
    z-index: -1;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-copy p {
    margin: 22px 0 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    font-weight: 900;
    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, #f59e0b, #d97706);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.34);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    max-width: 410px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.34);
}

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

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 42px;
    display: flex;
    gap: 10px;
    z-index: 6;
}

.hero-dot {
    width: 28px;
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 52px;
    background: #f59e0b;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-top: 24px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.search-panel input,
.search-page input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--text);
    font-size: 16px;
    outline: none;
    background: #ffffff;
}

.search-panel input:focus,
.search-page input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.content-section {
    margin-top: 58px;
}

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

.section-heading p {
    margin: 0 0 8px;
    color: var(--brand);
    font-weight: 900;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--brand-dark);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #f3f4f6, #fff7ed);
}

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

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

.poster-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

.poster-badge {
    right: 12px;
    top: 12px;
}

.rank-number {
    left: 12px;
    top: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
}

.card-body h2,
.card-body h3 {
    margin: 8px 0 10px;
    font-size: 19px;
    line-height: 1.28;
}

.card-body p {
    margin: 0;
    min-height: 48px;
    color: var(--muted);
    line-height: 1.65;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span,
.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
}

.feature-panel,
.category-panel,
.detail-panel,
.search-page,
.info-panel {
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.feature-panel {
    padding: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.42);
}

.rank-item span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

.rank-item strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-item em {
    grid-column: 2;
    margin-top: -8px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.category-panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
    min-height: 210px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-panel::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -58px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.16);
}

.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.category-panel h2,
.category-panel h3 {
    margin: 14px 0 10px;
    font-size: 24px;
}

.category-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.breadcrumb a {
    color: var(--brand-dark);
    font-weight: 800;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: #f3f4f6;
    box-shadow: var(--shadow);
}

.detail-poster img {
    height: 100%;
    min-height: 540px;
    object-fit: cover;
}

.detail-panel {
    padding: 36px;
}

.detail-panel h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 18px;
    color: #92400e;
    font-weight: 900;
}

.detail-summary,
.detail-review {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.player-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #030712;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.58));
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 22px 46px rgba(217, 119, 6, 0.36);
}

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

.text-block {
    margin-top: 34px;
    padding: 30px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    line-height: 1.9;
}

.text-block h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.search-page {
    padding: 28px;
}

.search-results {
    margin-top: 26px;
}

.search-empty {
    display: none;
    padding: 40px;
    color: var(--muted);
    text-align: center;
}

.search-empty.is-visible {
    display: block;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 36px;
}

.footer-brand {
    color: #ffffff;
}

.site-footer p {
    max-width: 560px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 16px;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #f59e0b;
}

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 30px;
    color: #6b7280;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1120px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .header-inner {
        height: 66px;
        padding: 0 18px;
    }

    .main-wrap {
        padding: 22px 16px 52px;
    }

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

    .hero-slide {
        padding: 40px 26px 86px;
    }

    .hero-dots {
        left: 26px;
        bottom: 30px;
    }

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

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

    .detail-poster img {
        min-height: auto;
    }
}

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

    .card-body {
        padding: 14px;
    }

    .card-body h2,
    .card-body h3 {
        font-size: 16px;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .detail-panel,
    .text-block,
    .feature-panel,
    .search-page {
        padding: 22px;
        border-radius: 22px;
    }
}
