:root {
    --primary: #0073e6;
    --primary-dark: #005bb3;
    --primary-soft: #e6f2ff;
    --accent: #e67300;
    --accent-soft: #fff3e6;
    --text: #0d0f12;
    --muted: #6c757d;
    --line: #e9ecef;
    --bg: #f8f9fa;
    --white: #ffffff;
    --dark: #0d0f12;
    --shadow: 0 12px 30px rgba(13, 15, 18, 0.10);
    --shadow-soft: 0 8px 18px rgba(13, 15, 18, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -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(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(13, 15, 18, 0.06);
}

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

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 18px rgba(0, 115, 230, 0.28);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 600;
    color: #343a40;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 10px;
    background: var(--primary);
}

.mobile-nav {
    display: none;
    padding: 10px 16px 18px;
    background: var(--white);
    border-top: 1px solid var(--line);
}

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

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

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

.mobile-category-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.main-shell,
.page-main,
.detail-main {
    padding-top: 76px;
}

.hero {
    position: relative;
    height: min(70vh, 760px);
    min-height: 520px;
    overflow: hidden;
    background: var(--dark);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46) 45%, rgba(0, 0, 0, 0.20));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    color: var(--white);
    max-width: 1280px;
}

.hero-kicker,
.tag-line,
.detail-meta,
.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-kicker span,
.tag-line span {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
}

.hero-kicker span:first-child,
.tag-line span:first-child {
    background: var(--accent);
    color: var(--white);
}

.hero h1 {
    max-width: 800px;
    margin: 18px 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-tags,
.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-tags span,
.detail-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-ghost,
.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    min-height: 44px;
    padding: 10px 22px;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 115, 230, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 14px 26px rgba(0, 115, 230, 0.30);
    transform: translateY(-1px);
}

.btn-ghost {
    min-height: 44px;
    padding: 10px 20px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
}

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

.btn-mini {
    padding: 8px 14px;
    color: var(--primary);
    background: var(--primary-soft);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.42);
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.section-block {
    padding: 56px 0;
}

.section-heading,
.category-overview-head,
.detail-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2,
.category-overview-head h2,
.content-box h2 {
    margin: 4px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-heading a {
    color: var(--primary);
    font-weight: 700;
}

.eyebrow {
    display: inline-flex;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.white-band {
    background: var(--white);
}

.gradient-band,
.page-hero {
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}

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

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

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

.movie-card,
.large-card a,
.list-card a,
.category-overview-card,
.side-card,
.content-box {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.large-card a:hover,
.list-card a:hover,
.category-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.poster-box,
.large-cover,
.list-cover {
    position: relative;
    overflow: hidden;
    background: #dfe6ee;
}

.poster-box {
    aspect-ratio: 3 / 4;
}

.large-cover {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover img,
.large-card:hover img,
.list-card:hover img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 700;
}

.poster-play {
    position: absolute;
    inset: auto 10px 10px auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 115, 230, 0.88);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card-body h3,
.large-info h3,
.list-body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p,
.large-card p,
.list-body p,
.category-overview-head p,
.page-hero p,
.content-box p,
.detail-title-row p,
.site-footer p {
    color: var(--muted);
}

.movie-card-body p,
.large-card p,
.list-body p {
    margin: 8px 0 12px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row span,
.detail-meta span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 8px;
    color: #004380;
    background: var(--primary-soft);
    font-size: 12px;
    font-weight: 700;
}

.large-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 65%);
}

.large-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: var(--white);
}

.large-info h3 {
    margin-top: 10px;
    font-size: 26px;
}

.large-card p {
    padding: 16px;
    margin: 0;
}

.category-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.category-chip {
    display: inline-flex;
    padding: 10px 15px;
    border-radius: 999px;
    color: #343a40;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(13, 15, 18, 0.06);
    font-weight: 700;
}

.category-chip:hover {
    color: var(--white);
    background: var(--primary);
}

.scroll-row {
    display: flex;
    gap: 18px;
    padding: 4px 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    width: 210px;
    min-width: 210px;
}

.ranking-grid,
.list-stack {
    display: grid;
    gap: 14px;
}

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

.list-card a {
    display: flex;
    align-items: stretch;
    min-height: 130px;
}

.rank-num {
    width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
    font-weight: 900;
    background: var(--accent-soft);
}

.list-cover {
    width: 120px;
    min-width: 120px;
}

.list-body {
    flex: 1;
    padding: 16px;
}

.page-hero {
    padding: 72px 0 52px;
}

.compact-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
}

.compact-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 18px;
}

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

.breadcrumb a {
    color: var(--primary);
    font-weight: 700;
}

.breadcrumb.dark {
    color: rgba(255, 255, 255, 0.70);
}

.breadcrumb.dark a {
    color: rgba(255, 255, 255, 0.92);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 14px;
    padding: 18px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    color: var(--text);
    background: var(--bg);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.12);
}

.filter-count {
    min-width: 96px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 800;
    text-align: center;
}

.category-overview-list {
    display: grid;
    gap: 26px;
    padding: 48px 0;
}

.category-overview-card {
    padding: 24px;
}

.watch-band {
    padding: 28px 0 38px;
    background: #0d0f12;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    background: #050607;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    font-size: 18px;
    font-weight: 800;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 115, 230, 0.36);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 32px;
    padding: 42px 0 12px;
}

.detail-title-row {
    align-items: flex-start;
}

.detail-title-row h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.detail-title-row p {
    max-width: 820px;
    margin: 0;
    font-size: 18px;
}

.detail-meta {
    margin: 18px 0;
}

.detail-tags span {
    color: #804000;
    background: var(--accent-soft);
}

.content-box {
    padding: 24px;
    margin-top: 18px;
}

.content-box h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.content-box p {
    margin: 0;
    white-space: pre-line;
    font-size: 16px;
}

.detail-side {
    position: relative;
}

.side-card {
    position: sticky;
    top: 100px;
    padding: 18px;
}

.side-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.side-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.side-card div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

.related-block {
    padding-top: 24px;
}

.site-footer {
    margin-top: 56px;
    color: #ced4da;
    background: #0d0f12;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.6fr;
    gap: 36px;
    padding: 48px 0;
}

.footer-brand {
    margin-bottom: 14px;
    color: var(--white);
    font-size: 20px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 18px;
}

.footer-links,
.footer-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.footer-links a {
    color: #ced4da;
}

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

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #868e96;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

    .side-card {
        position: static;
    }
}

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

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

    .hero {
        height: 620px;
    }

    .hero-content {
        bottom: 78px;
    }

    .large-grid,
    .ranking-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .filter-panel label:first-child {
        grid-column: 1 / -1;
    }
}

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

    .header-inner {
        height: 64px;
    }

    .brand-text {
        font-size: 20px;
    }

    .main-shell,
    .page-main,
    .detail-main {
        padding-top: 64px;
    }

    .hero {
        min-height: 540px;
    }

    .hero-control {
        display: none;
    }

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

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

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

    .section-heading,
    .category-overview-head,
    .detail-title-row {
        display: block;
    }

    .section-heading a,
    .category-overview-head .btn-mini,
    .detail-title-row .btn-primary {
        margin-top: 12px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .list-card a {
        min-height: 112px;
    }

    .rank-num {
        width: 44px;
        font-size: 18px;
    }

    .list-cover {
        width: 96px;
        min-width: 96px;
    }

    .list-body {
        padding: 12px;
    }

    .page-hero {
        padding: 48px 0 38px;
    }

    .watch-band {
        padding: 18px 0 26px;
    }

    .player-shell {
        border-radius: 12px;
    }

    .play-circle {
        width: 60px;
        height: 60px;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        gap: 6px;
    }
}
