:root {
    color-scheme: light;
    --site-red: #dc2626;
    --site-dark-red: #991b1b;
    --site-orange: #f97316;
    --site-gray: #f8fafc;
    --site-ink: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-card: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--site-ink);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.32);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
}

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    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(--site-red);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: #fff;
}

.header-search input,
.mobile-search input,
.filter-input,
.search-panel input {
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
}

.header-search input {
    width: 180px;
    padding: 9px 4px 9px 12px;
}

.header-search button,
.mobile-search button,
.search-panel button,
.hero-actions a,
.section-more,
.detail-button,
.player-action {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.search-panel button {
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    font-size: 22px;
}

.mobile-panel {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-link {
    padding: 12px;
    border-radius: 14px;
    background: #fff;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--site-border);
}

.mobile-search input {
    flex: 1;
    padding: 10px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    color: #fff;
    background: #111827;
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64) 42%, rgba(17, 24, 39, 0.18));
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 42px;
    padding: 72px 0;
}

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

.hero-kicker,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fee2e2;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.movie-meta,
.movie-tags,
.breadcrumbs,
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-meta span,
.hero-tags span,
.detail-meta span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-meta span,
.hero-tags span {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

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

.hero-actions a,
.detail-button,
.player-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-red), var(--site-orange));
    box-shadow: 0 18px 42px rgba(220, 38, 38, 0.34);
}

.hero-actions a.secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: none;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    padding: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

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

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

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

.content-section {
    padding: 54px 0;
}

.page-hero {
    padding: 72px 0 42px;
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.22), transparent 42%), linear-gradient(135deg, #fff7ed, #ffffff);
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: var(--site-muted);
    font-size: 17px;
    line-height: 1.8;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-kicker,
.page-kicker {
    color: var(--site-red);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--site-red);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 22px;
    background: var(--site-card);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.13);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

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

.poster-play {
    position: absolute;
    inset: auto 14px 14px auto;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

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

.movie-meta {
    margin-bottom: 8px;
    color: var(--site-muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-title:hover,
.breadcrumbs a:hover {
    color: var(--site-red);
}

.movie-card p {
    min-height: 64px;
    margin: 0 0 12px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

.movie-tags span {
    padding: 5px 9px;
    color: var(--site-dark-red);
    background: #fee2e2;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(135deg, #991b1b, #ef4444 52%, #fb923c);
    box-shadow: 0 26px 60px rgba(220, 38, 38, 0.2);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.category-card h2,
.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-card span {
    position: relative;
    display: inline-flex;
    font-weight: 900;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 24px 0 34px;
    padding: 10px;
    border: 1px solid var(--site-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.search-panel input,
.filter-input {
    width: 100%;
    padding: 15px 16px;
    font-size: 16px;
}

.filter-bar {
    margin: 0 0 26px;
    padding: 10px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: #fff;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr);
    gap: 30px;
}

.ranking-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranking-item {
    display: grid;
    grid-template-columns: 54px 78px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--site-border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.ranking-number {
    font-size: 22px;
    font-weight: 900;
    color: var(--site-red);
}

.ranking-cover img {
    width: 78px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-title {
    display: inline-flex;
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 900;
}

.ranking-item p {
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
}

.detail-shell {
    padding: 36px 0 62px;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: var(--site-muted);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.34fr);
    gap: 30px;
}

.detail-main,
.detail-side,
.detail-info-card {
    border: 1px solid var(--site-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
}

.detail-main {
    overflow: hidden;
}

.player-wrap {
    position: relative;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.68));
}

.player-cover.hidden {
    display: none;
}

.player-action {
    min-width: 156px;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.detail-body {
    padding: 28px;
}

.detail-body h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-meta span {
    padding: 7px 12px;
    color: var(--site-dark-red);
    background: #fee2e2;
}

.detail-copy {
    margin-top: 24px;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.detail-copy h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

.detail-copy p {
    margin: 0 0 16px;
}

.detail-side {
    padding: 18px;
    align-self: start;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
    margin-bottom: 16px;
}

.detail-side h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-side p {
    margin: 0 0 16px;
    color: var(--site-muted);
    line-height: 1.7;
}

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

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

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

.footer-brand {
    color: #fff;
}

.site-footer p {
    max-width: 560px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links,
.footer-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: flex-start;
}

.footer-links a,
.footer-category-links a {
    color: #d1d5db;
}

.footer-links a:hover,
.footer-category-links a:hover {
    color: #f87171;
}

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

.no-results {
    display: none;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    color: var(--site-muted);
    background: #fff;
    border: 1px solid var(--site-border);
}

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

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header-inner {
        justify-content: space-between;
    }

    .header-search {
        margin-left: auto;
    }

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

@media (max-width: 900px) {
    .hero-content,
    .detail-layout,
    .ranking-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        max-width: 360px;
    }

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

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

@media (max-width: 680px) {
    .site-header-inner {
        width: min(100% - 24px, 1240px);
        min-height: 64px;
        gap: 12px;
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .header-search {
        display: none;
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 50px 0 78px;
    }

    .hero-panel {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

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

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

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

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

    .movie-card p {
        min-height: auto;
    }

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

    .ranking-item {
        grid-template-columns: 44px 64px 1fr;
    }

    .ranking-cover img {
        width: 64px;
    }

    .detail-body {
        padding: 20px;
    }
}
