:root {
    --bg: #fffdf1;
    --panel: #ffffff;
    --panel-soft: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #f3e9c4;
    --brand: #facc15;
    --brand-deep: #ca8a04;
    --green: #7ddf64;
    --shadow: 0 20px 50px rgba(31, 41, 55, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7d6 0%, #ffffff 45%, #edfbdc 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 210, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(250, 204, 21, 0.25);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #111827;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #fde047, #86efac);
    box-shadow: 0 10px 24px rgba(202, 138, 4, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
    color: #a16207;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 24px rgba(202, 138, 4, 0.12);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.filter-fields input,
.filter-fields select {
    border: 2px solid rgba(250, 204, 21, 0.35);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    min-width: 220px;
    color: var(--text);
    transition: 0.25s ease;
}

.header-search input:focus,
.filter-fields input:focus,
.filter-fields select:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
    background: #ffffff;
}

.header-search button,
.primary-button,
.ghost-button {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.25s ease;
}

.header-search button,
.primary-button {
    color: #111827;
    background: linear-gradient(135deg, #facc15, #bef264);
    box-shadow: 0 12px 28px rgba(202, 138, 4, 0.22);
}

.primary-button:hover,
.header-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(202, 138, 4, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #a16207;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(202, 138, 4, 0.12);
}

.mobile-nav {
    display: none;
    padding: 10px 16px 16px;
    border-top: 1px solid rgba(250, 204, 21, 0.22);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.hero-carousel {
    position: relative;
    height: min(720px, 72vh);
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 25%, rgba(250, 204, 21, 0.22), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.12)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    padding-top: 36px;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    width: max-content;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 900;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #bef264);
    box-shadow: 0 10px 24px rgba(250, 204, 21, 0.24);
}

.hero-content h1 {
    margin: 20px 0 16px;
    max-width: 860px;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.08em;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.65;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    color: #6b4d00;
    background: rgba(254, 240, 138, 0.82);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
    font-size: 42px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.active {
    background: #facc15;
}

.section-wrap,
.page-shell,
.detail-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

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

.no-pad-top {
    padding-top: 28px;
}

.intro-strip {
    margin-top: -68px;
    position: relative;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-content h2 {
    margin: 12px 0 0;
    color: #111827;
    letter-spacing: -0.04em;
}

.intro-strip h2,
.section-heading h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.intro-strip p,
.page-hero p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.section-heading.compact {
    margin-bottom: 18px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: #a16207;
    font-weight: 900;
}

.text-link:hover {
    color: #854d0e;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(250, 204, 21, 0.20);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.09);
    transition: 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 58px rgba(31, 41, 55, 0.14);
}

.movie-card.hidden,
.rank-item.hidden {
    display: none;
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.movie-cover img,
.rank-thumb img,
.category-tile img,
.category-visual img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-cover img,
.category-tile:hover img,
.category-card-large:hover .category-visual img {
    transform: scale(1.08);
}

.movie-score {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #111827;
    background: #facc15;
    font-size: 12px;
    font-weight: 900;
}

.movie-info {
    padding: 18px;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #a16207;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span,
.movie-meta a,
.detail-meta span {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    background: #fef3c7;
}

.movie-info h3,
.rank-body h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.movie-info p,
.rank-body p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.08));
}

.category-tile img {
    position: absolute;
    inset: 0;
}

.category-tile span,
.category-tile small {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.category-tile span {
    bottom: 58px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile small {
    bottom: 20px;
    color: #e5e7eb;
    line-height: 1.45;
}

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

.rank-panel,
.filter-panel,
.detail-content article,
.category-card-large {
    border: 1px solid rgba(250, 204, 21, 0.20);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.rank-panel {
    padding: 24px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 108px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #bef264);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(202, 138, 4, 0.18);
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    background: #111827;
}

.page-shell,
.detail-shell {
    padding: 48px 0 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 56px;
    background:
        radial-gradient(circle at 80% 10%, rgba(250, 204, 21, 0.34), transparent 28%),
        linear-gradient(135deg, #ffffff, #fff7d6 50%, #ecfccb);
    box-shadow: var(--shadow);
}

.page-hero-small h1 {
    font-size: clamp(36px, 6vw, 62px);
}

.filter-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 26px;
    margin: 32px 0 0;
}

.filter-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.filter-panel p {
    margin: 0;
    color: var(--muted);
}

.filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.filter-fields label {
    display: grid;
    gap: 8px;
    color: #854d0e;
    font-size: 13px;
    font-weight: 900;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    overflow: hidden;
    padding: 20px;
}

.category-visual {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 10;
    background: #111827;
}

.mini-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.mini-card-row a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #6b4d00;
    background: #fef3c7;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: #854d0e;
    font-weight: 800;
    margin-bottom: 24px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    min-height: 420px;
    background: #111827;
    box-shadow: var(--shadow);
}

.detail-info {
    border-radius: 30px;
    padding: 42px;
    background:
        radial-gradient(circle at 92% 0%, rgba(250, 204, 21, 0.32), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(254, 249, 195, 0.92));
    box-shadow: var(--shadow);
}

.detail-info h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
}

.detail-line {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin: 20px 0;
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    margin-top: 34px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.video-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
    cursor: pointer;
}

.play-layer span {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, #facc15, #bef264);
    font-size: 34px;
    box-shadow: 0 20px 44px rgba(250, 204, 21, 0.35);
}

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

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.detail-content article {
    padding: 30px;
}

.detail-content h2 {
    font-size: 28px;
}

.detail-content p {
    color: #4b5563;
    line-height: 1.95;
    font-size: 17px;
}

.detail-related {
    padding-bottom: 72px;
}

.site-footer {
    margin-top: 76px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    align-items: center;
}

.footer-logo {
    color: #facc15;
}

.site-footer p {
    margin: 12px 0 0;
    color: #d1d5db;
}

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

.footer-links a:hover {
    color: #facc15;
}

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

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

    .two-column-section,
    .detail-content {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .site-logo {
        font-size: 21px;
    }

    .hero-carousel {
        height: 76vh;
        min-height: 560px;
    }

    .hero-control {
        display: none;
    }

    .hero-content h1 {
        font-size: clamp(38px, 14vw, 62px);
    }

    .intro-strip,
    .section-heading,
    .filter-panel,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
        display: flex;
    }

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

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

    .rank-item .text-link {
        grid-column: 3;
    }

    .filter-fields {
        justify-content: flex-start;
    }

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

    .page-hero,
    .detail-info {
        padding: 32px;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .section-wrap,
    .page-shell,
    .detail-shell,
    .footer-inner {
        width: min(100% - 22px, 1240px);
    }

    .mobile-nav.open {
        grid-template-columns: repeat(2, 1fr);
    }

    .movie-grid,
    .movie-grid-two,
    .movie-grid-related,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        width: min(100% - 28px, 1240px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-button,
    .ghost-button {
        text-align: center;
    }

    .intro-strip {
        margin-top: -42px;
        padding: 24px;
    }

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

    .rank-thumb {
        display: none;
    }

    .rank-item .text-link {
        grid-column: 2;
    }

    .filter-fields input,
    .filter-fields select {
        min-width: 100%;
        width: 100%;
    }
}
