:root {
    --bg: #f0fdff;
    --text: #172033;
    --muted: #64748b;
    --cyan: #0891b2;
    --blue: #2563eb;
    --teal: #0f766e;
    --green: #16a34a;
    --orange: #f97316;
    --red: #ef4444;
    --card: #ffffff;
    --soft: rgba(255, 255, 255, 0.72);
    --line: rgba(15, 23, 42, 0.1);
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 46%, #f0fdfa 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.02em;
    color: #0f172a;
}

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

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

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

.site-nav a:hover,
.site-nav a.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 76px;
    color: #ffffff;
    background: linear-gradient(110deg, #2563eb 0%, #0891b2 48%, #0f766e 100%);
}

.hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.28;
    pointer-events: none;
    animation: softPulse 5.2s ease-in-out infinite;
}

.hero-glow-one {
    left: -88px;
    top: 12px;
    background: #ffffff;
}

.hero-glow-two {
    right: -120px;
    bottom: -120px;
    background: #fde047;
    animation-delay: 1.2s;
}

@keyframes softPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.24;
    }
    50% {
        transform: scale(1.14);
        opacity: 0.36;
    }
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 48px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #cffafe;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-desc,
.page-hero p,
.detail-desc {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
}

.hero-search {
    width: min(100%, 620px);
    margin-top: 30px;
    display: flex;
    align-items: center;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 18px;
    color: #0f172a;
    background: transparent;
}

.hero-search button,
.primary-btn {
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.35);
}

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

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-pills span {
    padding: 10px 16px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-slider {
    position: relative;
    min-height: 470px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
    background: rgba(15, 23, 42, 0.28);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

.hero-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.28) 52%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-slide-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 34px;
    display: grid;
    gap: 10px;
}

.hero-slide-content em {
    color: #a5f3fc;
    font-style: normal;
    font-weight: 900;
}

.hero-slide-content strong {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.hero-slide-content small {
    max-width: 460px;
    color: #e0f2fe;
    font-size: 15px;
    line-height: 1.7;
}

.hero-play {
    width: max-content;
    margin-top: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #0f172a;
    font-weight: 900;
    background: #ffffff;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

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

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

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

.band-section {
    padding: 64px 0;
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.78), rgba(254, 226, 226, 0.78));
}

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

.section-heading div {
    display: grid;
    gap: 6px;
}

.section-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.1;
    font-weight: 950;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-more {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--blue);
    font-weight: 900;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.featured-grid,
.movie-grid,
.category-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 34px;
    opacity: 0;
    background: rgba(2, 6, 23, 0.42);
    transition: opacity 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

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

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span {
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--blue), #06b6d4);
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p {
    margin: 0;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.compact-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: stretch;
}

.compact-card .poster-link {
    aspect-ratio: auto;
    min-height: 116px;
}

.compact-card .movie-card-body {
    padding: 14px;
}

.compact-card p {
    min-height: auto;
}

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

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

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

.category-tile {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    border-radius: 26px;
    color: #ffffff;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18));
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 24px;
    font-weight: 950;
}

.category-tile em {
    margin-top: 10px;
    color: #dbeafe;
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
}

.page-hero {
    padding: 76px 0;
    color: #ffffff;
    background: linear-gradient(110deg, #1d4ed8, #0891b2, #0f766e);
}

.page-hero h1 {
    max-width: 820px;
}

.page-hero p {
    max-width: 760px;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow);
}

.inline-search {
    flex: 1;
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 900;
}

.inline-search input {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    outline: 0;
    padding: 13px 16px;
    border-radius: 16px;
    color: #0f172a;
    background: #ffffff;
}

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

.filter-actions button {
    border: 0;
    padding: 10px 15px;
    border-radius: 999px;
    color: #334155;
    font-weight: 900;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.filter-actions button.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.empty-state {
    padding: 42px;
    border-radius: 24px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-hero {
    padding: 46px 0 60px;
    color: #ffffff;
    background: radial-gradient(circle at 24% 20%, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(120deg, #0f172a, #1e3a8a 50%, #0f766e);
}

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

.player-card {
    border-radius: 28px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.32);
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #020617;
}

.player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
    pointer-events: auto;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.16));
    cursor: pointer;
    pointer-events: auto;
}

.player-cover.is-hidden {
    display: none;
}

.player-icon {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    color: var(--blue);
    font-size: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #bfdbfe;
    font-size: 14px;
}

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

.detail-info .eyebrow {
    color: #a5f3fc;
}

.detail-info h1 {
    font-size: clamp(34px, 4vw, 58px);
}

.detail-tags {
    margin-top: 22px;
}

.detail-actions .ghost-btn {
    border-color: rgba(255, 255, 255, 0.34);
}

.detail-content {
    display: grid;
    gap: 24px;
    padding: 52px 0 70px;
}

.article-block {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
}

.article-block h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 26px;
    font-weight: 950;
}

.article-block p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.95;
    white-space: pre-line;
}

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

.info-list div {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.info-list dd {
    margin: 6px 0 0;
    color: #0f172a;
    font-weight: 900;
}

.compact-heading {
    margin-bottom: 18px;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
}

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

.site-footer h3,
.site-footer h4 {
    margin: 0 0 14px;
    color: #67e8f9;
}

.site-footer p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: #67e8f9;
}

.footer-bottom {
    padding: 18px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        text-align: center;
    }

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

    .hero-slider {
        min-height: 420px;
    }

    .featured-grid,
    .movie-grid,
    .movie-grid.four-cols,
    .four-cols,
    .category-list,
    .related-grid,
    .ranking-strip,
    .category-grid,
    .large-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .home-hero {
        padding: 58px 0;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-slider {
        min-height: 360px;
        border-radius: 24px;
    }

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

    .featured-grid,
    .movie-grid,
    .movie-grid.four-cols,
    .four-cols,
    .category-list,
    .related-grid,
    .ranking-strip,
    .category-grid,
    .large-grid {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 118px 1fr;
    }

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

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

    .article-block {
        padding: 22px;
    }
}
