:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: #1e293b;
    --panel-deep: #0b1120;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --red: #ef4444;
    --red-deep: #dc2626;
    --orange: #f97316;
    --gold: #f59e0b;
    --blue: #38bdf8;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% -8%, rgba(239, 68, 68, 0.25), transparent 34%),
        radial-gradient(circle at 92% 4%, rgba(249, 115, 22, 0.18), transparent 30%),
        linear-gradient(180deg, #0f172a 0%, #111827 48%, #0f172a 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

body.search-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 38px rgba(2, 6, 23, 0.4);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #fff;
}

.brand {
    font-size: 25px;
    white-space: nowrap;
    background: linear-gradient(90deg, #ef4444, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark,
.footer-brand span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 28px rgba(239, 68, 68, 0.36);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 700;
}

.desktop-nav a {
    position: relative;
    padding: 22px 0;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 13px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--red), var(--orange));
    transition: transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-toggle,
.menu-toggle,
.hero-nav,
.search-close,
.player-overlay,
.filter-clear {
    border: 0;
    cursor: pointer;
}

.search-toggle {
    color: #fff;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.36);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.search-toggle:hover {
    transform: translateY(-1px);
    background: rgba(239, 68, 68, 0.3);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 14px;
}

.hero-carousel {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #0b1120;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: opacity 0.65s ease, transform 1.4s ease;
}

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

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 54px;
    padding: 86px 0 98px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(248, 113, 113, 0.38);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.hero-copy h1 {
    font-size: clamp(38px, 6.1vw, 76px);
}

.hero-copy h2 {
    margin-top: 16px;
    font-size: clamp(28px, 4.3vw, 54px);
    color: #fff7ed;
}

.hero-copy p {
    margin: 20px 0 0;
    max-width: 680px;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span,
.card-tags span,
.detail-tags span,
.filter-chip,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.btn-primary,
.btn-ghost,
.btn-light,
.section-link,
.category-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    padding: 15px 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 20px 36px rgba(239, 68, 68, 0.34);
}

.btn-ghost,
.btn-light {
    padding: 14px 22px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-light:hover,
.section-link:hover,
.category-enter:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    min-height: 430px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow);
    background: rgba(15, 23, 42, 0.45);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 18px -20px auto auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.32);
    filter: blur(46px);
    z-index: 1;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrows {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.hero-nav {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

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

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

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

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.quick-card,
.category-tile,
.info-panel,
.detail-shell,
.watch-panel,
.story-panel,
.related-panel,
.catalog-tools,
.rank-panel {
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.quick-card {
    padding: 24px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.quick-card::after,
.category-tile::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -38px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
}

.quick-card strong,
.category-tile h2 {
    position: relative;
    z-index: 1;
    font-size: 22px;
    margin: 0 0 8px;
}

.quick-card span,
.category-tile p {
    position: relative;
    z-index: 1;
    color: var(--muted);
    line-height: 1.7;
}

.section {
    padding: 66px 0 0;
}

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

.section-kicker {
    color: var(--red);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.section h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.section-header p,
.page-title p {
    color: var(--muted);
    margin: 10px 0 0;
    line-height: 1.8;
    max-width: 720px;
}

.section-link {
    color: #fff;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.32);
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid var(--line);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(248, 113, 113, 0.44);
    box-shadow: 0 24px 58px rgba(239, 68, 68, 0.17);
}

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

.movie-card:not(.movie-card-wide) .card-poster {
    aspect-ratio: 3 / 4;
}

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

.movie-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.12);
}

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

.card-year,
.card-play {
    position: absolute;
    z-index: 2;
}

.card-year {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    background: rgba(220, 38, 38, 0.9);
}

.card-play {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.card-body {
    display: block;
    padding: 18px;
}

.card-body strong {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.card-meta,
.card-desc {
    display: block;
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.55;
}

.card-desc {
    min-height: 40px;
    margin-top: 8px;
    color: var(--muted);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.card-tags span {
    padding: 5px 8px;
    font-size: 12px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card-wide .card-poster {
    height: 100%;
    min-height: 160px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 112px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(248, 113, 113, 0.44);
}

.rank-no {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 1000;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-item img {
    width: 112px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
}

.rank-copy {
    min-width: 0;
}

.rank-copy strong,
.rank-copy span,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    font-size: 18px;
    color: #fff;
    margin-bottom: 4px;
}

.rank-copy span,
.rank-copy em {
    color: var(--subtle);
    font-size: 13px;
    line-height: 1.5;
    font-style: normal;
}

.page-hero {
    margin: 34px 0 0;
    border-radius: 32px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.9), rgba(154, 52, 18, 0.82)),
        radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.18), transparent 28%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.page-title {
    padding: clamp(42px, 7vw, 86px);
}

.page-title p {
    font-size: 17px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(248, 113, 113, 0.42);
}

.category-enter {
    align-self: flex-start;
    color: #fff;
    padding: 9px 14px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.catalog-tools {
    margin: 40px 0 24px;
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.catalog-tools input {
    width: 100%;
    height: 48px;
    color: #fff;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    outline: none;
    padding: 0 18px;
}

.catalog-tools input:focus {
    border-color: rgba(248, 113, 113, 0.62);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.filter-clear {
    height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line);
}

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

.breadcrumb a {
    color: #fecaca;
}

.detail-shell {
    overflow: hidden;
}

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 34px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.55), rgba(15, 23, 42, 0.4));
}

.detail-cover {
    border-radius: 26px;
    overflow: hidden;
    min-height: 520px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-title {
    align-self: center;
}

.detail-title h1 {
    font-size: clamp(34px, 5vw, 64px);
    margin-bottom: 18px;
}

.detail-title p {
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.9;
    margin: 16px 0 0;
}

.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.meta-pill {
    color: #fff;
    background: rgba(15, 23, 42, 0.5);
}

.watch-panel,
.story-panel,
.related-panel,
.rank-panel {
    margin-top: 28px;
    padding: clamp(22px, 4vw, 34px);
}

.watch-panel h2,
.story-panel h2,
.related-panel h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    text-indent: 5px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 24px 68px rgba(239, 68, 68, 0.45);
}

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

.watch-intro,
.story-panel p {
    color: var(--muted);
    line-height: 1.95;
    font-size: 17px;
}

.watch-intro {
    margin: 18px 0 0;
}

.story-panel p {
    margin: 0 0 18px;
}

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

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
}

.search-panel.is-open {
    display: block;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(12px);
}

.search-box {
    position: relative;
    width: min(760px, calc(100% - 28px));
    margin: 7vh auto 0;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-box h2 {
    margin: 0 0 18px;
}

.search-box input {
    width: 100%;
    height: 54px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #fff;
    background: rgba(15, 23, 42, 0.86);
    outline: none;
    padding: 0 20px;
}

.search-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.search-results {
    max-height: min(60vh, 560px);
    overflow: auto;
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-right: 4px;
}

.search-result {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line);
}

.search-result img {
    width: 76px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
}

.search-result strong,
.search-result span,
.search-result em {
    display: block;
}

.search-result strong {
    color: #fff;
    margin-bottom: 4px;
}

.search-result span,
.search-result em {
    color: var(--subtle);
    font-style: normal;
    font-size: 13px;
    line-height: 1.55;
}

.empty-state {
    padding: 24px;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid var(--line);
    text-align: center;
}

.site-footer {
    margin-top: 76px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), #020617);
    border-top: 1px solid var(--line);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 38px;
    padding: 50px 0 34px;
}

.footer-brand {
    font-size: 22px;
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 34px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    text-align: center;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

    .hero-poster {
        min-height: 360px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .brand {
        font-size: 19px;
    }

    .hero-carousel,
    .hero-inner {
        min-height: 780px;
    }

    .hero-inner {
        padding-top: 52px;
        gap: 30px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-controls {
        bottom: 18px;
    }

    .hero-arrows {
        display: none;
    }

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

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-card-wide,
    .rank-item {
        grid-template-columns: 1fr;
    }

    .rank-item img {
        width: 100%;
        height: 170px;
    }

    .catalog-tools {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding: 20px;
    }

    .detail-cover {
        min-height: 420px;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
