:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-solid: #111827;
    --line: rgba(148, 163, 184, 0.22);
    --line-strong: rgba(34, 211, 238, 0.36);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --orange: #fb923c;
    --pink: #f472b6;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(2, 8, 23, 0.48);
    --header-height: 72px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.18), transparent 28rem),
        radial-gradient(circle at 90% 20%, rgba(244, 114, 182, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    color: var(--text);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-height);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(8, 145, 178, 0.9), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-height);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-strong));
    color: #fff;
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-text,
.footer-brand span:last-child {
    display: grid;
    gap: 2px;
}

.brand-text strong,
.footer-brand strong {
    font-size: 17px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-text em,
.footer-brand em {
    color: #a5f3fc;
    font-style: normal;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.main-nav a,
.nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.nav-dropdown:hover > button {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: grid;
    gap: 6px;
    min-width: 180px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    justify-content: flex-start;
    height: 36px;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.nav-search input {
    width: 190px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: 0.2s ease;
}

.nav-search input:focus {
    width: 250px;
    border-color: var(--cyan);
    background: rgba(255, 255, 255, 0.16);
}

.nav-search button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-search button,
.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-strong));
    color: #00131a;
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.22);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-search button:hover,
.btn:hover {
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero-slider {
    position: relative;
    min-height: min(760px, calc(100vh - var(--header-height)));
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 44px;
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    height: min(760px, calc(100vh - var(--header-height)));
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.9)),
        var(--hero-image) center / cover;
    filter: saturate(1.15);
    z-index: -2;
}

.hero-slide::after {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    height: min(760px, calc(100vh - var(--header-height)));
    background: radial-gradient(circle at 18% 32%, rgba(34, 211, 238, 0.22), transparent 26rem);
    z-index: -1;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 88px 0 110px;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0 0 14px;
    max-width: 860px;
    font-size: clamp(32px, 6vw, 74px);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.5vw, 48px);
    line-height: 1.06;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.78;
}

.hero-tags,
.tag-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: #a5f3fc;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-poster {
    position: relative;
    z-index: 3;
    align-self: center;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transform: perspective(1200px) rotateY(-8deg);
    transition: 0.3s ease;
}

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

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

.hero-poster span,
.detail-poster span {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.92);
    color: #00131a;
    box-shadow: 0 16px 36px rgba(34, 211, 238, 0.34);
}

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

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

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

.category-strip {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(18px);
}

.category-strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
}

.category-strip a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    transition: 0.2s ease;
}

.category-strip a:hover {
    background: rgba(34, 211, 238, 0.16);
    color: #fff;
}

.content-section {
    padding: 68px 0;
}

.accent-section {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.44), rgba(30, 41, 59, 0.36));
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    flex: 0 0 auto;
    color: var(--cyan);
    font-weight: 800;
}

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

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

.movie-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.28);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    background: rgba(15, 23, 42, 0.88);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.24), rgba(15, 23, 42, 0.7));
}

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

.movie-card:hover img,
.compact-card:hover img,
.rank-row:hover img {
    transform: scale(1.06);
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.72));
}

.poster-year {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.64);
    color: #fff;
    font-size: 12px;
}

.card-body {
    display: grid;
    gap: 11px;
    padding: 16px;
}

.card-body strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.7em;
    color: #fff;
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover .card-body strong,
.compact-card:hover strong,
.rank-row:hover strong {
    color: var(--cyan);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.56);
    transition: 0.2s ease;
}

.compact-card:hover,
.rank-row:hover,
.category-tile:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: rgba(15, 23, 42, 0.86);
}

.compact-card img {
    width: 108px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.25s ease;
}

.compact-card span,
.rank-row span {
    min-width: 0;
}

.compact-card strong,
.rank-row strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em,
.rank-row em {
    display: block;
    margin: 7px 0;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.compact-card small {
    display: flex;
    gap: 6px;
}

.compact-card small span {
    color: #67e8f9;
    font-size: 12px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 106px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.58);
    transition: 0.2s ease;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(251, 146, 60, 0.14);
    color: #fed7aa;
    font-weight: 900;
}

.rank-row img {
    width: 106px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.25s ease;
}

.rank-row small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.category-tile {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.18), transparent 9rem),
        rgba(15, 23, 42, 0.62);
    transition: 0.2s ease;
}

.category-tile strong {
    font-size: 20px;
}

.category-tile span {
    color: var(--muted);
    line-height: 1.65;
}

.category-tile em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 18% 16%, rgba(34, 211, 238, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.72));
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.62);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.48);
    color: #fff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.filter-chip.is-active {
    border-color: rgba(34, 211, 238, 0.48);
    background: rgba(34, 211, 238, 0.18);
    color: #a5f3fc;
}

.empty-result {
    margin: 26px 0;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.97), rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.96)),
        var(--detail-image) center / cover;
}

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

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

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

.breadcrumb a {
    color: #a5f3fc;
}

.breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    color: rgba(148, 163, 184, 0.62);
}

.player-shell {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.92);
}

.player-head span {
    color: var(--cyan);
    font-weight: 800;
}

.player-head h2 {
    margin: 0;
    font-size: 22px;
}

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

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    border: 0;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.76)),
        transparent;
    color: #fff;
}

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

.play-ring {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.92);
    color: #00131a;
    font-size: 30px;
    box-shadow: 0 18px 48px rgba(34, 211, 238, 0.34);
}

.player-cover strong {
    max-width: min(86%, 760px);
    font-size: clamp(20px, 3vw, 34px);
}

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

.detail-article,
.detail-info {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
    padding: 26px;
}

.detail-article h2,
.detail-info h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #cbd5e1;
    line-height: 1.9;
}

.detail-info ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-info li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.detail-info strong {
    color: #fff;
}

.site-footer {
    margin-top: 30px;
    padding: 56px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.94));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 28px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--muted);
    line-height: 1.7;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 18px;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 14px;
}

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

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

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

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

@media (max-width: 820px) {
    .nav-bar {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .mobile-nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        display: none;
        order: 10;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 12px 0 4px;
    }

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

    .main-nav a,
    .nav-dropdown > button {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-dropdown {
        display: none;
    }

    .brand-text strong {
        max-width: 210px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-slider {
        min-height: 860px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 20px;
        align-content: start;
        padding-top: 20px;
    }

    .hero-copy {
        padding: 42px 0 0;
    }

    .hero-poster {
        width: min(320px, 86vw);
        margin-inline: auto;
        transform: none;
    }

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

    .section-head {
        display: grid;
        align-items: start;
    }

    .detail-hero-inner,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(360px, 90vw);
        margin-inline: auto;
    }
}

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

    .hero-slider {
        min-height: 780px;
    }

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

    .hero-copy h2 {
        font-size: 28px;
    }

    .content-section {
        padding: 46px 0;
    }

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

    .compact-card,
    .rank-row {
        grid-template-columns: 92px minmax(0, 1fr);
    }

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

    .compact-card img,
    .rank-row img {
        width: 82px;
    }

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