:root {
    color-scheme: dark;
    --bg: #050816;
    --bg-soft: #0b1022;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #aab6c9;
    --accent: #f97316;
    --accent-2: #ec4899;
    --accent-3: #8b5cf6;
    --radius: 24px;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
    --poster-image: linear-gradient(135deg, #1e1b4b, #111827);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 30rem),
        linear-gradient(180deg, #050816 0%, #080b17 48%, #0f172a 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    line-height: 1.7;
}

body.is-menu-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 8, 22, 0.8);
    backdrop-filter: blur(22px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr minmax(240px, 340px);
    gap: 24px;
    align-items: center;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    box-shadow: 0 14px 36px rgba(236, 72, 153, 0.32);
}

.main-nav {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.header-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.header-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 8px 8px 8px 14px;
}

.header-search input::placeholder {
    color: rgba(226, 232, 240, 0.58);
}

.header-search button,
.primary-button,
.ghost-button,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.header-search button,
.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.24);
}

.header-search button {
    padding: 8px 16px;
}

.primary-button,
.ghost-button,
.more-link {
    min-height: 46px;
    padding: 12px 20px;
}

.ghost-button,
.more-link {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    place-items: center;
    gap: 4px;
    padding: 10px;
}

.menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

main {
    overflow: hidden;
}

.hero-shell {
    position: relative;
    min-height: 76vh;
    margin: 22px auto 0;
    width: min(1440px, calc(100% - 40px));
    border: 1px solid var(--line);
    border-radius: 36px;
    overflow: hidden;
    background: #080b17;
    box-shadow: var(--shadow);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
    background:
        linear-gradient(90deg, rgba(5, 8, 22, 0.94) 0%, rgba(5, 8, 22, 0.72) 42%, rgba(5, 8, 22, 0.3) 100%),
        linear-gradient(180deg, transparent 0%, rgba(5, 8, 22, 0.88) 100%),
        var(--poster-image),
        radial-gradient(circle at 72% 24%, rgba(236, 72, 153, 0.32), transparent 22rem),
        linear-gradient(135deg, #111827, #312e81);
    background-size: cover;
    background-position: center;
}

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

.hero-copy {
    width: min(760px, 100%);
    padding: clamp(32px, 7vw, 92px);
}

.eyebrow,
.section-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fed7aa;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
    margin: 18px 0 16px;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-copy h1 {
    font-size: clamp(42px, 8vw, 86px);
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: #dbe4f0;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.tag-row,
.tag-cloud,
.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.tag-cloud span,
.meta-pills span {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 5px 10px;
    font-size: 12px;
}

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

.hero-panel {
    position: absolute;
    right: 28px;
    bottom: 28px;
    display: grid;
    gap: 16px;
    width: min(360px, calc(100% - 56px));
}

.hero-indicators {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hero-indicators button {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-indicators button.is-active {
    background: #fff;
}

.hero-mini-list {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.hero-mini-list span {
    color: #fed7aa;
    font-size: 13px;
    font-weight: 900;
}

.hero-mini-list a {
    color: #f8fafc;
    font-weight: 700;
}

.section-block,
.category-strip,
.feature-links {
    width: min(1440px, calc(100% - 40px));
    margin: 76px auto 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading.centered span {
    margin-inline: auto;
}

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

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

.centered p {
    margin-inline: auto;
}

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

.category-tile {
    min-height: 174px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 10rem),
        rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.54);
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.24), transparent 12rem),
        rgba(255, 255, 255, 0.1);
}

.category-tile span {
    color: #fed7aa;
    font-size: 13px;
    font-weight: 900;
}

.category-tile strong {
    font-size: 22px;
    line-height: 1.2;
}

.category-tile em {
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

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

.movie-card {
    display: grid;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(255, 255, 255, 0.09);
}

.poster-frame,
.compact-poster,
.ranking-poster,
.detail-cover {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.88)),
        var(--poster-image),
        linear-gradient(135deg, #312e81, #881337 48%, #7c2d12);
    background-size: cover;
    background-position: center;
}

.poster-frame {
    position: relative;
    min-height: 260px;
    overflow: hidden;
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.poster-year,
.poster-type,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-year {
    left: 12px;
    top: 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.poster-type {
    right: 12px;
    top: 12px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.88);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    display: grid;
    place-items: center;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.movie-card-body {
    display: grid;
    gap: 8px;
    padding: 15px;
}

.movie-card-body strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
}

.movie-card-body em,
.compact-card em,
.ranking-info em {
    color: #fed7aa;
    font-style: normal;
    font-size: 13px;
}

.movie-card-line,
.ranking-info small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    min-height: 27px;
}

.home-rank {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 26px;
    align-items: start;
}

.rank-preview,
.ranking-list,
.feature-link-grid,
.detail-content,
.compact-grid {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

.rank-preview {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.rank-preview-row,
.ranking-row,
.feature-link-grid a {
    display: grid;
    align-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-preview-row {
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    padding: 12px;
}

.rank-preview-row:hover,
.ranking-row:hover,
.feature-link-grid a:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
}

.rank-preview-row span,
.ranking-num {
    color: #fed7aa;
    font-weight: 900;
}

.rank-preview-row em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.more-link {
    margin-top: 4px;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
    border-radius: 18px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.045);
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.compact-poster {
    width: 72px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.compact-card span:last-child {
    min-width: 0;
}

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

.page-hero,
.detail-hero {
    width: min(1440px, calc(100% - 40px));
    margin: 22px auto 0;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background:
        linear-gradient(90deg, rgba(5, 8, 22, 0.96), rgba(15, 23, 42, 0.72)),
        var(--poster-image),
        linear-gradient(135deg, #111827, #4c1d95);
    background-size: cover;
    background-position: center;
}

.page-hero {
    display: grid;
    align-items: end;
    min-height: 390px;
    padding: clamp(30px, 6vw, 72px);
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.feature-link-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.feature-link-grid a {
    gap: 8px;
    min-height: 104px;
    padding: 16px;
}

.feature-link-grid strong,
.feature-link-grid span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feature-link-grid span {
    color: var(--muted);
    font-size: 13px;
}

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

.ranking-list {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.ranking-row {
    grid-template-columns: 72px 72px 1fr auto;
    gap: 14px;
    padding: 10px 14px;
}

.ranking-poster {
    width: 72px;
    aspect-ratio: 16 / 11;
    border-radius: 14px;
}

.ranking-info {
    min-width: 0;
}

.ranking-info strong,
.ranking-info em,
.ranking-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-action {
    color: #fed7aa;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: clamp(22px, 4vw, 46px);
    align-items: end;
    padding: clamp(26px, 5vw, 68px);
}

.detail-cover {
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    position: relative;
    overflow: hidden;
}

.detail-cover span {
    position: absolute;
    left: 14px;
    top: 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.56);
    padding: 6px 11px;
    font-weight: 900;
}

.detail-intro h1 {
    font-size: clamp(42px, 7vw, 82px);
}

.breadcrumb {
    display: inline-flex;
    color: #fed7aa;
    font-weight: 900;
}

.player-zone,
.detail-content {
    width: min(1440px, calc(100% - 40px));
    margin: 32px auto 0;
}

.player-frame {
    position: relative;
    min-height: clamp(280px, 56vw, 760px);
    border: 1px solid var(--line);
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(5, 8, 22, 0.2), rgba(5, 8, 22, 0.72)),
        var(--poster-image),
        #020617;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.player-zone.is-playing .video-player {
    opacity: 1;
}

.play-button {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    gap: 10px;
    min-width: 132px;
    min-height: 132px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 26px 74px rgba(0, 0, 0, 0.34);
}

.play-button span {
    font-size: 34px;
    line-height: 1;
}

.play-button strong {
    font-size: 15px;
}

.player-zone.is-playing .play-button {
    display: none;
}

.player-message {
    position: absolute;
    z-index: 4;
    left: 24px;
    right: 24px;
    bottom: 22px;
    color: #fed7aa;
    text-align: center;
    font-weight: 800;
    pointer-events: none;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 26px;
    padding: clamp(22px, 4vw, 36px);
}

.detail-content article,
.detail-content aside {
    min-width: 0;
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.25;
}

.detail-content p {
    margin: 0 0 26px;
    color: #dbe4f0;
}

dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 14px;
    margin: 0 0 22px;
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    color: #f8fafc;
}

.site-footer {
    margin-top: 86px;
    border-top: 1px solid var(--line);
    background: rgba(5, 8, 22, 0.68);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0;
    color: var(--muted);
}

.footer-inner strong {
    display: block;
    color: var(--text);
    font-size: 20px;
}

.footer-inner p {
    margin: 6px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #e2e8f0;
}

.search-empty {
    grid-column: 1 / -1;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 1180px) {
    .header-inner {
        grid-template-columns: auto auto 1fr;
    }

    .main-nav {
        position: fixed;
        inset: 74px 20px auto;
        display: none;
        max-height: calc(100vh - 100px);
        flex-wrap: wrap;
        overflow-y: auto;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(15, 23, 42, 0.96);
        box-shadow: var(--shadow);
    }

    body.is-menu-open .main-nav {
        display: flex;
    }

    .menu-button {
        display: grid;
    }

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

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

    .home-rank,
    .detail-content,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        width: min(320px, 72vw);
    }

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

@media (max-width: 760px) {
    .header-inner {
        width: min(100% - 28px, 1440px);
        grid-template-columns: 1fr auto;
    }

    .header-search {
        grid-column: 1 / -1;
    }

    .hero-shell,
    .section-block,
    .category-strip,
    .feature-links,
    .page-hero,
    .detail-hero,
    .player-zone,
    .detail-content,
    .footer-inner {
        width: min(100% - 28px, 1440px);
    }

    .hero-shell {
        min-height: 680px;
        border-radius: 28px;
    }

    .hero-copy {
        padding: 28px;
    }

    .hero-panel {
        left: 18px;
        right: 18px;
        bottom: 18px;
        width: auto;
    }

    .hero-mini-list {
        display: none;
    }

    .movie-grid,
    .category-grid,
    .feature-link-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .poster-frame {
        min-height: 330px;
    }

    .rank-preview-row,
    .ranking-row {
        grid-template-columns: 46px 1fr;
    }

    .ranking-poster,
    .ranking-action {
        display: none;
    }

    .detail-content {
        padding: 20px;
    }

    .footer-inner {
        display: grid;
    }
}
