:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.84);
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --dim: #94a3b8;
    --brand: #f97316;
    --brand-2: #f59e0b;
    --brand-3: #facc15;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 5%, rgba(249, 115, 22, 0.18), transparent 32rem),
        radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.12), transparent 26rem),
        linear-gradient(180deg, #020617 0%, #0f172a 54%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.68;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

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

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #1f1300;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.38);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-main {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #fb923c, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-sub {
    color: var(--dim);
    font-size: 0.76rem;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: #e2e8f0;
    font-size: 0.96rem;
    white-space: nowrap;
}

.nav-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #fb923c;
    transform: translateY(-1px);
}

.header-search {
    flex: 1;
    max-width: 360px;
    position: relative;
}

.header-search input {
    width: 100%;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    padding: 0 46px 0 18px;
    outline: none;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.82);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus {
    border-color: rgba(249, 115, 22, 0.74);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #1f1300;
    cursor: pointer;
    background: linear-gradient(135deg, #fb923c, #facc15);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    color: #f8fafc;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.88);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 10px;
}

.category-strip {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.35);
}

.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 13px 0;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-scroll a {
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 7px 14px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-scroll a:hover,
.category-scroll a.is-active {
    color: #111827;
    border-color: rgba(250, 204, 21, 0.7);
    background: linear-gradient(135deg, #fb923c, #facc15);
}

.main {
    min-height: 70vh;
}

.focus-section {
    position: relative;
    padding: 48px 0 30px;
    overflow: hidden;
}

.focus-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    min-height: 500px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.92)),
        radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.28), transparent 28rem);
    box-shadow: var(--shadow);
}

.focus-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 66px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    margin-bottom: 18px;
    border: 1px solid rgba(250, 204, 21, 0.4);
    border-radius: 999px;
    padding: 7px 13px;
    color: #fde68a;
    font-weight: 700;
    background: rgba(120, 53, 15, 0.35);
}

.focus-title {
    margin: 0 0 18px;
    font-size: clamp(2.35rem, 6vw, 5.35rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.gradient-text {
    background: linear-gradient(90deg, #fff7ed, #fb923c 45%, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.focus-lead {
    max-width: 680px;
    margin: 0 0 26px;
    color: #dbeafe;
    font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.focus-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

.btn-primary {
    color: #1f1300;
    background: linear-gradient(135deg, #fb923c, #facc15);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.68);
}

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

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

.focus-panel {
    position: relative;
    min-height: 500px;
}

.focus-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.58s ease, transform 0.58s ease;
}

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

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

.focus-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.6), transparent 50%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.08) 58%, rgba(2, 6, 23, 0.38));
}

.focus-card {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    border: 1px solid rgba(248, 250, 252, 0.18);
    border-radius: 24px;
    padding: 20px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(16px);
}

.focus-card h2 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

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

.slide-dots {
    position: absolute;
    z-index: 4;
    top: 22px;
    right: 22px;
    display: flex;
    gap: 8px;
}

.slide-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.42);
}

.slide-dots button.is-active {
    width: 34px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fb923c, #facc15);
}

.section {
    padding: 34px 0;
}

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

.section-kicker {
    margin: 0 0 6px;
    color: #fb923c;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section h1,
.section h2 {
    margin: 0;
    font-size: clamp(1.72rem, 4vw, 2.5rem);
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--muted);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.62);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 20%, rgba(249, 115, 22, 0.2), transparent 12rem),
        #111827;
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.055);
    filter: saturate(1.12);
}

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

.badge-row {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 9px;
    color: #1f1300;
    font-size: 0.78rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fb923c, #facc15);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.badge.dark {
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(2, 6, 23, 0.72);
}

.card-body {
    padding: 16px;
}

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

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

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 10px;
    color: var(--dim);
    font-size: 0.86rem;
}

.card-desc {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    display: inline-flex;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 3px 8px;
    color: #cbd5e1;
    font-size: 0.76rem;
    background: rgba(15, 23, 42, 0.76);
}

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

.category-card {
    min-height: 170px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.2), transparent 10rem),
        rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.24rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.74);
}

.filter-bar input,
.filter-bar select {
    height: 42px;
    min-width: 190px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    padding: 0 14px;
    color: #f8fafc;
    outline: none;
    background: rgba(2, 6, 23, 0.72);
}

.filter-bar input {
    flex: 1;
    min-width: 240px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.78);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    border-color: rgba(249, 115, 22, 0.54);
}

.rank-num {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    color: #1f1300;
    font-size: 1.18rem;
    font-weight: 950;
    background: linear-gradient(135deg, #fb923c, #facc15);
}

.rank-item img {
    width: 96px;
    height: 128px;
    object-fit: cover;
    border-radius: 18px;
    background: #111827;
}

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.rank-score {
    padding-right: 10px;
    color: #fde68a;
    font-weight: 900;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 16px;
    color: var(--dim);
    font-size: 0.94rem;
}

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

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

.player-card,
.detail-card,
.side-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.82);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.player-card {
    overflow: hidden;
}

.video-wrap {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff7ed;
    cursor: pointer;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.1)),
        rgba(2, 6, 23, 0.24);
}

.play-cover.is-hidden {
    display: none;
}

.play-circle {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    color: #1f1300;
    font-size: 2rem;
    font-weight: 950;
    background: linear-gradient(135deg, #fb923c, #facc15);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
}

.player-caption {
    padding: 20px 22px 24px;
}

.player-caption h1 {
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    letter-spacing: -0.04em;
}

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

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.detail-card p {
    color: #dbeafe;
}

.side-card {
    padding: 18px;
}

.side-poster {
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
}

.side-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.fact-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.fact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding-bottom: 10px;
    color: var(--muted);
}

.fact strong {
    color: var(--text);
}

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

.site-footer {
    margin-top: 58px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    padding: 34px 0;
    color: var(--dim);
}

.footer-inner strong {
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

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

.empty-state {
    display: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    padding: 24px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.72);
}

.empty-state.is-visible {
    display: block;
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

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

    .focus-panel {
        min-height: 430px;
    }

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

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .navbar {
        min-height: 66px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 11px;
        right: 11px;
        top: 66px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid rgba(148, 163, 184, 0.18);
        border-radius: 22px;
        padding: 14px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        padding: 9px 10px;
        border-radius: 12px;
    }

    .nav-links a:hover {
        background: rgba(249, 115, 22, 0.1);
    }

    .focus-section {
        padding-top: 26px;
    }

    .focus-shell {
        min-height: auto;
        border-radius: 26px;
    }

    .focus-panel {
        min-height: 380px;
    }

    .focus-copy {
        padding: 26px;
    }

    .section-head {
        display: block;
    }

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

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

    .rank-item img {
        width: 74px;
        height: 98px;
    }

    .rank-score {
        grid-column: 3;
        padding: 0;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 460px) {
    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .logo-main {
        font-size: 1.02rem;
    }

    .logo-sub {
        display: none;
    }

    .card-grid,
    .card-grid.compact,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .focus-panel {
        min-height: 330px;
    }

    .focus-card {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 15px;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
        min-width: 100%;
    }
}
