:root {
  color-scheme: dark;
  --bg: #05060a;
  --panel: rgba(12, 13, 20, 0.82);
  --panel-solid: #0c0d14;
  --line: #242736;
  --line-soft: rgba(75, 79, 104, 0.3);
  --text: #f2f2f7;
  --muted: #8b8e9e;
  --soft: #c7c8d2;
  --accent: #9b7cff;
  --accent-2: #6845ff;
  --green: #3de8ad;
  --danger: #ff6b7d;
  --radius-lg: 24px;
  --radius-md: 16px;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 76% -10%, rgba(84, 63, 201, 0.16), transparent 38%),
    linear-gradient(145deg, #05060a 0%, #070810 52%, #05060a 100%);
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.ambient {
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(116, 92, 242, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one { width: 880px; height: 880px; right: -430px; top: -530px; }
.ambient-two { width: 520px; height: 520px; left: -420px; bottom: -340px; }

.shell {
  width: min(1680px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

.topbar {
  height: 82px;
  padding: 0 18px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid #303344;
  border-radius: 23px;
  background: rgba(7, 8, 13, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 80px rgba(0, 0, 0, 0.25);
}

.brand { display: inline-flex; align-items: center; width: max-content; gap: 12px; color: var(--text); text-decoration: none; font-size: 21px; font-weight: 650; letter-spacing: -0.04em; }
.brand-mark { width: 29px; height: 29px; position: relative; display: inline-block; }
.brand-mark span { position: absolute; inset: 3px 11px 3px 4px; border: 2px solid var(--accent); border-radius: 10px 2px 2px 10px; transform: skewY(-18deg); }
.brand-mark span:last-child { inset: 3px 4px 3px 11px; border-color: #ddccff; border-radius: 2px 10px 10px 2px; transform: skewY(18deg); }

.room-status { display: flex; align-items: center; gap: 9px; color: var(--soft); font-size: 14px; }
.online-count { color: var(--muted); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(61, 232, 173, 0.55); flex: 0 0 auto; }
.is-offline .room-status .live-dot { background: var(--danger); box-shadow: 0 0 12px rgba(255,107,125,.45); }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.storage-tab { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--soft); border: 1px solid var(--line); border-radius: 15px; background: #11121a; }
.storage-tab:hover { color: #fff; border-color: #4a4e65; background: #151620; }
.storage-tab svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.storage-tab i { min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 6px; color: #d9ceff; border-radius: 7px; background: rgba(155,124,255,.16); font-size: 11px; font-style: normal; font-weight: 700; }

.profile-pill {
  justify-self: end;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  color: var(--soft);
  background: #11121a;
  border: 1px solid var(--line);
  border-radius: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.profile-pill:hover { border-color: #4a4e65; background: #151620; }
.profile-pill svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #0a0710; background: linear-gradient(135deg, #ded1ff, var(--accent)); font-size: 14px; font-weight: 700; }

.workspace {
  position: relative;
  min-height: calc(100vh - 138px);
  padding-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.watch-column { min-width: 0; display: flex; flex-direction: column; }
.player-card {
  position: relative;
  min-height: 0;
  flex: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 38%, rgba(106, 71, 255, 0.12), transparent 30%),
    linear-gradient(160deg, #0b0c14, #07080d 78%);
  box-shadow: inset 0 1px rgba(255,255,255,.02), 0 24px 80px rgba(0, 0, 0, 0.25);
}
.player-card::after { content: ""; position: absolute; inset: auto -12% -54% 22%; height: 70%; border: 1px solid rgba(132, 98, 255, .12); border-radius: 50%; pointer-events: none; }
.player-empty { height: 100%; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 40px; text-align: center; position: relative; z-index: 1; }
.player-empty[hidden] { display: none; }
.play-orbit { width: 104px; height: 104px; display: grid; place-items: center; border: 1px solid rgba(159, 128, 255, 0.16); border-radius: 50%; margin-bottom: 26px; box-shadow: 0 0 80px rgba(107, 67, 246, .18); }
.play-disc { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #a68bff, #6f49e8); box-shadow: 0 10px 32px rgba(109, 70, 238, .28); }
.play-disc svg { width: 32px; fill: #fff; transform: translateX(2px); }
.player-empty h1 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 46px); letter-spacing: -.055em; font-weight: 600; }
.player-empty > p { margin: 0 0 30px; color: var(--muted); font-size: 16px; }

.source-form { display: flex; align-items: center; }
.source-form input { min-width: 0; color: var(--text); background: transparent; border: 0; outline: none; }
.source-form input::placeholder { color: #6f7281; }
.source-form button { flex: 0 0 auto; color: white; border: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 650; transition: transform .18s ease, filter .18s ease; }
.source-form button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.source-form button:active { transform: translateY(0); }
.source-form-hero { width: min(640px, 100%); padding: 6px 6px 6px 20px; border: 1px solid #333648; border-radius: 17px; background: rgba(10, 11, 18, 0.92); box-shadow: 0 16px 60px rgba(0,0,0,.25); }
.source-form-hero input { width: 100%; height: 46px; font-size: 15px; }
.source-form-hero button { height: 46px; padding: 0 22px; border-radius: 12px; }

.providers { display: flex; gap: 23px; margin-top: 20px; color: #777a89; font-size: 12px; }
.providers span { display: flex; align-items: center; gap: 7px; }
.provider-icon { width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 5px; color: white; font-style: normal; font-size: 8px; font-weight: 800; }
.provider-icon.youtube { background: #f04455; }
.provider-icon.rutube { background: #20222c; color: #47f6b5; }
.provider-icon.vk { background: #397ad9; }

.video-host { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; background: #000; }
.video-host iframe,
.video-host video { display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.player-note { position: absolute; z-index: 3; left: 14px; top: 14px; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #dadbe3; background: rgba(5,6,10,.72); backdrop-filter: blur(12px); font-size: 12px; pointer-events: none; }
.player-note:not([hidden]) { display: flex; }
.player-note span:first-child { color: #fff; font-weight: 700; }
.sync-state { display: inline-flex; align-items: center; gap: 6px; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.14); color: #a8abb8; }
.sync-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(61,232,173,.55); }
.player-error { position: absolute; z-index: 5; inset: 50% auto auto 50%; width: min(410px, calc(100% - 40px)); transform: translate(-50%, -50%); padding: 22px; text-align: center; border: 1px solid #3a3d50; border-radius: 17px; background: rgba(11,12,19,.94); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.player-error strong { display: block; margin-bottom: 8px; font-size: 17px; }
.player-error p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.player-error a { display: inline-flex; height: 40px; align-items: center; padding: 0 15px; color: #fff; text-decoration: none; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 13px; font-weight: 650; }
.fullscreen-button {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  color: #c8cad4;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(8, 9, 14, .74);
  backdrop-filter: blur(14px);
}
.fullscreen-button:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.fullscreen-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fullscreen-button span { font-size: 12px; }

.source-form-dock { height: 62px; margin-top: 14px; padding: 0 7px 0 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(12,13,20,.86); }
.source-form-dock svg { width: 20px; margin-right: 12px; fill: none; stroke: var(--muted); stroke-width: 1.7; }
.source-form-dock input { width: 100%; font-size: 14px; }
.source-form-dock button { height: 48px; padding: 0 21px; border-radius: 12px; }
.upload-panel { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 8px 13px 0; color: var(--muted); font-size: 12px; }
.upload-button { height: 35px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: #d8d9e2; border: 1px solid #303344; border-radius: 11px; background: rgba(15,16,24,.9); cursor: pointer; transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.upload-button:hover { color: #fff; border-color: #504978; background: #151620; }
.upload-button.is-uploading { opacity: .58; cursor: progress; pointer-events: none; }
.upload-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.upload-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.upload-hint { white-space: nowrap; color: #6f7281; }
.upload-progress { width: min(150px, 18vw); height: 4px; overflow: hidden; border-radius: 999px; background: #262938; }
.upload-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #c5adff); transition: width .15s ease; }
.upload-status { min-width: 0; overflow: hidden; color: #9b9eac; text-overflow: ellipsis; white-space: nowrap; }
.source-error { min-height: 20px; margin: 7px 0 0 14px; color: var(--danger); font-size: 13px; }

.chat-panel {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: inset 0 1px rgba(255,255,255,.02);
}

.workspace:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #000;
}
.workspace:fullscreen .watch-column,
.workspace:fullscreen .player-card { width: 100%; height: 100%; }
.workspace:fullscreen .player-card { aspect-ratio: auto; border: 0; border-radius: 0; }
.workspace:fullscreen .video-host { position: absolute; inset: 0; width: 100%; height: 100%; }
.workspace:fullscreen .source-form-dock,
.workspace:fullscreen .upload-panel,
.workspace:fullscreen .source-error { display: none; }
.workspace:fullscreen .chat-panel {
  position: absolute;
  z-index: 6;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(380px, 34vw);
  min-height: 0;
  border-color: rgba(196, 187, 255, .22);
  border-radius: 20px;
  background: rgba(7, 8, 14, .28);
  backdrop-filter: blur(10px) saturate(112%);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.workspace:fullscreen .chat-head { background: rgba(8, 9, 15, .24); border-bottom-color: rgba(255,255,255,.1); }
.workspace:fullscreen .system-message { background: rgba(64, 42, 126, .12); border-color: rgba(168, 138, 255, .18); }
.workspace:fullscreen .message-form { background: rgba(8, 9, 15, .48); border-color: rgba(255,255,255,.14); }
.workspace:fullscreen .fullscreen-button { top: 20px; right: auto; bottom: auto; left: 20px; }
.workspace:fullscreen .player-note { top: 74px; left: 20px; }
.chat-head { min-height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px 0 22px; border-bottom: 1px solid var(--line-soft); }
.chat-head h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.chat-head p { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #11121a; }
.icon-button:hover { color: var(--text); border-color: #44485c; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.people-popover { position: absolute; z-index: 6; right: 16px; top: 70px; width: 245px; max-height: 300px; overflow: auto; padding: 14px; border: 1px solid #343749; border-radius: 14px; background: #11121a; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.popover-title { margin: 1px 3px 11px; color: var(--muted); font-size: 12px; }
.person { display: flex; align-items: center; gap: 10px; padding: 7px 3px; color: var(--soft); font-size: 13px; }
.person-dot { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #0c0b10; font-size: 11px; font-weight: 800; }

.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 18px; scrollbar-width: thin; scrollbar-color: #303344 transparent; }
.system-message { display: flex; gap: 11px; padding: 12px; margin-bottom: 23px; border: 1px solid rgba(138, 103, 255, .16); border-radius: 14px; background: rgba(106, 70, 238, .06); }
.system-icon { color: var(--accent); }
.system-message strong { font-size: 13px; font-weight: 600; }
.system-message p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
.message-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #090a0f; font-size: 12px; font-weight: 800; }
.message-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.message-name { color: #d9dae3; font-size: 13px; font-weight: 600; }
.message-time { color: #606371; font-size: 11px; }
.message-text { color: #b7b9c6; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }

.message-form { margin: 0 14px 14px; min-height: 54px; display: flex; align-items: flex-end; gap: 8px; padding: 7px 7px 7px 14px; border: 1px solid #2c2f40; border-radius: 16px; background: #0e0f16; }
.message-form:focus-within { border-color: #504978; }
.message-form textarea { width: 100%; max-height: 120px; min-height: 37px; padding: 9px 0; resize: none; color: var(--text); outline: none; border: 0; background: transparent; font-size: 14px; line-height: 1.35; }
.message-form textarea::placeholder { color: #646775; }
.message-form button { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.message-form button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.name-dialog { width: min(430px, calc(100% - 32px)); padding: 0; color: var(--text); border: 1px solid #373a4c; border-radius: 23px; background: #0d0e16; box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.name-dialog::backdrop { background: rgba(2,3,6,.76); backdrop-filter: blur(10px); }
.name-dialog form { position: relative; display: flex; flex-direction: column; padding: 35px; }
.dialog-close { position: absolute; right: 17px; top: 14px; color: var(--muted); border: 0; background: transparent; font-size: 27px; font-weight: 300; }
.dialog-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #ad95ff, #6540e7); }
.name-dialog h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.04em; }
.name-dialog p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.name-dialog label { margin: 0 0 8px; color: var(--soft); font-size: 13px; }
.name-dialog input { height: 50px; padding: 0 14px; color: var(--text); outline: none; border: 1px solid #333648; border-radius: 12px; background: #12131c; }
.name-dialog input:focus { border-color: #6a59a7; }
.primary-button { height: 50px; margin-top: 12px; color: white; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 650; }
.storage-dialog { width: min(850px, calc(100% - 30px)); max-height: min(760px, calc(100vh - 30px)); padding: 0; color: var(--text); overflow: hidden; border: 1px solid #373a4c; border-radius: 24px; background: #0b0c13; box-shadow: 0 30px 100px rgba(0,0,0,.72); }
.storage-dialog::backdrop { background: rgba(2,3,6,.78); backdrop-filter: blur(12px); }
.storage-shell { min-height: 390px; max-height: min(760px, calc(100vh - 30px)); display: flex; flex-direction: column; }
.storage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 30px 22px; border-bottom: 1px solid var(--line-soft); background: radial-gradient(circle at 20% -30%, rgba(132,97,255,.17), transparent 58%); }
.storage-kicker { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.storage-head h2 { margin: 7px 0 7px; font-size: 28px; letter-spacing: -.045em; }
.storage-head p { margin: 0; color: var(--muted); font-size: 13px; }
.storage-close { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; background: #12131b; font-size: 25px; font-weight: 300; }
.storage-close:hover { color: #fff; border-color: #4a4e65; }
.storage-list { min-height: 0; overflow-y: auto; padding: 14px; scrollbar-width: thin; scrollbar-color: #303344 transparent; }
.storage-item { display: grid; grid-template-columns: 78px minmax(0,1fr) auto; align-items: center; gap: 15px; min-height: 86px; padding: 10px; margin-bottom: 8px; border: 1px solid #232634; border-radius: 16px; background: #0f1018; }
.storage-item.is-current { border-color: rgba(155,124,255,.48); background: rgba(98,70,181,.1); }
.storage-poster { height: 64px; display: grid; place-items: center; border: 1px solid rgba(155,124,255,.18); border-radius: 11px; background: radial-gradient(circle, rgba(155,124,255,.24), rgba(23,20,34,.9)); color: #c8b8ff; }
.storage-poster span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(155,124,255,.2); font-size: 11px; }
.storage-info { min-width: 0; }
.storage-title { overflow: hidden; color: #e2e3e9; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.storage-meta { margin-top: 7px; overflow: hidden; color: #747786; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.storage-item-actions { display: flex; align-items: center; gap: 8px; }
.storage-play { height: 38px; padding: 0 14px; color: #fff; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 12px; font-weight: 650; }
.storage-play:disabled { color: #9a8fc4; border: 1px solid rgba(155,124,255,.2); background: rgba(155,124,255,.08); cursor: default; }
.storage-delete { width: 38px; height: 38px; display: grid; place-items: center; color: #a9abb6; border: 1px solid #303344; border-radius: 11px; background: #14151e; font-size: 21px; }
.storage-delete:hover { color: #fff; border-color: rgba(255,107,125,.5); background: rgba(255,107,125,.12); }
.storage-empty { flex: 1; place-content: center; padding: 50px 20px; text-align: center; }
.storage-empty:not([hidden]) { display: grid; }
.storage-empty div { color: var(--accent); font-size: 38px; }
.storage-empty strong { margin-top: 12px; font-size: 18px; }
.storage-empty p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 11px 15px; color: var(--soft); border: 1px solid #343749; border-radius: 12px; background: #11121a; box-shadow: 0 16px 50px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.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; }

@media (max-width: 1050px) {
  .shell { width: min(100% - 28px, 900px); }
  .workspace { grid-template-columns: 1fr; min-height: auto; }
  .player-card { flex: none; }
  .player-empty { min-height: 480px; }
  .chat-panel { min-height: 520px; height: 64vh; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 20px); padding-top: 10px; }
  .topbar { height: 67px; padding: 0 10px 0 15px; grid-template-columns: 1fr auto; border-radius: 18px; }
  .brand { font-size: 18px; }
  .room-status { display: none; }
  .profile-pill { min-height: 43px; }
  .storage-tab { min-height: 43px; padding: 0 10px; }
  .storage-tab > span { display: none; }
  .profile-avatar { width: 31px; height: 31px; }
  .profile-pill svg { display: none; }
  .workspace { padding-top: 10px; gap: 10px; }
  .player-card { border-radius: 18px; aspect-ratio: auto; }
  .player-empty { min-height: 430px; padding: 36px 18px; }
  .play-orbit { width: 86px; height: 86px; }
  .play-disc { width: 58px; height: 58px; }
  .player-empty h1 { font-size: 32px; }
  .player-empty > p { max-width: 300px; margin-bottom: 23px; font-size: 14px; }
  .source-form-hero { padding-left: 13px; }
  .source-form-hero button { padding: 0 14px; }
  .providers { gap: 12px; }
  .providers span { gap: 4px; }
  .video-host { position: relative; min-height: 52vw; }
  .source-form-dock { height: 56px; margin-top: 10px; padding-left: 13px; }
  .source-form-dock svg { display: none; }
  .source-form-dock button { height: 43px; padding: 0 14px; }
  .upload-panel { flex-wrap: wrap; gap: 8px 10px; padding: 9px 4px 0; }
  .upload-hint { order: 2; }
  .upload-progress { order: 3; width: 100%; }
  .upload-status { order: 4; width: 100%; }
  .chat-panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: 570px;
    min-height: 0;
    margin-top: 10px;
    border-radius: 18px;
  }
  .fullscreen-button span { display: none; }
  .workspace:fullscreen .chat-panel { top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; height: min(62%, 560px); }
  .name-dialog form { padding: 30px 22px 24px; }
  .storage-head { padding: 23px 20px 18px; }
  .storage-head h2 { font-size: 23px; }
  .storage-item { grid-template-columns: 55px minmax(0,1fr); gap: 11px; }
  .storage-poster { height: 55px; }
  .storage-item-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .storage-play { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
