/* Static movie site styles, adapted from the uploaded dark cyan gradient visual system. */
:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(51, 65, 85, 0.78);
    --muted: #94a3b8;
    --text: #e2e8f0;
    --text-strong: #f8fafc;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --blue: #3b82f6;
    --orange: #fb923c;
    --green: #34d399;
    --shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand span:last-child {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--cyan);
    background: rgba(30, 41, 59, 0.72);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input {
    width: 220px;
    padding: 10px 12px;
    color: var(--text);
    background: rgba(30, 41, 59, 0.62);
    border: 1px solid rgba(71, 85, 105, 0.82);
    border-radius: 12px;
    outline: none;
}

.header-search input:focus {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.header-search button,
.btn,
.player-button,
.filter-panel button {
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    color: white;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button {
    padding: 10px 14px;
}

.header-search button:hover,
.btn:hover,
.player-button:hover,
.filter-panel button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.34);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(71, 85, 105, 0.82);
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.62);
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 18px;
    border-top: 1px solid rgba(51, 65, 85, 0.42);
}

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

main {
    min-height: 70vh;
}

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

.hero {
    position: relative;
    min-height: 70vh;
    max-height: 820px;
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-bg.active {
    opacity: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 40%, rgba(2, 6, 23, 0.48) 100%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.35) 100%);
}

.hero-content {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 48px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--cyan);
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 22px;
    color: white;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

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

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.chip,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.32);
    font-size: 13px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    font-weight: 800;
}

.btn.secondary {
    background: rgba(30, 41, 59, 0.72);
    color: #e2e8f0;
    border: 1px solid rgba(71, 85, 105, 0.72);
    box-shadow: none;
}

.hero-side {
    display: grid;
    gap: 14px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(51, 65, 85, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero-mini-card:hover,
.hero-mini-card.active {
    border-color: rgba(34, 211, 238, 0.68);
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.92);
}

.hero-mini-card img {
    width: 88px;
    height: 118px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f172a, #155e75);
}

.hero-mini-card strong {
    display: block;
    color: white;
    margin-bottom: 8px;
}

.hero-mini-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.section {
    padding: 72px 0 0;
}

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

.section-heading h2,
.page-heading h1 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.16;
}

.section-heading p,
.page-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.more-link {
    color: var(--cyan);
    font-weight: 700;
    white-space: nowrap;
}

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

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

.movie-card {
    position: relative;
    min-width: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(51, 65, 85, 0.72);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.58);
    box-shadow: 0 26px 65px rgba(2, 6, 23, 0.42);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.18)),
        #0f172a;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, opacity 0.2s ease;
}

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

.poster::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.35);
}

.rank-no {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 36px;
    padding: 7px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(251, 146, 60, 0.92);
    text-align: center;
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--text-strong);
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--cyan);
}

.movie-meta {
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 10px;
    color: rgba(148, 163, 184, 0.6);
}

.movie-card-body p {
    display: -webkit-box;
    margin: 0 0 12px;
    min-height: 44px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag-row span {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.78);
    border-color: rgba(71, 85, 105, 0.65);
    font-size: 12px;
}

.movie-card.compact .movie-card-body {
    padding: 12px;
}

.movie-card.compact .movie-title {
    min-height: 42px;
    font-size: 14px;
}

.movie-card.compact .movie-card-body p,
.movie-card.compact .tag-row {
    display: none;
}

.page-heading {
    padding: 64px 0 34px;
}

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

.category-tile {
    min-height: 170px;
    padding: 22px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(37, 99, 235, 0.08)),
        rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(51, 65, 85, 0.72);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, 0.58);
}

.category-tile strong {
    display: block;
    color: white;
    font-size: 20px;
    margin-bottom: 12px;
}

.category-tile span {
    color: var(--cyan);
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px 160px auto;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(51, 65, 85, 0.72);
}

.filter-panel input,
.filter-panel select {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(71, 85, 105, 0.82);
    color: var(--text);
    background: rgba(30, 41, 59, 0.62);
    outline: none;
}

.filter-panel button {
    padding: 12px 18px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(51, 65, 85, 0.72);
}

.ranking-item .num {
    color: var(--orange);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.ranking-item img {
    width: 92px;
    height: 126px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.ranking-item h2 {
    margin: 0 0 8px;
    color: white;
    font-size: 20px;
}

.ranking-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.score {
    color: #fde68a;
    font-size: 22px;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: end;
    isolation: isolate;
}

.detail-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.52;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.8) 45%, rgba(2, 6, 23, 0.4) 100%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.42));
}

.detail-content {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    padding: 70px 0 48px;
}

.detail-poster {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.82);
    box-shadow: var(--shadow);
    background: #0f172a;
}

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

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

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

.detail-info h1 {
    margin: 0 0 18px;
    color: white;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-info .one-line {
    max-width: 820px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.85;
}

.player-section,
.content-panel {
    padding: 44px 0 0;
}

.player-shell {
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    border: 1px solid rgba(51, 65, 85, 0.88);
    box-shadow: var(--shadow);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.14), transparent 26rem),
        #000;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.86));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-box.playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-button {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 32px;
}

.player-overlay strong {
    color: white;
    font-size: 22px;
}

.player-overlay span {
    color: var(--muted);
}

.article-panel {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
}

.text-block,
.side-block {
    border-radius: 22px;
    padding: 26px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(51, 65, 85, 0.72);
}

.text-block h2,
.side-block h2 {
    margin: 0 0 18px;
    color: white;
    font-size: 24px;
}

.text-block p,
.side-block p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    padding-bottom: 12px;
    color: var(--muted);
}

.info-list strong {
    color: white;
}

.empty-state {
    padding: 50px;
    text-align: center;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(51, 65, 85, 0.72);
}

.search-results {
    min-height: 280px;
}

.site-footer {
    margin-top: 82px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(2, 6, 23, 0.98));
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 36px;
}

.footer-inner p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-inner h3 {
    margin: 0 0 16px;
    color: white;
}

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

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

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

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

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

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

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

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

@media (max-width: 760px) {
    .container,
    .hero-content,
    .detail-content,
    .footer-inner {
        width: min(100% - 28px, 1280px);
    }

    .header-inner {
        padding: 0 14px;
    }

    .brand span:last-child {
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 56px 0 68px;
    }

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

    .section {
        padding-top: 54px;
    }

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

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

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

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

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

    .ranking-item .score {
        grid-column: 3;
        justify-self: start;
        font-size: 18px;
    }

    .ranking-item img {
        width: 72px;
        height: 100px;
    }

    .detail-content {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .detail-poster {
        width: min(220px, 70vw);
    }

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

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