:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffaf0;
    --text: #111827;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --green: #16a34a;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
    --shadow-strong: 0 28px 70px rgba(124, 45, 18, 0.24);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.34);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--orange);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    color: #111827;
    padding: 8px 12px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid #f3f4f6;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-inner {
    display: grid;
    gap: 8px;
    padding: 12px 0 18px;
}

.mobile-link {
    display: block;
    border-radius: 12px;
    padding: 10px 14px;
}

.mobile-link:hover,
.mobile-link.is-active {
    background: #fff7ed;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 48%, #ef4444 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10% -8% auto auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(4px);
}

.hero-slide {
    display: none;
    min-height: 560px;
    background-image: linear-gradient(90deg, rgba(124, 45, 18, 0.88), rgba(249, 115, 22, 0.74), rgba(239, 68, 68, 0.56)), var(--hero-bg);
    background-position: center;
    background-size: cover;
}

.hero-slide.is-active {
    display: block;
    animation: fadeIn 0.55s ease both;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
    align-items: center;
    min-height: 560px;
    padding: 78px 0;
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    color: #fff7ed;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin: 18px 0 0;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.22;
}

.hero p {
    margin: 18px 0 0;
    color: #fff7ed;
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: #ffffff;
    color: var(--orange-dark);
    box-shadow: 0 14px 28px rgba(124, 45, 18, 0.25);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-stats span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
    color: #fffaf0;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-card {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-strong);
    padding: 18px;
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-card-info {
    display: grid;
    gap: 8px;
    padding: 18px 4px 4px;
}

.hero-card-info strong {
    font-size: 22px;
}

.hero-card-info span {
    color: #ffedd5;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    padding: 0;
}

.hero-dot.is-active {
    width: 32px;
    background: #ffffff;
}

.section {
    padding: 58px 0;
}

.section-white {
    background: #ffffff;
}

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

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #ffedd5;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.movie-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.card-link {
    display: grid;
    height: 100%;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fed7aa, #fff7ed);
}

.movie-card-featured .poster-wrap {
    aspect-ratio: 16 / 12;
}

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

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

.score-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
}

.score-badge {
    top: 10px;
    left: 10px;
    min-width: 48px;
    height: 28px;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 8px 20px rgba(124, 45, 18, 0.25);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(6px);
}

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    margin: 0;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
}

.movie-desc {
    display: -webkit-box;
    min-height: 3em;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    display: grid;
    gap: 12px;
    min-height: 180px;
    border: 1px solid #ffedd5;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    padding: 22px;
    box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
    color: #111827;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-card span {
    color: var(--orange-dark);
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 72px 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid #ffedd5;
    border-radius: 18px;
    background: #ffffff;
    padding: 10px 14px;
    box-shadow: 0 8px 22px rgba(124, 45, 18, 0.07);
}

.rank-item:hover {
    border-color: #fdba74;
}

.rank-no {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    color: #ffffff;
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    background: #ffedd5;
}

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

.rank-meta {
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel {
    border: 1px solid #ffedd5;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 28px;
}

.filter-title {
    margin-bottom: 14px;
    color: #111827;
    font-size: 20px;
    font-weight: 850;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr));
    gap: 12px;
}

.filter-controls label {
    display: grid;
    gap: 6px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #ffffff;
    color: #111827;
    padding: 12px 14px;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.filter-count {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: var(--orange-dark);
}

.detail-hero {
    padding: 36px 0 52px;
    background: radial-gradient(circle at top left, #ffedd5, transparent 35%), var(--bg);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #0f172a;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    background: #0f172a;
    object-fit: contain;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.16), rgba(17, 24, 39, 0.7));
    color: #ffffff;
}

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

.play-layer span {
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.42);
    font-size: 30px;
    transform: translateX(2px);
}

.detail-side {
    border: 1px solid #ffedd5;
    border-radius: 24px;
    background: #ffffff;
    padding: 18px;
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    background: #ffedd5;
}

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

.detail-title {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-lead {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 18px;
}

.info-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #ffedd5;
    padding-bottom: 10px;
}

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    margin: 0;
    font-weight: 800;
    text-align: right;
}

.article-block {
    border: 1px solid #ffedd5;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
    padding: 28px;
    margin-bottom: 24px;
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.sitemap-list {
    columns: 4 240px;
    column-gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-list li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.sitemap-list a {
    color: #374151;
}

.sitemap-list a:hover {
    color: var(--orange-dark);
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 40px;
}

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

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    padding: 18px 0;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.01);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

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

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

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

    .logo {
        font-size: 21px;
    }

    .hero,
    .hero-slide,
    .hero-layout {
        min-height: auto;
    }

    .hero-layout {
        padding: 52px 0 72px;
    }

    .hero-card {
        display: none;
    }

    .section-head {
        display: block;
    }

    .movie-grid,
    .movie-grid.dense,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-featured {
        grid-column: span 2;
        grid-row: auto;
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

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

    .rank-item {
        grid-template-columns: 38px 56px 1fr;
    }

    .rank-meta {
        grid-column: 3;
    }

    .detail-side {
        display: none;
    }

    .article-block {
        padding: 20px;
    }
}
