:root {
    --bg-soft: #f0f9ff;
    --bg-page: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #e5f6ff;
    --brand: #0284c7;
    --brand-bright: #0ea5e9;
    --brand-soft: #e0f2fe;
    --line: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 60px rgba(2, 132, 199, 0.18);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 38%, #f9fafb 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #4f46e5);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

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

.nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--brand);
    background: var(--brand-soft);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
}

.mobile-nav {
    display: none;
    padding: 0 0 16px;
}

.mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 14px;
    color: #334155;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1000ms ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.6) 45%, rgba(2, 6, 23, 0.1) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.78) 0%, rgba(2, 6, 23, 0.08) 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-panel {
    max-width: 720px;
    color: #ffffff;
    padding: 88px 0 74px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #dff6ff;
    font-weight: 700;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.07em;
}

.hero p {
    margin: 0;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tag,
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 700;
    color: #075985;
    background: #e0f2fe;
}

.hero .hero-tag {
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.28);
    border: 1px solid rgba(125, 211, 252, 0.28);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 16px 32px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(14, 165, 233, 0.38);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-light {
    color: #075985;
    border-color: #bae6fd;
    background: #ffffff;
}

.btn-light:hover {
    background: #e0f2fe;
}

.section {
    padding: 56px 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.72), rgba(255, 255, 255, 0.92));
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

.section-desc {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #bae6fd;
    box-shadow: var(--shadow-lg);
}

.poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e0f2fe;
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(2, 132, 199, 0.9);
}

.poster-fade {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent);
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
}

.card-desc {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 230px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    border: 1px solid rgba(186, 230, 253, 0.85);
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-card h2,
.category-card h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.04em;
}

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

.category-card .mini-list {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 52px 74px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: #bae6fd;
}

.rank-num {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
}

.rank-cover {
    width: 74px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
    background: #e0f2fe;
}

.rank-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.rank-desc {
    margin: 6px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.search-input {
    min-width: min(100%, 360px);
    height: 46px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    background: #ffffff;
    padding: 0 18px;
    color: #0f172a;
    outline: none;
}

.search-input:focus {
    border-color: var(--brand-bright);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    border: 1px solid #bae6fd;
    border-radius: 999px;
    padding: 9px 13px;
    color: #075985;
    background: #ffffff;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
}

.page-hero {
    padding: 62px 0 40px;
    background:
        radial-gradient(circle at 12% 12%, rgba(56, 189, 248, 0.22), transparent 34%),
        linear-gradient(135deg, #eff6ff 0%, #ffffff 58%, #f0fdfa 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.page-hero h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.75;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-card,
.side-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.22));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.44);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.82);
    box-shadow: 0 20px 44px rgba(14, 165, 233, 0.36);
    transition: 0.2s ease;
}

.play-button:hover {
    transform: scale(1.08);
}

.play-button svg {
    width: 36px;
    height: 36px;
    margin-left: 4px;
}

.detail-card {
    padding: 26px;
}

.detail-card h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.06em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.85;
}

.side-card {
    padding: 20px;
}

.side-card h2,
.side-card h3 {
    margin: 0 0 16px;
    font-size: 21px;
    letter-spacing: -0.04em;
}

.related-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.related-item:last-child {
    border-bottom: 0;
}

.related-item img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
    background: #e0f2fe;
}

.related-item h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.related-item p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.site-footer {
    padding: 34px 0;
    background: #ffffff;
    border-top: 1px solid var(--line);
    color: #64748b;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

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

.hidden-card {
    display: none !important;
}

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

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

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

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

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

    .mobile-nav.is-open {
        display: block;
    }

    .hero {
        min-height: 620px;
        height: auto;
    }

    .hero-content {
        align-items: flex-end;
    }

    .hero-panel {
        padding: 130px 0 96px;
    }

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

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

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

    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1200px);
    }

    .grid-5,
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 62px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-cover {
        width: 62px;
        height: 84px;
    }

    .detail-card,
    .side-card {
        padding: 18px;
    }

    .play-button {
        width: 72px;
        height: 72px;
    }
}
