:root {
    --brand-blue: #2563eb;
    --brand-cyan: #06b6d4;
    --brand-teal: #14b8a6;
    --brand-yellow: #facc15;
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --card: rgba(255, 255, 255, 0.94);
    --dark: #0f172a;
    --radius: 22px;
    --shadow: 0 18px 55px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-teal));
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.25);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 68px;
}

.logo {
    flex: 0 0 auto;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

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

.desktop-nav a,
.mobile-nav a {
    font-weight: 700;
    opacity: 0.92;
    transition: color 0.22s ease, opacity 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #fef08a;
    opacity: 1;
}

.top-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.34);
}

.top-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 11px 13px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.95);
}

.top-search button,
.mobile-nav button {
    border: 0;
    padding: 11px 16px;
    color: #1e3a8a;
    font-weight: 800;
    background: var(--brand-yellow);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    font-size: 28px;
    background: transparent;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    background: rgba(15, 23, 42, 0.16);
}

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

.mobile-nav form {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    border-radius: 14px;
}

.mobile-nav input {
    min-width: 0;
    border: 0;
    padding: 12px;
    outline: 0;
}

.hero-section {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: #fff;
    background: #0f172a;
}

.hero-bg-layer,
.detail-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg-layer img,
.detail-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 3.2s ease;
}

.hero-bg-layer img.active {
    opacity: 0.42;
    transform: scale(1);
}

.hero-bg-layer span,
.detail-bg span {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(6, 182, 212, 0.64), transparent 36%), linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.74), rgba(20, 184, 166, 0.66));
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 38px;
    min-height: 720px;
    padding: 72px 0;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fef08a;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

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

.primary-btn,
.ghost-btn,
.watch-link,
.section-action,
.category-block-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.watch-link {
    color: #1e3a8a;
    background: linear-gradient(135deg, #fef08a, var(--brand-yellow));
    box-shadow: 0 15px 34px rgba(250, 204, 21, 0.25);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.watch-link:hover,
.section-action:hover,
.category-block-head a:hover {
    transform: translateY(-2px);
}

.hero-stack,
.rank-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 14px;
    margin-top: 34px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.hero-carousel {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.hero-slides {
    position: relative;
    min-height: 530px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 300px 1fr;
    opacity: 0;
    transform: translateX(22px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster {
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(20, 184, 166, 0.24));
}

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

.hero-movie-copy {
    padding: 24px;
}

.hero-movie-copy span,
.movie-meta {
    color: var(--brand-cyan);
    font-size: 13px;
    font-weight: 800;
}

.hero-movie-copy h2 {
    margin: 8px 0 10px;
    font-size: 32px;
    line-height: 1.15;
}

.hero-movie-copy p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    background: rgba(204, 251, 241, 0.9);
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 20px;
}

.hero-controls button {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
}

.hero-controls div {
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 28px;
    opacity: 1;
    background: var(--brand-yellow);
}

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

.page-main {
    padding-bottom: 20px;
}

.section-title,
.category-block-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.section-title h2,
.category-block h2,
.story-card h2,
.player-title h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-title p,
.category-block p,
.story-card p,
.player-title p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-action,
.category-block-head a {
    flex: 0 0 auto;
    color: #0f766e;
    background: #ccfbf1;
}

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

.movie-card {
    position: relative;
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.34);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
    font-weight: 950;
    background: linear-gradient(135deg, #fef08a, var(--brand-yellow));
    box-shadow: 0 10px 20px rgba(250, 204, 21, 0.3);
}

.movie-info {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.movie-info strong {
    font-size: 18px;
    line-height: 1.25;
}

.movie-line {
    min-height: 46px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.compact-card {
    min-width: 190px;
}

.compact-card .movie-info {
    padding: 13px;
}

.compact-card .movie-line {
    display: none;
}

.compact-card .tag-row {
    display: none;
}

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

.category-tile,
.category-block,
.filter-panel,
.story-card,
.player-card {
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.category-tile {
    display: grid;
    gap: 12px;
    padding: 22px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile span {
    color: #0f766e;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.category-tile div,
.footer-links {
    display: grid;
    gap: 8px;
}

.category-tile div a,
.footer-links a {
    color: #0891b2;
    font-size: 14px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    padding: 58px;
    color: #fff;
    border-radius: 34px;
    background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(135deg, #1e3a8a, #0891b2, #0f766e);
    box-shadow: var(--shadow);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.84);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr;
    gap: 16px;
    padding: 18px;
    margin: 30px 0;
}

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

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.empty-state {
    margin: 30px 0;
    padding: 28px;
    text-align: center;
    border-radius: 22px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.76);
}

.category-block {
    padding: 26px;
    margin-top: 28px;
}

.detail-main {
    background: linear-gradient(180deg, #0f172a 0, #0f172a 520px, transparent 520px);
}

.detail-hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #fff;
}

.detail-bg img {
    opacity: 0.32;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 34px;
    align-items: end;
    min-height: 640px;
    padding: 82px 0 54px;
}

.breadcrumb {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.breadcrumb a {
    color: #bfdbfe;
}

.breadcrumb em {
    font-style: normal;
}

.detail-cover {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(42px, 6.4vw, 82px);
}

.detail-tags {
    margin: 22px 0 28px;
}

.detail-content {
    padding: 44px 0 0;
}

.player-card {
    overflow: hidden;
    padding: 0;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
    display: inline-grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 6px;
    border-radius: 50%;
    color: #1e3a8a;
    font-size: 34px;
    background: linear-gradient(135deg, #fef08a, var(--brand-yellow));
    box-shadow: 0 20px 50px rgba(250, 204, 21, 0.24);
}

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

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-title,
.story-card {
    padding: 26px;
}

.story-card {
    margin-top: 28px;
}

.story-card h2 + p {
    margin-bottom: 24px;
}

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

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

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

.info-list dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.related-section {
    padding-top: 42px;
}

.site-footer {
    margin-top: 76px;
    color: #fff;
    background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-grid strong {
    color: #67e8f9;
    font-size: 24px;
}

.footer-grid p {
    max-width: 460px;
    color: #cbd5e1;
    line-height: 1.75;
}

.footer-grid span {
    display: block;
    margin-bottom: 14px;
    color: #67e8f9;
    font-weight: 900;
}

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-section,
    .hero-layout {
        min-height: auto;
    }

    .hero-layout {
        padding: 54px 0;
    }

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

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

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

    .logo {
        font-size: 22px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 36px;
    }

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

    .hero-carousel {
        border-radius: 22px;
    }

    .hero-slides {
        min-height: 520px;
    }

    .hero-slide {
        grid-template-rows: 260px 1fr;
    }

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

    .category-grid,
    .filter-panel,
    .footer-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 32px;
        border-radius: 24px;
    }

    .section-title,
    .category-block-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-hero-inner {
        min-height: auto;
        padding: 48px 0 34px;
    }

    .detail-cover {
        max-width: 270px;
    }
}

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

    .hero-stack,
    .rank-strip {
        grid-auto-columns: minmax(170px, 76%);
    }

    .hero-actions {
        display: grid;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }
}
