:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --dark: #0f172a;
    --muted: #64748b;
    --card: #ffffff;
    --soft: #eff6ff;
    --line: #dbeafe;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 52%, #ecfeff 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(219, 234, 254, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blue);
}

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

.brand-text {
    font-size: 20px;
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 14px;
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: #dbeafe;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--blue);
    background: #dbeafe;
}

.page-main {
    padding-top: 68px;
}

.hero-carousel {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 52%, #14b8a6 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.6) 0 2px, transparent 3px);
    background-size: 64px 64px, 86px 86px;
}

.hero-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.22), transparent 32%), linear-gradient(90deg, rgba(15, 23, 42, 0.44), rgba(15, 23, 42, 0.08));
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 44px;
    opacity: 0;
    transform: translateX(22px);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hero-copy {
    color: #ffffff;
    max-width: 720px;
    padding: 58px 0 84px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #dffcff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-title-like {
    margin: 0 0 10px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-copy h2:not(.hero-title-like) {
    margin: 0 0 18px;
    color: #cffafe;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 900;
}

.hero-copy p {
    margin: 0;
    max-width: 680px;
    color: #e0f2fe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-meta span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.ghost-dark-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.primary-button:hover,
.ghost-button:hover,
.ghost-dark-button:hover,
.text-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
}

.ghost-dark-button {
    color: #ffffff;
    background: rgba(15, 23, 42, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-art {
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 430px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.38);
    transform: rotate(2deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.hero-art::after,
.movie-poster::after,
.detail-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.58));
    pointer-events: none;
}

.hero-art img,
.movie-poster img,
.category-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.hero-controls button {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.56;
}

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

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

.soft-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.72), rgba(236, 254, 255, 0.84));
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-head a,
.text-button {
    color: var(--blue);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(219, 234, 254, 0.86);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #dbeafe;
}

.movie-card.compact .movie-poster {
    aspect-ratio: 3 / 4;
}

.movie-poster img {
    transition: transform 0.5s ease;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.24);
}

.play-chip {
    right: 12px;
    bottom: 12px;
    min-width: 58px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-info {
    padding: 17px;
}

.movie-info h3 {
    margin: 8px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-info h3 a:hover {
    color: var(--blue);
}

.movie-info p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0;
    color: #64748b;
    line-height: 1.65;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.tag-row span {
    color: var(--blue);
    background: #eff6ff;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: var(--dark);
    box-shadow: var(--shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.62;
    transition: transform 0.5s ease;
}

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

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
}

.category-card span {
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: #dbeafe;
    line-height: 1.55;
}

.cta-panel,
.page-hero,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 48px auto 0;
    border-radius: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: var(--shadow);
}

.cta-panel {
    padding: clamp(34px, 6vw, 62px);
    text-align: center;
}

.cta-panel h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.cta-panel p,
.page-hero p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: #e0f2fe;
    font-size: 18px;
    line-height: 1.75;
}

.small-hero {
    padding: clamp(34px, 6vw, 62px);
    margin-top: 28px;
}

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

.category-overview-card,
.story-card {
    border-radius: 26px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 234, 254, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-overview-card h2,
.story-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-overview-card p,
.story-card p {
    color: #475569;
    line-height: 1.8;
}

.category-overview-card ul {
    margin: 18px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.category-overview-card li a {
    color: #334155;
}

.category-overview-card li a:hover {
    color: var(--blue);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 234, 254, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.search-panel {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
}

.filter-bar label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
}

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

.filter-status {
    align-self: end;
    min-height: 46px;
    display: flex;
    align-items: center;
    color: #64748b;
    font-weight: 700;
}

.detail-hero {
    padding: clamp(24px, 4vw, 44px);
    margin-top: 28px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8 55%, #06b6d4);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: #c7d2fe;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 58px);
    align-items: center;
}

.detail-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    background: #dbeafe;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-meta {
    margin-bottom: 14px;
}

.detail-meta span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.detail-copy .primary-button {
    margin-top: 24px;
}

.detail-section {
    padding-top: 42px;
    padding-bottom: 42px;
}

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

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.52));
}

.player-start span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 7px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

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

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

.site-footer {
    color: #e2e8f0;
    background: linear-gradient(135deg, #111827, #172554);
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
    gap: 34px;
}

.footer-brand p {
    max-width: 620px;
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h3 {
    margin: 0 0 6px;
    color: #ffffff;
}

.footer-column a {
    color: #cbd5e1;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

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

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

    .search-panel,
    .filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nav-shell {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        padding: 8px 0 2px;
        flex-direction: column;
        align-items: stretch;
    }

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

    .page-main {
        padding-top: 66px;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 28px;
        align-content: center;
    }

    .hero-copy {
        padding: 20px 0 0;
    }

    .hero-art {
        max-height: 330px;
        width: min(82vw, 260px);
        justify-self: center;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .two-column,
    .detail-layout,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-copy h1,
    .hero-title-like {
        font-size: 38px;
    }
}
