* {
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --bg-soft: #0e0e12;
    --panel: rgba(19, 19, 24, 0.82);
    --panel-strong: rgba(24, 24, 30, 0.94);
    --text: #f8fafc;
    --muted: #9ca3af;
    --muted-2: #d1d5db;
    --line: rgba(255, 255, 255, 0.1);
    --orange: #f97316;
    --red: #dc2626;
    --yellow: #fbbf24;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(249, 115, 22, 0.14), transparent 32rem),
        radial-gradient(circle at 85% 0%, rgba(220, 38, 38, 0.13), transparent 35rem),
        var(--bg);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-shell {
    width: min(1240px, calc(100% - 32px));
    height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand {
    font-size: 21px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-link {
    color: var(--muted-2);
    border-radius: 999px;
    transition: 0.22s ease;
}

.nav-link {
    padding: 9px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #fff;
    background: rgba(249, 115, 22, 0.16);
}

.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    min-width: 300px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
}

.nav-search input {
    padding: 11px 16px;
}

.nav-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.nav-search button {
    padding: 11px 18px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel-strong);
}

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

.mobile-link {
    padding: 10px 12px;
}

.mobile-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.mobile-search input {
    padding: 11px 14px;
}

.mobile-search button {
    padding: 11px 16px;
}

main {
    min-height: 70vh;
}

.hero-carousel {
    width: min(1240px, calc(100% - 32px));
    margin: 30px auto 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.65fr);
    gap: 24px;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: #111;
    box-shadow: var(--shadow);
}

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

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

.hero-slide img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.72) 43%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.92), transparent 45%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    right: clamp(24px, 14vw, 180px);
    bottom: clamp(36px, 7vw, 86px);
    z-index: 2;
}

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-badge {
    margin-bottom: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(249, 115, 22, 0.48);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.16);
    backdrop-filter: blur(14px);
}

.hero-content h1,
.detail-info h1,
.page-hero h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-content h1 {
    max-width: 720px;
    font-size: clamp(42px, 7vw, 82px);
}

.hero-content p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #e5e7eb;
    font-size: clamp(17px, 2.1vw, 22px);
}

.hero-tags,
.detail-meta,
.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-tags span,
.detail-meta span,
.tag-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #f3f4f6;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.22s ease;
}

.primary-btn {
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.25);
}

.ghost-btn {
    padding: 0 22px;
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 30px;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.hero-side {
    display: grid;
    gap: 22px;
}

.side-card,
.article-card,
.filter-panel,
.category-entry,
.player-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.side-card {
    padding: 24px;
}

.intro-card h2,
.mini-list h2,
.section-heading h2,
.article-card h2 {
    margin: 8px 0 0;
    line-height: 1.15;
}

.intro-card p,
.section-heading p,
.article-card p,
.category-entry p,
.category-card p,
.page-hero p,
.footer-grid p {
    color: var(--muted);
}

.hero-search {
    display: flex;
    margin-top: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-search input {
    padding: 13px 16px;
}

.hero-search button {
    padding: 13px 20px;
}

.mini-grid {
    display: grid;
    gap: 14px;
}

.content-section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 64px;
}

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 46px);
}

.section-heading p {
    max-width: 720px;
    margin: 10px 0 0;
}

.section-more,
.text-link {
    color: #fff;
    padding: 0 18px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    background: rgba(249, 115, 22, 0.12);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.56);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111;
}

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

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

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.3);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 34px;
    min-height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-style: normal;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h3 {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    border-radius: 18px;
}

.compact-card .poster-link {
    aspect-ratio: 2 / 3;
}

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

.compact-card .movie-card h3,
.compact-card h3 {
    font-size: 15px;
}

.compact-card p,
.compact-card .tag-line {
    display: none;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
}

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

.category-card:hover img {
    opacity: 0.45;
    transform: scale(1.06);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    display: block;
    margin-top: 72px;
    font-size: 24px;
    font-weight: 900;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    transition: 0.22s ease;
}

.rank-row:hover {
    border-color: rgba(249, 115, 22, 0.45);
    transform: translateX(4px);
}

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

.rank-num {
    color: var(--yellow);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

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

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 32px auto 50px;
    padding: clamp(36px, 7vw, 82px);
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(220, 38, 38, 0.12)),
        rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(36px, 6vw, 72px);
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 18px;
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.6fr);
    gap: 22px;
    align-items: center;
}

.category-highlight-grid {
    display: grid;
    gap: 12px;
}

.filter-panel {
    margin-bottom: 24px;
    padding: 18px;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.32fr));
    gap: 14px;
}

.filter-grid label {
    display: grid;
    gap: 6px;
    color: var(--muted-2);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.filter-panel option {
    color: #111;
}

.category-entry-grid {
    display: grid;
    gap: 22px;
}

.category-entry {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
}

.category-cover-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-cover-row img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.category-entry h2 {
    margin: 8px 0;
    font-size: clamp(24px, 3vw, 36px);
}

.detail-hero {
    min-height: 600px;
    margin-bottom: 48px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(2px);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.55)),
        linear-gradient(0deg, var(--bg), transparent 50%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0 44px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #fed7aa;
}

.detail-info h1 {
    margin-top: 16px;
    font-size: clamp(40px, 6vw, 78px);
}

.one-line {
    max-width: 790px;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 22px);
}

.detail-meta,
.detail-tags {
    margin-top: 18px;
}

.player-section,
.detail-content {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 58px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.35);
}

.play-overlay strong {
    font-size: 20px;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

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

.article-card {
    padding: clamp(22px, 4vw, 34px);
}

.article-card h2 {
    font-size: clamp(24px, 3vw, 36px);
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.4);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 0.6fr 0.8fr;
    gap: 28px;
}

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

.footer-grid h3 {
    margin: 0 0 12px;
}

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

.footer-links a {
    color: var(--muted-2);
}

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

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

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

@media (max-width: 1040px) {
    .main-nav,
    .nav-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-carousel,
    .category-hero,
    .detail-shell,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 540px;
    }

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

    .detail-shell {
        padding-top: 44px;
    }

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

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

@media (max-width: 680px) {
    .nav-shell {
        height: 66px;
    }

    .brand {
        font-size: 18px;
    }

    .hero-carousel,
    .content-section,
    .page-hero,
    .player-section,
    .detail-content {
        width: min(100% - 22px, 1240px);
    }

    .hero-stage {
        min-height: 560px;
        border-radius: 24px;
    }

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 62px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading,
    .rank-row {
        display: grid;
    }

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

    .rank-row em {
        grid-column: 3;
    }

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

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p,
    .tag-line {
        font-size: 12px;
    }

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

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

    .page-hero {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .detail-shell {
        width: min(100% - 22px, 1240px);
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .play-overlay span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
