:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --white: #ffffff;
    --black: #000000;
    --text: #78350f;
    --muted: #b45309;
    --shadow: 0 14px 35px rgba(120, 53, 15, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-50));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 80;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94), rgba(255, 251, 235, 0.94));
    border-bottom: 1px solid var(--amber-200);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 20px rgba(146, 64, 14, 0.08);
}

.nav-wrap {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--amber-600);
    background: var(--amber-100);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--amber-200);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--amber-900);
}

.logo-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--amber-600);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    white-space: nowrap;
}

.site-nav a {
    color: var(--amber-900);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.header-search {
    position: relative;
    width: 250px;
    flex: 0 0 auto;
}

.header-search input,
.search-panel input,
.filter-line input,
.filter-line select {
    width: 100%;
    border: 1px solid var(--amber-300);
    background: var(--white);
    color: var(--amber-900);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
    height: 38px;
    padding: 0 44px 0 16px;
    border-radius: 999px;
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--amber-600);
    background: transparent;
    cursor: pointer;
}

.header-search input:focus,
.search-panel input:focus,
.filter-line input:focus,
.filter-line select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--amber-900);
    background: var(--amber-100);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--amber-200);
    background: var(--white);
}

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

.mobile-panel-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 22px;
    display: grid;
    gap: 14px;
}

.mobile-panel a {
    padding: 10px 0;
    color: var(--amber-900);
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100), var(--amber-200));
}

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

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

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

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transform: scale(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.90), rgba(120, 53, 15, 0.55) 46%, rgba(120, 53, 15, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(650px, 100%);
    color: var(--white);
    padding: 70px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    color: var(--amber-100);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero h1,
.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 600px;
    margin: 0 0 28px;
    color: var(--amber-100);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.section-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
    background: var(--amber-700);
}

.btn-soft {
    color: var(--amber-800);
    background: var(--white);
    box-shadow: 0 12px 26px rgba(120, 53, 15, 0.14);
}

.btn-ghost {
    color: var(--amber-100);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-dot.active {
    width: 30px;
    background: var(--amber-300);
}

.section {
    padding: 54px 0;
}

.section.tint {
    background: linear-gradient(90deg, var(--amber-100), var(--orange-100));
}

.section.white {
    background: var(--white);
}

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

.section-title {
    margin: 0;
    color: var(--amber-900);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
}

.section-desc {
    margin: 7px 0 0;
    color: var(--amber-700);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--amber-200);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile:hover img {
    transform: scale(1.09);
}

.category-tile .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    padding: 20px;
    color: var(--white);
    background: linear-gradient(0deg, rgba(120, 53, 15, 0.88), rgba(120, 53, 15, 0.12));
}

.category-tile h3 {
    margin: 0 0 4px;
    font-size: 21px;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    color: var(--amber-900);
    background: var(--white);
    box-shadow: 0 6px 20px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--amber-200);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 58%);
    opacity: 0.85;
}

.badge,
.time-badge,
.rank-number,
.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    white-space: nowrap;
}

.time-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 4px 9px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
}

.movie-body {
    padding: 16px;
}

.movie-title {
    margin: 0 0 10px;
    color: var(--amber-900);
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-desc {
    margin: 0 0 12px;
    color: var(--amber-700);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-600);
    font-size: 13px;
}

.meta-pill,
.tag-pill,
.badge {
    padding: 4px 9px;
    color: var(--amber-700);
    background: var(--amber-100);
    font-size: 12px;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 190px 1fr;
}

.movie-card.horizontal .movie-poster {
    height: 100%;
    aspect-ratio: auto;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 56px 150px 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(120, 53, 15, 0.08);
}

.rank-number {
    width: 40px;
    height: 40px;
    color: var(--white);
    background: var(--amber-600);
    font-weight: 800;
}

.ranking-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--amber-100);
}

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

.ranking-info h2,
.ranking-info h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.ranking-info p {
    margin: 0 0 10px;
    color: var(--amber-700);
}

.page-hero {
    padding: 58px 0;
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100), var(--amber-200));
}

.page-hero h1 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.15;
}

.page-hero p {
    max-width: 790px;
    margin: 0;
    color: var(--amber-700);
    font-size: 18px;
}

.breadcrumb {
    margin-bottom: 14px;
    color: var(--amber-600);
    font-size: 14px;
}

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

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

.player-card,
.content-card,
.side-card,
.search-panel {
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.player-box {
    position: relative;
    background: var(--black);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    background: var(--black);
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

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

.play-button {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--amber-600);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.30);
    cursor: pointer;
}

.player-titlebar {
    padding: 20px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(90deg, #1c1308, #3c2108);
}

.player-titlebar h1 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: clamp(25px, 3vw, 36px);
}

.player-titlebar p {
    margin: 0;
    color: var(--amber-100);
}

.content-card,
.side-card,
.search-panel {
    padding: 24px;
}

.content-card + .content-card {
    margin-top: 22px;
}

.content-card h2,
.side-card h2,
.search-panel h2 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: 23px;
}

.content-card p {
    margin: 0;
    color: var(--amber-800);
    font-size: 16px;
}

.content-card p + p {
    margin-top: 12px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.side-card {
    position: sticky;
    top: 94px;
}

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

.search-panel {
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.filter-line {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px;
    gap: 12px;
}

.filter-line input,
.filter-line select,
.search-panel input {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
}

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--amber-700);
    border: 1px dashed var(--amber-300);
    border-radius: 16px;
    background: var(--amber-50);
}

.empty-state.show {
    display: block;
}

.footer {
    margin-top: 40px;
    border-top: 1px solid var(--amber-200);
    background: linear-gradient(180deg, var(--amber-50), var(--orange-100));
}

.footer-inner {
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.footer h2,
.footer h3 {
    margin: 0 0 12px;
    color: var(--amber-900);
}

.footer p,
.footer a {
    color: var(--amber-700);
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    padding: 18px 0 24px;
    color: var(--amber-700);
    border-top: 1px solid var(--amber-200);
    font-size: 14px;
}

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

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

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

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

    .side-card {
        position: static;
    }

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

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

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

    .nav-wrap {
        height: 64px;
    }

    .logo-title {
        font-size: 19px;
    }

    .logo-subtitle {
        font-size: 11px;
    }

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

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

    .hero h1,
    .hero h2 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 38px 0;
    }

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

    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal {
        grid-template-columns: 130px 1fr;
    }

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

    .ranking-cover {
        display: none;
    }

    .content-card,
    .side-card,
    .search-panel {
        padding: 18px;
    }
}
