:root {
    --bg: #f9fafb;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --blue: #2563eb;
    --green: #059669;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.25);
}

.brand-text {
    color: var(--ink);
    font-size: 22px;
    letter-spacing: -0.03em;
}

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

.nav-link {
    color: #374151;
    font-weight: 650;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #374151;
}

.mobile-panel {
    display: none;
    padding: 8px 16px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-panel .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-panel .nav-link:hover {
    background: #fff7ed;
}

.hero-section {
    padding: 34px 0 64px;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.22), transparent 34%),
        linear-gradient(135deg, #fff7ed 0%, #fff 42%, #eff6ff 100%);
}

.hero-shell {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(239, 68, 68, 0.92), rgba(236, 72, 153, 0.88));
    box-shadow: var(--shadow);
}

.hero-glow {
    position: absolute;
    inset: -30% -10% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    filter: blur(24px);
}

.hero-slide {
    display: none;
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 42px;
    align-items: center;
    min-height: 560px;
    padding: 54px;
}

.hero-slide.active {
    display: grid;
    animation: fadeUp 0.55s ease both;
}

.hero-copy {
    color: #fff;
}

.eyebrow,
.section-heading span,
.page-hero span,
.spotlight-card span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: var(--orange);
    background: #fff7ed;
    padding: 7px 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-copy .eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.22);
}

.btn-soft {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.page-actions .btn-soft {
    color: var(--orange);
    background: #fff7ed;
}

.hero-visual {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 430px;
    border-radius: 30px;
    box-shadow: 0 28px 55px rgba(17, 24, 39, 0.28);
}

.hero-visual img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-visual:hover img {
    transform: scale(1.05);
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.76), transparent 58%);
}

.hero-visual span {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 1;
    color: #fff;
    font-weight: 800;
}

.hero-bottom {
    position: absolute;
    left: 54px;
    right: 54px;
    bottom: 34px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-search {
    display: flex;
    width: min(540px, 100%);
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    padding: 15px 18px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.hero-search button {
    border: 0;
    color: var(--orange);
    background: #fff;
    padding: 0 22px;
    font-weight: 800;
}

.hero-dots {
    display: inline-flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

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

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

.soft-blue {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.soft-amber {
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.soft-green {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.section-heading {
    margin-bottom: 30px;
    text-align: center;
}

.section-heading.align-left {
    text-align: left;
}

.section-heading h2,
.page-hero h1 {
    margin: 12px 0 10px;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.14;
    letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
}

.section-heading.align-left p {
    margin-left: 0;
}

.inline-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
}

.inline-heading a,
.text-link {
    color: var(--orange);
    font-weight: 800;
}

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

.category-card,
.category-overview-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.category-card div,
.category-overview-card div {
    padding: 18px;
}

.category-card h3,
.category-overview-card h2,
.movie-card h3,
.spotlight-card h3,
.ranking-content h2,
.prose-card h2,
.info-card h2 {
    margin: 0 0 8px;
    color: var(--ink);
    line-height: 1.28;
}

.category-card p,
.category-overview-card p,
.movie-card p,
.spotlight-card p,
.ranking-content p,
.prose-card p,
.detail-main-copy p {
    margin: 0;
    color: var(--muted);
}

.category-card span {
    display: inline-flex;
    margin-top: 14px;
    color: var(--orange);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.38s ease;
}

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

.score-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin-top: 8px;
    font-size: 17px;
}

.movie-card h3 a:hover,
.ranking-content h2 a:hover,
.category-overview-card h2 a:hover {
    color: var(--orange);
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.15em;
    overflow: hidden;
    margin-top: 8px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
}

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

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 40px 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-num {
    color: var(--orange);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 64px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
}

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

.rank-info strong {
    display: block;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info small {
    color: var(--muted);
}

.rank-score {
    color: var(--red);
    font-weight: 900;
}

.spotlight-card {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow);
}

.spotlight-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.spotlight-card div {
    padding: 24px;
}

.spotlight-card h3 {
    color: #fff;
    font-size: 28px;
}

.spotlight-card p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 22px;
}

.page-hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #fff7ed, #ffffff 45%, #eff6ff);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.page-hero .page-actions {
    justify-content: center;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    padding: 0 !important;
}

.category-samples a {
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 170px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: #f9fafb;
    padding: 12px 14px;
}

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

.empty-state {
    display: none;
    margin: 20px 0;
    border: 1px dashed #fdba74;
    border-radius: 18px;
    color: #c2410c;
    background: #fff7ed;
    padding: 18px;
    text-align: center;
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 96px 58px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-cover img {
    width: 96px;
    height: 126px;
    border-radius: 16px;
    object-fit: cover;
}

.ranking-number {
    color: var(--orange);
    font-size: 34px;
    font-weight: 950;
    text-align: center;
}

.ranking-content h2 {
    font-size: 22px;
}

.ranking-content p {
    margin-bottom: 12px;
}

.ranking-score {
    text-align: center;
}

.ranking-score strong {
    display: block;
    color: var(--red);
    font-size: 30px;
    line-height: 1;
}

.ranking-score span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.breadcrumb-wrap {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    color: var(--muted);
    font-size: 14px;
}

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

.breadcrumb strong {
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-section {
    padding: 34px 0 48px;
    background: linear-gradient(135deg, #111827, #1f2937 50%, #7c2d12);
}

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

.player-panel,
.detail-sidebar,
.prose-card,
.info-card {
    border: 1px solid rgba(229, 231, 235, 0.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-panel {
    overflow: hidden;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.16));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 45px rgba(239, 68, 68, 0.36);
}

.play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-42%, -50%);
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #fff;
}

.detail-main-copy {
    padding: 26px;
}

.detail-main-copy h1 {
    margin: 14px 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-main-copy .detail-meta {
    margin-top: 16px;
}

.detail-sidebar {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
}

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

.info-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 22px;
}

.info-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-card dl div {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
}

.info-card dt {
    color: #9ca3af;
    font-weight: 800;
}

.info-card dd {
    margin: 0;
    color: var(--ink);
}

.all-tags {
    margin-top: 18px;
}

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

.prose-card {
    padding: 26px;
}

.prose-card h2 {
    font-size: 26px;
}

.prose-card p {
    color: #374151;
    font-size: 16px;
    line-height: 1.85;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-brand {
    color: #fff;
    font-size: 22px;
}

.site-footer p {
    max-width: 420px;
    color: #9ca3af;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 17px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

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

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .mobile-toggle {
        display: flex;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-visual img {
        height: 360px;
    }

    .hero-bottom {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 0 36px 36px;
        flex-direction: column;
        align-items: stretch;
    }

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

    .split-section,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .detail-cover {
        height: 100%;
    }
}

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

    .hero-section {
        padding-top: 18px;
    }

    .hero-shell {
        min-height: auto;
        border-radius: 24px;
    }

    .hero-slide {
        min-height: auto;
        padding: 26px;
    }

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

    .hero-copy p {
        font-size: 16px;
    }

    .hero-visual img {
        height: 310px;
    }

    .hero-bottom {
        padding: 0 26px 26px;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        min-height: 46px;
    }

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

    .inline-heading {
        display: block;
    }

    .inline-heading a {
        display: inline-flex;
        margin-top: 12px;
    }

    .category-grid,
    .movie-grid,
    .prose-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid .movie-card:first-child {
        grid-column: auto;
        grid-row: auto;
    }

    .category-overview-card,
    .detail-sidebar,
    .ranking-item {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        text-align: left;
    }

    .ranking-number,
    .ranking-score {
        text-align: left;
    }

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

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

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

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