:root {
    --page: #fff7ed;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --orange: #ea580c;
    --gold: #f97316;
    --shadow: 0 24px 60px rgba(127, 29, 29, 0.16);
    --soft-shadow: 0 12px 28px rgba(127, 29, 29, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 32rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--orange));
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
    font-size: 16px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 21px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--brand), var(--orange));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: #374151;
    font-weight: 650;
    font-size: 15px;
    white-space: nowrap;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--brand);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff1e7;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--brand);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ed;
    color: #7f1d1d;
    font-weight: 700;
}

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

.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.1)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.74), transparent 58%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    align-content: center;
    justify-items: start;
    color: #ffffff;
}

.hero-copy {
    width: min(660px, 100%);
    padding: 24px 0 32px;
}

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

.hero-copy h2 {
    margin-top: 12px;
}

.hero-copy p {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.85;
}

.hero-eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
}

.hero-eyebrow span {
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--orange));
    box-shadow: 0 16px 30px rgba(220, 38, 38, 0.28);
}

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

.btn-primary:hover,
.btn-secondary:hover,
.section-more:hover {
    transform: translateY(-2px);
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.24s ease, background 0.24s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 70px;
}

.page-hero {
    margin-bottom: 32px;
    padding: 34px;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 18rem),
        linear-gradient(135deg, #991b1b, #dc2626 48%, #ea580c);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.page-hero p {
    width: min(780px, 100%);
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.85;
}

.content-section {
    margin-top: 48px;
}

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

.section-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-more {
    min-height: 42px;
    color: var(--brand);
    background: #fff1e7;
}

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

.movie-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(254, 215, 170, 0.86);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 113, 113, 0.68);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #fb923c);
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: linear-gradient(135deg, var(--brand), var(--orange));
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(12px);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 45px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    color: #111827;
}

.card-title:hover {
    color: var(--brand);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #f97316;
}

.card-body p {
    display: -webkit-box;
    margin: 11px 0 0;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 750;
}

.small-card .card-body p {
    -webkit-line-clamp: 2;
}

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

.category-card {
    display: block;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(254, 215, 170, 0.85);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card h2 {
    margin: 0;
    font-size: 24px;
}

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

.category-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.category-preview span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #7f1d1d;
    background: #fff1e7;
    font-size: 13px;
    font-weight: 750;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 22px;
    border-radius: 26px;
    background: #111827;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.rank-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

.rank-row span {
    color: #fed7aa;
    font-weight: 950;
}

.rank-row strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row em {
    color: rgba(255, 255, 255, 0.64);
    font-style: normal;
    font-size: 13px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(254, 215, 170, 0.86);
    box-shadow: var(--soft-shadow);
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 0 13px;
    color: #111827;
    background: #fffaf5;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed #fdba74;
    border-radius: 24px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 38px;
    padding: 28px;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid rgba(254, 215, 170, 0.86);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, #7f1d1d, #fb923c);
    box-shadow: 0 20px 44px rgba(127, 29, 29, 0.22);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--brand);
    font-weight: 800;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.detail-copy .lead {
    margin: 18px 0 0;
    color: #374151;
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 850;
}

.player-card,
.article-card {
    margin-top: 32px;
    padding: 28px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid rgba(254, 215, 170, 0.86);
    box-shadow: var(--soft-shadow);
}

.player-card h2,
.article-card h2 {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.30);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.2)),
        radial-gradient(circle at center, rgba(220, 38, 38, 0.34), transparent 18rem);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--orange));
    box-shadow: 0 22px 40px rgba(220, 38, 38, 0.36);
    font-size: 18px;
    font-weight: 950;
}

.article-card p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.detail-related {
    margin-top: 38px;
}

.site-footer {
    border-top: 1px solid rgba(254, 215, 170, 0.9);
    background: #111827;
    color: #ffffff;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner strong {
    color: #ffffff;
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

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

    .home-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

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

    .hero-slider {
        min-height: 520px;
    }

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.32)),
            linear-gradient(90deg, rgba(0, 0, 0, 0.56), transparent);
    }

    .hero-content {
        align-content: end;
        padding-bottom: 72px;
    }

    .page-shell {
        padding-top: 28px;
    }

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

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

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

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

    .detail-cover {
        width: min(320px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 540px) {
    .header-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .hero-copy p {
        font-size: 15px;
        line-height: 1.75;
    }

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

    .page-hero,
    .detail-hero,
    .player-card,
    .article-card {
        border-radius: 22px;
        padding: 20px;
    }

    .footer-inner {
        flex-direction: column;
    }
}
