:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --soft: #fff7ed;
    --brand: #dc2626;
    --brand-dark: #b91c1c;
    --brand-orange: #f97316;
    --gold: #facc15;
    --dark: #0f172a;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    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.9);
}

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

.site-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.large-search input,
.inline-filter input {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 11px 16px;
    color: var(--ink);
    outline: none;
    min-width: 210px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.inline-filter input:focus {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.header-search button,
.mobile-search button,
.large-search button,
.inline-filter button {
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    border: none;
    background: transparent;
    padding: 8px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #334155;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 14px 24px 20px;
}

.mobile-nav.open {
    display: grid;
    gap: 10px;
}

.mobile-nav-link {
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 800;
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 32%, rgba(249, 115, 22, 0.38), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.18)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 24px 110px;
    color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.sub-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffedd5;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 22px 0 18px;
    max-width: 760px;
    font-size: clamp(38px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero h1 span {
    color: #fed7aa;
}

.hero p {
    max-width: 720px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.detail-info .primary-btn,
.quick-links,
.nav-neighbor div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 14px;
    padding: 13px 21px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--brand);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.movie-card:hover,
.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-3px);
}

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

.hero-tags,
.movie-tags,
.detail-tags,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags a,
.filter-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

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

.hero-dot {
    width: 38px;
    height: 6px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.active {
    background: #ffffff;
}

.page-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px;
}

.tinted-section {
    max-width: none;
    padding-left: calc((100% - 1280px) / 2 + 24px);
    padding-right: calc((100% - 1280px) / 2 + 24px);
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.dark-section {
    max-width: none;
    padding-left: calc((100% - 1280px) / 2 + 24px);
    padding-right: calc((100% - 1280px) / 2 + 24px);
    background: linear-gradient(135deg, #111827, #1e293b);
    color: #ffffff;
}

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

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

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.dark-section .section-heading p {
    color: #cbd5e1;
}

.section-more {
    color: var(--brand);
    background: #fff1f2;
    white-space: nowrap;
}

.quick-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 24px;
}

.quick-search-card,
.category-overview-card,
.content-card,
.side-card,
.player-card,
.ranking-aside {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.quick-search-card {
    padding: 30px;
}

.quick-search-card h2,
.content-card h2,
.side-card h2,
.ranking-aside h2 {
    margin: 0 0 12px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.quick-search-card p,
.content-card p,
.side-card p {
    color: var(--muted);
}

.large-search {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.large-search input {
    flex: 1;
    min-width: 0;
}

.quick-links {
    align-content: stretch;
}

.quick-links a {
    flex: 1 1 100%;
    border-radius: 16px;
    padding: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: var(--shadow);
}

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

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

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

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

.poster-play {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.9);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.28);
}

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

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

.movie-card-body h3 a:hover {
    color: var(--brand);
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.movie-card-desc {
    margin: 12px 0 12px;
    color: #475569;
    font-size: 14px;
}

.movie-tags span {
    color: var(--brand);
    background: #fff1f2;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: var(--radius);
    padding: 24px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(220, 38, 38, 0.55));
}

.category-tile span,
.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    font-size: 34px;
}

.category-tile em {
    margin-top: 26px;
    color: #fee2e2;
    font-style: normal;
}

.sub-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.38), transparent 28%),
        linear-gradient(135deg, #991b1b, #111827 68%);
    color: #ffffff;
}

.sub-hero > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 82px 24px;
}

.sub-hero h1 {
    max-width: 820px;
    margin: 20px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    background: #111827;
}

.category-cover img {
    height: 100%;
    object-fit: cover;
}

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

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

.category-overview-card strong {
    color: var(--brand);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.category-samples a {
    border-radius: 999px;
    padding: 6px 10px;
    color: #7f1d1d;
    background: #fff1f2;
    font-size: 13px;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    gap: 18px;
    margin-bottom: 26px;
}

.inline-filter {
    display: flex;
    gap: 10px;
}

.inline-filter input {
    flex: 1;
}

.filter-pill {
    color: #7f1d1d;
    background: #fff1f2;
}

.filter-pill.active,
.filter-pill:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-orange));
}

.result-note {
    min-height: 24px;
    margin: 0 0 16px;
    color: var(--muted);
    font-weight: 800;
}

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

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

.ranking-aside {
    position: sticky;
    top: 98px;
    padding: 22px;
}

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

.ranking-aside a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
}

.ranking-aside a:hover {
    background: #fff1f2;
}

.ranking-aside span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--brand);
    font-weight: 900;
    grid-row: span 2;
}

.ranking-aside strong,
.ranking-aside em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-aside em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: blur(10px) saturate(1.2);
    transform: scale(1.08);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(127, 29, 29, 0.66));
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    background: #111827;
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    margin: 20px 0 16px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.detail-info p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.detail-tags {
    margin: 24px 0 28px;
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-card {
    padding: 16px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.3), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: #ffffff;
    font-size: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.player-cover strong {
    max-width: min(520px, 90%);
    font-size: clamp(22px, 3vw, 34px);
}

.player-cover em {
    color: #fed7aa;
    font-style: normal;
    font-weight: 900;
}

.content-card,
.side-card {
    padding: 24px;
}

.content-card p {
    margin: 0;
    font-size: 17px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: #111827;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    background: #fff1f2;
    transform: translateX(3px);
}

.related-card img {
    aspect-ratio: 3 / 4;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: #111827;
}

.related-card span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-card strong,
.related-card em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.nav-neighbor a {
    border-radius: 14px;
    padding: 12px 14px;
    color: #7f1d1d;
    background: #fff1f2;
    font-weight: 900;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #111827, #0f172a);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.footer-brand {
    color: #ffffff;
    font-size: 20px;
}

.footer-brand-block p {
    max-width: 420px;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

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

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

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

    .header-search {
        display: none;
    }
}

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

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .quick-panel,
    .ranking-layout,
    .detail-layout,
    .footer-inner,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-aside {
        position: static;
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 68px;
        padding: 0 16px;
    }

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

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 78px 18px 100px;
    }

    .page-section,
    .tinted-section,
    .dark-section {
        padding: 42px 16px;
    }

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

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

    .movie-card-desc,
    .movie-tags {
        display: none;
    }

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

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

    .category-samples {
        display: none;
    }

    .large-search,
    .inline-filter {
        flex-direction: column;
    }

    .sub-hero > div {
        padding: 62px 16px;
    }

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

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

    .detail-inner {
        padding: 32px 16px 44px;
    }

    .player-card {
        padding: 8px;
    }
}
