:root {
    --amber-950: #431407;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --yellow-600: #ca8a04;
    --yellow-500: #eab308;
    --yellow-300: #fde047;
    --cream: #fffbeb;
    --paper: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(146, 64, 14, 0.18);
    --shadow: 0 18px 42px rgba(67, 20, 7, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 40%, #fef3c7 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-950), var(--amber-800), var(--amber-900));
    box-shadow: 0 14px 34px rgba(67, 20, 7, 0.22);
}

.site-nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff7cc;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-950);
    background: linear-gradient(135deg, var(--yellow-300), var(--yellow-500));
    box-shadow: 0 8px 20px rgba(253, 224, 71, 0.28);
    font-size: 14px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff7cc;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 9px 12px;
    border-radius: 10px;
    color: rgba(255, 251, 235, 0.9);
    font-size: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(234, 179, 8, 0.35);
}

.nav-search {
    display: flex;
    width: min(300px, 100%);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(202, 138, 4, 0.28);
}

.nav-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 12px;
    background: transparent;
}

.nav-search button,
.btn {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.nav-search button {
    padding: 0 16px;
    color: #fff;
    background: var(--yellow-600);
}

.hero-section {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(90deg, var(--amber-950), var(--amber-800));
}

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

.hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.22) 45%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 36px;
    padding: 72px 0 64px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow-300);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

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

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta,
.detail-meta {
    margin: 22px 0 28px;
}

.hero-meta span,
.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff8dc;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary,
.btn-small {
    color: #fff;
    background: var(--yellow-600);
    box-shadow: 0 12px 26px rgba(202, 138, 4, 0.28);
}

.btn-primary:hover,
.btn-small:hover {
    background: var(--yellow-500);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.btn-small {
    padding: 9px 14px;
    font-size: 14px;
}

.hero-panel {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-panel h2 {
    margin: 0 0 14px;
    color: #fff7cc;
    font-size: 18px;
}

.hero-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-mini {
    position: relative;
    min-height: 118px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.24), rgba(146, 64, 14, 0.7));
}

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

.hero-mini span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.section-block {
    padding: 72px 0;
}

.section-white {
    background: #fff;
}

.section-gold {
    background: linear-gradient(135deg, #fef3c7, #fffbeb 55%, #fed7aa);
}

.section-amber {
    color: #fff7cc;
    background: linear-gradient(135deg, var(--amber-950), var(--amber-800));
}

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

.section-heading.compact {
    align-items: center;
}

.section-heading h2 {
    margin: 6px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.section-heading.light h2 {
    color: #fff;
}

.section-heading a {
    color: var(--yellow-600);
    font-weight: 900;
}

.section-heading.light a {
    color: var(--yellow-300);
}

.card-grid,
.poster-grid,
.category-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.poster-grid.small {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.movie-card {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #fff7ed, #ffffff);
    box-shadow: 0 10px 24px rgba(67, 20, 7, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.media-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(253, 224, 71, 0.42), transparent 30%), linear-gradient(135deg, #451a03, #b45309);
}

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

.movie-card:hover .cover-img,
.hero-mini:hover .cover-img {
    transform: scale(1.07);
}

.card-cover {
    aspect-ratio: 16 / 9;
}

.poster-cover {
    aspect-ratio: 2 / 3;
}

.duration-badge,
.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    color: #fff;
    background: rgba(202, 138, 4, 0.94);
    font-size: 12px;
    font-weight: 900;
}

.score-badge {
    left: 12px;
    right: auto;
}

.card-body {
    padding: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.card-tags span {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.large-tags span {
    color: #fff7cc;
    background: rgba(255, 255, 255, 0.14);
}

.movie-card h3,
.rank-row h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.rank-row h3 a:hover {
    color: var(--yellow-600);
}

.movie-card p,
.rank-row p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    color: #6b7280;
    font-size: 13px;
}

.card-meta span:first-child {
    color: var(--yellow-600);
    font-weight: 900;
}

.poster-card {
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.poster-card:hover {
    box-shadow: none;
}

.poster-card .poster-cover {
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(67, 20, 7, 0.14);
}

.poster-card h3 {
    margin-top: 10px;
    font-size: 15px;
}

.poster-card p {
    font-size: 12px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
}

.wide-cover {
    min-height: 138px;
}

.wide-body {
    padding: 18px;
}

.rank-panel,
.side-card,
.content-card,
.category-overview-card {
    border-radius: 22px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(67, 20, 7, 0.1);
}

.rank-panel h2,
.side-card h2,
.content-card h2 {
    margin-top: 0;
    color: #111827;
}

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

.rank-list.large {
    gap: 18px;
}

.rank-row {
    display: grid;
    grid-template-columns: 52px 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffbeb, #ffffff);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--yellow-600), var(--amber-800));
    font-weight: 900;
}

.rank-thumb {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

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

.category-tile {
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.category-tile a:first-child {
    display: grid;
    gap: 8px;
}

.category-tile span {
    color: var(--yellow-300);
    font-weight: 900;
}

.category-tile strong {
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
}

.category-title-links {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.category-title-links a {
    color: rgba(255, 251, 235, 0.82);
    font-size: 14px;
}

.page-hero,
.detail-hero {
    color: #fff;
    background: radial-gradient(circle at 15% 20%, rgba(253, 224, 71, 0.22), transparent 28%), linear-gradient(120deg, var(--amber-950), var(--amber-800));
}

.page-hero {
    padding: 64px 0;
}

.small-hero {
    padding: 72px 0 64px;
}

.category-hero {
    padding: 62px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 251, 235, 0.78);
    font-size: 14px;
}

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

.toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid var(--line);
}

.toolbar label {
    display: grid;
    gap: 6px;
    color: var(--amber-900);
    font-size: 13px;
    font-weight: 900;
}

.toolbar input,
.toolbar select {
    width: 100%;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-radius: 12px;
    padding: 11px 12px;
    color: #111827;
    background: #fff;
    outline: 0;
}

.toolbar input:focus,
.toolbar select:focus {
    border-color: var(--yellow-600);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.18);
}

.empty-state {
    margin: 28px 0 0;
    padding: 22px;
    border-radius: 18px;
    color: var(--amber-900);
    background: #fef3c7;
    text-align: center;
    font-weight: 900;
}

.overview-stack {
    display: grid;
    gap: 28px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-overview-head h2 {
    margin: 6px 0 0;
    font-size: 24px;
    line-height: 1.3;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

.player-block {
    padding: 42px 0;
    background: #111827;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
    transition: opacity 0.2s ease;
}

.player-shell.is-playing .play-layer {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--amber-950);
    background: linear-gradient(135deg, var(--yellow-300), var(--yellow-500));
    box-shadow: 0 16px 34px rgba(234, 179, 8, 0.28);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff7cc;
    text-align: center;
    font-weight: 800;
    pointer-events: none;
}

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

.content-card p {
    color: #374151;
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.info-list dt {
    color: var(--amber-900);
    font-weight: 900;
}

.info-list dd {
    margin: 0;
}

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

.side-link-list a {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid var(--line);
}

.side-link-list a:hover {
    background: #fef3c7;
}

.side-link-list span {
    color: #111827;
    font-weight: 900;
}

.side-link-list small {
    color: var(--muted);
}

.site-footer {
    color: #fff7cc;
    background: linear-gradient(180deg, var(--amber-950), #2f1005);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0 28px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    color: rgba(255, 251, 235, 0.78);
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--yellow-300);
    font-size: 15px;
    letter-spacing: 0.08em;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 28px;
    color: rgba(255, 251, 235, 0.64);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

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

.is-hidden {
    display: none !important;
}

@media (max-width: 1024px) {
    .hero-content,
    .two-column-layout,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 560px;
    }

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

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

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

@media (max-width: 820px) {
    .site-nav {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-panel {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-bottom: 6px;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-search {
        width: 100%;
    }

    .hero-content {
        padding-top: 46px;
        min-height: 620px;
    }

    .toolbar,
    .search-toolbar {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        width: min(260px, 70vw);
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

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

    .section-block {
        padding: 46px 0;
    }

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

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

    .hero-panel {
        padding: 14px;
    }

    .three-col,
    .four-col,
    .poster-grid,
    .poster-grid.small,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-wide,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .wide-cover,
    .rank-thumb {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .category-overview-head,
    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .player-shell {
        border-radius: 16px;
    }
}
