/* Static movie site theme */
:root {
    --color-ocean-50: #f0f9ff;
    --color-ocean-100: #e0f2fe;
    --color-ocean-500: #0ea5e9;
    --color-ocean-600: #0284c7;
    --color-ocean-700: #0369a1;
    --color-island-500: #22c55e;
    --color-island-600: #16a34a;
    --color-sand-400: #facc15;
    --color-dark: #0f172a;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-ink);
    background: var(--surface-soft);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-ocean-600), var(--color-island-600));
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.28);
    transform: translateZ(0);
}

.brand-text {
    font-size: 1.45rem;
    line-height: 1;
    background: linear-gradient(90deg, var(--color-ocean-600), var(--color-island-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-ocean-600);
}

.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: #4b5563;
}

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

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

.mobile-link {
    padding: 10px 14px;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: var(--color-ocean-600);
    background: var(--color-ocean-50);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    align-items: center;
    gap: 48px;
    padding: 92px max(24px, calc((100vw - 1180px) / 2)) 72px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 600ms ease, transform 900ms ease;
}

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

.hero-backdrop,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-backdrop {
    background-position: center;
    background-size: cover;
    filter: blur(2px) saturate(1.08);
    transform: scale(1.04);
    opacity: 0.72;
}

.hero-overlay {
    background:
        radial-gradient(circle at 74% 34%, rgba(14, 165, 233, 0.24), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.28)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 40%);
}

.hero-content,
.hero-poster-card {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.hero-meta span,
.detail-meta span,
.category-pill,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-meta span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-actions,
.section-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-ocean-600), var(--color-island-600));
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.32);
}

.secondary-button {
    color: var(--color-ocean-700);
    background: var(--color-ocean-50);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

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

.hero-poster-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 32px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.35rem;
}

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

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

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

.page-section {
    padding: 52px 0;
}

.section-header,
.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.page-heading {
    align-items: start;
    padding-top: 42px;
}

.section-kicker {
    margin: 0 0 7px;
    color: var(--color-ocean-600);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title,
.page-title {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-description,
.page-description {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--color-muted);
}

.home-search {
    margin-top: -38px;
    position: relative;
    z-index: 5;
}

.home-search-box {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
}

.home-search-box input,
.inline-filter input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    color: var(--color-ink);
    background: #ffffff;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease;
}

.home-search-box input {
    min-height: 48px;
    padding: 0 16px;
}

.home-search-box input:focus,
.inline-filter input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--color-ocean-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-ocean-100), #dcfce7);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 360ms ease;
}

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

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.play-chip {
    right: 10px;
    bottom: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.9);
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

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

.movie-card h3 {
    margin: 0;
    min-height: 3em;
    color: var(--color-ink);
    font-size: 1rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.movie-one-line {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.movie-meta {
    margin: 8px 0 6px;
}

.movie-one-line {
    min-height: 3.8em;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    color: var(--color-ocean-700);
    background: var(--color-ocean-50);
    font-size: 0.75rem;
}

.horizontal-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 238px;
    gap: 18px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px 18px;
    scroll-snap-type: x proximity;
}

.horizontal-strip .movie-card {
    scroll-snap-align: start;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    border-radius: var(--radius-xl);
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 36%),
        linear-gradient(135deg, var(--color-ocean-600), var(--color-island-600));
    box-shadow: var(--shadow-soft);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.inline-filter {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
}

.inline-filter label,
.search-panel label {
    color: #4b5563;
    font-weight: 800;
}

.inline-filter input {
    min-height: 46px;
    padding: 0 14px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 36px 0 0;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    font-weight: 800;
}

.pagination a:hover,
.pagination .is-current {
    color: #ffffff;
    background: var(--color-ocean-600);
}

.pagination span:not(.is-current):not(.pagination-gap) {
    color: #9ca3af;
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 72px 112px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-number {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
}

.ranking-thumb {
    overflow: hidden;
    border-radius: 14px;
}

.ranking-thumb img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.ranking-copy h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.ranking-copy p {
    margin: 0;
    color: var(--color-muted);
}

.search-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-panel .field {
    display: grid;
    gap: 7px;
}

.search-panel input,
.search-panel select {
    min-height: 44px;
    padding: 0 12px;
}

.search-status {
    margin: 18px 0;
    color: var(--color-muted);
    font-weight: 800;
}

.detail-hero {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.22), transparent 28%),
        linear-gradient(135deg, #020617, #0f172a 56%, #064e3b);
}

.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 38px;
    align-items: center;
    padding: 46px 0;
    color: #ffffff;
}

.detail-copy h1 {
    margin: 14px 0 16px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-copy p {
    color: rgba(255, 255, 255, 0.82);
}

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

.detail-meta span {
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.14);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-card);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.play-overlay-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(2, 132, 199, 0.28), transparent 32%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.28));
    cursor: pointer;
    transition: opacity 180ms ease, visibility 180ms ease;
}

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

.play-overlay-button span {
    width: 86px;
    height: 86px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-ocean-600), var(--color-island-600));
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.4);
    font-size: 2rem;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.content-card,
.side-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.content-card {
    padding: 28px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 14px;
}

.content-card p {
    color: #374151;
}

.side-card {
    padding: 22px;
}

.side-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-card a {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
}

.side-card img {
    width: 56px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    object-fit: cover;
}

.side-card span {
    color: #374151;
    font-weight: 800;
}

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

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

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

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

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

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

    .menu-toggle {
        display: flex;
    }

    .hero-carousel {
        height: auto;
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 86px 18px 92px;
    }

    .hero-content h1 {
        font-size: clamp(2.25rem, 13vw, 4rem);
    }

    .hero-poster-card {
        max-width: 260px;
    }

    .hero-controls {
        left: 18px;
        right: auto;
        bottom: 24px;
    }

    .home-search-box {
        grid-template-columns: 1fr;
    }

    .section-header,
    .page-heading {
        display: block;
    }

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

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

    .ranking-item {
        grid-template-columns: 48px 86px 1fr;
    }

    .ranking-item .secondary-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

    .content-card {
        padding: 22px;
    }
}

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

    .horizontal-strip {
        grid-auto-columns: 78%;
    }
}
