/*
    Static movie site style sheet.
    The visual language follows the uploaded site's dark slate layout, cyan accents,
    fixed navigation, hero focus area, rounded cards, hover motion and responsive grids.
*/

:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.82);
    --bg-card-strong: rgba(15, 23, 42, 0.96);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #3b82f6;
    --pink: #f472b6;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius-lg: 28px;
    --radius: 18px;
    --radius-sm: 12px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.15), transparent 28rem),
        radial-gradient(circle at 82% 0%, rgba(59, 130, 246, 0.14), transparent 24rem),
        linear-gradient(180deg, #020617 0%, #07111f 44%, #020617 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.88);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(100% - 32px, var(--max));
    height: 72px;
    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;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.22);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.nav-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.58);
}

main {
    min-height: 70vh;
}

.hero-carousel {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr);
    align-items: center;
    gap: 42px;
    min-height: 760px;
    padding: 120px max(32px, calc((100vw - var(--max)) / 2)) 86px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 1.1s ease;
}

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

.hero-content {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.filter-panel h1 {
    margin: 12px 0 18px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.hero-summary {
    max-width: 710px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-tags,
.detail-meta,
.card-tags,
.genre-line,
.tag-links,
.inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.card-tags span,
.genre-line span,
.tag-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(8, 47, 73, 0.38);
    font-size: 12px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button,
.hero-search button {
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.24);
}

.ghost-button {
    color: var(--text);
    border: 1px solid rgba(203, 213, 225, 0.22);
    background: rgba(15, 23, 42, 0.58);
}

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

.primary-button.full {
    width: 100%;
}

.hero-poster {
    justify-self: end;
    width: min(340px, 100%);
    transform: rotate(2deg);
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.45));
}

.hero-poster .poster-shell {
    aspect-ratio: 2 / 3;
    border-radius: 34px;
}

.hero-dots {
    position: absolute;
    right: max(32px, calc((100vw - var(--max)) / 2));
    bottom: 40px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.28);
    cursor: pointer;
}

.hero-dot.active {
    background: var(--cyan);
}

.quick-search-band {
    width: min(100% - 32px, var(--max));
    margin: -44px auto 0;
    position: relative;
    z-index: 8;
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search label {
    color: #e0f2fe;
    font-size: 18px;
    font-weight: 900;
}

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

.hero-search input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.72);
    outline: none;
    padding: 0 16px;
}

.hero-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.content-section,
.page-main,
.site-footer,
.category-overview-block,
.ranking-page-list {
    width: min(100% - 32px, var(--max));
    margin-right: auto;
    margin-left: auto;
}

.content-section {
    padding: 70px 0 0;
}

.no-top-gap {
    padding-top: 26px;
}

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

.section-heading h2,
.category-overview-head h2,
.ranking-head h2,
.detail-card h1,
.detail-card h2,
.side-info-card h2 {
    margin: 8px 0 8px;
    color: #ffffff;
    letter-spacing: -0.045em;
}

.section-heading h2,
.category-overview-head h2,
.ranking-head h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.category-overview-head p,
.filter-panel p,
.page-hero p,
.site-footer p,
.detail-card p,
.ranking-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-heading a,
.ranking-head a,
.category-overview-head a {
    color: var(--cyan);
    font-weight: 900;
}

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

.category-tile {
    min-height: 178px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.16), transparent 12rem),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(15, 23, 42, 0.96);
}

.category-tile span,
.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong {
    margin: 16px 0 10px;
    color: var(--cyan);
    font-size: 34px;
    line-height: 1;
}

.category-tile em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
    align-items: start;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.28);
}

.poster-link {
    position: relative;
    display: block;
}

.poster-shell {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    color: #e0f2fe;
    background:
        radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.28), transparent 9rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.95));
}

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

.movie-card:hover .poster-shell img {
    transform: scale(1.06);
    filter: brightness(0.78);
}

.poster-fallback {
    position: absolute;
    inset: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #e0f2fe;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.poster-no-image .poster-fallback {
    display: flex;
}

.card-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #00111a;
    background: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
    padding: 14px;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
}

.card-body h3 {
    min-height: 48px;
    margin: 8px 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.45;
}

.card-body h3 a:hover {
    color: var(--cyan);
}

.card-body p {
    min-height: 58px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.card-tags {
    gap: 6px;
}

.card-tags span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
}

.ranking-card,
.filter-panel,
.page-hero,
.detail-card,
.player-card,
.detail-poster-card,
.side-info-card,
.category-overview-block {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.ranking-card {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.rank-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.48);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover {
    background: rgba(8, 47, 73, 0.64);
    transform: translateX(3px);
}

.rank-num {
    color: var(--cyan);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.rank-score {
    justify-self: end;
    color: #fde68a;
    font-weight: 900;
}

.page-main {
    padding-top: 110px;
    padding-bottom: 80px;
}

.page-hero,
.filter-panel {
    padding: 34px;
}

.small-hero {
    margin-bottom: 28px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: end;
}

.filter-panel h1 {
    font-size: clamp(34px, 5vw, 64px);
}

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

.filter-controls label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.filter-empty {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border: 1px solid rgba(244, 114, 182, 0.22);
    border-radius: 14px;
    color: #fbcfe8 !important;
    background: rgba(76, 5, 25, 0.24);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.detail-primary {
    display: grid;
    gap: 24px;
}

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

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

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 16rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.88));
    cursor: pointer;
}

.video-overlay.is-hidden {
    display: none;
}

.play-circle {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00111a;
    background: var(--cyan);
    box-shadow: 0 0 0 16px rgba(34, 211, 238, 0.16);
    font-size: 30px;
}

.video-overlay strong {
    font-size: 24px;
}

.video-overlay em {
    color: #bae6fd;
    font-size: 13px;
    font-style: normal;
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.one-line {
    margin: 24px 0 !important;
    color: #e0f2fe !important;
    font-size: 20px;
}

.detail-card section {
    margin-top: 26px;
}

.detail-card h2,
.side-info-card h2 {
    font-size: 24px;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
}

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

.detail-poster-card .poster-shell {
    margin-bottom: 16px;
    border-radius: 22px;
}

.side-info-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

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

.side-info-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.side-info-card a {
    color: var(--cyan);
}

.ranking-page-list {
    display: grid;
    gap: 14px;
    padding-top: 24px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 72px 86px minmax(0, 1fr) 72px;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.ranking-index {
    color: var(--cyan);
    font-size: 24px;
    font-weight: 1000;
    text-align: center;
}

.ranking-cover .poster-shell {
    border-radius: 14px;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-info h2 a:hover {
    color: var(--cyan);
}

.ranking-score-big {
    color: #fde68a;
    font-size: 26px;
    font-weight: 1000;
    text-align: center;
}

.inline-meta {
    margin-top: 10px;
}

.site-footer {
    margin-top: 54px;
    padding: 42px 0 56px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 28px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 17px;
}

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

.footer-links a {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(30, 41, 59, 0.52);
    font-size: 13px;
}

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

[hidden],
.movie-card.is-hidden,
.ranking-row.is-hidden {
    display: none !important;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 13px;
    }

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

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

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

    .ranking-card,
    .detail-sidebar {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-carousel,
    .hero-slide {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 110px;
        gap: 22px;
    }

    .hero-poster {
        justify-self: start;
        width: 180px;
        transform: none;
    }

    .quick-search-band {
        margin-top: 20px;
    }

    .hero-search,
    .filter-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-search div {
        flex-direction: column;
    }

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

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

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

    .section-heading,
    .category-overview-head,
    .ranking-head {
        display: grid;
        align-items: start;
    }

    .ranking-row {
        grid-template-columns: 52px 72px minmax(0, 1fr);
    }

    .ranking-score-big {
        grid-column: 3;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .brand-text {
        font-size: 17px;
    }

    .nav-shell {
        width: min(100% - 22px, var(--max));
    }

    .hero-slide {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero-content h1,
    .page-hero h1,
    .filter-panel h1 {
        font-size: 38px;
    }

    .hero-summary,
    .one-line {
        font-size: 16px;
    }

    .hero-dots {
        right: 18px;
    }

    .content-section,
    .page-main,
    .site-footer,
    .category-overview-block,
    .ranking-page-list,
    .quick-search-band {
        width: min(100% - 22px, var(--max));
    }

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

    .page-hero,
    .filter-panel,
    .detail-card,
    .category-overview-block {
        padding: 22px;
    }

    .ranking-row {
        grid-template-columns: 46px 62px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }
}
