:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --accent: #06b6d4;
    --gold: #f59e0b;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #f9fafb;
    line-height: 1.6;
}

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

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

img.image-missing {
    opacity: 0;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 100%);
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.28);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 600;
}

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

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

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

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.page-shell {
    min-height: 60vh;
}

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

.hero {
    position: relative;
    min-height: 600px;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 52%, #06b6d4 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.22), transparent 26%),
        radial-gradient(circle at 10% 88%, rgba(14, 165, 233, 0.4), transparent 36%),
        rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.26;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.08);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(290px, 0.65fr);
    align-items: center;
    gap: 46px;
    padding: 72px 0;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-title {
    margin: 20px 0 16px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-title span {
    display: block;
    margin-top: 8px;
    font-size: clamp(26px, 3.6vw, 42px);
    color: #bfdbfe;
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 30px;
    font-size: clamp(17px, 2vw, 22px);
    color: #dbeafe;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

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

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

.btn-primary {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
    background: #eff6ff;
}

.btn-ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

.btn-blue {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: #e0f2fe;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(16px);
}

.hero-card-poster {
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(6,182,212,0.32));
}

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

.hero-card-info {
    position: absolute;
    inset: auto 0 0;
    padding: 28px;
    background: linear-gradient(0deg, rgba(0,0,0,0.82), rgba(0,0,0,0.02));
}

.hero-card-info h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.hero-card-info p {
    margin: 0;
    color: #e5e7eb;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.44);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 68px 0;
}

.section-white {
    background: #ffffff;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-title h1,
.section-title h2 {
    margin: 10px 0 6px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.feature-rail {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #0f172a;
    box-shadow: var(--shadow);
}

.feature-track {
    display: flex;
    transition: transform 0.5s ease;
}

.feature-item {
    min-width: 100%;
}

.feature-link {
    position: relative;
    display: block;
    height: 390px;
    color: #ffffff;
    overflow: hidden;
}

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

.feature-link:hover img {
    transform: scale(1.05);
}

.feature-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.86), rgba(0,0,0,0.08));
}

.feature-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 34px;
}

.feature-info h3 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.15;
}

.feature-info p {
    margin: 0 0 14px;
    max-width: 720px;
    color: #e5e7eb;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: width 0.25s ease, background 0.25s ease;
}

.slider-dot.is-active {
    width: 30px;
    background: var(--primary);
}

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

.category-card {
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.24), transparent 28%);
    opacity: 0.9;
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: #dbeafe;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 14px;
    margin: 0 0 26px;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    color: var(--text);
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.movie-card {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.movie-card.is-hidden {
    display: none;
}

.movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.movie-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.movie-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.12);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-play span {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.86);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.movie-card:hover .movie-play {
    opacity: 1;
}

.movie-body {
    padding: 14px 14px 16px;
}

.movie-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-desc {
    margin: 0 0 10px;
    min-height: 44px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f1f5f9;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
}

.rank-num {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-main h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.rank-main p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

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

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

.detail-top {
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #2563eb 58%, #06b6d4);
}

.detail-top-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 62px;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-cover {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(6,182,212,0.32));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.detail-title h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-title p {
    margin: 0;
    max-width: 840px;
    color: #dbeafe;
    font-size: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-tags span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

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

.content-card,
.side-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.content-card {
    padding: 28px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 25px;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 16px;
    color: #374151;
}

.side-card {
    padding: 20px;
}

.info-table {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.info-row b {
    color: #4b5563;
}

.info-row span {
    text-align: right;
    color: #111827;
    font-weight: 700;
}

.player-card {
    margin-bottom: 28px;
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.2);
}

.player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a, #1e3a8a);
}

.player-head h2 {
    margin: 0;
    font-size: 20px;
}

.player-box {
    position: relative;
    background: #000000;
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(0, 0, 0, 0.68));
    transition: opacity 0.24s ease;
}

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

.play-trigger {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.4);
    transition: transform 0.22s ease;
}

.play-trigger:hover {
    transform: scale(1.08);
}

.player-error {
    display: none;
    padding: 12px 18px;
    color: #fecaca;
    background: #7f1d1d;
}

.player-error.is-visible {
    display: block;
}

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

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

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

.site-footer {
    color: #d1d5db;
    background: #111827;
}

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

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

.footer-grid p,
.footer-grid li {
    color: #9ca3af;
    font-size: 14px;
}

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

.footer-grid a:hover {
    color: #93c5fd;
}

.footer-bottom {
    padding: 20px 0 30px;
    border-top: 1px solid #1f2937;
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

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

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

    .hero-content,
    .detail-top-inner,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 54px 0 78px;
    }

    .hero-card {
        max-width: 430px;
    }

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

    .detail-cover {
        width: 220px;
    }
}

@media (max-width: 620px) {
    .nav-wrap {
        height: 58px;
    }

    .brand {
        font-size: 18px;
    }

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-actions {
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-card {
        display: none;
    }

    .section {
        padding: 46px 0;
    }

    .section-title-row {
        align-items: start;
        flex-direction: column;
    }

    .feature-link {
        height: 310px;
    }

    .feature-info {
        padding: 22px;
    }

    .feature-info h3 {
        font-size: 26px;
    }

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

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

    .movie-body h3 {
        font-size: 15px;
    }

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

    .rank-num {
        width: 40px;
        height: 40px;
    }

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

    .content-card {
        padding: 22px;
    }

    .play-trigger {
        width: 72px;
        height: 72px;
    }
}
