:root {
    --page-bg: #fff7ed;
    --page-bg-soft: #fffbeb;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-bg-strong: #ffffff;
    --text-main: #451a03;
    --text-muted: #92400e;
    --brand: #d97706;
    --brand-dark: #b45309;
    --brand-soft: #fef3c7;
    --line: rgba(251, 191, 36, 0.32);
    --shadow: 0 18px 45px rgba(146, 64, 14, 0.12);
    --shadow-hover: 0 25px 55px rgba(146, 64, 14, 0.22);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(180deg, var(--page-bg-soft), var(--page-bg) 48%, #fde68a 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand);
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #78350f;
    font-weight: 700;
}

.desktop-nav a {
    padding: 8px 2px;
    border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.nav-search {
    display: flex;
    align-items: center;
    width: min(280px, 26vw);
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 4px rgba(120, 53, 15, 0.05);
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 16px;
    color: var(--text-main);
    background: transparent;
}

.nav-search button {
    flex: 0 0 auto;
    border: 0;
    padding: 9px 16px 9px 8px;
    color: var(--brand);
    background: transparent;
}

.menu-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--brand-dark);
    background: var(--brand-soft);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
}

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

.mobile-panel-inner {
    display: grid;
    gap: 12px;
    padding: 16px 0 20px;
}

.mobile-panel a {
    padding: 10px 2px;
    color: #78350f;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

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

.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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 70vh;
    padding: 88px 0 72px;
}

.hero-copy {
    width: min(780px, 100%);
}

.hero-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.badge.light {
    color: #78350f;
    background: #fef3c7;
    box-shadow: none;
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 38px rgba(0, 0, 0, 0.4);
}

.hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2.1vw, 23px);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(217, 119, 6, 0.36);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    transform: translateY(-50%);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

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

.main-section {
    padding: 58px 0;
}

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

.section-heading h2,
.page-heading h1,
.detail-title h1 {
    margin: 0;
    color: #78350f;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-heading p,
.detail-title p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.view-more {
    color: var(--brand);
    font-weight: 800;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

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

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
}

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

.card-score {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    color: #78350f;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.card-body h3 a:hover {
    color: var(--brand);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0;
}

.meta-pill {
    padding: 3px 8px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 700;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: #7c2d12;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.horizontal-scroller {
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.horizontal-scroller::-webkit-scrollbar {
    display: none;
}

.horizontal-row {
    display: flex;
    gap: 18px;
    width: max-content;
}

.horizontal-row .movie-card {
    width: 280px;
}

.category-band {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.88), rgba(255, 237, 213, 0.9));
    box-shadow: var(--shadow);
}

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

.category-tile {
    display: flex;
    min-height: 156px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.09);
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 119, 6, 0.55);
}

.category-tile h3 {
    margin: 0 0 8px;
    color: #78350f;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 96px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 26px rgba(146, 64, 14, 0.08);
}

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

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: #fef3c7;
}

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

.rank-info h3 {
    margin: 0 0 7px;
    color: #78350f;
    font-size: 20px;
    font-weight: 900;
}

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

.rank-score {
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 900;
}

.page-heading {
    padding: 54px 0 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

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

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

.filter-status {
    margin: -10px 0 22px;
    color: var(--text-muted);
    font-weight: 700;
}

.empty-state {
    display: none;
    padding: 38px;
    border: 1px dashed rgba(217, 119, 6, 0.38);
    border-radius: 24px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.65);
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 34px;
    align-items: start;
}

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

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-title {
    padding-top: 6px;
}

.detail-title .badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 22px;
}

.detail-title p {
    max-width: 820px;
    font-size: 18px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.player-section {
    padding: 0 0 42px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

.player-box video,
.player-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-box video {
    object-fit: contain;
    background: #000000;
}

.player-poster {
    z-index: 3;
    border: 0;
    padding: 0;
    background: transparent;
}

.player-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.player-start {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.36);
    transform: translate(-50%, -50%);
}

.player-start::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 26px solid #ffffff;
}

.player-box.is-playing .player-poster,
.player-box.is-playing .player-start {
    display: none;
}

.content-card {
    margin-bottom: 28px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.content-card h2 {
    margin: 0 0 12px;
    color: #78350f;
    font-size: 26px;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 12px;
    color: #6b3a11;
    font-size: 16px;
}

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

.info-list div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
}

.info-list dt {
    color: var(--text-muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--text-main);
}

.site-footer {
    margin-top: 42px;
    padding: 42px 0;
    color: #78350f;
    background: linear-gradient(135deg, #fef3c7, #ffedd5);
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

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

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

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

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

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

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

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

    .detail-layout {
        grid-template-columns: 260px 1fr;
    }
}

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

    .header-inner {
        height: 64px;
    }

    .logo {
        font-size: 22px;
    }

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

    .hero-content {
        padding: 96px 0 78px;
    }

    .hero-arrow {
        top: auto;
        bottom: 70px;
        width: 42px;
        height: 42px;
        transform: none;
    }

    .hero-prev {
        left: 16px;
    }

    .hero-next {
        right: 16px;
    }

    .main-section {
        padding: 42px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading .view-more {
        display: inline-flex;
        margin-top: 12px;
    }

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

    .card-body {
        padding: 13px;
    }

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

    .rank-row {
        grid-template-columns: 44px 74px 1fr;
    }

    .rank-score {
        grid-column: 3;
        justify-self: start;
    }

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

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

    .detail-poster {
        width: min(300px, 100%);
    }

    .player-start {
        width: 70px;
        height: 70px;
    }

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

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

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-row .movie-card {
        width: 230px;
    }
}
