:root {
    color-scheme: light;
    --page-bg: #f8fafc;
    --page-bg-alt: #eff6ff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --text-soft: #94a3b8;
    --brand-red: #dc2626;
    --brand-orange: #f97316;
    --brand-yellow: #facc15;
    --card-bg: #ffffff;
    --border-soft: rgba(148, 163, 184, 0.24);
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 22px 48px rgba(15, 23, 42, 0.18);
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(248, 113, 113, 0.12), transparent 30rem),
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 52%, #f1f5f9 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.header-row {
    min-height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border-radius: 0.85rem;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.28);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-title {
    margin: 0;
    font-size: clamp(1.25rem, 1.6vw, 1.75rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: transparent;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand-subtitle {
    margin: 0.1rem 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    color: #374151;
    font-weight: 700;
}

.primary-nav a {
    position: relative;
    transition: color 0.25s ease;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.35rem;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-orange));
    transition: right 0.25s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--brand-red);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
    right: 0;
}

.mobile-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 0.8rem;
    color: var(--text-main);
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 0 1rem;
    border-top: 1px solid var(--border-soft);
}

.mobile-nav a {
    display: block;
    padding: 0.85rem 0;
    font-weight: 700;
    color: #374151;
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.hero-slide.image-fallback {
    background:
        radial-gradient(circle at 18% 20%, rgba(248, 113, 113, 0.32), transparent 20rem),
        radial-gradient(circle at 78% 16%, rgba(249, 115, 22, 0.28), transparent 18rem),
        linear-gradient(135deg, #020617, #7f1d1d 54%, #111827);
}

.hero-slide.image-fallback::before {
    content: attr(data-title);
    position: absolute;
    right: clamp(1.5rem, 8vw, 7rem);
    top: 18%;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.10)),
        linear-gradient(90deg, rgba(2, 6, 23, 0.68), transparent 70%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: clamp(2rem, 5vw, 4rem) 0;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--brand-yellow);
    font-weight: 800;
}

.hero-title {
    max-width: 780px;
    margin: 0 0 1rem;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

.hero-description {
    max-width: 720px;
    margin: 0 0 1.4rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 1.35rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.30);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.20);
}

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

.hero-dot {
    width: 0.6rem;
    height: 0.6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 2.1rem;
    background: #fff;
}

.page-section {
    margin: 4rem 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: #1f2937;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-title .icon {
    display: inline-grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.8rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.section-desc {
    max-width: 48rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.section-link {
    color: var(--brand-red);
    font-weight: 900;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 30% 15%, rgba(248, 113, 113, 0.26), transparent 9rem),
        linear-gradient(135deg, #111827, #7f1d1d);
    box-shadow: var(--shadow-soft);
    transform: translateZ(0);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 58%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.poster-wrap.image-fallback::before {
    content: attr(data-title);
    position: absolute;
    inset: auto 1rem 1rem;
    z-index: 2;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1.25;
}

.movie-card:hover .poster-wrap {
    transform: translateY(-4px) scale(1.025);
    box-shadow: var(--shadow-strong);
}

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

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

.badge {
    position: absolute;
    z-index: 4;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    padding: 0.2rem 0.55rem;
    border-radius: 0.45rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    background: var(--brand-red);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.28);
}

.badge.left {
    left: 0.65rem;
    right: auto;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
}

.play-float {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-float span {
    display: grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 999px;
    color: var(--brand-red);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.movie-card:hover .play-float {
    opacity: 1;
}

.card-title {
    margin: 0.85rem 0 0.25rem;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.32;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

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

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.card-desc {
    margin: 0.45rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-panel {
    border-radius: 2rem;
    padding: clamp(1.4rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 247, 237, 0.96));
    box-shadow: var(--shadow-soft);
}

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

.category-card {
    display: block;
    min-height: 9.5rem;
    padding: 1.35rem;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 900;
}

.category-card span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.category-card em {
    display: inline-flex;
    margin-top: 1rem;
    color: var(--brand-red);
    font-style: normal;
    font-weight: 900;
}

.feature-list {
    display: grid;
    gap: 1rem;
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(14rem, 24rem) 1fr;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.feature-poster {
    position: relative;
    min-height: 14rem;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.feature-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-index {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: var(--brand-red);
}

.feature-body {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.feature-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
    font-weight: 900;
}

.feature-body p {
    color: var(--text-muted);
    margin: 0.65rem 0 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    color: var(--brand-red);
    font-size: 0.8rem;
    font-weight: 800;
    background: #fee2e2;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: 1.5rem;
}

.rank-list {
    display: grid;
    gap: 0.85rem;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 5rem 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.rank-no {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-orange));
}

.rank-thumb {
    width: 5rem;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #111827;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    margin: 0;
    font-weight: 900;
    color: #1f2937;
}

.rank-desc {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.8rem;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.search-input,
.search-select {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 0.78rem 1rem;
    color: #1f2937;
    background: #fff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.search-select:focus {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.result-count {
    color: var(--text-muted);
    font-weight: 800;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

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

.detail-player-shell {
    background: #000;
}

.detail-player {
    position: relative;
    width: min(100%, 1180px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 50% 0%, rgba(220, 38, 38, 0.22), transparent 22rem),
        #000;
}

.detail-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: background 0.2s ease;
}

.player-overlay[hidden] {
    display: none;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: clamp(4rem, 9vw, 6.2rem);
    height: clamp(4rem, 9vw, 6.2rem);
    border-radius: 999px;
    color: #fff;
    background: var(--brand-red);
    box-shadow: 0 14px 36px rgba(220, 38, 38, 0.40);
    transition: transform 0.25s ease;
}

.player-overlay:hover {
    background: rgba(0, 0, 0, 0.38);
}

.player-overlay:hover span {
    transform: scale(1.08);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(19rem, 0.9fr);
    gap: 1.5rem;
    align-items: start;
    margin: 2rem 0 4rem;
}

.panel {
    border-radius: var(--radius-2xl);
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-title {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.detail-meta span {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    color: #991b1b;
    font-weight: 800;
    background: #fee2e2;
}

.content-block {
    margin-top: 1.5rem;
}

.content-block h2 {
    margin: 0 0 0.65rem;
    font-size: 1.3rem;
    font-weight: 900;
}

.content-block p {
    margin: 0;
    color: #4b5563;
    line-height: 1.85;
}

.side-poster {
    overflow: hidden;
    border-radius: 1.25rem;
    aspect-ratio: 2 / 3;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

.side-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-footer {
    margin-top: 5rem;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #7f1d1d 55%, #1e293b);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-title {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 900;
    color: #fecaca;
}

.footer-text,
.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.utility-page {
    max-width: 900px;
    margin: 3rem auto;
}

.utility-page h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.utility-page p,
.utility-page li {
    color: #4b5563;
    line-height: 1.9;
}

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

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

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .hero {
        height: 520px;
    }

    .hero-dots {
        bottom: 1rem;
    }

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

    .feature-row,
    .rank-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: auto 4rem 1fr;
    }

    .rank-item .btn {
        grid-column: 1 / -1;
    }

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

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 1.25rem, var(--container));
    }

    .header-row {
        min-height: 4.4rem;
    }

    .brand-mark {
        width: 2.35rem;
        height: 2.35rem;
    }

    .brand-title {
        font-size: 1.15rem;
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        height: 500px;
    }

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

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

    .feature-poster {
        min-height: 11rem;
    }

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