:root {
    --bg: #f6f7fb;
    --paper: #ffffff;
    --paper-soft: #f9fafb;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #dc2626;
    --brand-dark: #991b1b;
    --blue: #2563eb;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(220, 38, 38, 0.08), transparent 34rem), var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f97316);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.28);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

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

.main-nav > a,
.nav-menu > button {
    border: 0;
    background: transparent;
    color: #374151;
    font-weight: 700;
    padding: 8px 0;
}

.main-nav > a:hover,
.main-nav > a.is-active,
.nav-menu > button:hover {
    color: var(--brand);
}

.nav-menu {
    position: relative;
}

.nav-menu-panel {
    position: absolute;
    left: 0;
    top: 100%;
    width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.nav-menu:hover .nav-menu-panel,
.nav-menu:focus-within .nav-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #4b5563;
}

.nav-menu-panel a:hover {
    background: #fef2f2;
    color: var(--brand);
}

.header-search {
    width: min(330px, 28vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 8px 10px;
    background: transparent;
}

.header-search button,
.search-band button,
.filter-reset {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #f97316);
    font-weight: 800;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
    border-radius: 999px;
}

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

.mobile-panel a {
    display: block;
    padding: 10px 0;
    font-weight: 700;
}

.mobile-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
    margin-top: 8px;
}

main {
    min-height: 60vh;
}

.home-hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #020617;
}

.hero-static-copy {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 44px;
    width: min(1120px, calc(100% - 48px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-static-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-static-copy p {
    max-width: 640px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: end;
    gap: 48px;
    padding: 190px max(28px, calc((100vw - 1120px) / 2)) 92px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    opacity: 0.35;
    filter: blur(1px) saturate(1.15);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.76) 45%, rgba(2, 6, 23, 0.28)), linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 52%);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #f97316;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

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

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

.hero-tags span,
.detail-meta span,
.detail-tags a,
.card-tags span {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 11px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
}

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

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #ffffff;
}

.search-band,
.section-block,
.filter-bar,
.breadcrumb {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
}

.search-band {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -34px;
    position: relative;
    z-index: 6;
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-band h2,
.section-heading h2,
.footer-links h2,
.detail-copy h2,
.category-large h2 {
    margin: 0;
    color: var(--text);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.search-band p {
    margin: 6px 0 0;
    color: var(--muted);
}

.search-band form {
    display: flex;
    gap: 10px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.search-band input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 11px 14px;
    background: transparent;
}

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

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

.section-heading span {
    color: var(--brand);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading > a,
.text-link {
    color: var(--brand);
    font-weight: 900;
}

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

.category-card,
.category-large,
.movie-card,
.compact-movie,
.rank-panel,
.detail-copy {
    background: var(--paper);
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.category-card {
    overflow: hidden;
}

.category-card > a {
    display: block;
    min-height: 134px;
    padding: 22px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.8), transparent 40%), linear-gradient(135deg, #111827, #1e3a8a);
}

.category-card span {
    display: block;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 500;
}

.category-card div {
    display: grid;
    gap: 8px;
    padding: 16px 18px 18px;
}

.category-card div a,
.category-sample-links a {
    color: #4b5563;
    font-size: 14px;
}

.category-card div a:hover,
.category-sample-links a:hover,
.card-body h3 a:hover,
.compact-info h3 a:hover {
    color: var(--brand);
}

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

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.card-cover img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.card-score,
.card-type {
    position: absolute;
    top: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.68);
}

.card-score {
    right: 10px;
}

.card-type {
    left: 10px;
    background: rgba(220, 38, 38, 0.92);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    display: -webkit-box;
    height: 48px;
    overflow: hidden;
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-body p {
    display: -webkit-box;
    height: 42px;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-tags {
    margin-bottom: 12px;
}

.card-tags span {
    color: var(--brand);
    background: #fef2f2;
    border-color: #fee2e2;
}

.card-meta,
.compact-meta {
    color: #6b7280;
    font-size: 13px;
}

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

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.compact-movie {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
}

.compact-cover {
    overflow: hidden;
    border-radius: 14px;
}

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

.compact-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

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

.rank-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.compact-info h3 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 900;
}

.compact-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 7px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-hero {
    min-height: 320px;
    display: grid;
    align-items: center;
    padding: 74px max(28px, calc((100vw - 1180px) / 2));
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.5), transparent 30rem), linear-gradient(135deg, #111827, #1e3a8a);
}

.page-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.small-hero {
    min-height: 280px;
}

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

.category-large {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

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

.category-poster-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
}

.category-large p {
    margin: 10px 0 14px;
    color: var(--muted);
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 16px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    background: #ffffff;
}

.filter-bar input {
    min-width: 220px;
    flex: 1;
    padding: 0 16px;
}

.filter-bar select {
    padding: 0 16px;
}

.inner-filter {
    width: 100%;
    margin: 0 0 18px;
    box-shadow: none;
}

.large-list .compact-movie {
    grid-template-columns: 92px minmax(0, 1fr);
}

.empty-state {
    margin: 26px 0 0;
    padding: 24px;
    border-radius: var(--radius);
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

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

.watch-layout {
    width: min(1380px, calc(100% - 48px));
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 26px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: contain;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.28), rgba(2, 6, 23, 0.28));
    transition: opacity 0.2s ease;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #f97316);
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.35);
    font-size: 34px;
}

.play-layer strong {
    font-size: 18px;
}

.player-shell.is-playing .play-layer {
    opacity: 0;
    pointer-events: none;
}

.watch-info {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.38), transparent 18rem), linear-gradient(135deg, #111827, #0f172a);
}

.watch-info > img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

.watch-info h1 {
    margin: 0 0 12px;
    font-size: 31px;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.watch-info p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.76);
}

.detail-meta {
    margin-bottom: 12px;
}

.detail-tags a {
    margin-bottom: 4px;
}

.detail-copy {
    padding: 28px;
}

.detail-copy h2 {
    margin-top: 24px;
}

.detail-copy h2:first-child {
    margin-top: 0;
}

.detail-copy p {
    margin: 12px 0 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.85;
}

.site-footer {
    margin-top: 76px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #020617);
}

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

.footer-logo .brand-text,
.footer-links h2 {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.footer-brand p {
    max-width: 460px;
    margin: 16px 0 0;
    color: #9ca3af;
}

.footer-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
}

.footer-links a {
    color: #9ca3af;
}

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

.footer-bottom {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #6b7280;
}

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

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

    .two-columns,
    .watch-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .header-inner {
        padding: 0 18px;
    }

    .main-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .site-header.is-open .mobile-panel {
        display: block;
    }

    .home-hero {
        min-height: 780px;
    }

    .hero-static-copy {
        top: 28px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: end;
        gap: 22px;
        padding-top: 220px;
        padding-bottom: 86px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        transform: none;
    }

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

    .category-grid,
    .category-large-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .watch-info {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    .search-band,
    .section-block,
    .filter-bar,
    .breadcrumb,
    .watch-layout,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 28px, 1380px);
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-static-copy h1,
    .page-hero h1 {
        font-size: 32px;
    }

    .hero-content h2 {
        font-size: 38px;
    }

    .search-band form,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

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

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .watch-info {
        grid-template-columns: 1fr;
    }

    .watch-info > img {
        width: 150px;
    }

    .player-shell,
    .movie-player {
        min-height: 260px;
    }

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