* {
    box-sizing: border-box;
}

:root {
    --amber: #f59e0b;
    --amber-dark: #b45309;
    --amber-soft: #fef3c7;
    --orange: #f97316;
    --dark: #111827;
    --muted: #6b7280;
    --line: #ead7b2;
    --bg: #fffaf0;
    --card: #ffffff;
    --shadow: 0 24px 60px rgba(120, 53, 15, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    background: var(--bg);
}

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

img {
    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: 40;
    background: rgba(255, 250, 240, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.22);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #78350f;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde68a, #f97316);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.26);
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 700;
    color: #5f3a12;
    transition: color 0.2s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(180, 83, 9, 0.08);
}

.nav-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    color: #5f3a12;
    background: transparent;
}

.nav-search button {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--amber-soft);
    color: #92400e;
    font-size: 20px;
    cursor: pointer;
}

.search-panel {
    position: absolute;
    left: 50%;
    top: 78px;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 28px));
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
}

.search-panel.is-open {
    display: grid;
    gap: 10px;
}

.search-result {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.search-result:hover {
    background: #fff7ed;
}

.search-result img {
    width: 54px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3e2bd;
}

.search-result strong {
    display: block;
    color: #1f2937;
}

.search-result span,
.search-empty {
    color: var(--muted);
    font-size: 13px;
}

.hero {
    position: relative;
    height: 630px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fff7ed 48%, #fed7aa);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.32), transparent 30%),
        linear-gradient(90deg, rgba(255, 250, 240, 0.98), rgba(255, 247, 237, 0.78) 52%, rgba(255, 247, 237, 0.36));
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 58px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber-dark);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 900;
    font-size: 12px;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 0 0 16px;
    color: var(--amber-dark);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.12;
}

.hero p {
    max-width: 700px;
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.28);
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(180, 83, 9, 0.18);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.btn-secondary {
    color: var(--amber-dark);
    background: #fff;
    border: 2px solid rgba(245, 158, 11, 0.55);
}

.btn-ghost {
    color: #78350f;
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.hero-poster {
    display: block;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 30px;
    padding: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    background: #f3e2bd;
}

.hero-poster strong {
    display: block;
    margin-top: 14px;
    color: #111827;
    font-size: 20px;
}

.hero-poster span {
    display: block;
    margin-top: 6px;
    color: var(--amber-dark);
    font-weight: 800;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(120, 53, 15, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.feature-strip {
    padding: 28px 0;
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffbeb, #fff);
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 14px 34px rgba(120, 53, 15, 0.08);
}

.feature-card strong {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 20px;
}

.feature-card span {
    color: var(--muted);
}

.section {
    padding: 76px 0;
}

.section-soft {
    background: linear-gradient(180deg, #fff7ed, #fffaf0);
}

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

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

.section-head h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 3.8vw, 44px);
    letter-spacing: -0.04em;
}

.section-head a,
.text-link {
    color: var(--amber-dark);
    font-weight: 900;
}

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

.category-tile,
.category-card-large,
.story-card,
.side-card,
.rank-panel {
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 16px 42px rgba(120, 53, 15, 0.08);
}

.category-tile {
    min-height: 230px;
    padding: 24px;
    border-radius: 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile h3 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
}

.category-tile > span {
    display: block;
    color: var(--muted);
    line-height: 1.7;
}

.category-sample {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.category-sample a {
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

.movie-score,
.movie-type {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.movie-score {
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.movie-type {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--orange);
}

.movie-meta,
.movie-intro {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.movie-intro {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    min-height: 26px;
    padding: 5px 9px;
    background: #fff7ed;
    font-size: 12px;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.rank-panel {
    align-self: start;
    border-radius: 28px;
    padding: 22px;
    position: sticky;
    top: 96px;
}

.rank-panel-head h2 {
    margin: 0 0 18px;
    font-size: 30px;
}

.rank-row {
    display: grid;
    grid-template-columns: 36px 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.rank-row img {
    width: 54px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
    background: #f3e2bd;
}

.rank-row b {
    color: var(--amber-dark);
}

.rank-row span {
    color: #111827;
    font-weight: 900;
}

.rank-row em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.rank-row strong,
.rank-full-row strong {
    color: var(--orange);
}

.page-hero,
.detail-hero {
    position: relative;
    padding: 92px 0 76px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.24), transparent 34%),
        linear-gradient(135deg, #fff7ed, #fef3c7 54%, #fed7aa);
}

.page-hero h1,
.detail-info h1 {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.category-large-list {
    display: grid;
    gap: 24px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-large h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.category-card-large p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.8;
}

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.mini-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
    min-height: 190px;
}

.mini-card img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.4s ease;
}

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

.mini-card span,
.mini-card em {
    position: absolute;
    left: 10px;
    right: 10px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.mini-card span {
    bottom: 30px;
    font-size: 13px;
    font-weight: 900;
}

.mini-card em {
    bottom: 10px;
    color: #fde68a;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, 180px);
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 32px rgba(120, 53, 15, 0.08);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 0 14px;
    color: #5f3a12;
    background: #fff;
    outline: 0;
}

.filter-empty {
    margin: 26px 0 0;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

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

.rank-full-row {
    display: grid;
    grid-template-columns: 58px 64px minmax(0, 1fr) 84px 118px 64px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(120, 53, 15, 0.05);
}

.rank-full-row:hover {
    border-color: rgba(245, 158, 11, 0.42);
    transform: translateY(-2px);
}

.rank-full-row img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
    background: #f3e2bd;
}

.rank-full-row b {
    color: var(--amber-dark);
    font-size: 18px;
}

.rank-title {
    font-weight: 900;
}

.rank-title em {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.2), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937 48%, #78350f);
}

.detail-hero .eyebrow,
.detail-info h1,
.detail-info .lead,
.breadcrumb,
.breadcrumb a {
    color: #fff7ed;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    opacity: 0.86;
    font-size: 14px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #f3e2bd;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-poster span {
    position: absolute;
    left: 18px;
    top: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

.detail-info .lead {
    max-width: 820px;
    margin: 0 0 20px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta span,
.detail-tags span {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(253, 230, 138, 0.22);
}

.player-section {
    padding: 44px 0;
    background: #111827;
}

.player-stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #030712;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    padding: 18px 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 48px rgba(249, 115, 22, 0.38);
    cursor: pointer;
    z-index: 3;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.play-overlay.is-hidden,
.player-stage.is-playing .play-overlay {
    display: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
}

.story-card,
.side-card {
    border-radius: 28px;
    padding: 28px;
}

.story-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 28px;
}

.story-card h2:not(:first-child) {
    margin-top: 32px;
}

.story-card p {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.side-card dt {
    color: var(--amber-dark);
    font-size: 13px;
    font-weight: 900;
}

.side-card dd {
    margin: -8px 0 6px;
    color: #374151;
    line-height: 1.7;
}

.site-footer {
    background: linear-gradient(180deg, #78350f, #451a03);
    color: #fffbeb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding: 52px 0;
}

.site-footer h3,
.site-footer h4 {
    margin: 0 0 16px;
    color: #fde68a;
}

.site-footer p,
.site-footer a {
    color: #ffedd5;
    line-height: 1.8;
}

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(253, 230, 138, 0.16);
    color: #fed7aa;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .nav-search {
        display: none;
    }

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

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

    .hero-content,
    .two-column,
    .detail-content-grid,
    .category-card-large {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

    .rank-panel {
        position: static;
    }

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

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

    .site-logo {
        max-width: calc(100% - 58px);
        overflow: hidden;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

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

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid rgba(245, 158, 11, 0.25);
        border-radius: 22px;
        background: #fff;
        box-shadow: var(--shadow);
    }

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

    .hero {
        height: 720px;
    }

    .hero-content {
        align-items: center;
        padding-top: 20px;
    }

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

    .hero h2 {
        font-size: 32px;
    }

    .hero p,
    .page-hero p,
    .detail-info .lead {
        font-size: 16px;
    }

    .feature-grid,
    .category-grid,
    .movie-grid,
    .home-grid,
    .compact-grid,
    .footer-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 52px 0;
    }

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

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

    .rank-full-row {
        grid-template-columns: 42px 58px minmax(0, 1fr) 48px;
    }

    .rank-full-row > span:not(.rank-title) {
        display: none;
    }

    .detail-poster {
        max-width: 240px;
    }

    .play-overlay {
        padding: 14px 18px;
    }

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