:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.18);
    --orange: #ea580c;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 8%, rgba(245, 158, 11, 0.12), transparent 28rem),
        radial-gradient(circle at 84% 16%, rgba(147, 51, 234, 0.15), transparent 26rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: #0f172a;
}

body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 36px rgba(245, 158, 11, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
    border-radius: 12px;
    color: var(--muted-strong);
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a {
    padding: 10px 13px;
    font-size: 0.94rem;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fbbf24;
    background: rgba(30, 41, 59, 0.7);
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid var(--line);
}

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

.mobile-nav a {
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.76);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 44%, rgba(2, 6, 23, 0.58) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 140px;
}

.hero-copy {
    width: min(680px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.7);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.3rem, 7vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted-strong);
    font-size: 1.08rem;
}

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

.hero-tags span,
.detail-tags span {
    padding: 7px 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.12);
    font-size: 0.9rem;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 0.96rem;
}

.hero-meta span:first-child,
.detail-meta span:first-child {
    color: #fbbf24;
    font-weight: 800;
}

.hero-meta a,
.detail-meta a {
    color: #fbbf24;
    border-bottom: 1px solid rgba(251, 191, 36, 0.45);
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button {
    padding: 0 26px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.25);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 54px rgba(245, 158, 11, 0.34);
}

.ghost-button {
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    color: #fcd34d;
    background: rgba(30, 41, 59, 0.72);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    font-size: 2.2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
    width: 38px;
    background: #f59e0b;
}

.hero-search-wrap {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 7;
    transform: translateX(-50%);
}

.search-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 108px;
    gap: 10px;
    width: 100%;
    max-width: 900px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel-compact {
    max-width: 840px;
}

.search-panel input,
.search-panel select,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.62);
    outline: none;
    padding: 0 14px;
}

.search-panel input:focus,
.search-panel select:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(245, 158, 11, 0.64);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
}

.search-panel button[type="submit"] {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    z-index: 20;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.97);
    box-shadow: var(--shadow);
}

.search-result-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item:hover {
    background: rgba(245, 158, 11, 0.08);
}

.search-result-item img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.search-result-item strong {
    display: block;
    color: #ffffff;
}

.search-result-item span,
.search-result-item small {
    color: var(--muted);
}

.page-stack {
    display: grid;
    gap: 58px;
    padding: 64px 0;
}

.content-section {
    position: relative;
}

.glass-section {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.7));
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-heading.with-action {
    justify-content: space-between;
}

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    line-height: 1.15;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.22);
}

.text-link {
    min-height: 38px;
    padding: 0 16px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.66);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #0f172a;
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

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

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.score-badge,
.rank-mark {
    position: absolute;
    z-index: 3;
    padding: 5px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(8px);
}

.score-badge {
    top: 10px;
    right: 10px;
    color: #fbbf24;
}

.rank-mark {
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.25;
}

.movie-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.movie-card h3 a:hover {
    color: #fbbf24;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 0.78rem;
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 44px 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.64);
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.ranking-row:hover {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(30, 41, 59, 0.76);
    transform: translateY(-2px);
}

.ranking-number {
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 900;
}

.ranking-poster img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.ranking-info strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-info small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-score {
    color: #fbbf24;
    font-weight: 800;
}

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

.category-card,
.category-overview-card,
.hero-link-panel,
.detail-side-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
}

.category-card {
    padding: 24px;
}

.category-card > a span,
.category-overview-body > span {
    color: #fbbf24;
    font-weight: 800;
}

.category-card h3,
.category-overview-body h2,
.hero-link-panel h2,
.detail-side-card h2 {
    margin: 8px 0 10px;
    color: #ffffff;
}

.category-card p,
.category-overview-body p {
    margin: 0;
    color: var(--muted);
}

.category-samples,
.category-overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a,
.category-overview-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.88);
    font-size: 0.84rem;
}

.category-samples a:hover,
.category-overview-links a:hover {
    color: #fbbf24;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 74px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background:
        radial-gradient(circle at 16% 12%, rgba(245, 158, 11, 0.16), transparent 30rem),
        radial-gradient(circle at 84% 18%, rgba(59, 130, 246, 0.14), transparent 26rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.94));
}

.compact-hero h1,
.ranking-hero h1,
.category-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
}

.page-hero .search-panel {
    margin-top: 28px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
}

.category-poster-set {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    min-height: 300px;
    background: #0f172a;
}

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

.category-overview-body {
    padding: 24px;
}

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

.hero-link-panel {
    padding: 22px;
}

.hero-link-panel a {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #cbd5e1;
}

.hero-link-panel a:last-child {
    border-bottom: 0;
}

.hero-link-panel a:hover {
    color: #fbbf24;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 12px;
    align-items: start;
    margin: -20px 0 28px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
}

.filter-tags {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tags button {
    min-height: 34px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.72);
    padding: 0 12px;
}

.filter-tags button.active,
.filter-tags button:hover {
    border-color: rgba(245, 158, 11, 0.6);
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}

.empty-filter {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.66);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 62px 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(245, 158, 11, 0.14), transparent 30rem),
        radial-gradient(circle at 86% 18%, rgba(147, 51, 234, 0.14), transparent 28rem),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.poster-panel {
    position: relative;
}

.poster-panel img {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.poster-glow {
    position: absolute;
    inset: 10% -8% -8%;
    z-index: 1;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(147, 51, 234, 0.18));
    filter: blur(34px);
}

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

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

.detail-copy h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
}

.player-section {
    padding: 46px 0 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.56));
}

.player-overlay span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 24px 60px rgba(245, 158, 11, 0.3);
    font-size: 2rem;
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding: 32px 0 38px;
}

.detail-article,
.detail-side-card {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.7);
}

.detail-article h2,
.related-section h2 {
    margin: 0 0 14px;
    color: #ffffff;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.9;
}

.detail-side-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.detail-side-card dt {
    color: #64748b;
    font-size: 0.82rem;
}

.detail-side-card dd {
    margin: -8px 0 4px;
    color: #f8fafc;
}

.related-section {
    padding-bottom: 68px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.9);
}

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

.site-footer p {
    max-width: 520px;
    color: var(--muted);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.05rem;
}

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

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

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

.footer-links a:hover {
    color: #fbbf24;
}

.tone-amber { --tone: #f59e0b; }
.tone-rose { --tone: #f43f5e; }
.tone-violet { --tone: #8b5cf6; }
.tone-emerald { --tone: #10b981; }
.tone-orange { --tone: #f97316; }
.tone-red { --tone: #ef4444; }
.tone-sky { --tone: #0ea5e9; }
.tone-slate { --tone: #94a3b8; }
.tone-cyan { --tone: #06b6d4; }
.tone-purple { --tone: #a855f7; }

.category-card,
.category-overview-card,
.category-hero {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 58px rgba(0, 0, 0, 0.28);
}

.category-card::before,
.category-overview-card::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--tone), transparent);
}

.category-card::before {
    margin: -24px -24px 20px;
}

@media (max-width: 1120px) {
    .desktop-nav a:nth-last-child(n + 7) {
        display: none;
    }

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

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

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

    .hero {
        min-height: 86vh;
    }

    .hero-content {
        padding: 80px 0 190px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        bottom: 178px;
    }

    .hero-search-wrap {
        bottom: 22px;
    }

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

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

    .category-grid,
    .category-overview-grid,
    .two-column-list,
    .footer-grid,
    .detail-content-grid,
    .category-hero-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .category-poster-set {
        min-height: 240px;
    }

    .poster-panel {
        width: min(290px, 100%);
        margin: 0 auto;
    }
}

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

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.035em;
    }

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

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

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

    .movie-card p {
        min-height: 40px;
        font-size: 0.82rem;
    }

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

    .glass-section,
    .detail-article,
    .detail-side-card {
        padding: 18px;
        border-radius: 20px;
    }

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

    .ranking-score {
        grid-column: 3;
    }

    .ranking-poster img {
        width: 46px;
        height: 62px;
    }

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