* {
    box-sizing: border-box;
}

:root {
    --bg: #f8fafc;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-soft: #06b6d4;
    --card: #ffffff;
    --dark: #020617;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #f1f5f9 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.25);
    font-size: 18px;
}

.brand-text {
    display: grid;
    gap: 1px;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1.1;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #334155;
    font-weight: 700;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    border: 0;
    color: #334155;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

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

.hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 560px;
    margin: 28px auto 0;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow);
    background: var(--dark);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 34px;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    background-position: center;
    background-size: cover;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.hero-kicker,
.inner-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(191, 219, 254, 0.32);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

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

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

.hero-tags {
    margin: 24px 0;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-actions,
.detail-copy .primary-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.primary-btn,
.ghost-btn,
.search-box button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-box button {
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
    cursor: pointer;
}

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

.primary-btn:hover,
.ghost-btn:hover,
.search-box button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.hero-poster {
    width: min(320px, 100%);
    justify-self: end;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #0f172a;
}

.hero-controls {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.48);
    font-size: 28px;
    line-height: 1;
}

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

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

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

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

.page-top {
    padding-top: 34px;
}

.search-panel,
.filter-panel,
.inner-hero,
.detail-hero,
.player-section,
.article-section {
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 30px 0 40px;
    padding: 24px;
}

.search-form label,
.filter-panel label {
    display: block;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 900;
}

.search-box {
    display: flex;
    gap: 12px;
}

.search-box input,
.filter-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    color: #0f172a;
    background: #ffffff;
    padding: 0 16px;
    outline: none;
}

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

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-cats a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #1e40af;
    background: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

.content-section {
    margin: 0 0 52px;
}

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.04em;
}

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

.section-more {
    color: #1d4ed8;
    background: #dbeafe;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

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

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.play-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
}

.play-pill {
    right: 10px;
    bottom: 10px;
    min-height: 28px;
    padding: 0 10px;
    background: rgba(37, 99, 235, 0.9);
    font-size: 12px;
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 6px;
    color: #94a3b8;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 8px 0 8px;
    overflow: hidden;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-card p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    color: #1e40af;
    background: #dbeafe;
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.category-tile img,
.category-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

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

.category-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.86));
}

.category-tile strong,
.category-tile small {
    position: absolute;
    left: 18px;
    right: 18px;
    color: #ffffff;
}

.category-tile strong {
    bottom: 56px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    bottom: 18px;
    color: #dbeafe;
    line-height: 1.5;
}

.inner-hero {
    min-height: 220px;
    display: flex;
    align-items: center;
    margin-bottom: 34px;
    padding: 38px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.46), transparent 32%), linear-gradient(135deg, #1d4ed8, #0f172a);
}

.inner-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.inner-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

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

.filter-panel {
    margin-bottom: 28px;
    padding: 20px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 34px;
    padding: 30px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

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

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: #334155;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin-bottom: 18px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 22px;
    color: #475569;
}

.player-section {
    margin-bottom: 34px;
    padding: 24px;
    background: #020617;
}

.player-head {
    margin-bottom: 18px;
    color: #ffffff;
}

.player-head h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.player-head p {
    margin: 0;
    color: #bfdbfe;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    background: #000000;
    cursor: pointer;
}

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

.cover-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(8px) brightness(0.45);
    transform: scale(1.06);
}

.cover-play {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 22px 60px rgba(37, 99, 235, 0.38);
    font-size: 34px;
}

.article-section {
    margin-bottom: 42px;
    padding: 32px;
}

.article-section h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.article-section h2:not(:first-child) {
    margin-top: 30px;
}

.article-section p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 2;
}

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #020617);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    padding: 44px 0;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

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

.hidden-card {
    display: none;
}

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero,
    .hero-slider {
        min-height: 680px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 34px 24px 88px;
    }

    .hero-poster {
        width: 210px;
        justify-self: start;
    }

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

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

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

@media (max-width: 640px) {
    .header-inner {
        height: 62px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        width: calc(100% - 20px);
        margin-top: 12px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .page-shell {
        width: calc(100% - 20px);
    }

    .section-heading,
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

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

    .category-grid {
        grid-template-columns: 1fr;
    }

    .inner-hero,
    .detail-hero,
    .article-section,
    .player-section {
        border-radius: 22px;
        padding: 22px;
    }

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