:root {
    --site-blue: #0ea5e9;
    --site-blue-dark: #0369a1;
    --site-indigo: #4338ca;
    --site-slate: #0f172a;
    --site-muted: #64748b;
    --site-soft: #f1f5f9;
    --site-border: #e2e8f0;
    --site-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: #1f2937;
    background: linear-gradient(135deg, #f8fafc 0%, #eef7ff 48%, #f8fafc 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-blue-dark);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-indigo));
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
}

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

.nav-links a {
    padding: 10px 12px;
    color: #334155;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--site-blue-dark);
    background: #e0f2fe;
}

.nav-search {
    position: relative;
    width: min(260px, 25vw);
}

.nav-search input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.nav-search span {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #94a3b8;
    transform: translateY(-50%);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    font-size: 22px;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #0284c7 0%, #2563eb 48%, #4338ca 100%);
}

.hero-slider::before {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 30%), radial-gradient(circle at 78% 18%, rgba(125, 211, 252, 0.18), transparent 34%), rgba(0, 0, 0, 0.18);
}

.hero-slider::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 120px;
    content: "";
    background: linear-gradient(to top, #f8fafc, transparent);
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    align-items: center;
    min-height: 620px;
    gap: 46px;
    padding: 74px 0 96px;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 16px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: clamp(18px, 2.4vw, 25px);
    line-height: 1.65;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
    color: var(--site-blue-dark);
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

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

.btn-outline {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.82);
}

.btn-outline:hover {
    color: var(--site-blue-dark);
    background: #fff;
}

.btn-blue {
    color: #fff;
    background: linear-gradient(135deg, var(--site-blue), #2563eb);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.24);
}

.hero-feature {
    position: relative;
}

.hero-slide {
    display: none;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(18px);
}

.hero-slide.is-active {
    display: block;
    animation: softFade 0.45s ease both;
}

.hero-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(15, 23, 42, 0.86), transparent 62%);
}

.hero-card-body {
    padding: 24px;
}

.hero-card-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
}

.hero-card-body p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: #dbeafe;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.hero-meta span,
.movie-chip,
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

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

.section {
    padding: 72px 0;
}

.section-white {
    background: #fff;
}

.section-soft {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

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

.section-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(14, 165, 233, 0.42);
    box-shadow: var(--site-shadow);
    transform: translateY(-7px);
}

.movie-card a {
    display: block;
    height: 100%;
}

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.movie-cover.tall {
    aspect-ratio: 3 / 4;
}

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

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

.movie-cover::after {
    position: absolute;
    inset: auto 0 0;
    height: 60%;
    content: "";
    background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.cover-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.cover-badge {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #e11d48);
}

.movie-body {
    padding: 16px;
}

.movie-title {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.movie-line {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    box-shadow: var(--site-shadow);
    transform: translateY(-6px);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 0 0 20px;
    color: var(--site-muted);
    line-height: 1.75;
}

.category-card span {
    margin-top: auto;
    color: var(--site-blue-dark);
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 62px;
    color: #fff;
    background: linear-gradient(120deg, #0284c7, #2563eb 52%, #4338ca);
}

.page-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.22), transparent 32%), rgba(15, 23, 42, 0.12);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #dbeafe;
    font-size: 14px;
}

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

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.5fr));
    gap: 14px;
    padding: 18px;
    margin: -30px auto 34px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--site-border);
    border-radius: 24px;
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-status {
    margin: 0 0 24px;
    color: #64748b;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    box-shadow: var(--site-shadow);
    transform: translateY(-4px);
}

.rank-item .movie-cover {
    height: 100%;
    aspect-ratio: auto;
}

.rank-content {
    padding: 16px;
}

.rank-content h2,
.rank-content h3 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-content p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.player-area {
    padding: 36px 0;
    background: #020617;
}

.player-wrap {
    overflow: hidden;
    background: #000;
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18), rgba(2, 6, 23, 0.46));
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    padding-left: 6px;
    background: linear-gradient(135deg, var(--site-blue), #2563eb);
    border-radius: 999px;
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.38);
    font-size: 44px;
    transition: transform 0.2s ease;
}

.player-start:hover span {
    transform: scale(1.08);
}

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

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

.detail-card,
.sidebar-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-card {
    padding: 28px;
}

.detail-card h1 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--site-border);
}

.detail-meta span {
    padding: 7px 12px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.detail-section {
    padding: 22px 0;
    border-bottom: 1px solid var(--site-border);
}

.detail-section:last-child {
    border-bottom: 0;
}

.detail-section h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

.detail-section p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.95;
}

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

.sidebar-card {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.sidebar-card h2 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

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

.related-mini:hover {
    background: #f8fafc;
}

.related-mini img {
    width: 110px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.related-mini h3 {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-mini p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

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

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

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.footer-grid p,
.footer-grid a {
    color: #cbd5e1;
    line-height: 1.85;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 46px 24px;
    color: #64748b;
    text-align: center;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 24px;
}

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

@keyframes softFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .hero-feature {
        max-width: 560px;
    }

    .sidebar-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .site-nav {
        min-height: 64px;
    }

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

    .nav-links {
        position: fixed;
        top: 64px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--site-border);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }

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

    .nav-links a {
        border-radius: 14px;
    }

    .nav-search {
        display: none;
    }

    .hero-layout {
        min-height: auto;
        padding: 54px 0 86px;
    }

    .hero-slider {
        min-height: auto;
    }

    .filter-panel {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

    .rank-list {
        grid-template-columns: 1fr;
    }

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

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

    .site-logo {
        font-size: 19px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .section {
        padding: 52px 0;
    }

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

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

    .rank-item {
        grid-template-columns: 120px 1fr;
    }

    .detail-card,
    .sidebar-card {
        padding: 20px;
        border-radius: 20px;
    }

    .related-mini {
        grid-template-columns: 96px 1fr;
    }

    .related-mini img {
        width: 96px;
    }

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