:root {
    --blue: #2563eb;
    --deep-blue: #1d4ed8;
    --cyan: #06b6d4;
    --text: #111827;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
    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(--text);
    background: #f1f5f9;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-wrap,
.content-wrap,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
}

.brand-text,
.footer-brand {
    font-size: 22px;
    background: linear-gradient(135deg, var(--deep-blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-link,
.mobile-nav-link {
    color: #475569;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

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

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    display: grid;
    gap: 8px;
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.hero-wrap {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 46%, #0891b2 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 54px;
    padding: 70px 0;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.35;
}

.hero-glow-a {
    width: 320px;
    height: 320px;
    top: 70px;
    right: 12%;
    background: rgba(125, 211, 252, 0.7);
}

.hero-glow-b {
    width: 260px;
    height: 260px;
    left: 8%;
    bottom: 80px;
    background: rgba(255, 255, 255, 0.22);
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    color: var(--deep-blue);
    background: #dbeafe;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-kicker {
    color: #dff7ff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: #e0f2fe;
    font-size: 20px;
}

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

.primary-button,
.secondary-button,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

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

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.secondary-button.light {
    color: var(--blue);
    background: #eff6ff;
    border-color: #bfdbfe;
}

.hero-tags,
.slim-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-tags a {
    color: #ffffff;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 34px 90px rgba(8, 47, 73, 0.38);
    transform: translateZ(0);
}

.hero-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18), transparent);
}

.hero-play,
.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 26px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.hero-card-info {
    position: absolute;
    z-index: 3;
    left: 28px;
    right: 28px;
    bottom: 26px;
}

.hero-card-info span {
    color: #a5f3fc;
    font-size: 14px;
    font-weight: 800;
}

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

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

.lead-panel {
    margin-top: -44px;
    position: relative;
    z-index: 4;
}

.filter-area {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.search-box,
.select-box {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.search-box input,
.select-box select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
}

.search-box input:focus,
.select-box select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.quick-categories,
.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.category-tile,
.category-overview-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover,
.ranking-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 14px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.category-tile strong,
.category-overview-card h2 {
    display: block;
    margin: 14px 0 7px;
    font-size: 20px;
}

.category-tile em,
.category-overview-card p {
    color: var(--muted);
    font-style: normal;
}

.section-block {
    padding: 70px 0 0;
}

.soft-section {
    margin-top: 70px;
    padding-bottom: 70px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.text-link {
    color: var(--blue);
    font-weight: 800;
}

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

.small-grid {
    gap: 16px;
}

.movie-card {
    overflow: hidden;
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    height: 246px;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.movie-card.compact .poster-link img {
    height: 188px;
}

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

.card-badge,
.year-mark {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-badge {
    left: 12px;
    background: #ef4444;
}

.year-mark {
    right: 12px;
    background: rgba(15, 23, 42, 0.78);
}

.poster-play {
    width: 46px;
    height: 46px;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.movie-card-body {
    padding: 15px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-card h3 a:hover {
    color: var(--blue);
}

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

.movie-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.movie-meta span,
.rank-meta span,
.detail-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.chip {
    padding: 4px 8px;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 58px 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-cover img {
    width: 82px;
    height: 108px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info h3 {
    margin: 0 0 7px;
    font-size: 18px;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.small-button {
    min-height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.page-hero,
.detail-top {
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
}

.page-hero .content-wrap {
    padding: 72px 0;
}

.page-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #e0f2fe;
    font-size: 18px;
}

.categories-page-grid {
    padding: 54px 0;
    margin-top: 0;
}

.category-overview-card {
    display: grid;
    gap: 18px;
}

.category-overview-link strong {
    color: var(--blue);
}

.category-samples {
    display: grid;
    gap: 8px;
}

.category-samples a {
    padding: 8px 10px;
    color: #334155;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
}

.category-grid {
    padding-bottom: 70px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 58px 0;
}

.detail-poster img {
    width: 300px;
    height: 410px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #c7f9ff;
    font-size: 14px;
}

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

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 20px;
    color: #e0f2fe;
    font-size: 19px;
}

.detail-meta span {
    color: #dff7ff;
    background: rgba(255, 255, 255, 0.16);
}

.detail-chips .chip {
    color: #075985;
    background: #cffafe;
}

.player-section {
    padding: 64px 0 0;
}

.player-section h2,
.detail-content h2 {
    margin: 0 0 18px;
    font-size: 30px;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
    border: 0;
    cursor: pointer;
}

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

.play-start {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.35);
}

.play-layer strong {
    font-size: 22px;
}

.detail-content {
    display: grid;
    gap: 22px;
    padding: 48px 0 8px;
}

.detail-content section,
.prev-next {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.detail-content p {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.prev-next a {
    padding: 14px 16px;
    border-radius: 14px;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 800;
}

.category-showcase {
    padding-bottom: 74px;
}

.site-footer {
    margin-top: 70px;
    color: #dbeafe;
    background: #0f172a;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 30px;
    padding: 42px 0;
}

.footer-inner p {
    margin: 10px 0 0;
    color: #94a3b8;
}

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

.footer-links a {
    padding: 8px 10px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.is-filtered-out {
    display: none !important;
}

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

    .menu-toggle {
        display: inline-flex;
    }

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

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

@media (max-width: 760px) {
    .nav-wrap,
    .content-wrap,
    .footer-inner,
    .hero-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-wrap,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 46px 0 70px;
        gap: 32px;
    }

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

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-card,
    .hero-card img {
        min-height: 330px;
        height: 330px;
    }

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

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

    .poster-link img {
        height: 210px;
    }

    .movie-card.compact .poster-link img {
        height: 180px;
    }

    .ranking-card {
        grid-template-columns: 44px 70px minmax(0, 1fr);
        gap: 10px;
    }

    .ranking-card .small-button {
        grid-column: 2 / 4;
        justify-self: start;
    }

    .rank-cover img {
        width: 70px;
        height: 92px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .detail-layout {
        gap: 28px;
        padding: 36px 0;
    }

    .detail-poster img {
        width: 210px;
        height: 290px;
    }

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

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

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

    .poster-link img,
    .movie-card.compact .poster-link img {
        height: 260px;
    }

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