:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --card: rgba(255, 255, 255, 0.88);
    --card-strong: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.14);
    --amber: #f59e0b;
    --amber-deep: #d97706;
    --orange: #ea580c;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.18), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fffbeb 46%, #fef3c7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 32px rgba(234, 88, 12, 0.28);
}

.brand-text {
    font-size: 1.28rem;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #78350f;
    font-weight: 700;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.12);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #92400e;
}

.hero {
    position: relative;
    height: min(650px, calc(100vh - 72px));
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.02) contrast(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.56) 42%, rgba(17, 24, 39, 0.18)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.82), transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

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

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #fde68a;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.8;
}

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

.hero-side-card {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(22px);
}

.hero-side-card img {
    height: 320px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.hero-side-card h2 {
    margin: 18px 0 8px;
    font-size: 1.42rem;
}

.hero-side-card p {
    margin: 0;
    color: #fed7aa;
    line-height: 1.65;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 6;
    width: min(1180px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
}

.hero-arrows {
    display: flex;
    gap: 12px;
}

.hero-arrow,
.player-big-button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
    transition: transform 0.22s ease, background 0.22s ease;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 1.25rem;
}

.hero-arrow:hover,
.player-big-button:hover {
    background: rgba(245, 158, 11, 0.9);
    transform: translateY(-2px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.22s ease, background 0.22s ease;
}

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

.badge-row,
.tag-row,
.movie-meta-line,
.detail-meta-list,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.badge-row span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.badge-row span {
    padding: 8px 12px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    padding: 5px 9px;
    color: #92400e;
    background: #fef3c7;
    font-size: 0.78rem;
}

.button-primary,
.button-secondary,
.section-more,
.category-link,
.clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button-primary,
.section-more,
.category-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 36px rgba(234, 88, 12, 0.24);
}

.button-secondary,
.clear-button {
    color: #78350f;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.button-primary:hover,
.button-secondary:hover,
.section-more:hover,
.category-link:hover,
.clear-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(234, 88, 12, 0.24);
}

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

.main-container {
    padding: 54px 0 78px;
}

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

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

.section-heading h1,
.section-heading h2,
.listing-hero h1,
.detail-title {
    margin: 0;
    color: #111827;
    letter-spacing: -0.05em;
}

.section-heading h2,
.listing-hero h1,
.detail-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p,
.listing-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--amber-deep);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #fef3c7;
}

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

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

.poster-play {
    position: absolute;
    left: 50%;
    bottom: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 42px;
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

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

.movie-meta-line {
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #d97706;
}

.movie-card h2 {
    margin: 9px 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: var(--amber-deep);
}

.movie-card p {
    min-height: 3.35em;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.category-card {
    padding: 24px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card h2 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

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

.category-count {
    display: inline-flex;
    width: fit-content;
    margin-top: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 900;
}

.listing-hero {
    margin-top: 24px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(254, 243, 199, 0.78)),
        radial-gradient(circle at right top, rgba(245, 158, 11, 0.24), transparent 24rem);
    box-shadow: var(--shadow);
}

.filter-panel {
    margin: 28px 0;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 170px 170px auto;
    gap: 14px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #92400e;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 16px;
    padding: 0 14px;
    color: #111827;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-count {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 16px;
    color: #92400e;
    background: #fef3c7;
}

.breadcrumbs {
    margin: 28px 0 18px;
    color: #92400e;
    font-weight: 800;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    margin-top: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 56px rgba(146, 64, 14, 0.22);
}

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

.detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-title {
    margin-top: 12px;
}

.detail-summary {
    margin: 20px 0 0;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.85;
}

.detail-meta-list {
    margin-top: 24px;
}

.detail-meta-list span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.22);
    font-weight: 800;
}

.player-section {
    margin-top: 46px;
    padding: 28px;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 24px 72px rgba(17, 24, 39, 0.32);
}

.player-section h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 1.65rem;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    background: #000000;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    filter: blur(1px) saturate(1.08);
}

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

.player-big-button {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 1.8rem;
}

.content-panel {
    margin-top: 32px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
}

.content-panel h2 {
    margin: 0 0 16px;
    font-size: 1.6rem;
}

.content-panel p {
    margin: 0 0 18px;
    color: #4b5563;
    line-height: 1.9;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(146, 64, 14, 0.08);
}

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

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
}

.rank-thumb img {
    height: 100%;
    object-fit: cover;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

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

.site-footer {
    margin-top: 40px;
    padding: 48px 0 28px;
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.35rem;
}

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

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin-top: 10px;
    color: #9ca3af;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    text-align: center;
}

[hidden] {
    display: none !important;
}

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

    .hero-content {
        grid-template-columns: 1fr;
        padding: 72px 0 96px;
    }

    .hero-side-card {
        display: none;
    }

    .detail-hero {
        grid-template-columns: 280px minmax(0, 1fr);
    }

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

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

    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255, 251, 235, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .hero {
        min-height: 620px;
    }

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

    .hero-controls {
        align-items: flex-end;
    }

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

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

    .listing-hero,
    .content-panel,
    .player-section {
        padding: 22px;
        border-radius: 26px;
    }

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

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 28px;
    }

    .detail-cover img {
        min-height: auto;
        aspect-ratio: 2 / 3;
    }

    .rank-item {
        grid-template-columns: 48px 72px minmax(0, 1fr);
    }

    .rank-item .button-secondary {
        grid-column: 1 / -1;
    }

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

@media (max-width: 520px) {
    .movie-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 2.55rem;
    }

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .button-primary,
    .button-secondary,
    .section-more,
    .category-link,
    .clear-button {
        width: 100%;
    }
}
