:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-solid: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #10b981;
    --accent-strong: #34d399;
    --accent-dark: #047857;
    --gold: #f59e0b;
    --danger: #f43f5e;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    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;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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: 80;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

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

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

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 16px;
    color: #032014;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, #34d399, #a7f3d0);
    box-shadow: 0 16px 44px rgba(16, 185, 129, 0.32);
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.03em;
}

.brand-copy em {
    color: var(--accent-strong);
    font-size: 12px;
    font-style: normal;
    margin-top: 3px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: var(--muted-strong);
    border-radius: 999px;
    padding: 10px 14px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: white;
    background: rgba(16, 185, 129, 0.16);
    transform: translateY(-1px);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.42);
}

.nav-search input,
.mobile-search input,
.local-filter input,
.local-filter select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
}

.nav-search input {
    width: 220px;
    padding: 8px 10px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.local-filter input::placeholder {
    color: #64748b;
}

.nav-search button,
.mobile-search button,
.local-filter button,
.hero-copy .primary-btn,
.hero-copy .ghost-btn,
.section-action,
.category-link,
.detail-cta,
.detail-ghost,
.player-button,
.load-more-btn {
    border: 0;
    border-radius: 999px;
    color: #031a13;
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 14px 35px rgba(16, 185, 129, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-search button,
.mobile-search button,
.local-filter button {
    padding: 8px 14px;
    font-weight: 700;
}

.nav-search button:hover,
.mobile-search button:hover,
.local-filter button:hover,
.hero-copy .primary-btn:hover,
.section-action:hover,
.category-link:hover,
.detail-cta:hover,
.detail-ghost:hover,
.player-button:hover,
.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(16, 185, 129, 0.36);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: white;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

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

.mobile-search input {
    flex: 1;
    padding: 10px;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 2.8s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.54;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(2, 6, 23, 0.68) 48%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, rgba(2, 6, 23, 0.88) 100%);
}

.hero-inner {
    position: relative;
    z-index: 5;
    display: grid;
    min-height: 100%;
    align-items: center;
    padding: 54px 0;
}

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

.hero-badges,
.movie-meta-line,
.detail-badges,
.rank-meta,
.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-badges span,
.detail-badges span,
.rank-meta span,
.category-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: white;
    font-size: 13px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.hero-badges span:first-child,
.detail-badges span:first-child {
    color: #042016;
    font-weight: 800;
    background: var(--accent-strong);
}

.hero-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

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

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

.hero-copy .primary-btn,
.hero-copy .ghost-btn,
.detail-cta,
.detail-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 900;
}

.detail-ghost {
    color: white;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: none;
}

.hero-copy .ghost-btn {
    color: white;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: none;
}

.hero-copy .ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.78);
}

.hero-controls {
    position: absolute;
    z-index: 10;
    right: max(24px, calc((100% - 1180px) / 2));
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: white;
    background: rgba(15, 23, 42, 0.66);
    backdrop-filter: blur(10px);
}

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

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

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot:hover,
.hero-dot.is-active {
    width: 34px;
    background: var(--accent-strong);
}

.page-shell {
    padding: 54px 0 74px;
}

.page-hero,
.detail-hero {
    margin-bottom: 34px;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.88));
    box-shadow: var(--shadow);
}

.page-hero .eyebrow,
.section-heading .eyebrow,
.detail-content .eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-hero h1,
.detail-content h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p,
.detail-content p {
    margin: 0;
    max-width: 840px;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.85;
}

.section-block {
    margin-top: 58px;
}

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

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

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

.section-action {
    flex: 0 0 auto;
    padding: 11px 18px;
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(52, 211, 153, 0.44);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(30, 41, 59, 0.75)),
        #0f172a;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.76) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-chip {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    color: #041a13;
    font-size: 13px;
    font-weight: 900;
    background: var(--accent-strong);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta-line {
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-line span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #64748b;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--accent-strong);
}

.movie-card p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 12px;
    background: rgba(148, 163, 184, 0.12);
}

.category-link {
    display: inline-flex;
    margin-top: 14px;
    padding: 7px 11px;
    color: #042016;
    font-size: 13px;
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 236px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.category-tile:hover img {
    opacity: 0.62;
    transform: scale(1.06);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.9) 100%);
}

.category-tile-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 236px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.category-tile h2,
.category-tile h3 {
    margin: 0 0 10px;
    font-size: 28px;
}

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

.local-filter {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.66);
}

.local-filter input,
.local-filter select {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: white;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.48);
}

.local-filter select option {
    color: #0f172a;
}

.local-empty {
    display: none;
    padding: 26px;
    border-radius: var(--radius-md);
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.7);
}

.local-empty.is-visible {
    display: block;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 86px 92px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.74);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
    transform: translateX(5px);
    border-color: rgba(52, 211, 153, 0.42);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    color: #07120d;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #34d399);
}

.rank-poster {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
    background: #111827;
}

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

.rank-copy h2,
.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.rank-copy p {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.rank-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: white;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.36);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: clamp(24px, 5vw, 52px);
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

.detail-badges {
    margin: 20px 0;
}

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

.player-section,
.detail-text-card,
.related-aside {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
}

.player-section {
    overflow: hidden;
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #020617;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
    filter: blur(1px);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(16, 185, 129, 0.2), transparent 22rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
}

.player-button {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 26px;
    border: 0;
    font-weight: 900;
}

.player-button span:first-child {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: rgba(2, 6, 23, 0.82);
}

.player-caption {
    padding: 18px 22px;
}

.player-caption h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.player-caption p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.detail-text-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-text-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-text-card p {
    color: var(--muted-strong);
    line-height: 1.9;
}

.related-aside {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.related-aside h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.32);
    transition: background 0.25s ease, transform 0.25s ease;
}

.related-item:hover {
    background: rgba(16, 185, 129, 0.12);
    transform: translateY(-2px);
}

.related-item img {
    width: 74px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.related-item strong {
    display: block;
    margin-bottom: 6px;
    line-height: 1.35;
}

.related-item span {
    color: var(--muted);
    font-size: 13px;
}

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

.breadcrumb a:hover {
    color: var(--accent-strong);
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 88px 16px 24px;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(12px);
}

.search-overlay.is-open {
    display: flex;
}

.search-panel {
    width: min(820px, 100%);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.search-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.search-panel-head strong {
    font-size: 20px;
}

.search-panel-head button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    background: rgba(148, 163, 184, 0.14);
}

.search-results {
    display: grid;
    max-height: min(68vh, 620px);
    overflow: auto;
    gap: 10px;
    padding: 16px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.38);
}

.search-result-item:hover {
    background: rgba(16, 185, 129, 0.12);
}

.search-result-item img {
    width: 64px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.search-result-item strong {
    display: block;
    margin-bottom: 5px;
}

.search-result-item span,
.search-result-item p {
    color: var(--muted);
    font-size: 13px;
}

.search-result-item p {
    margin: 6px 0 0;
    line-height: 1.55;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0;
}

.footer-inner p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--accent-strong);
}

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

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

    .related-aside {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 620px;
    }

    .hero-controls {
        left: 24px;
        right: auto;
    }

    .section-heading,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .detail-poster {
        max-width: 360px;
    }

    .rank-item {
        grid-template-columns: 56px 76px 1fr;
    }

    .rank-link {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .rank-num {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .nav-wrap,
    .hero-inner,
    .page-shell,
    .footer-inner,
    .mobile-panel {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        min-width: 0;
    }

    .brand-copy em {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 590px;
    }

    .hero-inner {
        align-items: end;
        padding-bottom: 120px;
    }

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

    .hero-controls {
        bottom: 28px;
    }

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

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

    .movie-card p,
    .category-link {
        display: none;
    }

    .movie-card h3 {
        font-size: 16px;
    }

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

    .page-hero,
    .detail-hero,
    .detail-text-card,
    .related-aside {
        border-radius: 22px;
    }

    .rank-item {
        grid-template-columns: 44px 64px 1fr;
        gap: 12px;
        padding: 10px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 14px;
    }
}
