:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: rgba(15, 23, 42, 0.72);
    --panel-deep: #111827;
    --line: #1e293b;
    --line-bright: rgba(16, 185, 129, 0.45);
    --text: #f8fafc;
    --muted: #94a3b8;
    --subtle: #64748b;
    --emerald: #10b981;
    --emerald-light: #34d399;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --rose: #fb7185;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 8%, rgba(16, 185, 129, 0.12), transparent 32rem),
        radial-gradient(circle at 84% 0%, rgba(34, 211, 238, 0.1), transparent 28rem),
        var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(2, 6, 23, 0.82);
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--emerald-light), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(16, 185, 129, 0.25);
    font-size: 15px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover {
    color: var(--emerald-light);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top-search input,
.wide-search input,
.local-filter {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid #334155;
    outline: 0;
    border-radius: 999px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.top-search input {
    width: 220px;
    padding: 10px 16px;
}

.top-search button,
.wide-search button {
    color: #ffffff;
    background: var(--emerald);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.22);
}

.top-search input:focus,
.wide-search input:focus,
.local-filter:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    color: #e2e8f0;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
}

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

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.section-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 600ms ease, visibility 600ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 42%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 48%, rgba(2, 6, 23, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 52px;
    padding: 64px 0;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--emerald-light);
    background: rgba(16, 185, 129, 0.13);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    margin: 18px 0 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 34px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.75;
}

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

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

.primary-btn {
    color: #ffffff;
    background: var(--emerald);
    box-shadow: 0 18px 44px rgba(16, 185, 129, 0.28);
}

.ghost-btn {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid #334155;
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.rank-item:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 30px;
    background: #0f172a;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    font-size: 34px;
    line-height: 1;
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    background: #475569;
    border-radius: 999px;
    transition: width 200ms ease, background 200ms ease;
}

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

.search-band,
.section-block {
    padding: 72px 0;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.search-panel h2,
.section-title h2,
.page-hero h1,
.detail-info h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

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

.wide-search input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
}

.wide-search button {
    min-width: 108px;
}

.wide-search.mini {
    max-width: 620px;
    margin-top: 26px;
}

.muted {
    background: rgba(15, 23, 42, 0.32);
    border-top: 1px solid rgba(30, 41, 59, 0.55);
    border-bottom: 1px solid rgba(30, 41, 59, 0.55);
}

.section-title {
    margin-bottom: 34px;
}

.section-title.centered {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.section-title.centered .section-kicker {
    margin-inline: auto;
}

.section-title p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.section-title.with-line {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section-title.with-line::after {
    content: "";
    flex: 1;
    min-width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), transparent);
}

.section-title.with-line.amber::after {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.5), transparent);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid #1e293b;
    border-radius: var(--radius-lg);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.category-card:hover {
    border-color: var(--line-bright);
    box-shadow: 0 22px 70px rgba(16, 185, 129, 0.12);
}

.category-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 220ms ease;
}

.category-card.hot .category-glow {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.08));
}

.category-card.film .category-glow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.08));
}

.category-card.asia .category-glow {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.08));
}

.category-card.west .category-glow {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.08));
}

.category-card:hover .category-glow {
    opacity: 1;
}

.category-thumbs {
    position: relative;
    z-index: 1;
    height: 98px;
    display: flex;
    margin-bottom: 20px;
}

.category-thumbs img {
    width: 72px;
    height: 98px;
    object-fit: cover;
    margin-right: -26px;
    border: 3px solid #0f172a;
    border-radius: 14px;
    background: #111827;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.category-card h3,
.category-card p,
.category-card span {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card p {
    min-height: 64px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.category-card span {
    color: var(--emerald-light);
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid #1e293b;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.16);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    border-color: var(--line-bright);
    box-shadow: 0 22px 70px rgba(16, 185, 129, 0.12);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0f172a;
}

.movie-card.featured .poster-frame {
    aspect-ratio: 16 / 9;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.04));
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(16, 185, 129, 0.9);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 220ms ease, transform 220ms ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    min-width: 40px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), #f97316);
    border-radius: 10px;
    font-size: 16px;
}

.card-body {
    padding: 18px;
}

.meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--subtle);
    font-size: 12px;
    font-weight: 700;
}

.meta-line span:first-child,
.score {
    color: var(--emerald-light);
    background: rgba(16, 185, 129, 0.12);
    border-radius: 999px;
    padding: 4px 8px;
}

.movie-card h3 {
    min-height: 58px;
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 19px;
    line-height: 1.35;
    transition: color 180ms ease;
}

.movie-card:hover h3 {
    color: var(--emerald-light);
}

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.tag-row span {
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 9px;
    padding: 5px 8px;
    font-size: 12px;
}

.tag-row.expanded span {
    color: #cbd5e1;
    padding: 7px 11px;
}

.filter-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.sticky-filter {
    position: sticky;
    top: 86px;
    z-index: 20;
}

.local-filter {
    width: min(100%, 420px);
    padding: 14px 18px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 118px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.rank-item:hover {
    border-color: var(--line-bright);
    box-shadow: 0 18px 54px rgba(16, 185, 129, 0.1);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #1e293b;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 900;
}

.rank-item:nth-child(1) .rank-number {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.rank-item:nth-child(2) .rank-number {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.rank-item:nth-child(3) .rank-number {
    background: linear-gradient(135deg, #c2410c, #d97706);
}

.rank-item img {
    width: 118px;
    height: 74px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.rank-content {
    min-width: 0;
}

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

.rank-content strong {
    overflow: hidden;
    color: #f8fafc;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 17px;
}

.rank-content em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.center-actions {
    justify-content: center;
    margin-top: 32px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 390px;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    border-bottom: 1px solid rgba(30, 41, 59, 0.75);
}

.compact-hero {
    min-height: 310px;
    background:
        radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.18), transparent 30rem),
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.12), transparent 32rem),
        #020617;
}

.ranking-hero {
    background:
        radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.16), transparent 26rem),
        radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.13), transparent 30rem),
        #020617;
}

.search-hero {
    background:
        radial-gradient(circle at 25% 0%, rgba(34, 211, 238, 0.14), transparent 30rem),
        radial-gradient(circle at 88% 12%, rgba(16, 185, 129, 0.14), transparent 30rem),
        #020617;
}

.page-hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.78) 52%, rgba(2, 6, 23, 0.22) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.page-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    background-position: center;
    background-size: cover;
    filter: blur(6px) saturate(1.05);
    transform: scale(1.04);
}

.detail-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 44%, rgba(2, 6, 23, 0.48) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.32) 64%, rgba(2, 6, 23, 0.6) 100%);
}

.detail-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: #0f172a;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
}

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

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

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

.detail-info h1 {
    font-size: clamp(36px, 5vw, 68px);
}

.one-line {
    max-width: 860px;
    margin: 20px 0 0;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.detail-meta span {
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}

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

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

.movie-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 1px solid #1e293b;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.32));
    transition: opacity 220ms ease, visibility 220ms ease;
}

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

.big-play {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald);
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.32);
    font-size: 32px;
}

.player-overlay strong {
    max-width: 80%;
    text-align: center;
    font-size: 22px;
}

.content-panel,
.side-panel {
    margin-top: 24px;
    padding: 26px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid #1e293b;
    border-radius: var(--radius-lg);
}

.content-panel h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.content-panel p {
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.95;
}

.side-panel {
    position: sticky;
    top: 100px;
    margin-top: 0;
}

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

.side-card-list .movie-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    border-radius: 16px;
}

.side-card-list .poster-frame {
    height: 100%;
    aspect-ratio: auto;
}

.side-card-list .card-body {
    padding: 14px;
}

.side-card-list .movie-card h3 {
    min-height: auto;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 15px;
}

.side-card-list .movie-card p,
.side-card-list .tag-row,
.side-card-list .score {
    display: none;
}

.search-status {
    min-height: 28px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 16px;
}

.search-status strong {
    color: var(--emerald-light);
}

.site-footer {
    padding: 48px 0 24px;
    background: #020617;
    border-top: 1px solid rgba(30, 41, 59, 0.8);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: start;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    color: #94a3b8;
    font-weight: 700;
}

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

.copyright {
    width: min(1280px, calc(100% - 32px));
    margin: 32px auto 0;
    padding-top: 22px;
    color: #64748b;
    border-top: 1px solid #111827;
    text-align: center;
    font-size: 14px;
}

[data-card].is-hidden {
    display: none;
}

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

    .top-search input {
        width: 170px;
    }

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

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

    .side-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-poster {
        display: none;
    }

    .search-panel,
    .detail-wrap,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .featured-grid,
    .rank-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 620px) {
    .nav-shell,
    .section-inner,
    .footer-inner,
    .copyright,
    .hero-content {
        width: min(100% - 24px, 1280px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

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

    .hero-arrow {
        display: none;
    }

    .wide-search {
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 44px 96px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .rank-item img {
        width: 96px;
        height: 64px;
    }

    .detail-hero {
        padding-top: 42px;
    }

    .content-panel,
    .side-panel {
        padding: 20px;
    }

    .side-card-list .movie-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }
}
