:root {
    --brand-blue: #0096dc;
    --brand-blue-dark: #006fac;
    --brand-blue-soft: rgba(0, 150, 220, 0.12);
    --brand-red: #e63946;
    --brand-yellow: #ffd700;
    --brand-cream: #fff9e6;
    --ink: #111827;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.12);
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(0, 150, 220, 0.18), transparent 34rem),
        linear-gradient(180deg, var(--brand-cream) 0%, #ffffff 36%, #f7fbff 100%);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 249, 230, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand {
    font-size: 1.22rem;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background:
        radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.65), transparent 30%),
        linear-gradient(135deg, var(--brand-red), var(--brand-blue));
    box-shadow: 0 10px 26px rgba(0, 150, 220, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
    color: #ffffff;
    background: var(--brand-blue);
}

.global-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 28vw);
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 4px 6px 4px 12px;
}

.global-search button,
.primary-button,
.secondary-button,
.hero-arrow,
.player-overlay,
.control-select,
.control-input {
    border: 0;
}

.global-search button,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
}

.global-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    box-shadow: 0 12px 26px rgba(0, 150, 220, 0.25);
}

.global-search button {
    padding: 8px 15px;
}

.primary-button,
.secondary-button {
    padding: 12px 20px;
}

.secondary-button {
    color: var(--brand-blue-dark);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 150, 220, 0.2);
}

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

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 9px 14px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand-blue);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

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

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

.hero-slider {
    position: relative;
    margin: 30px auto 44px;
    min-height: 620px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: #08111f;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: clamp(28px, 6vw, 76px);
    opacity: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(5, 12, 24, 0.86) 0%, rgba(5, 12, 24, 0.66) 42%, rgba(5, 12, 24, 0.18) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.015);
}

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

.hero-content {
    width: min(720px, 100%);
    color: #ffffff;
    animation: slideUp 0.55s ease both;
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--brand-blue-dark);
    background: rgba(255, 215, 0, 0.92);
    font-size: 0.86rem;
    font-weight: 900;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6.5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 620px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-tags span {
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-pager {
    position: absolute;
    right: 26px;
    bottom: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-arrow,
.hero-dot {
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 7px;
}

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

.hero-dot.is-active {
    width: 26px;
    background: var(--brand-yellow);
}

.hero-rail {
    position: absolute;
    top: 28px;
    right: 28px;
    display: grid;
    gap: 12px;
    width: min(260px, 26vw);
}

.mini-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: 0.2s ease;
}

.mini-card:hover {
    transform: translateX(-4px);
    background: rgba(0, 150, 220, 0.65);
}

.mini-card img,
.rank-list img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 150, 220, 0.22), rgba(230, 57, 70, 0.2));
}

.page-hero,
.detail-hero,
.panel {
    margin: 30px 0;
    padding: clamp(24px, 4vw, 46px);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.page-hero {
    display: grid;
    gap: 18px;
    background:
        radial-gradient(circle at 90% 20%, rgba(255, 215, 0, 0.34), transparent 22rem),
        linear-gradient(135deg, rgba(0, 150, 220, 0.16), rgba(255, 255, 255, 0.9));
}

.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p,
.section-heading p,
.detail-info .lead {
    max-width: 760px;
    color: var(--muted);
    margin: 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 42px 0 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.08;
}

.section-more {
    color: var(--brand-blue-dark);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 150, 220, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 150, 220, 0.18), rgba(255, 215, 0, 0.2));
}

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

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

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(8, 17, 31, 0.7), transparent);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
}

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

.movie-card p {
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row span {
    padding: 5px 9px;
    color: var(--brand-blue-dark);
    background: var(--brand-blue-soft);
}

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

.category-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.28), transparent 12rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(0, 150, 220, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
}

.controls {
    display: grid;
    grid-template-columns: 1fr 160px 160px;
    gap: 12px;
    margin: 24px 0;
}

.control-input,
.control-select {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    border-radius: 16px;
    outline: 0;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
}

.empty-state {
    display: none;
    padding: 30px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    text-align: center;
}

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

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

.rank-panel {
    padding: 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.rank-panel h2 {
    margin: 0 0 16px;
}

.rank-list {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 42px 52px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    transition: 0.18s ease;
}

.rank-list a:hover {
    background: rgba(0, 150, 220, 0.09);
}

.rank-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
    font-weight: 900;
}

.rank-copy {
    display: grid;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.86rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: clamp(22px, 4vw, 42px);
    align-items: center;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 150, 220, 0.18), rgba(230, 57, 70, 0.12));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

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

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

.breadcrumb a {
    color: var(--brand-blue-dark);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.info-grid div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 150, 220, 0.08);
}

.info-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.info-grid strong {
    display: block;
    margin-top: 3px;
}

.watch-section,
.text-section,
.related-section {
    margin: 34px 0;
}

.watch-section h2,
.text-section h2,
.related-section h2 {
    margin: 0 0 16px;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #020617;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 150, 220, 0.16), rgba(2, 6, 23, 0.34));
    cursor: pointer;
}

.player-overlay[hidden] {
    display: none;
}

.play-badge {
    width: clamp(72px, 12vw, 118px);
    height: clamp(72px, 12vw, 118px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-blue));
    box-shadow: 0 20px 50px rgba(0, 150, 220, 0.35);
    font-size: 2.2rem;
    transform: translateZ(0);
}

.text-section {
    padding: clamp(22px, 4vw, 36px);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.text-section p {
    margin: 0;
    color: #334155;
    font-size: 1.05rem;
}

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 60px auto 0;
    padding: 34px 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer p {
    max-width: 680px;
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--brand-blue-dark);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .desktop-nav,
    .global-search {
        display: none;
    }

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

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

    .hero-rail {
        display: none;
    }

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

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

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

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

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

    .hero-slider {
        min-height: 620px;
        margin-top: 16px;
    }

    .hero-slide {
        padding: 24px;
        background-image:
            linear-gradient(180deg, rgba(5, 12, 24, 0.5) 0%, rgba(5, 12, 24, 0.9) 100%),
            var(--hero-image);
    }

    .hero-pager {
        left: 20px;
        right: auto;
    }

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

    .movie-grid,
    .category-grid,
    .rank-layout,
    .controls,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .rank-list a {
        grid-template-columns: 38px 48px 1fr;
    }
}
