:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --sky: #38bdf8;
    --blue: #2563eb;
    --amber: #f59e0b;
    --violet: #8b5cf6;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: white;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.28);
}

.brand-text,
.footer-brand div {
    display: grid;
    gap: 2px;
}

.brand-text strong,
.footer-brand strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #7dd3fc, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small,
.footer-brand small {
    color: var(--muted);
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    color: var(--muted-strong);
    font-size: 14px;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: white;
    background: rgba(30, 41, 59, 0.88);
    transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    color: white;
    background: rgba(15, 23, 42, 0.68);
    outline: none;
    transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search input {
    width: 230px;
    height: 42px;
    padding: 0 14px;
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border 180ms ease;
}

.header-search button,
.mobile-search button,
.primary-button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28);
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.36);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.13);
    background: rgba(15, 23, 42, 0.92);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: white;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

.mobile-search {
    margin-top: 6px;
}

.mobile-search input {
    height: 44px;
    padding: 0 14px;
}

.hero-slider {
    position: relative;
    height: min(680px, calc(100vh - 72px));
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-stage,
.hero-slide,
.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    opacity: 0.62;
}

.hero-bg::after,
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
}

.hero-bg::before {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-bg::after {
    background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.32) 34%, rgba(2, 6, 23, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 48px;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

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

.hero-label,
.section-kicker,
.detail-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-line {
    margin: 0 0 16px;
    color: #e2e8f0;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-summary {
    max-width: 620px;
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 16px;
}

.hero-tags,
.detail-tags,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.footer-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.54);
    font-size: 13px;
}

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

.primary-button,
.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
}

.ghost-button {
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: white;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.56);
}

.ghost-button:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(14, 165, 233, 0.14);
    transform: translateY(-2px);
}

.hero-poster {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 45%, #111827);
    box-shadow: var(--shadow);
}

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

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

.hero-poster:hover img {
    transform: scale(1.06);
}

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

.hero-dots button {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    color: transparent;
    background: rgba(226, 232, 240, 0.35);
    cursor: pointer;
    transition: width 200ms ease, background 200ms ease;
}

.hero-dots button.is-active {
    width: 62px;
    background: linear-gradient(90deg, var(--sky), var(--blue));
}

.content-section,
.ranking-panel,
.filter-panel,
.category-overview-card,
.detail-card,
.side-card {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.28);
}

.content-section,
.filter-panel,
.category-overview-card,
.detail-card,
.side-card,
.ranking-panel {
    padding: 26px;
}

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

.section-heading h2,
.category-overview-head h2,
.side-card h2,
.ranking-panel h2 {
    margin: 10px 0 0;
    color: white;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-heading p,
.category-overview-head p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.compact-heading {
    align-items: center;
}

.compact-heading h2 {
    font-size: 26px;
}

.section-link {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 12px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.08);
    font-size: 14px;
    font-weight: 700;
}

.section-link:hover {
    color: white;
    background: rgba(14, 165, 233, 0.2);
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.62);
    transition: transform 220ms ease, border 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.46);
    box-shadow: 0 22px 50px rgba(14, 165, 233, 0.12);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a8a 50%, #111827);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.02) 36%, rgba(2, 6, 23, 0.86) 100%);
}

.poster-type,
.poster-year {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.poster-type {
    top: 12px;
    left: 12px;
    background: rgba(14, 165, 233, 0.86);
}

.poster-year {
    right: 12px;
    bottom: 12px;
    background: rgba(2, 6, 23, 0.68);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 15px;
}

.movie-card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: white;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 180ms ease;
}

.movie-card:hover .movie-card-title {
    color: #7dd3fc;
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
}

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

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

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

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

.category-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 190px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.34));
    transition: transform 200ms ease, border 200ms ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.44);
}

.category-card span {
    color: white;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-card strong {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: auto;
}

.category-thumbs img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    object-fit: cover;
    background: #0f172a;
}

.split-section,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
}

.split-section > .content-section,
.split-section > .ranking-panel {
    width: 100%;
    margin: 0;
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.5);
    transition: background 180ms ease, transform 180ms ease, border 180ms ease;
}

.rank-item:hover {
    border-color: rgba(56, 189, 248, 0.36);
    background: rgba(30, 41, 59, 0.78);
    transform: translateX(4px);
}

.rank-number {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    display: block;
    width: 54px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f172a, #1e40af);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    color: white;
    font-size: 14px;
}

.rank-info em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

.rank-heat {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.24)),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28rem);
    box-shadow: var(--shadow);
}

.small-hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: clamp(28px, 5vw, 54px);
}

.small-hero h1 {
    max-width: 780px;
    margin: 14px 0 12px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.small-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 17px;
}

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

.breadcrumb a {
    color: #7dd3fc;
}

.category-overview-list {
    display: grid;
    gap: 26px;
    margin-bottom: 32px;
}

.category-overview-card {
    display: grid;
    gap: 12px;
}

.filter-panel {
    margin-top: -8px;
}

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

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

.filter-grid input,
.filter-grid select {
    height: 46px;
    padding: 0 14px;
}

.empty-state {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-md);
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.68);
}

.detail-layout {
    align-items: start;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.detail-main .content-section,
.detail-main .detail-card {
    width: 100%;
    margin: 0;
}

.player-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow);
}

.video-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: white;
    background:
        radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.player-section.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.35);
    font-size: 28px;
    text-indent: 4px;
}

.player-start {
    font-size: 18px;
    font-weight: 900;
}

.detail-card h1 {
    margin: 12px 0 12px;
    font-size: clamp(32px, 4.5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-card p {
    margin: 0;
    color: var(--muted-strong);
}

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

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    color: white;
    background: rgba(15, 23, 42, 0.62);
}

.detail-meta-grid strong {
    color: var(--muted);
    font-size: 12px;
}

.detail-tags {
    margin-bottom: 24px;
}

.detail-text {
    margin-top: 26px;
}

.detail-text h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 24px;
}

.detail-text p {
    color: #cbd5e1;
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.detail-cover {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #0f172a, #1e3a8a 52%, #020617);
    box-shadow: var(--shadow);
}

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

.side-card {
    width: 100%;
    margin: 0;
}

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

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

.side-card dd {
    min-width: 0;
    margin: 0;
    color: white;
}

.side-ranking {
    width: 100%;
    margin: 0;
}

.long-ranking,
.ranking-page-layout > .ranking-panel {
    max-height: 1120px;
    overflow: auto;
}

.site-footer {
    margin-top: 56px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(2, 6, 23, 0.98));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 34px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--muted);
    font-size: 14px;
}

.site-footer p {
    max-width: 360px;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: white;
    font-size: 17px;
}

.site-footer ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 13px;
}

.image-hidden {
    opacity: 0;
}

.poster-frame.image-quiet,
.hero-poster.image-quiet,
.rank-thumb.image-quiet,
.detail-cover.image-quiet,
.category-thumbs.image-quiet {
    background: linear-gradient(135deg, #0f172a, #1e3a8a 48%, #020617);
}

[hidden] {
    display: none !important;
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 260px minmax(0, 1fr);
        align-items: start;
    }

    .side-ranking {
        grid-column: 1 / -1;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .header-inner {
        height: 66px;
    }

    .brand-text small {
        display: none;
    }

    .hero-slider {
        height: auto;
        min-height: 0;
    }

    .hero-stage,
    .hero-slide,
    .hero-bg {
        position: relative;
        inset: auto;
    }

    .hero-stage {
        min-height: 620px;
    }

    .hero-slide {
        display: none;
    }

    .hero-slide.is-active {
        display: block;
    }

    .hero-bg {
        position: absolute;
        inset: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 620px;
        padding: 58px 0 76px;
    }

    .hero-poster {
        width: min(260px, 72vw);
    }

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

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

    .detail-cover {
        max-width: 320px;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .mobile-nav,
    .content-section,
    .ranking-panel,
    .filter-panel,
    .category-overview-card,
    .detail-layout,
    .split-section,
    .page-hero,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .content-section,
    .filter-panel,
    .category-overview-card,
    .detail-card,
    .side-card,
    .ranking-panel {
        padding: 18px;
        border-radius: 22px;
    }

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

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

    .movie-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .movie-card .poster-frame {
        height: 100%;
        min-height: 170px;
        aspect-ratio: auto;
    }

    .movie-card.compact .movie-card-body p {
        display: -webkit-box;
    }

    .filter-grid,
    .detail-meta-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 34px 48px minmax(0, 1fr);
    }

    .rank-heat {
        display: none;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
