:root {
    color-scheme: dark;
    --bg: #030712;
    --bg-soft: #0b1120;
    --bg-panel: #111827;
    --bg-card: #121826;
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.16);
    --amber: #f59e0b;
    --orange: #ea580c;
    --red: #ef4444;
    --blue: #06b6d4;
    --purple: #a855f7;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.12), transparent 30%),
        radial-gradient(circle at 90% 12%, rgba(234, 88, 12, 0.12), transparent 34%),
        linear-gradient(180deg, #030712 0%, #0b1120 46%, #030712 100%);
    color: var(--text);
}

body.is-locked {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(0, 0, 0, 0.94), rgba(17, 24, 39, 0.94));
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.section-shell,
.hero-content,
.page-hero,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong,
.footer-brand strong {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: normal;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-soft);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(245, 158, 11, 0.14);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: #ffffff;
}

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

.hero-track {
    position: relative;
    min-height: 72vh;
}

.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;
    position: absolute;
    inset: 0;
    filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.58) 52%, rgba(0, 0, 0, 0.26) 100%),
        linear-gradient(0deg, #030712 0%, rgba(3, 7, 18, 0.36) 50%, rgba(3, 7, 18, 0.48) 100%);
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: 12%;
    top: 16%;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.2);
    filter: blur(80px);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 52px;
    padding: 70px 0;
}

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

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    color: #ffffff;
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 20px 0 18px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h1,
.hero-copy h2 {
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    max-width: 900px;
}

.hero-copy h2 + p,
.hero-copy h1 + h2 + p,
.hero-copy p,
.page-hero p,
.detail-copy p {
    color: var(--text-soft);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.8;
}

.hero-search,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 28px 0 0;
    padding: 8px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search input,
.inline-filter input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    padding: 10px 12px;
}

.hero-search button,
.inline-filter button,
.btn-primary,
.btn-ghost,
.rank-action {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    color: #ffffff;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.inline-filter button,
.btn-primary {
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-search button:hover,
.inline-filter button:hover,
.btn-primary:hover,
.btn-ghost:hover,
.rank-action:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: perspective(1000px) rotateY(-6deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-6px);
}

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

.hero-poster span {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.92);
    color: #ffffff;
    font-weight: 900;
}

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

.hero-dot {
    width: 32px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.section-shell {
    padding: 72px 0;
}

.section-dark {
    position: relative;
}

.section-dark::before {
    content: "";
    position: absolute;
    inset: 0 calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.44), rgba(0, 0, 0, 0.1));
    z-index: -1;
}

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

.section-title span {
    display: block;
    color: var(--amber);
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
}

.section-title a {
    color: #fbbf24;
    font-weight: 800;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.38);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

.movie-link:hover .movie-thumb img {
    transform: scale(1.08);
}

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 62%);
    opacity: 0.86;
}

.movie-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.86);
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.94);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-duration {
    position: absolute;
    z-index: 3;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.66);
    color: #ffffff;
    font-size: 0.78rem;
}

.movie-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.movie-info strong {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.42;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info em {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.58;
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag-row span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    font-size: 0.75rem;
    font-style: normal;
}

.movie-card-wide .movie-link {
    flex-direction: row;
}

.movie-card-wide .movie-thumb {
    width: 42%;
    aspect-ratio: 4 / 3;
    flex: 0 0 42%;
}

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

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.category-image,
.category-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-image img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(234, 88, 12, 0.08));
}

.category-copy {
    position: relative;
    z-index: 2;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
}

.category-copy strong {
    font-size: 1.34rem;
    font-weight: 900;
}

.category-copy em {
    margin: 9px 0 14px;
    color: var(--text-soft);
    line-height: 1.6;
    font-style: normal;
}

.category-copy span:last-child {
    color: #fbbf24;
    font-weight: 800;
}

.category-tile:hover .category-image img {
    transform: scale(1.08);
}

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

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

.rank-link {
    display: grid;
    grid-template-columns: 54px 128px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-link:hover {
    transform: translateX(4px);
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(30, 41, 59, 0.92);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.rank-link img {
    width: 128px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.rank-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rank-copy strong {
    font-size: 1.05rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-copy em,
.rank-copy span {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-action {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}

.page-hero {
    min-height: 340px;
    display: flex;
    align-items: center;
    padding: 70px 0 40px;
}

.compact-hero {
    background:
        radial-gradient(circle at 14% 30%, rgba(245, 158, 11, 0.18), transparent 32%),
        radial-gradient(circle at 78% 20%, rgba(6, 182, 212, 0.12), transparent 30%);
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.filter-panel-wide {
    grid-template-columns: minmax(280px, 1fr) 180px 180px 180px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    outline: 0;
    background: rgba(2, 6, 23, 0.82);
    color: #ffffff;
    padding: 0 14px;
}

.category-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-nav-row a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    font-weight: 800;
}

.empty-state {
    margin: 32px 0 0;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-muted);
    text-align: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 28px 0 0;
    color: var(--text-muted);
}

.breadcrumb a {
    color: #fbbf24;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 48px 0;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    background: #111827;
}

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

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

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

.detail-facts div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-facts dt {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.detail-facts dd {
    margin: 6px 0 0;
    color: #ffffff;
    font-weight: 800;
}

.player-section {
    padding: 12px 0 58px;
}

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

.movie-video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    object-fit: contain;
    background: #000000;
}

.player-cover {
    z-index: 3;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.62;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.24));
}

.play-ring {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 16px 44px rgba(245, 158, 11, 0.35);
    font-size: 2rem;
}

.player-cover strong {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: 28px;
    right: 28px;
    text-align: left;
    font-size: clamp(1.2rem, 3vw, 2.2rem);
}

.player-state {
    position: absolute;
    z-index: 4;
    left: 20px;
    top: 20px;
    max-width: calc(100% - 40px);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.66);
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 9px 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-state.is-visible {
    opacity: 1;
}

.content-section {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.content-section h2 {
    margin: 0 0 16px;
    font-size: 1.6rem;
}

.content-section h2 + p {
    margin: 0 0 30px;
}

.content-section p {
    color: var(--text-soft);
    line-height: 2;
    font-size: 1.02rem;
}

.related-section {
    padding-top: 66px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(0, 0, 0, 0.86));
}

.footer-shell {
    padding: 52px 0;
}

.footer-brand {
    align-items: flex-start;
    margin-bottom: 34px;
}

.footer-brand p,
.footer-grid p {
    margin: 10px 0 0;
    max-width: 620px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

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

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

.footer-grid a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

@media (max-width: 1080px) {
    .movie-grid,
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .hero-poster {
        max-width: 360px;
        transform: none;
    }

    .filter-panel-wide {
        grid-template-columns: minmax(220px, 1fr) 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        border: 1px solid rgba(148, 163, 184, 0.16);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
    }

    .hero-slider,
    .hero-track,
    .hero-content {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: auto;
    }

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

    .hero-content {
        padding: 56px 0 78px;
    }

    .hero-search,
    .inline-filter,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .rank-link {
        grid-template-columns: 42px 96px minmax(0, 1fr);
    }

    .rank-action {
        display: none;
    }

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

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

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

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

@media (max-width: 560px) {
    .nav-shell,
    .footer-shell,
    .section-shell,
    .hero-content,
    .page-hero,
    .detail-main {
        width: min(100% - 22px, 1180px);
    }

    .brand-copy em {
        display: none;
    }

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

    .movie-grid,
    .feature-grid,
    .category-grid,
    .category-grid-large,
    .rank-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: block;
    }

    .section-title a {
        display: inline-block;
        margin-top: 12px;
    }

    .movie-card-wide .movie-link {
        flex-direction: column;
    }

    .movie-card-wide .movie-thumb {
        width: 100%;
        flex-basis: auto;
    }

    .rank-link {
        grid-template-columns: 38px 82px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-link img {
        width: 82px;
    }

    .rank-number {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.85rem;
    }

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

    .content-section {
        width: min(100% - 22px, 900px);
        padding: 24px;
    }

    .play-ring {
        width: 72px;
        height: 72px;
        font-size: 1.6rem;
    }
}
