:root {
    --bg: #0a0a0a;
    --bg-soft: #111111;
    --panel: #171717;
    --panel-2: #202020;
    --line: #2d2d2d;
    --muted: #a3a3a3;
    --text: #f8fafc;
    --accent: #dc2626;
    --accent-dark: #991b1b;
    --accent-soft: rgba(220, 38, 38, 0.18);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
    --radius: 22px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(127, 29, 29, 0.22), transparent 42rem),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

body,
button,
input,
select {
    font: inherit;
}

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

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

button,
select,
input {
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner,
.footer-inner,
.section-wrap,
.page-hero,
.detail-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

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

.brand-text {
    font-size: 1.18rem;
}

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

.nav-link {
    color: #d4d4d4;
    font-size: 0.94rem;
    transition: color 0.25s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px;
}

.nav-search input {
    width: 190px;
    background: transparent;
    color: #fff;
    outline: none;
    padding: 7px 8px 7px 14px;
}

.nav-search button,
.primary-btn,
.ghost-btn {
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-search button,
.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.nav-search button {
    padding: 8px 14px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.nav-search button:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.18), #0a0a0a 92%),
        radial-gradient(circle at 68% 22%, rgba(220, 38, 38, 0.32), transparent 28rem);
}

.hero-track {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.52fr);
    gap: 52px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 18px -80px 18px auto;
    width: min(620px, 58vw);
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.48)),
        var(--hero-image) center / cover no-repeat;
    filter: blur(18px) saturate(1.1);
    opacity: 0.48;
    border-radius: 48px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fecaca;
    background: var(--accent-soft);
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 720px;
    color: #d4d4d4;
    font-size: 1.08rem;
    line-height: 1.9;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.hero-meta span,
.detail-meta span {
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
}

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

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hero-poster span {
    position: absolute;
    inset: auto 22px 22px auto;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

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

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

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

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

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

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

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-article h2,
.detail-aside h2 {
    margin: 12px 0 0;
    letter-spacing: -0.04em;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.section-head p,
.page-hero p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 720px;
}

.section-head > a {
    color: #fca5a5;
    font-weight: 700;
}

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

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

.movie-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(248, 113, 113, 0.38);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36), 0 0 22px rgba(220, 38, 38, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    background: #18181b;
    overflow: hidden;
}

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

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

.movie-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.74);
    color: #fff;
    font-size: 0.78rem;
    backdrop-filter: blur(8px);
}

.movie-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: #f87171;
}

.movie-meta,
.movie-one {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.movie-one {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.1em;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-row span {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.18);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.74rem;
}

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

.category-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 20px;
    min-height: 188px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(248, 113, 113, 0.35);
}

.category-card span {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.category-card strong {
    display: block;
    margin-top: 10px;
    color: #d4d4d4;
    line-height: 1.65;
    font-weight: 500;
}

.category-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-card div a {
    color: #fecaca;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 5px 8px;
    border-radius: 999px;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.rank-cover img {
    width: 72px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-number {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #ef4444, #7f1d1d);
    border-radius: 14px;
    padding: 10px 0;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.rank-info h3 a:hover {
    color: #f87171;
}

.rank-info p,
.rank-info span {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.page-hero {
    margin-top: 44px;
    padding: 72px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.78), rgba(23, 23, 23, 0.92)),
        radial-gradient(circle at 78% 15%, rgba(248, 113, 113, 0.34), transparent 26rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    line-height: 1.02;
}

.slim-hero,
.category-hero,
.ranking-hero {
    min-height: 310px;
}

.filter-panel {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 20px;
}

.filter-panel input,
.filter-panel select {
    color: #fff;
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
}

.filter-panel input {
    flex: 1;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 42px;
}

.stacked-panels {
    display: grid;
    gap: 34px;
}

.category-panel {
    padding: 28px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    margin-top: 48px;
    padding: 38px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.68), rgba(23, 23, 23, 0.92)),
        radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.28), transparent 22rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

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

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

.detail-info h1 {
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1.02;
}

.detail-one {
    color: #e5e5e5;
    line-height: 1.9;
    font-size: 1.05rem;
    max-width: 820px;
}

.watch-section {
    scroll-margin-top: 90px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow);
}

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

.video-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
    cursor: pointer;
}

.video-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 20px 42px rgba(220, 38, 38, 0.35);
    font-size: 2rem;
}

.video-start strong {
    font-size: 1.12rem;
}

.player-shell.is-playing .video-start {
    display: none;
}

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

.detail-article,
.detail-aside {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
}

.detail-article h2,
.detail-aside h2 {
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.detail-article p {
    color: #d4d4d4;
    line-height: 2;
    margin: 0 0 28px;
}

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

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.info-list strong {
    color: #fff;
}

.info-list span {
    color: var(--muted);
    text-align: right;
}

.mini-rank .rank-item {
    grid-template-columns: 56px minmax(0, 1fr);
}

.mini-rank .rank-number {
    display: none;
}

.mini-rank .rank-cover img {
    width: 56px;
    height: 78px;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 12, 12, 0.92);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 38px;
    padding: 46px 0;
}

.footer-brand p,
.footer-links a,
.footer-tags span {
    color: var(--muted);
    line-height: 1.8;
}

.footer-links h2,
.footer-tags h2 {
    font-size: 1rem;
    margin: 0 0 14px;
}

.footer-links div,
.footer-tags div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a,
.footer-tags span {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(220, 38, 38, 0.22);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 32px;
    color: #737373;
    font-size: 0.9rem;
}

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

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

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

    .nav-search {
        display: none;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 0 6px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero-slider,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
        padding: 42px 0 82px;
    }

    .hero-poster {
        max-width: 300px;
        margin: 0 auto;
    }

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

    .detail-cover {
        max-width: 320px;
        margin: 0 auto;
    }

    .page-hero {
        padding: 42px 24px;
    }

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

@media (max-width: 620px) {
    .movie-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .section-head,
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .rank-item {
        grid-template-columns: 62px 42px minmax(0, 1fr);
    }

    .rank-cover img {
        width: 62px;
        height: 88px;
    }

    .detail-hero,
    .category-panel,
    .detail-article,
    .detail-aside {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-copy h1,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.05em;
    }
}
