:root {
    --page-bg: #fafaf9;
    --panel-bg: #ffffff;
    --ink: #292524;
    --muted: #78716c;
    --muted-2: #a8a29e;
    --line: #e7e5e4;
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --accent: #f59e0b;
    --black: #0c0a09;
    --shadow: 0 18px 45px rgba(41, 37, 36, 0.14);
    --soft-shadow: 0 12px 30px rgba(41, 37, 36, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page-bg);
}

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: 80;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 22px rgba(12, 10, 9, 0.06);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #fb7185);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

.brand-text strong {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.brand-text small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    color: #57534e;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f5f5f4;
}

.header-search input {
    width: 250px;
    border: 0;
    outline: 0;
    padding: 11px 12px;
    background: transparent;
}

.header-search button,
.wide-search button,
.filter-bar button {
    border: 0;
    color: #ffffff;
    background: var(--brand);
    padding: 11px 18px;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.wide-search button:hover,
.filter-bar button:hover {
    background: var(--brand-dark);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 26px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 12px 22px 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel.open {
    display: block;
}

.mobile-links,
.mobile-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mobile-category-links {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 540px;
    overflow: hidden;
    background: var(--black);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 850ms ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(245, 158, 11, 0.2), transparent 30%),
        linear-gradient(90deg, rgba(12, 10, 9, 0.92) 0%, rgba(12, 10, 9, 0.68) 42%, rgba(12, 10, 9, 0.18) 100%),
        linear-gradient(0deg, rgba(12, 10, 9, 0.92), transparent 60%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 90px;
    width: min(720px, calc(100% - 48px));
    color: #ffffff;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: var(--brand);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.eyebrow {
    color: var(--brand);
    background: #fee2e2;
}

.hero-content h1 {
    margin: 20px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #e7e5e4;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.primary-btn,
.ghost-btn,
.section-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 13px 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 16px 28px rgba(220, 38, 38, 0.3);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.text-link:hover {
    transform: translateY(-2px);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--accent);
}

.main-container {
    width: min(1280px, calc(100% - 44px));
    margin: 0 auto;
}

.page-top {
    padding-top: 44px;
    padding-bottom: 72px;
}

.quick-search-panel,
.page-hero,
.text-panel,
.player-section {
    margin: 42px 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel-bg);
    box-shadow: var(--soft-shadow);
}

.quick-search-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: center;
}

.quick-search-panel h2,
.page-hero h1,
.section-heading h2,
.text-panel h2,
.player-section h2 {
    margin: 12px 0 0;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.quick-search-panel p,
.page-hero p,
.section-heading p,
.text-panel p,
.player-section p {
    color: var(--muted);
    line-height: 1.8;
}

.wide-search,
.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wide-search input,
.filter-bar input,
.filter-bar select {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    padding: 0 14px;
    background: #ffffff;
}

.wide-search input,
.filter-bar input {
    flex: 1;
}

.content-section {
    margin: 72px 0;
}

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

.section-heading h2 {
    margin-top: 10px;
}

.section-link,
.text-link {
    color: var(--brand);
    background: #fee2e2;
}

.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-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-bg);
    box-shadow: 0 10px 26px rgba(41, 37, 36, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 28% 22%, rgba(245, 158, 11, 0.28), transparent 35%),
        linear-gradient(135deg, #292524, #0c0a09);
}

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

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

.poster-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
}

.poster-fallback.large {
    min-height: 320px;
    border-radius: 24px;
    background: linear-gradient(135deg, #292524, #111827);
}

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.35);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body p {
    min-height: 54px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.badge-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #57534e;
    background: #f5f5f4;
    font-size: 12px;
    font-weight: 700;
}

.hero-badges span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.category-tile,
.category-overview-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-tile {
    padding: 14px;
}

.tile-covers,
.overview-cover {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.tile-covers img,
.overview-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #292524;
}

.category-tile strong {
    display: block;
    font-size: 18px;
}

.category-tile small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.category-overview-card {
    display: grid;
    grid-column: span 1;
    padding: 16px;
}

.category-overview-card h2 {
    margin: 8px 0;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.7;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 52px 1fr 62px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(41, 37, 36, 0.05);
}

.rank-num {
    color: var(--brand);
    font-size: 24px;
    font-weight: 950;
}

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

.rank-info strong,
.rank-info small {
    display: block;
}

.rank-info small {
    margin-top: 5px;
    color: var(--muted);
}

.rank-score {
    color: var(--accent);
    font-weight: 950;
    text-align: right;
}

.filter-bar {
    position: sticky;
    top: 80px;
    z-index: 30;
    margin: 24px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(14px);
}

.filter-count {
    color: var(--muted);
    font-weight: 800;
}

.detail-page {
    background: var(--page-bg);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0c0a09;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    transform: scale(1.04);
    opacity: 0.38;
}

.detail-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.96), rgba(12, 10, 9, 0.62)),
        linear-gradient(0deg, rgba(12, 10, 9, 0.94), transparent 60%);
}

.detail-inner {
    position: relative;
    width: min(1280px, calc(100% - 44px));
    min-height: 640px;
    margin: 0 auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
}

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

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

.detail-info h1 {
    margin: 18px 0;
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    color: #e7e5e4;
    font-size: 20px;
    line-height: 1.8;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 860px;
    margin: 24px 0;
}

.detail-meta-grid span {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 7px;
    color: var(--muted-2);
    font-size: 12px;
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.detail-content {
    padding-bottom: 70px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 170px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.94);
    box-shadow: 0 18px 35px rgba(220, 38, 38, 0.36);
    cursor: pointer;
    font-weight: 950;
}

.player-start.is-hidden {
    display: none;
}

.text-panel p {
    color: #44403c;
    font-size: 17px;
}

.site-footer {
    color: #d6d3d1;
    background: #1c1917;
}

.footer-inner {
    width: min(1280px, calc(100% - 44px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.footer-inner p,
.footer-links {
    color: #a8a29e;
    line-height: 1.8;
}

.footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
    columns: 2;
}

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

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

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

    .rank-list.full {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 580px;
    }

    .quick-search-panel,
    .detail-inner,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-inner {
        min-height: 0;
        padding: 44px 0;
    }

    .detail-poster {
        max-width: 260px;
    }

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

    .filter-bar,
    .wide-search {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .main-container,
    .detail-inner,
    .footer-inner {
        width: min(100% - 28px, 1280px);
        padding-left: 0;
        padding-right: 0;
    }

    .brand-text small {
        display: none;
    }

    .hero-content {
        left: 18px;
        bottom: 74px;
        width: calc(100% - 36px);
    }

    .hero-arrow {
        display: none;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body p {
        display: none;
    }

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

    .rank-item {
        grid-template-columns: 42px 46px 1fr;
    }

    .rank-score {
        display: none;
    }
}
