:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #111827;
    --panel-2: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #f97316;
    --accent-2: #f59e0b;
    --accent-3: #ef4444;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 4%, rgba(249, 115, 22, 0.18), transparent 30rem),
        radial-gradient(circle at 90% 0%, rgba(239, 68, 68, 0.12), transparent 28rem),
        var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
}

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

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

button,
input,
select {
    font: inherit;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 15px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.25);
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: white;
    background: rgba(249, 115, 22, 0.16);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: white;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-track,
.hero-slide {
    min-height: 680px;
}

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

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.62);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.76) 46%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.04) 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 680px;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 74px 0 82px;
}

.hero-copy {
    max-width: 700px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fed7aa;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.6rem, 8vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 720px;
}

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

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

.hero-tags span,
.tag-row span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.12);
    font-size: 0.78rem;
    font-style: normal;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.25);
}

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

.btn:hover {
    transform: translateY(-2px);
}

.hero-poster,
.side-poster,
.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.9));
    box-shadow: var(--shadow);
}

.hero-poster {
    aspect-ratio: 3 / 4.2;
    transform: rotate(2deg);
}

.hero-poster img,
.side-poster img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-poster:hover img,
.side-poster:hover img,
.detail-poster:hover img,
.movie-card:hover img,
.category-card:hover img,
.collection-card:hover img {
    transform: scale(1.06);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    letter-spacing: -0.035em;
}

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

.movie-grid {
    display: grid;
    gap: 18px;
}

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

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

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

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

.poster-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.23);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.movie-card:hover .poster-link {
    border-color: rgba(249, 115, 22, 0.42);
    background: rgba(30, 41, 59, 0.86);
    transform: translateY(-4px);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(15, 23, 42, 0.94));
}

.movie-card.large .poster-frame {
    aspect-ratio: 16 / 11;
}

.movie-card.small .poster-frame {
    aspect-ratio: 3 / 4;
}

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

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(249, 115, 22, 0.94);
    font-size: 0.8rem;
    font-weight: 900;
}

.card-copy {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.card-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: white;
    font-size: 1.02rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-copy em,
.card-desc {
    color: var(--muted);
    font-size: 0.86rem;
    font-style: normal;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 36px;
    align-items: start;
}

.category-grid,
.collection-grid {
    display: grid;
    gap: 16px;
}

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

.category-card {
    position: relative;
    display: grid;
    min-height: 158px;
    overflow: hidden;
    align-content: end;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.8);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.14));
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card span,
.category-card em {
    position: relative;
    z-index: 1;
}

.category-card span {
    font-size: 1.08rem;
    font-weight: 900;
}

.category-card em {
    color: #fed7aa;
    font-size: 0.84rem;
    font-style: normal;
}

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

.latest-row,
.rank-row {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.latest-row {
    grid-template-columns: 42px 78px minmax(0, 1fr) auto;
    padding: 10px 14px;
}

.latest-row:hover,
.rank-row:hover {
    border-color: rgba(249, 115, 22, 0.38);
    background: rgba(30, 41, 59, 0.86);
    transform: translateX(4px);
}

.latest-rank,
.rank-number,
.rank-score {
    color: #fed7aa;
    font-weight: 900;
}

.latest-row img,
.rank-row img {
    width: 78px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
}

.latest-text,
.rank-info {
    display: grid;
    min-width: 0;
}

.latest-text strong,
.rank-info strong {
    overflow: hidden;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-text em,
.rank-info em,
.rank-info small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
}

.latest-play {
    padding: 7px 12px;
    border-radius: 999px;
    color: white;
    background: rgba(249, 115, 22, 0.88);
    font-size: 0.84rem;
    font-weight: 900;
}

.cta-panel,
.page-hero,
.detail-hero,
.search-panel,
.article-card,
.info-card {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.62));
    box-shadow: var(--shadow);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
}

.cta-panel h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.cta-panel p {
    margin: 10px 0 0;
    color: var(--muted);
}

.page-shell {
    padding: 34px 0 72px;
}

.page-hero {
    display: grid;
    gap: 22px;
    margin: 22px 0 34px;
    padding: clamp(26px, 5vw, 50px);
}

.page-hero.compact h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.page-hero.with-poster {
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
}

.side-poster {
    aspect-ratio: 3 / 4;
}

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

.collection-card {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.collection-card:hover {
    border-color: rgba(249, 115, 22, 0.42);
    transform: translateY(-4px);
}

.collection-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.collection-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.collection-copy {
    display: grid;
    gap: 4px;
    padding: 16px;
}

.collection-copy strong {
    font-size: 1.06rem;
}

.collection-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.86rem;
}

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

.rank-row {
    grid-template-columns: 46px 96px minmax(0, 1fr) 62px;
    padding: 12px 16px;
}

.rank-row img {
    width: 96px;
    height: 64px;
}

.rank-score {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    background: rgba(249, 115, 22, 0.14);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 180px 160px 160px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 18px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: white;
    background: rgba(2, 6, 23, 0.65);
    outline: none;
    padding: 0 14px;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: rgba(249, 115, 22, 0.55);
}

.search-panel option {
    color: #0f172a;
}

.empty-state {
    margin: 30px 0 0;
    padding: 26px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: clamp(24px, 4vw, 42px);
}

.detail-poster {
    aspect-ratio: 3 / 4.15;
}

.detail-copy h1 {
    font-size: clamp(2rem, 6vw, 4.6rem);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.tag-cloud {
    margin-top: 20px;
}

.player-section {
    padding: 34px 0;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: black;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player video {
    display: block;
    width: 100%;
    height: 100%;
    background: black;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: white;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.22)),
        var(--poster-image) center / cover;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.36);
    font-size: 2rem;
}

.player-cover strong {
    max-width: 80%;
    font-size: clamp(1.2rem, 3vw, 2.1rem);
    text-align: center;
}

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

.article-card,
.info-card {
    padding: clamp(22px, 3vw, 30px);
}

.article-card h2,
.info-card h2 {
    margin: 0 0 18px;
    font-size: 1.45rem;
}

.article-card p {
    margin: 0 0 14px;
    color: #dbeafe;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-card dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.info-card dd {
    margin: -8px 0 0;
    color: white;
}

.info-card a {
    color: #fed7aa;
}

.article-card.wide {
    max-width: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.78);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 0 20px;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 900;
}

.footer-inner p,
.footer-copy {
    margin: 0;
    color: var(--muted);
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
    color: white;
    background: rgba(249, 115, 22, 0.18);
}

.footer-copy {
    padding: 0 0 30px;
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    .featured-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 76px;
        display: none;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        border-radius: 14px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .two-column-layout,
    .detail-layout,
    .detail-hero,
    .page-hero.with-poster,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: grid;
    }

    .detail-poster,
    .side-poster {
        width: min(260px, 74vw);
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

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

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

    .hero-content {
        min-height: 650px;
        padding: 52px 0 76px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-copy p {
        font-size: 0.98rem;
    }

    .card-copy {
        padding: 12px;
    }

    .card-desc,
    .tag-row {
        display: none;
    }

    .latest-row {
        grid-template-columns: 34px 64px minmax(0, 1fr);
    }

    .latest-play {
        display: none;
    }

    .rank-row {
        grid-template-columns: 34px 72px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .rank-row img {
        width: 72px;
        height: 54px;
    }

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

    .cta-panel {
        display: grid;
        padding: 24px;
    }

    .movie-player {
        border-radius: 18px;
    }

    .play-button {
        width: 68px;
        height: 68px;
        font-size: 1.6rem;
    }
}

@media (max-width: 430px) {
    .compact-grid,
    .featured-grid,
    .related-grid,
    .category-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }
}
