:root {
    --bg: #f9fafb;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --dark: #111827;
    --amber: #f59e0b;
    --orange: #ea580c;
    --soft: #fffbeb;
    --shadow: 0 20px 40px rgba(17, 24, 39, 0.10);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 22px rgba(245, 158, 11, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #d1d5db;
    font-size: 15px;
}

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

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--amber);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-search input,
.mobile-nav input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
}

.header-search input {
    width: 220px;
    padding: 10px 14px;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder,
.mobile-nav input::placeholder {
    color: #9ca3af;
}

.header-search button,
.mobile-nav button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    color: #ffffff;
}

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

.mobile-nav nav {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mobile-nav form {
    display: flex;
    gap: 8px;
}

.mobile-nav input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    padding: 12px 16px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--dark);
}

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

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

.hero-bg,
.detail-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img,
.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.06);
}

.hero-bg img.is-missing,
.detail-bg img.is-missing,
.poster img.is-missing,
.hero-poster img.is-missing,
.detail-poster img.is-missing,
.rank-cover img.is-missing,
.category-panel-cover img.is-missing {
    opacity: 0;
}

.hero-overlay,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 76% 24%, rgba(245, 158, 11, 0.42), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.72) 45%, rgba(17, 24, 39, 0.30) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.98) 0%, transparent 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.62fr;
    align-items: center;
    gap: 48px;
    padding: 72px 0;
}

.hero-copy {
    color: #ffffff;
    animation: fadeUp 0.7s ease both;
}

.eyebrow {
    margin: 0 0 14px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 13px;
}

.eyebrow.dark {
    color: var(--orange);
}

.hero-copy h1,
.page-title h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-desc,
.detail-line,
.page-title p,
.feature-copy p {
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.8;
}

.page-title p,
.feature-copy p {
    color: var(--muted);
}

.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
}

.tag-row.light span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-panel:hover {
    transform: translateY(-3px);
}

.hero-poster {
    position: relative;
    justify-self: end;
    width: min(360px, 100%);
    aspect-ratio: 2 / 3;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #111827);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-poster span,
.detail-poster span,
.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dots button.active {
    width: 30px;
    border-radius: 999px;
    background: var(--amber);
}

.section {
    padding: 72px 0;
}

.page-main {
    padding: 52px 0 82px;
}

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

.section-head h2,
.page-title h1,
.feature-copy h2,
.content-card h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.text-link {
    color: var(--orange);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: 0 22px 44px rgba(17, 24, 39, 0.15);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #111827);
}

.poster img {
    transition: transform 0.35s ease;
}

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

.play-mark {
    width: 42px;
    height: 42px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
}

.rank-num {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.movie-title {
    display: block;
    color: var(--text);
    font-weight: 850;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.movie-line {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

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

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    border-radius: var(--radius);
    padding: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.24), transparent 24%),
        linear-gradient(135deg, #f59e0b, #ea580c 58%, #111827);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.category-tile span {
    font-size: 24px;
    font-weight: 900;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

.feature-band {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 28px;
    align-items: center;
    border-radius: 34px;
    padding: 48px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.feature-copy .primary-btn {
    margin-top: 18px;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 82px 58px 1fr;
    gap: 16px;
    align-items: center;
    border-radius: 22px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.rank-cover {
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #111827);
}

.rank-index {
    color: var(--orange);
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.rank-title {
    display: inline-block;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
}

.rank-main p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.6;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 750;
}

.rank-meta span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #fef3c7;
}

.page-title {
    margin-bottom: 32px;
}

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

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

.breadcrumb.light,
.breadcrumb.light a {
    color: rgba(255, 255, 255, 0.82);
}

.filter-panel {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 16px;
    color: var(--text);
    background: #f3f4f6;
}

.category-list {
    display: grid;
    gap: 18px;
}

.category-panel {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: center;
    border-radius: var(--radius);
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
    transition: transform 0.2s ease;
}

.category-panel-cover {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #111827);
}

.category-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

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

.category-sample {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-sample a {
    border-radius: 999px;
    padding: 7px 10px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 750;
}

.detail-main {
    background: #f3f4f6;
}

.detail-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: var(--dark);
}

.detail-container {
    position: relative;
    z-index: 2;
}

.detail-hero .detail-container {
    padding: 44px 0 76px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 46px;
}

.detail-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #111827);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
    color: #ffffff;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.22);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.36), rgba(0, 0, 0, 0.70));
    cursor: pointer;
}

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

.player-cover span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 32px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
    font-size: clamp(20px, 3vw, 34px);
}

.detail-text {
    display: grid;
    gap: 18px;
    padding-top: 0;
}

.content-card {
    border-radius: var(--radius);
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.content-card p {
    margin: 16px 0 0;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

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

.info-grid div {
    border-radius: 16px;
    padding: 16px;
    background: #f9fafb;
}

.info-grid dt {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.info-grid dd {
    margin: 0;
    font-weight: 800;
}

.info-grid dd span {
    display: inline-block;
    margin: 0 6px 6px 0;
}

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

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: var(--amber);
}

[data-filter-item].hidden {
    display: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .movie-grid,
    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-content {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .hero-poster {
        justify-self: start;
        width: 230px;
    }

    .section-head,
    .split-title,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-poster {
        width: 240px;
    }

    .filter-panel {
        width: 100%;
        border-radius: 22px;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .header-inner {
        min-height: 64px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .rank-card {
        grid-template-columns: 72px 44px 1fr;
        gap: 10px;
    }

    .rank-main p {
        display: none;
    }

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

    .feature-band,
    .content-card {
        padding: 22px;
    }

    .hero-copy h1,
    .detail-info h1 {
        font-size: 34px;
    }
}
