:root {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --surface: #ffffff;
    --surface-strong: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --orange: #f97316;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 14px 36px rgba(15, 23, 42, 0.10);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(20, 184, 166, 0.12), transparent 26rem),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 52%, #e2e8f0 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(16px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    box-shadow: 0 10px 24px rgba(20, 184, 166, 0.32);
}

.logo-text {
    font-size: 1.22rem;
}

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

.nav-link {
    color: #cbd5e1;
    padding: 10px 13px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(20, 184, 166, 0.9);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
}

.nav-search input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    outline: none;
}

.nav-search input:focus {
    border-color: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.nav-search button,
.mobile-menu-button,
.small-button {
    border: 0;
    color: #fff;
    background: var(--teal);
    border-radius: 14px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-menu-button:hover,
.small-button:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
}

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

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

.mobile-panel .nav-link {
    display: block;
    margin: 4px 0;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    color: #fff;
    overflow: hidden;
    background: #0f172a;
}

.hero-track {
    position: relative;
    min-height: 640px;
}

.hero-slide {
    display: none;
    min-height: 640px;
    align-items: center;
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 72% 20%, rgba(20, 184, 166, 0.45), transparent 20rem),
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.45)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    display: flex;
    animation: heroFade 0.55s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0.4;
        transform: scale(1.01);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.72fr);
    gap: 56px;
    align-items: center;
    padding: 78px 0 92px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #99f6e4;
    background: rgba(15, 118, 110, 0.36);
    border: 1px solid rgba(94, 234, 212, 0.36);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-title {
    margin: 22px 0 16px;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.hero-desc {
    margin: 0;
    color: #dbeafe;
    max-width: 680px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    font-size: 0.88rem;
}

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

.button-primary,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    box-shadow: 0 18px 34px rgba(20, 184, 166, 0.30);
}

.button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.button-ghost {
    color: var(--teal-dark);
    background: rgba(20, 184, 166, 0.10);
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover {
    transform: translateY(-2px);
}

.hero-poster-wall {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.76fr;
    gap: 16px;
    align-items: end;
}

.hero-poster-main,
.hero-poster-small {
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.22), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: var(--shadow);
}

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

.hero-poster-small {
    aspect-ratio: 3 / 4;
    margin-bottom: 52px;
    transform: translateY(28px);
}

.hero-poster-main img,
.hero-poster-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.hero-dot,
.hero-arrow {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot {
    width: 34px;
    height: 7px;
    border-radius: 999px;
}

.hero-dot.is-active {
    background: #2dd4bf;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.4rem;
}

.hero-arrow:hover,
.hero-dot:hover {
    background: rgba(45, 212, 191, 0.8);
    transform: translateY(-1px);
}

.section {
    padding: 64px 0;
}

.section.compact {
    padding: 38px 0;
}

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

.section-kicker {
    color: var(--teal-dark);
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 6px 0 0;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
    max-width: 760px;
}

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

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

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(20, 184, 166, 0.45);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background:
        linear-gradient(145deg, rgba(20, 184, 166, 0.72), rgba(15, 23, 42, 0.96)),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.40), transparent 16rem);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.42s ease;
}

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

.poster-fallback-text {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.18rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 0.04em;
}

.poster-frame.poster-missing .poster-fallback-text {
    display: grid;
}

.card-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.74);
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: auto;
    right: 12px;
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-title {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.35;
    font-size: 1.03rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #64748b;
    font-size: 0.82rem;
}

.card-desc {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 0.91rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--teal-dark);
    background: rgba(20, 184, 166, 0.10);
    font-size: 0.78rem;
    font-weight: 800;
}

.category-card {
    min-height: 184px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(45, 212, 191, 0.36), transparent 13rem),
        linear-gradient(135deg, #0f172a, #1e293b 58%, #0f766e);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    right: -70px;
    bottom: -70px;
    background: rgba(255, 255, 255, 0.10);
}

.category-card h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 900;
}

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

.category-card span {
    color: #99f6e4;
    font-weight: 900;
}

.feature-band {
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.30), transparent 16rem),
        linear-gradient(135deg, #0f172a, #1e293b 52%, #0f766e);
    padding: clamp(28px, 6vw, 56px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.feature-band .section-subtitle {
    color: #cbd5e1;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 86px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rank-number {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), #ea580c);
}

.rank-thumb {
    width: 86px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #14b8a6, #0f172a);
}

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

.rank-row h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 900;
}

.rank-row p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rank-score {
    color: var(--teal-dark);
    font-size: 1.08rem;
    font-weight: 900;
    white-space: nowrap;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 180px 180px auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
    margin: 0 0 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.filters input,
.filters select,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    padding: 12px 13px;
    outline: none;
}

.filters input:focus,
.filters select:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13);
}

.result-count {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.page-hero {
    color: #fff;
    background:
        radial-gradient(circle at 78% 16%, rgba(20, 184, 166, 0.46), transparent 18rem),
        linear-gradient(135deg, #0f172a, #1e293b 64%, #0f766e);
    padding: 72px 0;
}

.page-hero h1 {
    margin: 0;
    max-width: 880px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 800px;
    color: #dbeafe;
    line-height: 1.85;
    font-size: 1.1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #99f6e4;
    margin-bottom: 18px;
    font-weight: 800;
}

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

.player-shell {
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

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

.video-stage video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(20, 184, 166, 0.22), transparent 18rem),
        rgba(2, 6, 23, 0.42);
    opacity: 1;
    transition: opacity 0.24s ease;
}

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

.play-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    box-shadow: 0 24px 60px rgba(20, 184, 166, 0.36);
    font-size: 2.1rem;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
}

.player-info {
    padding: 18px 20px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.player-status {
    color: #99f6e4;
    font-weight: 800;
}

.content-panel,
.sidebar-panel,
.search-panel {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.content-panel h2,
.sidebar-panel h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 900;
}

.content-panel p {
    color: #334155;
    line-height: 1.95;
    margin: 0 0 18px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 20px;
    margin: 18px 0;
}

.info-table th,
.info-table td {
    text-align: left;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
}

.info-table th {
    width: 110px;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.08);
}

.info-table td {
    color: #334155;
    background: rgba(248, 250, 252, 0.86);
}

.related-mini {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 18px;
    transition: background 0.2s ease;
}

.related-mini:hover {
    background: var(--bg-soft);
}

.related-mini .poster-frame {
    border-radius: 14px;
}

.related-mini h3 {
    margin: 2px 0 7px;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.38;
}

.related-mini p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.86rem;
}

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 48px 0;
}

.site-footer h3 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 1.08rem;
    font-weight: 900;
}

.site-footer p,
.site-footer li {
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
    color: #94a3b8;
}

.search-results-empty {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.70);
}

.search-results-empty.is-visible {
    display: block;
}

.archive-index {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 24px;
}

.archive-index a {
    text-align: center;
    border-radius: 12px;
    padding: 9px;
    color: var(--teal-dark);
    background: rgba(20, 184, 166, 0.09);
    font-weight: 900;
}

.archive-index a:hover {
    color: #fff;
    background: var(--teal);
}

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

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

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

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

    .sidebar-panel {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 54px 0 84px;
    }

    .hero-poster-wall {
        max-width: 440px;
    }

    .grid.cards-6,
    .grid.cards-4,
    .grid.cards-3,
    .grid.cards-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-row {
        grid-template-columns: 42px 72px 1fr;
    }

    .rank-score {
        grid-column: 2 / 4;
    }

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

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

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

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

    .hero-poster-wall {
        display: none;
    }

    .hero-actions,
    .section-actions,
    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .grid.cards-6,
    .grid.cards-4,
    .grid.cards-3,
    .grid.cards-2 {
        grid-template-columns: 1fr;
    }

    .player-info {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-row {
        grid-template-columns: 42px 64px 1fr;
        gap: 10px;
    }

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