/* Static movie site styles inspired by the uploaded teal/blue card-based layout. */
:root {
    --bg: #f8fafc;
    --bg-soft: #ecfeff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --teal: #0d9488;
    --teal-2: #14b8a6;
    --blue: #2563eb;
    --blue-2: #38bdf8;
    --card: rgba(255, 255, 255, 0.92);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 46%, #ecfeff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

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

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal-2), var(--blue));
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.28);
}

.brand-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    font-size: 15px;
    color: #334155;
}

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

.desktop-nav a:hover {
    color: var(--teal);
    transform: translateY(-1px);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--line);
}

.site-search,
.mobile-search,
.quick-search,
.search-panel,
.local-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-search input,
.mobile-search input,
.quick-search input,
.search-panel input,
.local-filter input,
.search-panel select {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input {
    width: 210px;
}

.site-search input:focus,
.mobile-search input:focus,
.quick-search input:focus,
.search-panel input:focus,
.local-filter input:focus,
.search-panel select:focus {
    border-color: var(--teal-2);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.site-search button,
.mobile-search button,
.quick-search button,
.search-panel button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    padding: 0 18px;
    cursor: pointer;
    background: linear-gradient(90deg, var(--teal-2), var(--blue));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #334155;
}

.mobile-nav a:hover {
    background: #f0fdfa;
    color: var(--teal);
}

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

.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:
        radial-gradient(circle at 72% 28%, rgba(20, 184, 166, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.hero-content h1 {
    max-width: 780px;
    margin: 14px 0 20px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 26px;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-2);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-tags,
.inline-tags,
.movie-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.inline-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    color: #0f766e;
    background: rgba(204, 251, 241, 0.92);
    border: 1px solid rgba(94, 234, 212, 0.54);
    border-radius: 999px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--teal-2), var(--blue));
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

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

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

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

.quick-panel {
    margin-top: -52px;
    position: relative;
    z-index: 10;
}

.quick-panel__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-panel h2 {
    margin: 8px 0;
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.quick-panel p {
    margin: 0;
    color: var(--muted);
}

.quick-search {
    flex: 0 1 460px;
}

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

.section {
    padding: 72px 0;
}

.section-tint {
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.72), rgba(239, 246, 255, 0.9));
}

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

.section-head h2,
.page-hero h1,
.detail-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.section-link,
.text-link {
    color: var(--teal);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.14);
    transform: translateY(-5px);
}

.movie-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #155e75);
}

.movie-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-card__cover img {
    transform: scale(1.07);
}

.play-badge,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(10px);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.movie-card__body {
    padding: 18px;
}

.movie-card__meta,
.ranking-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card__title {
    margin: 9px 0 9px;
    font-size: 19px;
    line-height: 1.25;
}

.movie-card__title a:hover,
.ranking-card h2 a:hover,
.overview-card h2 a:hover {
    color: var(--teal);
}

.movie-card__desc {
    min-height: 48px;
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.62;
    font-size: 14px;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #0f172a;
}

.category-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.88) 100%);
}

.category-card__content {
    position: absolute;
    inset: auto 20px 20px 20px;
    color: #ffffff;
}

.category-card strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
}

.category-card em,
.category-card small {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-style: normal;
}

.section-ranking {
    background: #0f172a;
    color: #ffffff;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
    align-items: center;
}

.ranking-copy p {
    max-width: 430px;
    color: #cbd5e1;
    line-height: 1.8;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 76px 1fr 20px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.rank-row img {
    width: 76px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
}

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

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info em {
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
    margin-top: 3px;
}

.rank-arrow {
    color: #94a3b8;
    font-size: 28px;
}

.page-main {
    min-height: 68vh;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 64px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 18%, rgba(20, 184, 166, 0.36), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #134e4a 48%, #1d4ed8 100%);
}

.small-hero {
    padding: 70px 0 56px;
}

.page-hero p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.overview-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.overview-card__cover img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.overview-card__body {
    padding: 26px;
}

.overview-card__body h2 {
    margin: 8px 0 12px;
    font-size: 28px;
}

.overview-card__body p {
    color: var(--muted);
    line-height: 1.8;
}

.local-filter {
    max-width: 560px;
    margin-top: 26px;
}

.local-filter input {
    width: 100%;
}

.result-count {
    color: var(--muted);
    font-weight: 800;
}

.search-panel {
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.search-panel input {
    width: min(420px, 100%);
}

.search-panel select {
    min-width: 150px;
}

.search-card.is-hidden,
.movie-card.is-hidden {
    display: none;
}

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

.ranking-card {
    position: relative;
    display: grid;
    grid-template-columns: 180px 70px 1fr;
    align-items: center;
    gap: 22px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.ranking-card__cover img {
    width: 180px;
    height: 110px;
    border-radius: 18px;
    object-fit: cover;
}

.ranking-card__num {
    color: var(--teal);
    font-size: 38px;
    font-weight: 900;
}

.ranking-card h2 {
    margin: 0 0 8px;
}

.ranking-card p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.7;
}

.detail-main {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 55%, #ecfeff 100%);
}

.detail-hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.detail-hero__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(20, 184, 166, 0.26), transparent 25%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.86) 100%);
}

.detail-hero__content {
    position: relative;
    padding: 76px 0 54px;
}

.detail-title-row h1 {
    max-width: 920px;
}

.detail-title-row p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.75;
}

.detail-section {
    padding-top: 46px;
}

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

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

.player-panel,
.content-card,
.meta-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.player-panel {
    overflow: hidden;
    background: #020617;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
    outline: none;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.72));
}

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

.play-circle {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-2), var(--blue));
    box-shadow: 0 18px 36px rgba(20, 184, 166, 0.35);
}

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

.play-overlay small {
    color: #cbd5e1;
}

.content-card {
    padding: 28px;
}

.content-card h2,
.meta-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 2;
}

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

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

.detail-poster {
    width: 100%;
    border-radius: var(--radius);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.meta-card {
    padding: 24px;
}

.meta-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px 14px;
    margin: 0 0 18px;
}

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

.meta-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
}

.meta-card a {
    color: var(--teal);
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
    padding: 52px 0 34px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p {
    max-width: 430px;
    line-height: 1.8;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 9px;
}

.site-footer a:hover {
    color: #5eead4;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    padding: 18px;
    text-align: center;
    color: #94a3b8;
}

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

    .site-search {
        margin-left: auto;
    }

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

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

    .detail-sidebar {
        position: static;
        grid-template-columns: 260px 1fr;
        align-items: start;
    }
}

@media (max-width: 820px) {
    .site-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .header-inner {
        min-height: 66px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 96px;
    }

    .quick-panel {
        margin-top: 0;
    }

    .quick-panel__inner,
    .section-head,
    .ranking-card,
    .overview-card,
    .detail-sidebar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .quick-panel__inner {
        border-radius: 0;
        width: 100%;
    }

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

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

    .ranking-card__cover img {
        width: 100%;
        height: 180px;
    }
}

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

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

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-actions,
    .quick-search,
    .search-panel,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .quick-search button,
    .search-panel button,
    .mobile-search button {
        width: 100%;
    }

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

    .section {
        padding: 48px 0;
    }

    .content-card,
    .meta-card {
        padding: 20px;
    }
}
