:root {
    --bg: #07090f;
    --bg-soft: #10131b;
    --surface: rgba(13, 16, 24, 0.86);
    --surface-strong: #151925;
    --surface-soft: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f7f7fb;
    --muted: #b7becd;
    --accent: #e50914;
    --accent-strong: #ff4757;
    --accent-soft: rgba(229, 9, 20, 0.16);
    --gold: #f5c76b;
    --cyan: #55d6ff;
    --success: #36c98e;
    --warning: #ffbf69;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Nunito Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 88% 10%, rgba(229, 9, 20, 0.2), transparent 30%),
        radial-gradient(circle at 10% 88%, rgba(229, 9, 20, 0.16), transparent 28%),
        linear-gradient(180deg, rgba(229, 9, 20, 0.12), transparent 28%),
        linear-gradient(145deg, #07090f 0%, #0d111a 46%, #05060a 100%);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
}

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

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

.hidden {
    display: none !important;
}

.app-shell,
.page-shell {
    min-height: 100vh;
}

.topbar,
.page-content,
.footer {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.hero-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(4, 5, 9, 0.95) 0%, rgba(4, 5, 9, 0.78) 45%, rgba(4, 5, 9, 0.48) 100%),
        url("https://images.unsplash.com/photo-1524985069026-dd778a71c7b4?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.hero-page::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Bebas Neue", sans-serif;
    color: var(--accent-strong);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    letter-spacing: 0.08em;
}

.brand img {
    width: clamp(160px, 18vw, 240px);
    height: 68px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
    background: rgba(0, 0, 0, 0.18);
}

.brand-mark,
.brand-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.brand-mark {
    padding: 4px 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    min-height: calc(100vh - 106px);
    padding: 18px 0 72px;
    display: grid;
    grid-template-columns: minmax(300px, 1.05fr) minmax(330px, 500px);
    align-items: center;
    gap: 54px;
}

.hero-copy h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(3.4rem, 7vw, 6.6rem);
    line-height: 0.92;
    max-width: 11ch;
}

.hero-copy p {
    max-width: 58ch;
    line-height: 1.75;
    color: var(--muted);
    font-size: 1.03rem;
}

.hero-badges,
.chip-row,
.meta-row,
.actions-row,
.card-tags,
.panel-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge,
.chip,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    font-size: 0.88rem;
}

.badge.featured {
    width: fit-content;
    color: #fff5d8;
    background: rgba(245, 199, 107, 0.14);
    border-color: rgba(245, 199, 107, 0.26);
}

.auth-card,
.panel,
.overview-card,
.player-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.auth-card {
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.auth-visual {
    min-height: 170px;
    padding: 24px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(8, 10, 17, 0.92)),
        url("https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?auto=format&fit=crop&w=1000&q=80") center/cover;
}

.auth-visual strong {
    display: block;
    max-width: 14ch;
    font-size: 1.55rem;
    line-height: 1.08;
}

.auth-content {
    padding: 26px;
    display: grid;
    gap: 18px;
}

.auth-card h2,
.section-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.subtle {
    color: var(--muted);
    line-height: 1.65;
}

.auth-tabs,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button,
.nav-link,
.chip-button,
.sort-button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tab-button:hover,
.nav-link:hover,
.chip-button:hover,
.sort-button:hover,
.tab-button.active,
.nav-link.active,
.chip-button.active,
.sort-button.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
}

.form-stack,
.field,
.stack {
    display: grid;
    gap: 12px;
}

.field {
    gap: 8px;
}

.field label {
    font-weight: 800;
    font-size: 0.94rem;
}

.field input,
.field select,
.search-input,
.profile-form input {
    min-height: 50px;
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 0 16px;
    outline: none;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.field input:focus,
.field select:focus,
.search-input:focus,
.profile-form input:focus {
    border-color: rgba(255, 71, 87, 0.78);
    background: rgba(255, 255, 255, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: rgba(229, 9, 20, 0.18);
    color: #ffd6db;
    border: 1px solid rgba(229, 9, 20, 0.35);
}

.inline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.message {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.93rem;
}

.message.error {
    background: rgba(229, 9, 20, 0.14);
    border-color: rgba(229, 9, 20, 0.28);
    color: #ffd8dc;
}

.message.success {
    background: rgba(54, 201, 142, 0.14);
    border-color: rgba(54, 201, 142, 0.28);
    color: #d9fff0;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(8, 10, 17, 0.88);
    border-bottom: 1px solid var(--border);
}

.page-header-inner {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    min-height: 84px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #3f506e, #171d2a);
    color: #fff;
    font-weight: 800;
}

.dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(340px, 92vw);
    padding: 14px;
    display: grid;
    gap: 14px;
    border-radius: 20px;
    background: rgba(18, 22, 33, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.profile-form {
    display: grid;
    gap: 10px;
}

.page-content {
    padding: 28px 0 56px;
}

.welcome-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 20px;
    align-items: stretch;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.panel,
.overview-card {
    padding: 26px;
}

.hero-panel {
    display: grid;
    gap: 18px;
    background:
        linear-gradient(90deg, rgba(11, 14, 22, 0.96), rgba(11, 14, 22, 0.72)),
        url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.featured-poster-panel {
    min-height: 420px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.featured-poster-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-poster-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(5, 6, 10, 0.94));
}

.featured-poster-copy {
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    padding: 24px;
    display: grid;
    gap: 12px;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-panel h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 0.94;
    max-width: 13ch;
}

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

.stat-card {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.section {
    margin-top: 28px;
}

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

.section-header p {
    color: var(--muted);
}

.toolbar {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.search-row,
.sort-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
}

.search-input {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.media-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover,
.media-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(255, 71, 87, 0.34);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
}

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

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

.card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 1.04rem;
    line-height: 1.35;
}

.favorite-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 0 0 auto;
}

.favorite-button.active {
    background: rgba(229, 9, 20, 0.18);
    border-color: rgba(229, 9, 20, 0.36);
    color: #ffd1d7;
}

.card-copy {
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.92rem;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.empty-state {
    padding: 26px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.featured-banner {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: 24px;
    background: #111827;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.featured-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 10, 17, 0.95) 0%, rgba(8, 10, 17, 0.55) 44%, rgba(8, 10, 17, 0.14) 100%);
}

.featured-body {
    position: relative;
    z-index: 1;
    width: min(580px, 100%);
    padding: 34px;
    display: grid;
    gap: 16px;
}

.featured-title {
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 0.98;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 50;
    min-width: min(92vw, 420px);
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(12, 15, 23, 0.98);
    box-shadow: var(--shadow);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.74);
}

.player-card {
    width: min(960px, 100%);
    overflow: hidden;
}

.player-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 18px 0;
}

.player-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #000;
}

.player-copy {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.footer {
    padding: 0 0 34px;
    color: var(--muted);
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0;
    background:
        linear-gradient(90deg, rgba(229, 9, 20, 0.12), transparent 34%),
        linear-gradient(180deg, #08090e 0%, #05060a 100%);
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(180deg, rgba(9, 10, 14, 0.98), rgba(12, 14, 19, 0.94));
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.28);
}

.app-sidebar .brand {
    width: 100%;
}

.app-sidebar .brand-mark {
    width: 100%;
}

.app-sidebar .brand img {
    width: 100%;
    height: 58px;
    object-position: left center;
    background: transparent;
    box-shadow: none;
}

.dashboard-main {
    min-width: 0;
}

.dashboard-shell .page-header {
    background: rgba(8, 9, 13, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dashboard-shell .page-header-inner {
    width: min(100% - 32px, 1180px);
    min-height: 82px;
    grid-template-columns: minmax(260px, 680px) auto;
    justify-content: space-between;
}

.dashboard-shell .page-content {
    width: min(100% - 32px, 1180px);
    padding: 28px 0 38px;
}

.dashboard-shell .footer {
    width: min(100% - 32px, 1180px);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-label {
    margin: 0 10px 4px;
    color: #737987;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sidebar-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 10px;
    min-height: 44px;
    padding: 0 14px;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    background: linear-gradient(135deg, var(--accent), #b60710);
    color: #fff;
}

.sidebar-library {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-profile {
    margin-top: auto;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-profile .profile-trigger {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--accent);
}

.sidebar-profile strong {
    display: block;
    font-size: 0.9rem;
}

.top-search {
    min-height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

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

.streaming-main {
    min-width: 0;
}

.streaming-layout .welcome-grid {
    grid-template-columns: 1fr;
}

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

.hero-panel {
    min-height: 360px;
    align-content: end;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(8, 9, 13, 0.94), rgba(8, 9, 13, 0.62) 48%, rgba(8, 9, 13, 0.3)),
        url("https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?auto=format&fit=crop&w=1500&q=82") center/cover;
}

.hero-panel h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 5vw, 4.35rem);
}

.home-rail {
    display: grid;
    gap: 16px;
}

.rail-panel {
    overflow: hidden;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(15, 17, 22, 0.84);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.spotlight-panel {
    position: relative;
    min-height: 275px;
    padding: 0;
}

.spotlight-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.spotlight-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 10, 0.35), rgba(5, 6, 10, 0.98));
}

.rail-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rail-heading h3 {
    font-size: 1rem;
}

.rail-heading button {
    color: var(--accent-strong);
    font-weight: 800;
    font-size: 0.82rem;
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-media {
    width: 100%;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    text-align: left;
    align-items: center;
}

.compact-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: var(--bg-soft);
}

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

.compact-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.compact-copy strong,
.compact-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-copy small {
    color: var(--muted);
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: var(--bg-soft);
}

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

.genre-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-shell .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}

.dashboard-shell .card-thumb {
    aspect-ratio: 3 / 4;
}

.dashboard-shell .media-card {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
}

.dashboard-shell .card-copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media (max-width: 980px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: relative;
        height: auto;
        padding: 14px 16px;
    }

    .sidebar-nav,
    .sidebar-library {
        display: flex;
        flex-wrap: wrap;
    }

    .sidebar-label,
    .sidebar-profile {
        display: none;
    }

    .sidebar-nav .nav-link {
        width: auto;
    }

    .streaming-layout {
        grid-template-columns: 1fr;
    }

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

    .overview-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .page-header-inner,
    .dashboard-shell .page-header-inner {
        grid-template-columns: 1fr;
        padding: 14px 0;
    }

    .hero-copy h1 {
        max-width: 14ch;
    }
}

@media (max-width: 700px) {
    .auth-content,
    .panel,
    .overview-card,
    .featured-body {
        padding: 22px;
    }

    .topbar,
    .page-content,
    .footer,
    .hero-grid {
        width: min(var(--max-width), calc(100% - 24px));
    }

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

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

    .brand {
        gap: 10px;
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .brand img {
        width: min(220px, 72vw);
        height: 62px;
    }

    .dashboard-shell .page-content,
    .dashboard-shell .page-header-inner,
    .dashboard-shell .footer {
        width: min(100% - 24px, 1180px);
    }

    .streaming-layout .overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 420px;
    }

    .featured-banner,
    .featured-poster-panel {
        min-height: 360px;
    }
}
