:root {
    color-scheme: light;
    --color-bg: #fff7ed;
    --color-card: #ffffff;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #fed7aa;
    --color-primary: #b45309;
    --color-primary-dark: #92400e;
    --color-accent: #ea580c;
    --color-warm: #f97316;
    --shadow-card: 0 18px 45px rgba(146, 64, 14, 0.12);
    --shadow-soft: 0 10px 25px rgba(146, 64, 14, 0.10);
    --radius-card: 1.25rem;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--color-text);
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid rgba(251, 191, 36, 0.32);
    box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--color-primary-dark);
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f97316 56%, #ef4444);
    box-shadow: 0 12px 25px rgba(234, 88, 12, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    color: #4b5563;
    font-weight: 700;
}

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

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

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 260px;
}

.search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #fbbf24;
    border-radius: 999px;
    padding: 0 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-text);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.search-button,
.nav-toggle,
.hero-button,
.card-button,
.filter-button,
.player-action {
    border: 0;
    cursor: pointer;
}

.search-button {
    height: 42px;
    padding: 0 1.05rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.22);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 0.85rem;
    color: var(--color-primary-dark);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.mobile-nav {
    display: none;
    padding: 0 0 1rem;
}

.mobile-nav.is-open {
    display: grid;
    gap: 0.75rem;
}

.mobile-nav a {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 800;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background: #7c2d12;
}

.hero-slide {
    display: none;
    min-height: 620px;
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(67, 20, 7, 0.96), rgba(146, 64, 14, 0.76), rgba(251, 146, 60, 0.22)), var(--hero-image);
    background-position: center;
    background-size: cover;
}

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

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.56fr);
    align-items: center;
    gap: 2.5rem;
    min-height: 620px;
    padding: 5rem 0;
}

.hero-kicker,
.section-kicker,
.breadcrumbs {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fed7aa;
    margin-bottom: 1rem;
}

.hero-title {
    max-width: 760px;
    margin: 0 0 1.2rem;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-text {
    max-width: 700px;
    margin: 0 0 1.6rem;
    color: #ffedd5;
    font-size: 1.15rem;
    line-height: 1.9;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span,
.card-tags span,
.detail-tags a,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.hero-tags span {
    padding: 0.45rem 0.8rem;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.hero-button,
.card-button,
.filter-button,
.player-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.2rem;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-button.primary,
.card-button,
.filter-button,
.player-action {
    color: #92400e;
    background: #ffffff;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.hero-button.secondary {
    border: 2px solid rgba(255, 255, 255, 0.72);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-button:hover,
.card-button:hover,
.filter-button:hover,
.player-action:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-media-panel {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

.hero-media-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1.45rem;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.hero-mini-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.hero-mini-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
}

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 4.2rem 0;
}

.section.compact {
    padding: 2.7rem 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-kicker {
    color: var(--color-primary);
}

.section-title {
    margin: 0.25rem 0 0;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 720px;
    color: var(--color-muted);
    line-height: 1.8;
}

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

.stat-card,
.category-card,
.info-card {
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.stat-card {
    padding: 1.4rem;
}

.stat-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-primary-dark);
    font-size: 1.65rem;
}

.stat-card span {
    color: var(--color-muted);
    font-weight: 700;
}

.category-card {
    display: grid;
    gap: 0.75rem;
    min-height: 180px;
    padding: 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3,
.info-card h2,
.info-card h3 {
    margin: 0;
}

.category-card p,
.info-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.75;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: var(--radius-card);
    background: var(--color-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge,
.rank-badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ef4444);
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.movie-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
}

.movie-title {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.35;
}

.movie-title a:hover {
    color: var(--color-primary);
}

.movie-meta,
.breadcrumbs {
    color: var(--color-muted);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.movie-text {
    display: -webkit-box;
    overflow: hidden;
    min-height: 4.8em;
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-tags span,
.detail-tags a,
.tag-pill {
    padding: 0.36rem 0.65rem;
    color: #b45309;
    background: #ffedd5;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.card-button {
    min-height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.20);
}

.link-more {
    color: var(--color-primary);
    font-weight: 900;
}

.link-more:hover {
    color: var(--color-primary-dark);
}

.page-hero {
    padding: 4.5rem 0;
    color: #ffffff;
    background: linear-gradient(135deg, #b45309, #ea580c 55%, #fb923c);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 820px;
    margin: 1rem 0 0;
    color: #ffedd5;
    font-size: 1.05rem;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.8rem;
    align-items: center;
    margin: 0 0 1.6rem;
    padding: 1rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel select {
    min-width: 150px;
    height: 42px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0 0.9rem;
    color: #4b5563;
    background: #fff7ed;
}

.filter-button {
    min-height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: none;
}

.no-results {
    display: none;
    padding: 2rem;
    border-radius: var(--radius-card);
    color: var(--color-muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.rank-list {
    display: grid;
    gap: 0.85rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 64px 88px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ef4444);
    font-weight: 900;
}

.rank-thumb img {
    width: 88px;
    height: 112px;
    border-radius: 0.85rem;
    object-fit: cover;
}

.rank-main h2,
.rank-main h3 {
    margin: 0 0 0.35rem;
    font-size: 1.06rem;
}

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

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

.detail-main,
.detail-sidebar,
.player-shell,
.detail-card {
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #111827;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    background: #111827;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
}

.play-orb {
    position: relative;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #92400e;
    background: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.32);
}

.detail-card {
    padding: 1.4rem;
    margin-top: 1rem;
}

.detail-title {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
}

.detail-meta span {
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-weight: 800;
}

.detail-card h2 {
    margin: 1.4rem 0 0.7rem;
    font-size: 1.35rem;
}

.detail-card p {
    color: #374151;
    line-height: 1.95;
}

.detail-sidebar {
    position: sticky;
    top: 92px;
    padding: 1rem;
}

.side-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-card:hover {
    background: #fff7ed;
    transform: translateX(2px);
}

.side-card img {
    width: 74px;
    height: 96px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.side-card strong {
    display: block;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.side-card span {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.site-footer {
    margin-top: 4rem;
    color: #ffedd5;
    background: linear-gradient(90deg, #78350f, #9a3412);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
    font-weight: 800;
}

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

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .detail-sidebar {
        position: static;
    }

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

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

    .header-inner {
        height: 64px;
    }

    .logo {
        font-size: 1.18rem;
    }

    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 3.2rem 0 4.6rem;
    }

    .hero-media-panel {
        border-radius: 1.3rem;
    }

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

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

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

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

    .rank-action {
        grid-column: 2 / 4;
    }

    .rank-thumb img {
        width: 72px;
        height: 96px;
    }
}
