/* SPDX-License-Identifier: GPL-3.0-or-later */
:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #17191a;
  --panel-2: #1d1f20;
  --line: #292c2d;
  --text: #f4f3ef;
  --muted: #989b9c;
  --faint: #676b6c;
  --accent: #ff6359;
  --accent-soft: #ff8b77;
  --mint: #9fdac5;
  --sidebar-width: 244px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
[hidden] { display: none !important; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: var(--sidebar-width); padding: 27px 16px 18px; background: #141516; border-right: 1px solid #242627; }
.brand { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 11px; color: var(--text); text-decoration: none; font: 800 20px/1 'Manrope', sans-serif; letter-spacing: -.9px; }
.brand img { width: 29px; height: 29px; object-fit: contain; }
.brand-accent { color: var(--accent); }
.beta-tag { margin: 2px 0 0 2px; padding: 4px 5px 3px; border: 1px solid #414445; border-radius: 4px; color: #a9adae; font: 700 8px/1 'DM Sans', sans-serif; letter-spacing: .8px; }
.side-label { margin: 45px 12px 13px; color: #727677; font-size: 9px; font-weight: 700; letter-spacing: 1.55px; }
.nav-list { display: grid; gap: 5px; }
.nav-item, .settings-link { width: 100%; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 13px; height: 44px; padding: 0 12px; color: #a4a7a8; background: transparent; text-align: left; cursor: pointer; transition: color .16s, background .16s; font-size: 13px; font-weight: 600; }
.nav-item:hover, .settings-link:hover { color: var(--text); background: #202223; }
.nav-item.is-active { color: #fff; background: #292324; }
.nav-item.is-active svg { color: var(--accent); }
.nav-item svg, .settings-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.nav-count { margin-left: auto; min-width: 20px; padding: 3px 6px; border-radius: 10px; background: #2d3031; color: #bec0c0; font-size: 10px; text-align: center; }
.sidebar-spacer { flex: 1; min-height: 30px; }
.privacy-card { padding: 14px 13px 15px; border: 1px solid #2a2d2d; border-radius: 10px; background: linear-gradient(145deg, #1b1f1e, #181a1a); }
.privacy-icon { width: 27px; height: 27px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 8px; color: var(--mint); background: #24322e; }
.privacy-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.privacy-card p { margin: 0 0 5px; font-size: 12px; font-weight: 700; }
.privacy-card > span { display: block; color: #969a9a; font-size: 10px; line-height: 1.55; }
.settings-link { margin-top: 17px; height: 42px; }
.sidebar-footer { padding: 12px 12px 0; color: #737778; font-size: 9px; letter-spacing: .1px; }

.main-shell { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 4; height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(24px, 4vw, 60px); border-bottom: 1px solid rgba(255,255,255,.055); background: rgba(16,17,18,.88); backdrop-filter: blur(20px); }
.search-form { width: min(570px, 65%); height: 43px; display: flex; align-items: center; gap: 11px; padding: 0 7px 0 14px; border: 1px solid #2b2e2f; border-radius: 9px; background: #191b1c; transition: border .15s, box-shadow .15s; }
.search-form:focus-within { border-color: #75534f; box-shadow: 0 0 0 3px rgba(255,99,89,.08); }
.search-form > svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #929697; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search-form input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: var(--text); background: transparent; font-size: 12px; }
.search-form input::placeholder { color: #828788; }
.search-form kbd { padding: 3px 6px; border: 1px solid #393d3e; border-radius: 4px; color: #888d8e; font-size: 10px; font-family: inherit; }
.search-submit { display: none; width: 32px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: var(--accent); cursor: pointer; }
.search-submit svg { width: 16px; height: 16px; fill: none; stroke: #1a1514; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.connection-pill { display: flex; align-items: center; gap: 7px; color: #a2a6a6; font-size: 10px; white-space: nowrap; }
.connection-pill i { width: 6px; height: 6px; border-radius: 50%; background: #b5b87b; box-shadow: 0 0 10px #b5b87b55; }
.connection-pill.is-online i { background: #72c7a3; box-shadow: 0 0 10px #72c7a355; }
.connection-pill.is-offline i { background: var(--accent); box-shadow: 0 0 10px #ff635955; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #aaaead; background: transparent; cursor: pointer; }
.icon-button:hover, .refresh-button:hover { color: var(--text); border-color: #353839; background: #202223; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.avatar-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #553d38; border-radius: 50%; color: #ffc2ad; background: linear-gradient(140deg, #3b2826, #252526); font: 700 12px 'Manrope', sans-serif; }
.content-wrap { width: min(1480px, 100%); margin: 0 auto; padding: 33px clamp(24px, 4vw, 60px) 24px; }

.welcome-banner { position: relative; min-height: 216px; display: flex; align-items: center; overflow: hidden; padding: 31px 38px; border: 1px solid #43342f; border-radius: 14px; background: linear-gradient(108deg, #28221f 0%, #2b2320 48%, #272221 100%); }
.welcome-banner::before { position: absolute; inset: 0; content: ''; background: radial-gradient(ellipse at 79% 48%, rgba(243,104,84,.20), transparent 30%), radial-gradient(ellipse at 57% 110%, rgba(176,103,75,.12), transparent 35%); pointer-events: none; }
.welcome-copy { position: relative; z-index: 2; max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #d4a396; font-size: 8px; font-weight: 700; letter-spacing: 1.65px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 11px #ff635988; }
.welcome-copy h1 { margin: 13px 0 9px; color: #f5f1ed; font: 800 clamp(25px, 3vw, 36px)/1.13 'Manrope', sans-serif; letter-spacing: -1.6px; }
.welcome-copy h1 em { color: #f68b78; font-style: normal; }
.welcome-copy p { max-width: 440px; margin: 0; color: #b3aaa5; font-size: 11px; line-height: 1.7; }
.banner-cta { display: inline-flex; align-items: center; gap: 20px; height: 34px; margin-top: 17px; padding: 0 13px; border: 0; border-radius: 7px; color: #211816; background: #f48b75; font-size: 10px; font-weight: 700; cursor: pointer; transition: transform .16s, background .16s; }
.banner-cta:hover { transform: translateY(-1px); background: #ffa18b; }
.banner-cta span { font-size: 15px; line-height: 0; }
.welcome-art { position: absolute; top: 0; right: 5%; width: 300px; height: 100%; display: grid; place-items: center; opacity: .95; }
.art-orbit { position: absolute; border: 1px solid rgba(255,181,151,.16); border-radius: 50%; transform: rotate(-24deg); }
.orbit-one { width: 260px; height: 140px; }
.orbit-two { width: 215px; height: 215px; border-style: dashed; border-color: rgba(255,181,151,.13); }
.art-disc { width: 131px; height: 131px; display: grid; place-items: center; border: 1px solid rgba(255,185,158,.3); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #66443c, #332725 75%); box-shadow: 0 20px 60px rgba(0,0,0,.22), inset 0 0 25px #f89c7b16; transform: rotate(10deg); }
.art-disc img { width: 76px; height: 76px; filter: drop-shadow(0 7px 11px #120d0c77); }
.art-play { position: absolute; top: 50%; left: 50%; width: 39px; height: 39px; display: grid; place-items: center; border: 2px solid #f8beaa; border-radius: 50%; color: #f8beaa; background: #2d2220; box-shadow: 0 6px 20px #1e1717; transform: translate(31px, 14px); }
.art-play svg { width: 18px; height: 18px; fill: currentColor; }
.art-spark { position: absolute; color: #ff9a80; font-size: 20px; }
.spark-one { top: 34px; right: 52px; }
.spark-two { bottom: 34px; left: 27px; color: #e3b486; font-size: 16px; }
.banner-grain { position: absolute; inset: 0; opacity: .08; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E"); }

.browse-section { padding-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-kicker { margin-bottom: 5px; color: #818687; font-size: 8px; font-weight: 700; letter-spacing: 1.45px; }
.section-heading h2 { margin: 0; font: 700 20px/1.3 'Manrope', sans-serif; letter-spacing: -.55px; }
.section-actions { display: flex; align-items: center; gap: 11px; }
.result-count { color: #838788; font-size: 10px; }
.refresh-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #2d3031; border-radius: 8px; color: #989c9c; background: #191b1c; cursor: pointer; transition: .16s; }
.refresh-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.filter-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; margin: 17px 0 20px; padding: 1px 0 3px; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { height: 29px; flex: 0 0 auto; padding: 0 12px; border: 1px solid #303334; border-radius: 20px; color: #aeb1b1; background: #191b1c; font-size: 10px; font-weight: 600; cursor: pointer; transition: .15s; }
.filter-chip:hover { border-color: #65514c; color: var(--text); }
.filter-chip.is-selected { border-color: #da7567; color: #ffd0c5; background: #392523; }
.filter-note { margin-left: auto; padding-left: 15px; color: #737778; font-size: 9px; white-space: nowrap; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px 18px; min-height: 130px; }
.video-grid.is-error { min-height: 0; }
.video-card { min-width: 0; animation: card-in .28s both; }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.thumb-button { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; padding: 0; border: 1px solid #303233; border-radius: 9px; background: linear-gradient(135deg, #272c2c, #35302e); cursor: pointer; text-align: left; }
.thumb-button::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5)); opacity: .65; transition: opacity .2s; }
.thumb-button:hover::after { opacity: .35; }
.thumb-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.thumb-button:hover .thumb-image { transform: scale(1.035); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 68% 34%, #64453d, #2c2c2b 60%, #222424); }
.thumb-fallback img { width: 46px; height: 46px; opacity: .7; }
.duration-badge, .live-badge { position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 4px 6px; border-radius: 4px; color: white; background: rgba(13,14,14,.83); font-size: 9px; font-weight: 700; }
.live-badge { left: 8px; right: auto; color: #fff; background: var(--accent); letter-spacing: .5px; }
.card-copy { display: flex; gap: 10px; padding: 10px 1px 0; }
.channel-avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid #414343; border-radius: 50%; color: #ddd0c5; background: linear-gradient(145deg, #53423c, #303536); font-size: 10px; font-weight: 700; }
.channel-avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-text { min-width: 0; flex: 1; }
.card-title { display: -webkit-box; overflow: hidden; margin: 0 0 5px; color: #f0efeb; font: 600 11px/1.48 'Manrope', sans-serif; letter-spacing: -.1px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px 5px; color: #858a8a; font-size: 9px; line-height: 1.5; }
.card-meta span { white-space: nowrap; }
.card-meta .channel-name { max-width: 100%; overflow: hidden; color: #a3a7a7; text-overflow: ellipsis; }
.card-menu { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; margin: -2px -4px 0 0; border: 0; border-radius: 50%; color: #a2a6a6; background: transparent; cursor: pointer; }
.card-menu:hover, .card-menu.is-saved { color: var(--accent-soft); background: #292122; }
.card-menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skeleton .skeleton-thumb { aspect-ratio: 16/9; border: 1px solid #26292a; border-radius: 9px; background: linear-gradient(100deg,#1a1c1d 20%,#222526 37%,#1a1c1d 55%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton .skeleton-line { height: 9px; margin: 13px 0 8px 40px; border-radius: 8px; background: #1d2021; animation: shimmer 1.4s ease infinite; }
.skeleton .skeleton-line.short { width: 52%; margin-top: 0; }
@keyframes shimmer { to { background-position: -120% 0; } }
.empty-state { grid-column: 1/-1; display: grid; justify-items: center; align-content: center; min-height: 245px; padding: 25px; border: 1px dashed #363a3b; border-radius: 12px; text-align: center; }
.empty-state-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #3b3937; border-radius: 14px; color: #e3917a; background: #282322; }
.empty-state-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty-state h3 { margin: 0 0 6px; font: 700 14px 'Manrope', sans-serif; }
.empty-state p { max-width: 355px; margin: 0; color: #929797; font-size: 10px; line-height: 1.7; }
.empty-state .subtle-button { margin-top: 14px; }
.error-panel { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; padding: 15px 17px; border: 1px solid #52322f; border-radius: 10px; background: #211a1a; }
.error-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #ff9582; background: #3a2422; }
.error-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.error-panel > div:nth-child(2) { flex: 1; }
.error-panel h3 { margin: 0 0 4px; font: 700 11px 'Manrope', sans-serif; }
.error-panel p { margin: 0; color: #aaa1a0; font-size: 9px; line-height: 1.55; }
.subtle-button { border: 1px solid #51413e; border-radius: 7px; padding: 8px 10px; color: #f1c2b5; background: #2a2221; font-size: 9px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.subtle-button:hover { background: #392a28; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 39px; padding-top: 14px; border-top: 1px solid #26292a; color: #666b6b; font-size: 9px; line-height: 1.5; }
.page-footer b { color: #a4a8a8; font-weight: 600; }
.mobile-nav { display: none; }

dialog { color: var(--text); }
.settings-dialog, .watch-dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #383b3c; border-radius: 14px; color: var(--text); background: #17191a; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.settings-dialog { width: 440px; }
.settings-dialog::backdrop, .watch-dialog::backdrop { background: rgba(5,6,6,.78); backdrop-filter: blur(5px); }
.dialog-topline { height: 51px; display: flex; align-items: center; justify-content: space-between; padding: 0 19px; border-bottom: 1px solid #292c2d; }
.dialog-kicker { color: #858b8b; font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.dialog-close { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; color: #a4a7a7; background: transparent; font-size: 21px; line-height: 1; cursor: pointer; }
.dialog-close:hover { border-color: #3c4041; color: #fff; background: #242627; }
.dialog-body { padding: 24px 26px 25px; }
.dialog-symbol { width: 37px; height: 37px; display: grid; place-items: center; margin-bottom: 13px; border: 1px solid #503733; border-radius: 10px; color: #ffa38e; background: #302220; }
.dialog-symbol svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dialog-body h2 { margin: 0 0 5px; font: 800 22px 'Manrope', sans-serif; letter-spacing: -.7px; }
.dialog-intro { margin: 0 0 23px; color: #9da1a1; font-size: 10px; }
.field-label { display: block; margin: 15px 0 7px; color: #c8cbca; font-size: 10px; font-weight: 600; }
.text-field { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #373a3b; border-radius: 7px; outline: none; color: #efefeb; background: #111314; font-size: 10px; }
.text-field::placeholder { color: #696e6f; }
.text-field:focus { border-color: #8d5b51; box-shadow: 0 0 0 3px rgba(255,99,89,.08); }
.select-field { color-scheme: dark; }
.field-help { margin: 7px 0 14px; color: #868b8b; font-size: 9px; line-height: 1.6; }
.field-help a { color: #ef9d88; text-decoration: none; }
.field-help a:hover { text-decoration: underline; }
.privacy-note { display: flex; gap: 9px; margin-top: 18px; padding: 10px; border: 1px solid #2c3a35; border-radius: 8px; color: #a2bcb1; background: #1a2320; font-size: 9px; line-height: 1.55; }
.privacy-lock { color: var(--mint); font-size: 15px; line-height: 12px; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.text-button { padding: 8px 0; border: 0; color: #999d9d; background: transparent; font-size: 10px; cursor: pointer; }
.text-button:hover { color: var(--text); }
.primary-button { height: 35px; padding: 0 13px; border: 0; border-radius: 7px; color: #211816; background: #f48b75; font-size: 10px; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: #ffa18b; }

.watch-dialog { width: min(1060px, calc(100vw - 36px)); border-radius: 13px; }
.watch-topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border-bottom: 1px solid #292c2d; }
.watch-brand { display: flex; align-items: center; gap: 9px; color: #d4d6d4; font-size: 10px; font-weight: 700; }
.watch-brand img { width: 22px; height: 22px; }
.watch-layout { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: 22px; padding: 16px; }
.player-column { min-width: 0; }
.player-frame { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border: 1px solid #323536; border-radius: 9px; background: #080909; }
.player-frame video { width: 100%; height: 100%; display: block; background: #080909; object-fit: contain; }
.player-message { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #d6d2ce; background: #121414; font-size: 11px; text-align: center; }
.player-message.is-error { color: #f1a18f; }
.player-message.is-hidden { display: none; }
.watch-info { padding: 13px 2px 3px; }
.watch-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.watch-heading h2 { margin: 0 0 5px; font: 700 14px/1.4 'Manrope', sans-serif; }
.watch-heading p { margin: 0; color: #9a9f9e; font-size: 9px; }
.save-current { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 31px; padding: 0 9px; border: 1px solid #373a3b; border-radius: 7px; color: #bbc0bf; background: #1e2021; font-size: 9px; cursor: pointer; }
.save-current:hover, .save-current.is-saved { border-color: #714640; color: #ffae9b; background: #2b2221; }
.save-icon { font-size: 15px; line-height: 0; }
.watch-description { max-height: 83px; overflow: auto; margin: 13px 0 0; color: #a1a5a4; font-size: 9px; line-height: 1.65; white-space: pre-wrap; }
.watch-side { position: relative; min-height: 200px; padding: 8px 0 34px; }
.watch-side-label { color: #878d8d; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.playback-note { margin: 10px 0 15px; color: #a3a7a7; font-size: 9px; line-height: 1.65; }
.quality-wrap label { display: block; margin-bottom: 7px; color: #b9bdbd; font-size: 9px; }
.watch-side-foot { position: absolute; right: 0; bottom: 7px; left: 0; padding-top: 11px; border-top: 1px solid #2b2e2f; color: #757a7a; font-size: 8px; }

@media (max-width: 1360px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .welcome-art { right: 2%; }
}
@media (max-width: 1040px) {
  :root { --sidebar-width: 76px; }
  .sidebar { align-items: center; padding-right: 10px; padding-left: 10px; }
  .brand { padding: 0; }
  .brand > span, .side-label, .nav-item span, .privacy-card, .settings-link span, .sidebar-footer { display: none; }
  .nav-list { width: 100%; margin-top: 44px; }
  .nav-item, .settings-link { justify-content: center; padding: 0; }
  .nav-item .nav-count { display: none; }
  .settings-link { margin-top: 12px; }
  .content-wrap { padding-right: 30px; padding-left: 30px; }
  .topbar { padding-right: 30px; padding-left: 30px; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 67px; gap: 11px; padding: 0 17px; }
  .search-form { width: 100%; height: 40px; gap: 8px; padding-left: 11px; }
  .search-form kbd { display: none; }
  .search-submit { display: flex; flex: 0 0 auto; }
  .topbar-actions { gap: 8px; }
  .connection-pill { display: none; }
  .topbar-actions .icon-button { display: none; }
  .avatar-mark { width: 30px; height: 30px; }
  .content-wrap { padding: 18px 17px 22px; }
  .welcome-banner { min-height: 210px; padding: 23px 22px; }
  .welcome-copy { max-width: 70%; }
  .welcome-copy h1 { font-size: 27px; letter-spacing: -1.2px; }
  .welcome-copy p { font-size: 10px; }
  .welcome-art { right: -62px; width: 220px; opacity: .64; }
  .art-disc { width: 104px; height: 104px; }
  .art-disc img { width: 62px; height: 62px; }
  .orbit-one { width: 210px; height: 115px; }
  .orbit-two { width: 175px; height: 175px; }
  .art-play { width: 32px; height: 32px; transform: translate(25px, 12px); }
  .browse-section { padding-top: 28px; }
  .section-heading h2 { font-size: 18px; }
  .filter-row { margin: 14px 0 17px; }
  .filter-note { display: none; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card-copy { gap: 7px; padding-top: 8px; }
  .channel-avatar { width: 26px; height: 26px; }
  .card-title { font-size: 10px; }
  .card-meta { font-size: 8px; }
  .card-menu { width: 22px; margin-right: -3px; }
  .page-footer { flex-direction: column; gap: 6px; margin: 27px 0 82px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 8; display: flex; justify-content: space-around; height: calc(61px + env(safe-area-inset-bottom)); padding: 6px 10px env(safe-area-inset-bottom); border-top: 1px solid #2b2e2f; background: rgba(20,21,22,.96); backdrop-filter: blur(20px); }
  .mobile-nav-item { min-width: 57px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; color: #858b8b; background: transparent; font-size: 8px; cursor: pointer; }
  .mobile-nav-item svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav-item.is-active { color: #ff9280; }
  .watch-layout { grid-template-columns: 1fr; gap: 6px; padding: 11px; }
  .watch-side { min-height: 74px; padding: 8px 0 24px; }
  .playback-note { margin: 6px 0; }
  .quality-wrap { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
  .quality-wrap label { margin: 0; }
  .quality-wrap .text-field { width: auto; min-width: 110px; height: 31px; }
  .watch-side-foot { bottom: 0; }
  .watch-description { max-height: 58px; }
}
@media (max-width: 430px) {
  .welcome-banner { min-height: 228px; padding-right: 17px; padding-left: 18px; }
  .welcome-copy { max-width: 76%; }
  .welcome-copy h1 { font-size: 24px; }
  .welcome-art { right: -96px; opacity: .46; }
  .welcome-copy p { max-width: 240px; }
  .video-grid { gap: 18px 10px; }
  .card-menu { width: 18px; margin-left: -3px; }
  .settings-dialog { width: calc(100vw - 24px); }
  .dialog-body { padding: 20px; }
  .error-panel { flex-wrap: wrap; }
  .error-panel > div:nth-child(2) { min-width: calc(100% - 50px); }
  .error-panel .subtle-button { margin-left: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
