:root {
  color-scheme: dark;
  --bg: #05080d;
  --panel: #0a0f16;
  --panel-2: #0e151f;
  --line: rgba(184, 209, 231, .14);
  --line-strong: rgba(184, 209, 231, .24);
  --text: #f4f8fb;
  --muted: #8d9aa8;
  --cyan: #74e7ff;
  --cyan-strong: #26c7ed;
  --cyan-soft: rgba(116, 231, 255, .14);
  --card-radius: 28px;
  --sidebar: 226px;
  --comments: 410px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); overflow: hidden; }
button, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.svg-defs { position: fixed; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { width: 100%; min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); background: radial-gradient(circle at 54% 44%, rgba(34, 119, 154, .16), transparent 32%), var(--bg); transition: padding-right .4s cubic-bezier(.22,.8,.2,1), background .3s ease; }
.comments-open .app-shell { padding-right: var(--comments); }
.sidebar { border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 38px 24px 24px; background: rgba(5, 8, 13, .86); z-index: 10; }
.brand { border: 0; background: transparent; font-family: Bahnschrift, "Arial Narrow", sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -1.8px; padding: 0; cursor: pointer; text-align: left; white-space: nowrap; }
.brand span { color: var(--cyan); }
.side-nav { display: grid; gap: 8px; margin-top: 80px; }
.nav-item { height: 54px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--muted); display: flex; gap: 16px; align-items: center; padding: 0 15px; cursor: pointer; font-size: 14px; font-weight: 700; }
.nav-item svg, .round-button svg, .text-button svg, .random-button svg, .feed-footer svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--text); background: var(--cyan-soft); border-color: rgba(116,231,255,.18); box-shadow: inset 3px 0 0 var(--cyan); }
.nav-item.active svg { color: var(--cyan); }
.sidebar-foot { margin-top: auto; padding: 18px 14px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 9px 1fr; gap: 10px; align-items: start; }
.sidebar-foot p { margin: -3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sidebar-foot strong { color: var(--text); font-size: 15px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); margin-top: 3px; }
.mobile-header { display: none; }

.main-stage { min-width: 0; height: 100dvh; display: grid; grid-template-rows: 74px minmax(0, 1fr) 52px; padding: 0 30px; }
.topbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; display: flex; align-items: center; gap: 9px; }
.eyebrow > span { width: 24px; height: 1px; background: var(--cyan); }
.eyebrow b { color: var(--text); font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.text-button, .random-button { height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; display: flex; align-items: center; gap: 9px; padding: 0 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.text-button:hover { background: rgba(255,255,255,.045); }
.random-button { color: #041015; background: var(--cyan); border-color: var(--cyan); }
.random-button:hover { background: #a3efff; }

.feed-stage { min-height: 0; display: grid; grid-template-columns: minmax(100px, 230px) minmax(320px, 460px) 68px minmax(100px, 230px); align-items: center; justify-content: center; gap: 20px; position: relative; perspective: 1200px; }
.video-card { position: relative; height: min(74dvh, 760px); aspect-ratio: 9/16; border-radius: var(--card-radius); overflow: hidden; border: 1px solid rgba(190,220,240,.22); background: #0c131c; box-shadow: 0 34px 90px rgba(0,0,0,.54), 0 0 0 1px rgba(255,255,255,.02) inset; isolation: isolate; }
.video-card video { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-backdrop { object-fit: cover; transform: scale(1.14); filter: blur(28px) saturate(.78) brightness(.48); opacity: .72; }
.video-primary { z-index: 1; object-fit: contain; background: transparent; }
.video-card.playing .play-button { opacity: 0; transform: translate(-50%,-50%) scale(.86); }
.video-card:hover .play-button { opacity: 1; }
.video-vignette { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.36), transparent 23%, transparent 48%, rgba(2,5,9,.92) 100%); }
.ambient-glow { position: absolute; inset: auto 15% 18% 15%; height: 25%; background: var(--cyan); filter: blur(80px); opacity: .09; z-index: 1; }
.card-topline { position: absolute; z-index: 2; left: 20px; right: 20px; top: 20px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.76); font-size: 11px; letter-spacing: 1.6px; font-weight: 700; }
.duration { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 9px; background: rgba(0,0,0,.24); backdrop-filter: blur(10px); }
.play-button { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.56); background: rgba(4,8,12,.34); backdrop-filter: blur(12px); position: absolute; z-index: 3; left: 50%; top: 47%; transform: translate(-50%,-50%); display: grid; place-items: center; cursor: pointer; transition: .25s ease; }
.play-button svg { width: 25px; height: 25px; fill: none; stroke: white; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.play-button .play-icon { fill: white; stroke: white; margin-left: 3px; }
.pause-icon { display: none; }
.playing .pause-icon { display: block; }
.playing .play-icon { display: none; }
.card-content { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; }
.category-row { display: flex; align-items: center; gap: 11px; }
.category-pill { color: var(--cyan); border: 1px solid rgba(116,231,255,.36); background: rgba(7,15,22,.55); border-radius: 999px; padding: 6px 10px; font-size: 11px; line-height: 1; letter-spacing: 1.4px; font-weight: 800; backdrop-filter: blur(10px); }
.views { color: rgba(255,255,255,.65); font-size: 12px; }
.card-content h1 { font-family: Bahnschrift, "Arial Narrow", sans-serif; font-size: clamp(30px, 3vw, 47px); line-height: .98; letter-spacing: -1.8px; margin: 16px 0 12px; text-wrap: balance; }
.video-card .card-content h1 { color: #fff; }
.video-card.long-title .card-content h1 { font-size: clamp(24px, 2.15vw, 35px); line-height: 1.02; letter-spacing: -1.1px; }
.card-content p { color: rgba(235,243,249,.7); font-size: 13px; line-height: 1.55; margin: 0 0 20px; max-width: 95%; }
.progress-track { height: 3px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transition: width .08s linear; }

.ghost-card { height: min(57dvh, 590px); width: 100%; max-width: 215px; border: 1px solid var(--line); border-radius: 22px; padding: 0; background: #090d13; position: relative; overflow: hidden; opacity: .43; cursor: pointer; transition: opacity .25s, transform .25s; }
.ghost-card video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.7); }
.ghost-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,13,.6), transparent); }
.ghost-card > span { position: absolute; z-index: 2; top: 50%; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.48); border: 1px solid rgba(255,255,255,.36); display: grid; place-items: center; }
.ghost-card svg { width: 20px; height: 20px; fill: none; stroke: white; stroke-width: 1.8; }
.ghost-prev { transform: rotateY(9deg) translateX(8px); }
.ghost-prev > span { left: 15px; transform: translateY(-50%) rotate(180deg); }
.ghost-next { transform: rotateY(-9deg) translateX(-8px); }
.ghost-next > span { right: 15px; transform: translateY(-50%); }
.ghost-card:hover { opacity: .75; transform: rotateY(0deg) translateX(0); }
.action-rail { display: grid; gap: 20px; align-content: end; padding-bottom: 24px; }
.action-item { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.round-button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(12,18,26,.82); display: grid; place-items: center; cursor: pointer; transition: .2s ease; backdrop-filter: blur(12px); }
.round-button:hover { color: var(--cyan); border-color: rgba(116,231,255,.55); background: rgba(18,40,50,.88); transform: translateY(-2px); }
.round-button.active { color: #071016; background: var(--cyan); border-color: var(--cyan); }
.round-button.active svg { fill: currentColor; }
.feed-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.feed-dots { display: flex; gap: 7px; }
.feed-dots i { width: 4px; height: 4px; border-radius: 50%; background: #54616e; transition: .2s; }
.feed-dots i.active { width: 20px; border-radius: 4px; background: var(--cyan); }
.feed-footer button { border: 0; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: 12px; }
.feed-footer button svg { width: 16px; }

.comments-panel { position: fixed; z-index: 25; right: 0; top: 0; bottom: 0; width: var(--comments); border-left: 1px solid var(--line-strong); background: rgba(8,12,18,.96); backdrop-filter: blur(24px); transform: translateX(100%); transition: transform .4s cubic-bezier(.22,.8,.2,1); display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.comments-open .comments-panel { transform: translateX(0); }
.comments-head { padding: 28px 24px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.comments-head > div > span, .atlas-head > div > span { color: var(--cyan); text-transform: uppercase; letter-spacing: 1.7px; font-size: 11px; font-weight: 800; }
.comments-head h2, .atlas-head h2 { font-family: Bahnschrift, "Arial Narrow", sans-serif; font-size: 30px; letter-spacing: -.9px; margin: 4px 0 0; }
.comments-head h2 small { color: var(--muted); font: 600 13px "Segoe UI", sans-serif; margin-left: 6px; }
.comments-head .round-button, .atlas-head .round-button { width: 42px; height: 42px; }
.comments-list { overflow-y: auto; padding: 8px 24px 24px; }
.comment { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #071016; background: linear-gradient(135deg, var(--cyan), #8b9cff); }
.comment:nth-child(2n) .avatar { background: linear-gradient(135deg, #ffd36b, #ff7587); }
.comment:nth-child(3n) .avatar { background: linear-gradient(135deg, #89f7b5, #43cda0); }
.comment-name { font-size: 13px; font-weight: 800; }
.comment-time { color: #667482; font-size: 11px; margin-left: 7px; }
.comment p { color: #c7d0d8; margin: 7px 0 11px; font-size: 14px; line-height: 1.55; }
.comment-actions { color: var(--muted); font-size: 11px; display: flex; gap: 17px; }
.comment-actions button { border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.comment-form { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; grid-template-columns: 38px 1fr auto; align-items: end; gap: 10px; background: #080c12; }
.comment-website { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.comment-form textarea { resize: none; min-height: 44px; max-height: 110px; border: 1px solid var(--line-strong); background: #0d141d; color: var(--text); border-radius: 14px; padding: 11px 13px; line-height: 1.45; }
.comment-form button { height: 44px; padding: 0 15px; border: 0; border-radius: 12px; background: var(--cyan); color: #071016; font-weight: 800; cursor: pointer; }
.comment-form button:disabled { cursor: wait; opacity: .55; }
.comments-message { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; line-height: 1.5; padding: 28px 12px; }
.comments-message strong { color: var(--text); font-size: 15px; }
.comments-message button { border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); padding: 8px 13px; cursor: pointer; }

.atlas { position: fixed; z-index: 50; inset: 0; background: rgba(5,8,13,.97); backdrop-filter: blur(30px); padding: 38px clamp(28px, 6vw, 100px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s ease; overflow-y: auto; }
.atlas.open { opacity: 1; visibility: visible; transform: translateY(0); }
.atlas-head { display: flex; justify-content: space-between; align-items: center; max-width: 1420px; margin: 0 auto; }
.atlas-head #closeAtlas { position: fixed; top: 38px; right: clamp(28px, 6vw, 100px); z-index: 2; }
.atlas-categories { max-width: 1420px; margin: 34px auto 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.atlas-categories button { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; padding: 10px 16px; cursor: pointer; font-size: 13px; font-weight: 700; }
.atlas-categories button.active { color: #061016; border-color: var(--cyan); background: var(--cyan); }
.atlas-grid { max-width: 1420px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.atlas-card { position: relative; aspect-ratio: 16/10; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-align: left; padding: 0; cursor: pointer; }
.atlas-card video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.atlas-card:hover video { transform: scale(1.04); }
.atlas-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(3,6,10,.92)); }
.atlas-card div { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; }
.atlas-card span { color: var(--cyan); font-size: 10px; letter-spacing: 1.5px; font-weight: 800; }
.atlas-card h3 { margin: 6px 0 0; font-family: Bahnschrift, "Arial Narrow", sans-serif; font-size: 23px; letter-spacing: -.6px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #eefbff; color: #071016; border-radius: 999px; padding: 11px 17px; font-size: 13px; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

/* Two-axis category carousel: vertical changes videos, horizontal changes categories. */
.category-carousel { display: block; }
.floating-brand { position: fixed; z-index: 14; left: 28px; top: 24px; font-size: 25px; }
.navigation-hint { position: fixed; z-index: 14; right: 148px; top: 29px; display: flex; gap: 18px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.theme-toggle { position: fixed; z-index: 16; right: 28px; top: 17px; min-width: 100px; height: 38px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(12,18,26,.82); color: var(--text); box-shadow: 0 8px 28px rgba(0,0,0,.18); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .3px; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.theme-toggle:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-moon { display: none; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf3f7;
  --panel: #f7fafc;
  --panel-2: #ffffff;
  --line: rgba(28, 64, 84, .14);
  --line-strong: rgba(28, 64, 84, .24);
  --text: #102631;
  --muted: #617582;
  --cyan: #007f9f;
  --cyan-strong: #006e8b;
  --cyan-soft: rgba(0, 127, 159, .11);
}
html[data-theme="light"] .app-shell { background: radial-gradient(circle at 54% 44%, rgba(42, 181, 214, .16), transparent 33%), linear-gradient(145deg, #f8fbfd 0%, var(--bg) 52%, #e6eff4 100%); }
html[data-theme="light"] .theme-toggle { background: rgba(255,255,255,.86); box-shadow: 0 8px 28px rgba(41,74,91,.12); }
html[data-theme="light"] .theme-toggle .theme-sun { display: none; }
html[data-theme="light"] .theme-toggle .theme-moon { display: block; }
html[data-theme="light"] .side-category-title { color: #536a78; }
html[data-theme="light"] .current-category-title { text-shadow: 0 0 22px rgba(0,127,159,.2); }
html[data-theme="light"] .vertical-button:hover { color: var(--cyan-strong); }
html[data-theme="light"] .category-progress { color: var(--muted); }
html[data-theme="light"] .category-carousel .ghost-card { border-color: rgba(38,78,98,.28); box-shadow: 0 24px 55px rgba(38,78,98,.18); }
html[data-theme="light"] .category-carousel .ghost-card::after { background: rgba(235,244,248,.2); }
html[data-theme="light"] .category-carousel .ghost-card:hover::after { background: rgba(235,244,248,.04); }
html[data-theme="light"] .category-carousel .action-item { color: #536a78; }
html[data-theme="light"] .round-button { background: rgba(255,255,255,.86); box-shadow: 0 8px 24px rgba(38,78,98,.1); }
html[data-theme="light"] .round-button:hover { background: #fff; border-color: var(--cyan); }
html[data-theme="light"] .comments-panel { background: rgba(248,251,253,.97); box-shadow: -20px 0 60px rgba(38,78,98,.12); }
html[data-theme="light"] .comment-time { color: var(--muted); }
html[data-theme="light"] .comment p { color: #324c5b; }
html[data-theme="light"] .comment-form { background: #f2f7fa; }
html[data-theme="light"] .comment-form textarea { background: #fff; }
html[data-theme="light"] .atlas { background: rgba(237,243,247,.97); }
html[data-theme="light"] .atlas-card { box-shadow: 0 16px 38px rgba(38,78,98,.13); }
html[data-theme="light"] .atlas-card h3 { color: #fff; }
html[data-theme="light"] .toast { background: #102631; color: #f7fbfd; }
.category-carousel .main-stage { display: block; height: 100dvh; padding: 0 clamp(20px, 3vw, 52px); }
.category-carousel .feed-stage { height: 100dvh; grid-template-columns: minmax(150px, 270px) minmax(350px, 470px) 68px minmax(150px, 270px); gap: clamp(18px, 2.4vw, 42px); }
.current-column { height: 100%; min-width: 0; display: grid; grid-template-rows: 48px 34px minmax(0, auto) 34px 22px; align-content: center; justify-items: stretch; gap: 7px; }
.current-category-title, .side-category-title { margin: 0; font: 700 18px Bahnschrift, "Arial Narrow", sans-serif; letter-spacing: 2.4px; text-transform: uppercase; text-align: center; color: var(--cyan); }
.current-category-title { align-self: end; font-size: 20px; text-shadow: 0 0 22px rgba(116,231,255,.32); }
.side-category { min-width: 0; display: grid; grid-template-rows: 42px minmax(0, auto); gap: 10px; align-content: center; justify-items: center; }
.side-category-title { color: #c4ced7; align-self: end; font-size: 15px; opacity: .72; }
.category-carousel .video-card { height: min(68dvh, 680px); justify-self: center; }
.category-carousel .ghost-card { height: min(53dvh, 530px); max-width: 245px; }
.vertical-button { height: 34px; justify-self: center; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 9px; padding: 0 14px; cursor: pointer; text-transform: uppercase; letter-spacing: 1.2px; font-size: 11px; font-weight: 800; border-radius: 999px; }
.vertical-button:hover { color: var(--cyan); background: var(--cyan-soft); }
.vertical-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vertical-up svg { transform: rotate(-90deg); }
.vertical-down svg { transform: rotate(90deg); }
.category-progress { text-align: center; color: #667482; font-size: 11px; letter-spacing: 1.5px; }
.category-carousel .action-rail { align-content: center; padding-bottom: 0; }
.category-carousel .ghost-card::after { background: rgba(5,8,13,.36); transition: background .25s; }
.category-carousel .ghost-card:hover::after { background: rgba(5,8,13,.16); }
.category-carousel .ghost-card { opacity: .52; }
.category-carousel .ghost-card:hover { opacity: .86; }
.category-carousel .side-category-left .ghost-card > span { left: 15px; transform: translateY(-50%) rotate(180deg); }
.category-carousel .side-category-right .ghost-card > span { right: 15px; transform: translateY(-50%); }
.category-carousel .comments-panel { text-align: left; }

@media (max-width: 1180px) {
  :root { --sidebar: 84px; }
  .sidebar { padding-inline: 17px; align-items: center; }
  .sidebar .brand { font-size: 0; }
  .sidebar .brand::before { content: "IF?"; color: var(--cyan); font-size: 24px; }
  .nav-item { width: 50px; padding: 0; justify-content: center; }
  .nav-item span, .sidebar-foot p { display: none; }
  .sidebar-foot { display: block; padding: 12px; }
  .side-nav { margin-top: 70px; }
  .feed-stage { grid-template-columns: minmax(60px,140px) minmax(310px,430px) 60px minmax(60px,140px); gap: 14px; }
  :root { --comments: 360px; }
  .category-carousel .feed-stage { grid-template-columns: minmax(105px, 175px) minmax(320px, 420px) 60px minmax(105px, 175px); gap: 16px; }
}

@media (max-width: 900px) {
  body { overflow: auto; }
  .app-shell { display: block; min-height: 100dvh; }
  .comments-open .app-shell { padding-right: 0; }
  .sidebar, .topbar, .ghost-card { display: none; }
  .mobile-header { height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; position: fixed; z-index: 15; left: 0; right: 0; top: 0; background: linear-gradient(#05080d 30%, transparent); }
  .mobile-header .brand { font-size: 23px; }
  .mobile-header .round-button { width: 40px; height: 40px; }
  .main-stage { display: block; height: 100dvh; padding: 0; }
  .feed-stage { display: grid; grid-template-columns: minmax(0,1fr); height: 100dvh; min-height: 650px; }
  .category-carousel .feed-stage { display: block; height: 100dvh; min-height: 650px; }
  .floating-brand { left: 16px; top: 18px; font-size: 21px; }
  .floating-brand { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.72); }
  .floating-brand span { color: #74e7ff; }
  .navigation-hint { display: none; }
  .theme-toggle { right: 12px; top: 12px; min-width: 42px; width: 42px; height: 38px; padding: 0; background: rgba(5,8,13,.52); color: #fff; border-color: rgba(255,255,255,.32); box-shadow: none; }
  .theme-toggle span { display: none; }
  html[data-theme="light"] .theme-toggle { background: rgba(255,255,255,.88); color: #16313f; border-color: rgba(26,61,80,.2); box-shadow: 0 6px 20px rgba(27,58,74,.14); }
  html[data-theme="light"] .category-carousel .action-item { color: rgba(255,255,255,.92); text-shadow: 0 1px 7px rgba(0,0,0,.75); }
  .category-carousel .side-category { display: none; }
  .category-carousel .current-column { display: block; height: 100dvh; position: relative; }
  .category-carousel .video-card { width: 100%; height: 100dvh; max-height: none; }
  .category-carousel .current-category-title { position: fixed; z-index: 12; top: 19px; left: 50%; transform: translateX(-50%); font-size: 16px; }
  .category-carousel .vertical-button { position: fixed; z-index: 12; left: 50%; width: 42px; height: 34px; padding: 0; justify-content: center; color: rgba(255,255,255,.82); background: rgba(5,8,13,.42); backdrop-filter: blur(10px); }
  .category-carousel .vertical-button span { display: none; }
  .category-carousel .vertical-up { top: 50px; transform: translateX(-50%); }
  .category-carousel .vertical-down { bottom: 14px; transform: translateX(-50%); }
  .category-carousel .category-progress { position: fixed; z-index: 12; left: 50%; bottom: 58px; transform: translateX(-50%); color: rgba(255,255,255,.64); }
  .video-card { width: 100%; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; border: 0; }
  .video-primary { object-position: center; }
  .card-topline { top: 76px; }
  .card-content { left: 18px; right: 74px; bottom: 28px; }
  .card-content h1 { font-size: clamp(34px, 10vw, 48px); }
  .video-card.long-title .card-content h1 { font-size: clamp(27px, 8vw, 38px); line-height: 1.03; }
  .card-content p { font-size: 14px; }
  .action-rail { position: absolute; z-index: 6; right: 12px; bottom: 42px; }
  .action-item { color: rgba(255,255,255,.84); }
  .action-item .round-button { width: 46px; height: 46px; background: rgba(5,8,13,.5); }
  .feed-footer { display: none; }
  .comments-panel { width: 100%; top: 14dvh; border-left: 0; border-top: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; transform: translateY(100%); }
  .comments-open .comments-panel { transform: translateY(0); }
  .comments-head { padding: 22px 18px 18px; }
  .comments-list { padding-inline: 18px; }
  .comment-form { padding-inline: 14px; grid-template-columns: 34px 1fr auto; }
  .comment-form .avatar { width: 34px; height: 34px; }
  .atlas { padding: 26px 18px; }
  .atlas-grid { grid-template-columns: 1fr; }
  .atlas-head h2 { font-size: 26px; }
  .atlas-head #closeAtlas { top: 25px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
