:root {
    color-scheme: light;
    --blue: #2563eb;
    --blue-dark: #1e40af;
    --blue-soft: #eff6ff;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --card: #ffffff;
    --page: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --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", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--page);
    line-height: 1.6;
}

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;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), #7c3aed);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
    font-size: 16px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link,
.mobile-link {
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    padding: 11px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #334155;
    border-radius: 999px;
}

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

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

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

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.28), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 48%, #111827);
    color: #ffffff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% -10%;
    height: 260px;
    background: rgba(37, 99, 235, 0.24);
    filter: blur(80px);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: 42px;
    padding: 72px 0;
}

.hero-copy .eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
    transition: 0.2s ease;
}

.btn.primary {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.36);
}

.btn.light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

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

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 32px;
    max-width: 560px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 0 16px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.36);
    font-size: 15px;
}

.hero-search input::placeholder {
    color: #cbd5e1;
}

.hero-search button,
.filter-panel button {
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    color: var(--blue-dark);
    font-weight: 900;
    padding: 13px 20px;
}

.hero-stage {
    position: relative;
    min-height: 450px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 32px;
    opacity: 0;
    transform: scale(0.98) translateY(10px);
    transition: 0.55s ease;
    box-shadow: var(--shadow);
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.86));
}

.hero-slide-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    z-index: 2;
}

.hero-slide-content h2 {
    margin: 10px 0 10px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.1;
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: #dbeafe;
    max-width: 620px;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.hero-meta span,
.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 28px;
    top: 24px;
    display: flex;
    gap: 8px;
}

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

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

.section {
    padding: 60px 0;
}

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

.section-header h2,
.page-title h1,
.detail-content h2,
.related-section h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.section-header p,
.page-title p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 720px;
}

.more-link {
    color: var(--blue);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.32s ease;
}

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

.card-category,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.card-category {
    right: 12px;
    padding: 6px 10px;
    background: rgba(37, 99, 235, 0.94);
}

.rank-badge {
    left: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.86);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: block;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
    color: #0f172a;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-title:hover {
    color: var(--blue);
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 999px;
    padding: 4px 9px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.category-cover {
    position: relative;
    min-height: 180px;
    overflow: hidden;
}

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

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.category-cover span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
    font-size: 18px;
}

.category-body {
    padding: 22px;
}

.category-body h2 {
    margin: 0;
    font-size: 23px;
}

.category-body p {
    color: var(--muted);
    margin: 10px 0 16px;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-links a {
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--blue);
    background: var(--blue-soft);
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    padding: 56px 0 34px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border-bottom: 1px solid var(--line);
}

.page-title h1 {
    max-width: 900px;
}

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

.breadcrumb a {
    color: var(--blue);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    margin: 28px 0 0;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-search input,
.filter-controls select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: #ffffff;
    color: #0f172a;
    outline: 0;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-panel button {
    color: #ffffff;
    background: var(--blue);
    padding-inline: 24px;
}

.hidden-card {
    display: none;
}

.detail-hero {
    padding: 44px 0;
    background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.18), transparent 30%), linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #ffffff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    background: #1e293b;
}

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

.detail-info h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 820px;
    margin: 0;
    color: #dbeafe;
    font-size: 17px;
}

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

.detail-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    font-size: 13px;
}

.player-section {
    padding-top: 34px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 16 / 9;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-poster {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: 0.25s ease;
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.30), rgba(15, 23, 42, 0.82));
}

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

.play-button {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.42);
    font-size: 30px;
    line-height: 1;
}

.play-button span {
    position: relative;
    left: 3px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
    padding: 38px 0 60px;
}

.article-panel,
.side-panel {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.article-panel {
    padding: 30px;
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 30px;
}

.article-panel p {
    margin: 0 0 22px;
    color: #334155;
    font-size: 16px;
}

.side-panel {
    padding: 22px;
    position: sticky;
    top: 92px;
}

.side-panel h3 {
    margin: 0 0 14px;
    font-size: 20px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-list img {
    width: 78px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

.side-list strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}

.side-list span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.related-section {
    padding-bottom: 70px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.footer-about p {
    max-width: 520px;
    color: #94a3b8;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

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

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

    .side-panel {
        position: static;
    }
}

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

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .hero-inner {
        padding: 48px 0;
        min-height: auto;
    }

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

    .filter-controls {
        flex-direction: column;
    }

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

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

    .card-body {
        padding: 13px;
    }

    .card-title {
        font-size: 16px;
    }

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

    .section-header {
        display: block;
    }

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

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

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

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

    .play-button {
        width: 74px;
        height: 74px;
        font-size: 24px;
    }
}
