:root {
    --bg: #0c0a09;
    --bg-soft: #1c1917;
    --panel: #292524;
    --panel-light: #44403c;
    --text: #fff7ed;
    --muted: #d6d3d1;
    --subtle: #a8a29e;
    --line: rgba(245, 158, 11, 0.16);
    --gold: #f59e0b;
    --gold-light: #fde68a;
    --gold-dark: #b45309;
    --danger: #ef4444;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    --container: min(1180px, calc(100vw - 32px));
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(180, 83, 9, 0.12), transparent 28%),
        var(--bg);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(245, 158, 11, 0.16);
    background: rgba(12, 10, 9, 0.82);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: var(--container);
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--gold-light);
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1c1917;
    background: linear-gradient(135deg, #fcd34d, #f59e0b 70%, #92400e);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: clamp(18px, 2vw, 24px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: #fef3c7;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.16);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--gold-light);
    background: rgba(41, 37, 36, 0.86);
}

.container-wrap {
    width: var(--container);
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #0c0a09;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #292524, #0c0a09);
}

.hero-backdrop.poster-missing::after,
.poster-shell.poster-missing::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(12, 10, 9, 0.68)),
        radial-gradient(circle at 30% 30%, rgba(253, 230, 138, 0.14), transparent 34%);
}

.hero-image,
.detail-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.95) 0%, rgba(12, 10, 9, 0.62) 45%, rgba(12, 10, 9, 0.18) 100%),
        linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.25) 36%, rgba(12, 10, 9, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: var(--container);
    min-height: 72vh;
    margin: 0 auto;
    padding: 122px 0 148px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--container);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 12px 0 16px;
    max-width: 820px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.1);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags,
.stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
}

.tag-pill,
.stat-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(68, 64, 60, 0.68);
    border: 1px solid rgba(245, 158, 11, 0.14);
    font-size: 12px;
}

.stat-pills strong {
    color: var(--gold-light);
}

.hero-actions,
.player-heading,
.section-heading,
.ranking-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-actions {
    justify-content: flex-start;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}

.button-primary {
    color: #1c1917;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    box-shadow: 0 16px 40px rgba(245, 158, 11, 0.28);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.38);
}

.button-ghost {
    color: var(--gold-light);
    border: 1px solid rgba(245, 158, 11, 0.32);
    background: rgba(28, 25, 23, 0.58);
}

.button-ghost:hover {
    border-color: rgba(253, 230, 138, 0.5);
    background: rgba(68, 64, 60, 0.82);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: var(--gold-light);
    background: rgba(28, 25, 23, 0.76);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border-radius: 999px;
    opacity: 0.5;
    transition: 0.2s ease;
}

.hero-dot.is-active {
    width: 54px;
    opacity: 1;
    background: var(--gold);
}

.hero-rail {
    position: absolute;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 96px;
    z-index: 4;
    width: min(430px, 38vw);
    display: grid;
    gap: 10px;
}

.hero-rail-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: 16px;
    background: rgba(28, 25, 23, 0.68);
    backdrop-filter: blur(14px);
    transition: 0.2s ease;
}

.hero-rail-card:hover {
    transform: translateX(-4px);
    border-color: rgba(253, 230, 138, 0.42);
    background: rgba(68, 64, 60, 0.82);
}

.hero-rail-card span {
    color: var(--gold);
    font-size: 18px;
    font-weight: 900;
}

.hero-rail-card strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-rail-card em {
    color: var(--subtle);
    font-size: 12px;
    font-style: normal;
}

.search-strip {
    position: relative;
    z-index: 10;
    width: var(--container);
    margin: -42px auto 64px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 560px);
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(28, 25, 23, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-strip strong {
    display: block;
    margin-bottom: 4px;
    color: var(--gold-light);
    font-size: 18px;
}

.search-strip span {
    color: var(--subtle);
    font-size: 14px;
}

.search-form-wide,
.filter-bar {
    display: flex;
    gap: 10px;
}

.search-form-wide input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    width: 100%;
    height: 46px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 14px;
    color: var(--text);
    background: rgba(12, 10, 9, 0.72);
    outline: none;
    padding: 0 14px;
}

.search-form-wide button {
    min-width: 92px;
    border: 0;
    border-radius: 14px;
    color: #1c1917;
    background: var(--gold);
    font-weight: 800;
}

.content-section {
    margin: 0 auto 74px;
}

.content-section.no-margin {
    margin-bottom: 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 10px 0 6px;
    font-size: clamp(26px, 4vw, 42px);
    letter-spacing: -0.035em;
}

.section-heading p {
    margin: 0;
    color: var(--subtle);
}

.section-link {
    color: var(--gold-light);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 18px;
}

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

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

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

.movie-card {
    min-width: 0;
    border: 1px solid rgba(245, 158, 11, 0.11);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(28, 25, 23, 0.88);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
    transition: 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 24px 70px rgba(245, 158, 11, 0.12);
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #44403c, #1c1917);
}

.poster-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    color: var(--gold-light);
    font-weight: 900;
    line-height: 1.35;
}

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    padding: 4px 8px;
    border-radius: 999px;
    color: #1c1917;
    background: var(--gold-light);
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1c1917;
    background: var(--gold);
    opacity: 0;
    transform: translateY(8px);
    transition: 0.22s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card-title {
    margin: 0 0 7px;
    font-size: 15px;
    line-height: 1.35;
}

.movie-card-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-meta,
.movie-card-desc {
    margin: 0;
    color: var(--subtle);
    font-size: 12px;
    line-height: 1.6;
}

.movie-card-desc {
    margin-top: 7px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.ranking-panel,
.ranking-board,
.text-card,
.player-card,
.category-tile {
    border: 1px solid rgba(245, 158, 11, 0.14);
    border-radius: var(--radius-lg);
    background: rgba(28, 25, 23, 0.86);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.23);
}

.ranking-panel,
.ranking-board {
    padding: 20px;
}

.ranking-panel-head span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #1c1917;
    background: var(--gold);
    font-weight: 900;
}

.ranking-panel-head h2,
.ranking-board h2,
.text-card h2,
.player-heading h2 {
    margin: 0;
    font-size: 24px;
}

.rank-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.rank-link {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 13px;
    background: rgba(68, 64, 60, 0.34);
    transition: 0.2s ease;
}

.rank-link:hover {
    background: rgba(245, 158, 11, 0.13);
}

.rank-number {
    color: var(--gold);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--subtle);
    font-size: 12px;
}

.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.tab-button {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 999px;
    padding: 9px 16px;
    color: var(--muted);
    background: rgba(41, 37, 36, 0.72);
}

.tab-button.is-active {
    color: #1c1917;
    background: var(--gold);
    font-weight: 900;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.horizontal-card-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 190px);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-color: var(--gold) rgba(68, 64, 60, 0.5);
}

.page-main {
    padding-top: 68px;
}

.page-hero {
    width: var(--container);
    margin: 0 auto;
    padding: 82px 0 44px;
}

.compact-hero h1 {
    max-width: 900px;
    margin-bottom: 14px;
}

.compact-hero p {
    max-width: 760px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-tile {
    display: block;
    min-height: 210px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: 0.22s ease;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.16);
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.36);
}

.category-count {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #1c1917;
    background: var(--gold);
    font-size: 12px;
    font-weight: 900;
}

.category-tile h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-tile p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-samples span {
    max-width: 100%;
    padding: 4px 8px;
    border-radius: 999px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--subtle);
    background: rgba(68, 64, 60, 0.55);
    font-size: 12px;
}

.filter-bar {
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.13);
    border-radius: var(--radius-lg);
    background: rgba(28, 25, 23, 0.68);
}

.filter-bar select {
    max-width: 160px;
}

.empty-filter,
.search-count {
    color: var(--subtle);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-link,
.page-ellipsis {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(41, 37, 36, 0.68);
}

.page-link.is-active {
    color: #1c1917;
    background: var(--gold);
    font-weight: 900;
}

.page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.detail-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding-top: 68px;
}

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

.detail-bg {
    background: #1c1917;
}

.detail-hero-shade {
    background:
        linear-gradient(90deg, rgba(12, 10, 9, 0.95), rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.42)),
        linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.2) 45%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: var(--container);
    margin: 0 auto;
    padding: 44px 0 74px;
}

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

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

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

.detail-poster {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    font-size: clamp(38px, 6vw, 70px);
}

.detail-one-line {
    max-width: 840px;
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.8;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 780px;
    margin: 0 0 28px;
}

.meta-list div {
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 16px;
    background: rgba(28, 25, 23, 0.68);
}

.meta-list dt {
    margin-bottom: 6px;
    color: var(--subtle);
    font-size: 12px;
}

.meta-list dd {
    margin: 0;
    color: var(--gold-light);
    line-height: 1.5;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
    margin-top: -70px;
    position: relative;
    z-index: 5;
}

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

.player-card,
.text-card {
    padding: 22px;
}

.cinema-player {
    position: relative;
    margin-top: 18px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: var(--text);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
}

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

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #1c1917;
    background: var(--gold);
    font-size: 32px;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.38);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.88);
}

.player-format {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.12);
    font-size: 12px;
    font-weight: 800;
}

.text-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 2;
    white-space: pre-wrap;
}

.detail-sidebar {
    min-width: 0;
}

.sticky-board {
    position: sticky;
    top: 88px;
}

.ranking-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

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

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

.standalone-card {
    max-width: 900px;
    margin-bottom: 80px;
}

.search-app .movie-card {
    animation: fadeInUp 0.22s ease both;
}

.site-footer {
    margin-top: 60px;
    padding: 48px 0 30px;
    border-top: 1px solid rgba(245, 158, 11, 0.14);
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.38), #0c0a09);
}

.footer-grid {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 12px;
    color: var(--gold-light);
}

.footer-grid p,
.footer-grid a {
    color: var(--subtle);
    line-height: 1.8;
}

.footer-grid a {
    display: block;
    margin: 3px 0;
}

.footer-grid a:hover {
    color: var(--gold-light);
}

.copyright {
    width: var(--container);
    margin: 26px auto 0;
    color: #78716c;
    font-size: 13px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .movie-grid-eight,
    .movie-grid-six {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-rail {
        display: none;
    }

    .detail-content-grid {
        margin-top: -36px;
    }
}

@media (max-width: 820px) {
    .site-header-inner {
        height: 62px;
    }

    .mobile-menu-button {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        top: 62px;
        left: 16px;
        right: 16px;
        display: none;
        padding: 12px;
        border: 1px solid rgba(245, 158, 11, 0.18);
        border-radius: 18px;
        background: rgba(12, 10, 9, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        text-align: center;
    }

    .hero-slider,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        padding: 110px 0 126px;
    }

    .hero-shade {
        background: linear-gradient(0deg, #0c0a09 0%, rgba(12, 10, 9, 0.66) 45%, rgba(12, 10, 9, 0.28) 100%);
    }

    .search-strip,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-form-wide,
    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

    .movie-grid-four,
    .movie-grid-six,
    .movie-grid-eight,
    .category-grid,
    .large-rank-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        width: min(240px, 72vw);
    }

    .meta-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    :root {
        --container: min(100vw - 22px, 1180px);
    }

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

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-actions,
    .section-heading,
    .player-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid-four,
    .movie-grid-six,
    .movie-grid-eight,
    .category-grid {
        gap: 12px;
    }

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

    .movie-card-desc {
        display: none;
    }

    .rank-link {
        grid-template-columns: 34px 1fr;
    }

    .rank-meta {
        display: none;
    }
}
