:root {
    --color-amber: #f59e0b;
    --color-orange: #ea580c;
    --color-yellow: #facc15;
    --color-ink: #1f2937;
    --color-muted: #6b7280;
    --color-soft: #fff7ed;
    --shadow-card: 0 18px 45px rgba(124, 45, 18, 0.12);
    --shadow-strong: 0 28px 70px rgba(124, 45, 18, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 34%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #f59e0b, #f97316, #d97706);
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(146, 64, 14, 0.25);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--color-orange);
    background: #ffffff;
    box-shadow: inset 0 0 0 3px rgba(245, 158, 11, 0.14);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fef3c7;
}

.mobile-toggle {
    display: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    background: transparent;
    border: 0;
}

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(180, 83, 9, 0.96);
}

.mobile-nav.is-open {
    display: grid;
    gap: 10px;
}

.section,
.hero-inner,
.page-hero,
.content-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: #ffffff;
    background: radial-gradient(circle at 16% 20%, rgba(252, 211, 77, 0.55), transparent 34%), linear-gradient(135deg, #7c2d12 0%, #f97316 48%, #f59e0b 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.84), rgba(15, 23, 42, 0.24) 48%, rgba(15, 23, 42, 0.72));
    pointer-events: none;
}

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

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

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

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 48px;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 72px;
}

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

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fde68a;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero h1 span,
.page-hero h1 span {
    color: #fde68a;
}

.hero p,
.page-hero p {
    margin: 18px 0 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.88);
}

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

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(124, 45, 18, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-light {
    color: var(--color-orange);
    background: #ffffff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(124, 45, 18, 0.28);
}

.hero-side {
    display: grid;
    gap: 18px;
}

.focus-card {
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.focus-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.focus-card-body {
    padding: 24px;
}

.focus-card h2,
.focus-card h3 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 900;
}

.focus-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.hero-dots button {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
    background: #fde68a;
}

.page-hero {
    padding-top: 76px;
    padding-bottom: 76px;
    color: #ffffff;
    background: radial-gradient(circle at 12% 20%, rgba(254, 240, 138, 0.35), transparent 30%), linear-gradient(135deg, #92400e, #f97316);
    border-radius: 0 0 36px 36px;
}

.page-hero p {
    max-width: 850px;
}

.section {
    padding-top: 64px;
    padding-bottom: 64px;
}

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

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-title p {
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.7;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62));
    opacity: 0.74;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #b45309;
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-meta {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.movie-line {
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
}

.tag-row,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span,
.meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #b45309;
    background: #fffbeb;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.18));
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.category-card strong {
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 14px 0 22px;
    color: var(--color-muted);
    line-height: 1.75;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 26px;
}

.rank-panel {
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fffaf0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #ffedd5;
}

.rank-num {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #6b7280;
    background: #ffffff;
    font-weight: 900;
}

.rank-gold,
.rank-silver,
.rank-bronze {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-item img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-main {
    min-width: 0;
}

.rank-main strong,
.rank-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-main strong {
    font-weight: 900;
}

.rank-main em {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 13px;
    font-style: normal;
}

.rank-score {
    color: #b45309;
    font-weight: 900;
}

.filter-panel {
    max-width: 1280px;
    margin: -30px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 4;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

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

.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    color: var(--color-ink);
    background: #fffaf0;
    outline: none;
}

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

.hidden-by-filter {
    display: none !important;
}

.no-results {
    display: none;
    padding: 34px;
    border-radius: 24px;
    text-align: center;
    color: var(--color-muted);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.36), transparent 28%), linear-gradient(135deg, #431407, #c2410c 50%, #f59e0b);
    color: #ffffff;
}

.detail-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(280px, 0.52fr);
    gap: 30px;
}

.breadcrumb {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #fde68a;
}

.player-shell {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.78));
    z-index: 2;
}

.play-layer.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.play-layer button {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    font-size: 34px;
    box-shadow: 0 18px 50px rgba(234, 88, 12, 0.45);
}

.play-layer strong {
    max-width: 80%;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
}

.detail-info {
    padding: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    backdrop-filter: blur(16px);
}

.detail-info img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.detail-info h1 {
    margin: 22px 0 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.12;
    font-weight: 900;
}

.detail-info p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.85;
}

.detail-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.article-card,
.side-card {
    padding: 30px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.article-card + .article-card {
    margin-top: 24px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 900;
}

.article-card p {
    margin: 0;
    color: #374151;
    line-height: 2;
    font-size: 17px;
}

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

.side-mini {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
}

.side-mini:hover {
    background: #ffedd5;
}

.side-mini img {
    width: 66px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

.side-mini strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.side-mini span {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 13px;
}

.pagination-note {
    margin-top: 30px;
    padding: 22px;
    border-radius: 22px;
    color: #92400e;
    background: #fffbeb;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-inner,
    .rank-layout,
    .detail-wrap,
    .detail-body {
        grid-template-columns: 1fr;
    }

    .detail-info {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 22px;
        align-items: start;
    }

    .detail-info h1 {
        margin-top: 0;
    }
}

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

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

    .hero,
    .hero-inner {
        min-height: 590px;
    }

    .hero-inner {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hero-side {
        display: none;
    }

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

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

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

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

    .detail-info img {
        max-width: 260px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

    .section,
    .page-hero,
    .detail-body,
    .detail-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-panel,
    .hero-inner,
    .content-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .movie-grid,
    .movie-grid.wide,
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-line,
    .tag-row {
        display: none;
    }

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

    .rank-score {
        display: none;
    }

    .play-layer button {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
