:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --muted: #94a3b8;
    --text: #f8fafc;
    --orange: #f97316;
    --red: #dc2626;
    --blue: #38bdf8;
    --radius: 22px;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(249, 115, 22, 0.2), transparent 34rem),
        radial-gradient(circle at 85% 8%, rgba(220, 38, 38, 0.14), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.34);
}

.logo-text {
    background: linear-gradient(90deg, #fdba74, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 20px;
}

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

.nav-links a,
.mobile-links a {
    padding: 10px 14px;
    color: #cbd5e1;
    border-radius: 12px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover,
.nav-links a.active,
.mobile-links a.active {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.16);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 0 16px;
}

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

.mobile-links {
    display: grid;
    gap: 8px;
}

.hero {
    padding: 34px 0 28px;
}

.hero-shell {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
    gap: 36px;
    align-items: center;
    padding: 68px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(22px) saturate(1.12);
    transform: scale(1.12);
    opacity: 0.36;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.86) 100%),
        radial-gradient(circle at 30% 25%, rgba(249, 115, 22, 0.32), transparent 28rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 13px;
    margin-bottom: 18px;
    border: 1px solid rgba(249, 115, 22, 0.38);
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    color: #fed7aa;
    font-size: 13px;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title {
    margin: 0;
    color: #ffffff;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 0.95;
}

.hero-desc {
    max-width: 650px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.meta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.badge,
.tag,
.rank-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.78);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 750;
}

.badge.hot,
.rank-chip {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.98), rgba(220, 38, 38, 0.98));
    color: #ffffff;
}

.hero-actions,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.74);
    color: #ffffff;
    font-weight: 850;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.94);
}

.btn.primary {
    border: 0;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.32);
}

.btn.primary:hover {
    box-shadow: 0 22px 50px rgba(249, 115, 22, 0.42);
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    width: min(360px, 100%);
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.poster-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(12px);
}

.poster-caption strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
}

.poster-caption span {
    display: block;
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 13px;
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.46);
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(249, 115, 22, 0.85);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

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

.section {
    padding: 50px 0;
}

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-kicker {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 150px;
    gap: 12px;
    padding: 16px;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    outline: 0;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    padding: 0 14px;
    font: inherit;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(249, 115, 22, 0.58);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.36);
    transform: translateY(-5px);
}

.movie-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #0f172a;
}

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

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.86) 100%);
}

.movie-topline {
    position: absolute;
    z-index: 2;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.movie-body {
    padding: 14px;
}

.movie-title {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover .movie-title {
    color: #fdba74;
}

.movie-line {
    display: -webkit-box;
    min-height: 42px;
    margin: 8px 0 0;
    overflow: hidden;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.18), transparent 9rem),
        rgba(15, 23, 42, 0.76);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
}

.category-card p {
    margin: 12px 0 18px;
    color: #cbd5e1;
    line-height: 1.7;
}

.link-list {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.link-list a {
    color: #fdba74;
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: rgba(30, 41, 59, 0.86);
    color: #fed7aa;
    font-weight: 950;
}

.rank-cover {
    overflow: hidden;
    width: 72px;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    background: #0f172a;
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 18px;
}

.rank-info p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.6;
}

.page-hero {
    padding: 58px 0 26px;
}

.page-hero-panel {
    padding: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.24), transparent 18rem),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
    max-width: 820px;
    margin: 14px 0 0;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #fdba74;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.55fr);
    gap: 28px;
    align-items: start;
}

.detail-card,
.text-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

.detail-card {
    padding: 18px;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    background: #0f172a;
}

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

.detail-title {
    margin: 24px 0 14px;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
}

.detail-intro {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.player-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #000000;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    filter: saturate(1.1);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 18rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
}

.player-button {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #ffffff;
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.4);
    font-size: 32px;
    line-height: 1;
}

.text-card {
    padding: 24px;
    margin-top: 24px;
}

.text-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 24px;
}

.text-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.no-result {
    display: none;
    padding: 28px;
    margin-top: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    color: #cbd5e1;
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

.no-result.is-show {
    display: block;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 28px;
    padding: 42px 0;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-grid p,
.footer-grid a {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    padding: 18px 0 28px;
    color: #64748b;
    font-size: 14px;
}

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

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

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

    .hero-poster-card {
        margin: 0;
        width: min(300px, 100%);
    }

    .detail-side {
        position: static;
    }
}

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

    .menu-button {
        display: grid;
        place-items: center;
    }

    .hero-shell {
        min-height: 760px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 44px 22px 76px;
        gap: 24px;
    }

    .hero-control {
        display: none;
    }

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

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

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

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

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

    .rank-cover {
        width: 58px;
    }

    .page-hero-panel {
        padding: 28px;
        border-radius: 22px;
    }

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