:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --bg-top: #fbfcfe;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-muted: #f4f7fb;
  --surface-muted-strong: #e9eef6;
  --surface-inverse: rgba(10, 16, 28, 0.72);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --accent-strong: #1d4ed8;
  --success: #119a62;
  --warn: #d97706;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 28px 68px rgba(15, 23, 42, 0.14);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --player-shell-bg:
    radial-gradient(circle at top, rgba(74, 123, 255, 0.16), transparent 32rem),
    linear-gradient(180deg, #f8fbff 0%, #e7eef9 100%);
  --player-overlay: linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(248, 250, 252, 0.96));
  --player-control-bg: rgba(255, 255, 255, 0.84);
  --player-control-border: rgba(15, 23, 42, 0.08);
  --player-control-text: #0f172a;
  --player-control-muted: rgba(15, 23, 42, 0.18);
  --player-track-bg: rgba(15, 23, 42, 0.16);
  --player-title-surface: rgba(255, 255, 255, 0.84);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --bg-top: #141922;
  --surface: rgba(17, 24, 35, 0.94);
  --surface-strong: #161d28;
  --surface-muted: #121923;
  --surface-muted-strong: #1b2534;
  --surface-inverse: rgba(6, 9, 16, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #f2f5fa;
  --text-soft: #d0d7e4;
  --muted: #93a0b4;
  --accent: #8ab0ff;
  --accent-soft: rgba(138, 176, 255, 0.14);
  --accent-strong: #b7ccff;
  --success: #4cd08f;
  --warn: #f2bb69;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  --shadow-strong: 0 32px 82px rgba(0, 0, 0, 0.34);

  --player-shell-bg:
    radial-gradient(circle at top, rgba(138, 176, 255, 0.22), transparent 32rem),
    linear-gradient(180deg, #0b111c 0%, #06090f 100%);
  --player-overlay: linear-gradient(180deg, rgba(6, 9, 16, 0), rgba(6, 9, 16, 0.92));
  --player-control-bg: rgba(255, 255, 255, 0.12);
  --player-control-border: rgba(255, 255, 255, 0.12);
  --player-control-text: #f8fafc;
  --player-control-muted: rgba(255, 255, 255, 0.18);
  --player-track-bg: rgba(255, 255, 255, 0.18);
  --player-title-surface: rgba(10, 14, 22, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI Variable", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.08), transparent 30rem),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at center, black 24%, transparent 76%);
  pointer-events: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.page-shell {
  position: relative;
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
  overflow-x: hidden;
  overflow-x: clip;
}

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(96px);
  pointer-events: none;
  opacity: 0.48;
}

.ambient-left {
  top: -12rem;
  left: -10rem;
  background: rgba(37, 99, 235, 0.18);
}

.ambient-right {
  right: -14rem;
  bottom: -14rem;
  background: rgba(15, 23, 42, 0.12);
}

.topbar,
.stage-panel,
.dock-panel,
.control-card,
.source-card,
.queue-panel,
.video-meta-card,
.floating-overlay {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  margin-bottom: 22px;
}

.brand-row,
.topbar-room,
.topbar-actions,
.note-row,
.section-head,
.queue-actions,
.chat-message-header,
.floating-handle,
.floating-user,
.floating-actions,
.player-call-row,
.player-action-row,
.player-action-group,
.dock-tabs,
.call-toolbar,
.call-toolbar-actions,
.chat-form-actions,
.queue-item-actions,
.remote-card-meta,
.remote-card-controls,
.remote-card-actions,
.remote-card-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #101828 0%, #344054 100%);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

:root[data-theme="dark"] .brand-mark {
  color: #101828;
  background: linear-gradient(135deg, #dde7ff 0%, #95b2ff 100%);
}

.brand-title,
.section-title {
  margin: 0;
  font-size: clamp(1.08rem, 0.8vw + 0.92rem, 1.36rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.topbar-room {
  justify-self: center;
}

.topbar-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.room-chip,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-neutral {
  color: var(--muted);
}

.badge-success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
  background: color-mix(in srgb, var(--success) 12%, var(--surface-muted));
}

.badge-warn {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 28%, transparent);
  background: color-mix(in srgb, var(--warn) 12%, var(--surface-muted));
}

.topbar-actions {
  justify-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.86fr);
  align-items: start;
  gap: 22px;
}

.page-shell:not([data-view="room"]) .workspace,
.page-shell[data-view="entry"] .workspace {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.stage-panel,
.dock-panel {
  position: relative;
  border-radius: var(--radius-xl);
  min-width: 0;
  max-width: 100%;
}

.stage-panel {
  padding: 18px;
}

.dock-panel {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  min-height: 780px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}

.control-card,
.source-card,
.queue-panel {
  border-radius: var(--radius-lg);
}

.control-card {
  padding: 14px;
  margin-bottom: 16px;
}

.page-shell:not([data-view="room"]) .stage-panel,
.page-shell[data-view="entry"] .stage-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-shell:not([data-view="room"]) .control-card,
.page-shell[data-view="entry"] .control-card {
  margin-bottom: 0;
  padding: 18px;
}

.page-shell:not([data-view="room"]) #playerShell,
.page-shell:not([data-view="room"]) .source-card,
.page-shell:not([data-view="room"]) .note-row,
.page-shell:not([data-view="room"]) .queue-panel,
.page-shell:not([data-view="room"]) .dock-panel,
.page-shell[data-view="entry"] #playerShell,
.page-shell[data-view="entry"] .source-card,
.page-shell[data-view="entry"] .note-row,
.page-shell[data-view="entry"] .queue-panel,
.page-shell[data-view="entry"] .dock-panel {
  display: none;
}

.page-shell[data-view="room"] .control-card {
  display: none;
}

.page-shell:not([data-view="room"]) #copyLinkButton,
.page-shell[data-view="entry"] #copyLinkButton {
  opacity: 0.46;
  pointer-events: none;
}

.control-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) auto;
  gap: 10px;
}

.control-input,
.source-input {
  min-width: 0;
}

.control-input input,
.source-input input,
.chat-form textarea {
  width: 100%;
  outline: none;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.control-input input,
.source-input input {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
}

.chat-form textarea {
  min-height: 102px;
  padding: 14px 16px;
  border-radius: 18px;
  resize: vertical;
}

.control-input input:focus,
.source-input input:focus,
.chat-form textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #101828 0%, #1f2937 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

:root[data-theme="dark"] .button {
  color: #101828;
  background: linear-gradient(180deg, #dce7ff 0%, #abc0ff 100%);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button-ghost,
.button-muted {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

.button-muted.is-active,
.button-ghost.is-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-muted));
}

.button:disabled,
.button-muted:disabled {
  opacity: 0.46;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.icon-button {
  width: 46px;
  padding: 0;
  flex: 0 0 46px;
}

.icon-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 auto;
}

.icon-theme .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-theme .icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-theme .icon-sun {
  display: block;
}

.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;
}

.player-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--player-shell-bg);
  aspect-ratio: 16 / 9;
  min-height: 320px;
  touch-action: manipulation;
}

.shared-video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #04070b;
}

.youtube-player-shell {
  position: absolute;
  inset: 0;
  background: #04070b;
}

.youtube-player,
.youtube-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.16), rgba(226, 232, 240, 0.44)),
    radial-gradient(circle at top, rgba(74, 123, 255, 0.16), transparent 26rem);
}

:root[data-theme="dark"] .video-placeholder {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.56)),
    linear-gradient(135deg, rgba(138, 176, 255, 0.22), transparent 60%);
}

.video-placeholder.hidden {
  display: none;
}

.placeholder-card {
  max-width: 420px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  box-shadow: var(--shadow-strong);
}

:root[data-theme="dark"] .placeholder-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.placeholder-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 0.8vw + 1rem, 1.7rem);
  letter-spacing: -0.05em;
}

.placeholder-card p {
  margin: 0;
  color: var(--muted);
}

:root[data-theme="dark"] .placeholder-card p {
  color: rgba(255, 255, 255, 0.78);
}

.video-meta {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}
#clearQueueButton {
  margin-left: auto;
}

.video-meta-card {
  max-width: min(68%, 360px);
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--player-title-surface);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.video-title {
  display: block;
  color: var(--player-control-text);
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-status {
  display: inline-block;
  margin-top: 4px;
  color: color-mix(in srgb, var(--player-control-text) 60%, transparent);
  font-size: 0.84rem;
}

.player-controls {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 14px 16px 16px;
  background: var(--player-overlay);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.player-shell.controls-hidden .player-controls {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.player-shell.is-fullscreen.controls-hidden .video-meta,
#playerShell:fullscreen .video-meta,
#playerShell:-webkit-full-screen .video-meta {
  transform: translateY(0);
}

.player-shell.is-fullscreen.controls-hidden .video-meta {
  opacity: 0;
  transform: translateY(-12px);
}

#playerShell:fullscreen,
#playerShell:-webkit-full-screen,
.player-shell.is-fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #04070b;
  overflow: hidden;
}

#playerShell:fullscreen .video-frame,
#playerShell:-webkit-full-screen .video-frame,
.player-shell.is-fullscreen .video-frame {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

#playerShell:fullscreen .video-meta,
#playerShell:-webkit-full-screen .video-meta,
.player-shell.is-fullscreen .video-meta {
  top: calc(10px + env(safe-area-inset-top));
  left: calc(10px + env(safe-area-inset-left));
  right: calc(10px + env(safe-area-inset-right));
}

#playerShell:fullscreen .player-controls,
#playerShell:-webkit-full-screen .player-controls,
.player-shell.is-fullscreen .player-controls {
  padding:
    calc(12px + env(safe-area-inset-top))
    calc(12px + env(safe-area-inset-right))
    calc(12px + env(safe-area-inset-bottom))
    calc(12px + env(safe-area-inset-left));
}

.player-call-row {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.player-call-button,
.player-button,
.rate-button,
.queue-action-button,
.pending-file-remove {
  border: 1px solid var(--player-control-border);
  background: var(--player-control-bg);
  color: var(--player-control-text);
  backdrop-filter: blur(12px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.player-call-button,
.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.player-call-button:hover,
.player-button:hover,
.rate-button:hover,
.queue-action-button:hover,
.pending-file-remove:hover {
  transform: translateY(-1px);
}

.player-call-button.is-active,
.player-button.is-active {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, var(--player-control-bg));
}

.timeline-row {
  margin-bottom: 12px;
}

.timeline-input,
.volume-input,
.remote-volume-input {
  --buffered: 0%;
  --progress: 0%;
  width: 100%;
  height: 6px;
  margin: 0;
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--accent) var(--progress),
    color-mix(in srgb, var(--accent) 24%, var(--player-track-bg)) var(--progress),
    color-mix(in srgb, var(--accent) 24%, var(--player-track-bg)) var(--buffered),
    var(--player-track-bg) var(--buffered),
    var(--player-track-bg) 100%
  );
  outline: none;
  cursor: pointer;
}

.timeline-input::-webkit-slider-thumb,
.volume-input::-webkit-slider-thumb,
.remote-volume-input::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.timeline-input::-moz-range-thumb,
.volume-input::-moz-range-thumb,
.remote-volume-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.timeline-input::-moz-range-track,
.volume-input::-moz-range-track,
.remote-volume-input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

.player-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.player-action-group {
  gap: 10px;
}

.player-action-left {
  justify-self: start;
}

.player-action-right {
  justify-self: end;
  justify-content: flex-end;
}

.player-volume {
  width: clamp(100px, 12vw, 148px);
  padding: 0 4px;
}

.time-label {
  min-width: 124px;
  padding: 0 10px;
  color: var(--player-control-text);
  font-size: 0.84rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rate-button {
  min-width: 56px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.player-button .icon-pause,
.player-button .icon-volume-off,
.player-button .icon-fullscreen-exit {
  display: none;
}

.player-button.is-playing .icon-play,
.player-button.is-muted .icon-volume,
.player-button.is-fullscreen .icon-fullscreen {
  display: none;
}

.player-button.is-playing .icon-pause,
.player-button.is-muted .icon-volume-off,
.player-button.is-fullscreen .icon-fullscreen-exit {
  display: block;
}

.source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 14px;
  margin-top: 16px;
}

.note-row {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 0 2px;
}

.status-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.upload-progress {
  width: min(220px, 100%);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 62%, #ffffff) 100%);
  transition: width 160ms ease;
}

.queue-panel {
  margin-top: 16px;
  padding: 16px;
}

.queue-panel .section-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.section-subtitle {
  display: block;
  width: 100%;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-actions {
  margin-left: auto;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-item,
.queue-empty-state {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
}

.queue-item.is-current {
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-muted));
}

.queue-item-copy {
  min-width: 0;
}

.queue-item-title {
  display: block;
  font-size: 0.94rem;
}

.queue-item-meta {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.queue-action-button,
.pending-file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
}

.queue-empty-state {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.dock-head {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
}

.dock-tabs {
  width: 100%;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.dock-tab {
  flex: 1 1 0;
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.dock-tab.is-active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.dock-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-messages,
#callPanel {
  flex: 1;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 18px;
}

.chat-message {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.chat-message-header {
  justify-content: space-between;
  margin-bottom: 6px;
}

.chat-message-header strong {
  font-size: 0.9rem;
}

.chat-message-header time {
  color: var(--muted);
  font-size: 0.76rem;
}

.chat-message p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
  word-break: break-word;
}

.chat-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.chat-attachment-item {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.chat-attachment-item img,
.chat-attachment-item video,
.chat-attachment-item audio {
  width: 100%;
  display: block;
}

.chat-attachment-link {
  display: inline-flex;
  padding: 14px;
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.chat-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
}

.pending-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.pending-file-label {
  min-width: 0;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-form-actions {
  align-self: end;
}

#callPanel {
  flex: 1;
  padding: 18px;
}

.call-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.call-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
  height: 100%;
}

.call-hero,
.call-section,
.call-stage {
  border: 1px solid color-mix(in srgb, var(--border-strong) 90%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 92%, #111827);
}

.call-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: end;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 24%, transparent), transparent 11rem),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 84%, #0f172a), color-mix(in srgb, var(--surface-muted) 86%, #0b1220) 100%);
}

.call-hero-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.call-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-muted) 82%, transparent);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.call-state-badge.is-live {
  color: #4ade80;
  border-color: color-mix(in srgb, #22c55e 34%, transparent);
  background: color-mix(in srgb, #22c55e 18%, transparent);
}

.call-title {
  font-size: 1.04rem;
  color: var(--text);
  letter-spacing: -0.04em;
}

.call-subtitle {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.call-toolbar-actions {
  display: grid;
  grid-template-columns: repeat(6, 48px);
  justify-content: end;
  gap: 8px;
}

.call-primary-button {
  min-width: 124px;
  padding: 0 14px;
  grid-column: span 2;
}

.call-section {
  padding: 12px;
  border-radius: 18px;
  min-width: 0;
  max-width: 100%;
}

.call-members {
  order: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.call-members-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.call-members-head strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.call-members-count {
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-muted) 86%, transparent);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
}

.participants-list {
  display: grid;
  grid-auto-rows: min-content;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.participant-item {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.participant-item.is-self {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface-strong));
}

.participant-item.is-live::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

#toggleScreenShareButton.is-active {
  color: #22c55e;
  border-color: color-mix(in srgb, #22c55e 38%, transparent);
  background: color-mix(in srgb, #22c55e 16%, transparent);
}

#toggleScreenShareButton.is-unavailable {
  opacity: 0.58;
}

:root[data-theme="dark"] .participant-item {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.participant-item strong {
  min-width: 0;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-item span {
  color: var(--muted);
  min-width: 0;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-muted) 86%, transparent);
  color: var(--accent);
}

.status-chip.is-off {
  color: var(--muted);
  opacity: 0.64;
}

.status-chip svg {
  width: 12px;
  height: 12px;
  display: block;
}

.call-stage {
  order: 1;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-strong) 90%, #0b1220), color-mix(in srgb, var(--surface-muted) 84%, #090f1a) 100%);
}

.remote-grid {
  flex: 1;
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-content: start;
  gap: 10px;
  min-height: 0;
  min-width: 0;
}

.empty-call-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 20px;
  border-radius: 16px;
  border: 1px dashed var(--border-strong);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface-muted)), color-mix(in srgb, var(--surface-muted) 90%, #0b1220));
  color: var(--muted);
  text-align: center;
}

.remote-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 240px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at top left, rgba(138, 176, 255, 0.18), transparent 8rem),
    linear-gradient(180deg, #0b1320 0%, #141d2f 100%);
}

.remote-card video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.remote-card.is-screen-share video {
  object-fit: contain;
  background: #04070b;
}

.remote-card.is-self-preview {
  border-color: color-mix(in srgb, var(--accent) 36%, rgba(255, 255, 255, 0.2));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 22%, transparent), transparent 8rem),
    linear-gradient(180deg, #0b1320 0%, #141d2f 100%);
}

.remote-card.is-self-preview video {
  transform: scaleX(-1);
}

.remote-card.is-self-preview.is-screen-share video {
  transform: none;
}

.remote-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.84));
  pointer-events: none;
}

.remote-card.is-screen-share::after {
  height: 36%;
}

.remote-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

.remote-card-chrome {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: calc(100% - 28px);
  min-width: 0;
}

.remote-card-meta {
  justify-content: space-between;
  align-items: flex-end;
  min-width: 0;
  color: #fff;
}

.remote-card-name {
  min-width: 0;
  max-width: 100%;
  font-size: 0.96rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-card-controls {
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.remote-card-actions {
  flex: 0 0 auto;
}

.remote-card-pip-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.remote-card-pip-button .icon {
  width: 15px;
  height: 15px;
}

.remote-card-pip-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.remote-card-pip-button.is-active {
  border-color: rgba(138, 176, 255, 0.72);
  background: rgba(138, 176, 255, 0.24);
  color: rgba(241, 245, 249, 0.96);
}

.remote-card-status .status-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.96);
}

.remote-card-status .status-chip.is-off {
  color: rgba(255, 255, 255, 0.58);
}

.remote-card-volume {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
  padding: 6px 10px 6px 6px;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
}

.remote-volume-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.remote-volume-button .icon {
  width: 16px;
  height: 16px;
}

.remote-volume-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.remote-volume-button .icon-volume-off {
  display: none;
}

.remote-volume-button.is-muted .icon-volume {
  display: none;
}

.remote-volume-button.is-muted .icon-volume-off {
  display: block;
}

.remote-volume-input {
  flex: 1 1 auto;
  min-width: 72px;
}

.remote-volume-value {
  flex: 0 0 auto;
  min-width: 42px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: right;
}

.floating-overlay {
  position: fixed;
  left: 24px;
  top: 24px;
  width: 280px;
  height: 210px;
  overflow: hidden;
  border-radius: 22px;
  z-index: 40;
  background: rgba(10, 14, 22, 0.88);
  color: #fff;
  box-shadow: var(--shadow-strong);
  user-select: none;
}

.floating-overlay[data-context="fullscreen"] {
  position: absolute;
}

.floating-overlay.is-expanded {
  position: fixed !important;
  left: calc(env(safe-area-inset-left) + 6px) !important;
  top: calc(env(safe-area-inset-top) + 6px) !important;
  width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right) - 12px) !important;
  height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px) !important;
  height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px) !important;
  max-width: none;
  max-height: none;
  border-radius: 20px;
}

.floating-overlay.is-expanded .floating-handle {
  cursor: default;
}

.floating-overlay.is-expanded .floating-resize-handle {
  display: none;
}

.floating-handle {
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  cursor: grab;
  touch-action: none;
}

.floating-handle:active {
  cursor: grabbing;
}

.floating-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.floating-actions {
  gap: 8px;
}

.floating-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.floating-action:hover {
  background: rgba(255, 255, 255, 0.14);
}

.floating-content {
  position: relative;
  height: calc(100% - 55px);
  background:
    radial-gradient(circle at top left, rgba(138, 176, 255, 0.14), transparent 8rem),
    linear-gradient(180deg, #0d1420 0%, #121b2d 100%);
}

.floating-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.floating-resize-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 40%, rgba(255, 255, 255, 0.7) 40% 54%, transparent 54%),
    linear-gradient(135deg, transparent 0 58%, rgba(255, 255, 255, 0.52) 58% 72%, transparent 72%);
  touch-action: none;
}

.floating-resize-handle.is-nw {
  top: 6px;
  left: 6px;
  cursor: nwse-resize;
  transform: rotate(180deg);
}

.floating-resize-handle.is-ne {
  top: 6px;
  right: 6px;
  cursor: nesw-resize;
  transform: rotate(90deg);
}

.floating-resize-handle.is-sw {
  left: 6px;
  bottom: 6px;
  cursor: nesw-resize;
  transform: rotate(270deg);
}

.floating-resize-handle.is-se {
  right: 6px;
  bottom: 6px;
  cursor: nwse-resize;
}

.hidden {
  display: none !important;
}

@media (max-width: 1220px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .dock-panel {
    position: static;
    min-height: 0;
    max-height: none;
  }

  .call-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .call-members {
    order: 2;
  }

  .participants-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "room room";
    align-items: start;
  }

  .brand-row {
    grid-area: brand;
  }

  .topbar-room {
    grid-area: room;
    justify-self: start;
  }

  .topbar-actions {
    grid-area: actions;
  }

  .control-main {
    grid-template-columns: 1fr;
  }

  .queue-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 14px, 1460px);
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .topbar,
  .stage-panel,
  .dock-panel {
    border-radius: 22px;
  }

  .topbar {
    padding: 14px;
    gap: 12px;
  }

  .topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-content: stretch;
    gap: 8px;
  }

  .topbar-actions .icon-button {
    width: 44px;
  }

  .topbar-label {
    display: none;
  }

  .badge {
    min-width: 0;
    justify-content: flex-start;
  }

  .stage-panel {
    padding: 10px;
  }

  .control-card,
  .source-card,
  .queue-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .source-card {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .icon-button,
  .button {
    min-height: 44px;
  }

  .icon-button {
    width: 44px;
    flex-basis: 44px;
  }

  .video-frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
  }

  .video-meta {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .video-meta-card {
    max-width: calc(100% - 12px);
    padding: 10px 12px;
  }

  .player-controls {
    padding: 12px 10px 10px;
  }

  .player-button,
  .rate-button {
    height: 36px;
  }

  .player-button {
    width: 36px;
  }

  .player-action-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .player-action-group {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .player-action-left {
    min-width: 0;
    justify-self: stretch;
  }

  .player-action-right {
    justify-self: end;
  }

  .player-volume {
    width: 48px;
    min-width: 48px;
    padding: 0;
    flex: 0 0 48px;
  }

  .time-label {
    min-width: 72px;
    padding: 0 2px;
    font-size: 0.74rem;
    text-align: right;
  }

  .player-shell:not(.is-fullscreen) .rate-button {
    display: none;
  }

  .player-shell.is-fullscreen .player-action-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
  }

  .player-shell.is-fullscreen .player-button {
    width: 40px;
    height: 40px;
  }

  .player-shell.is-fullscreen .rate-button {
    min-width: 56px;
    height: 40px;
    padding: 0 12px;
  }

  .player-shell.is-fullscreen .player-action-group {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .player-shell.is-fullscreen .player-volume {
    width: clamp(84px, 18vw, 132px);
    min-width: 84px;
    padding: 0;
    flex: 0 0 clamp(84px, 18vw, 132px);
  }

  .player-shell.is-fullscreen .time-label {
    min-width: 96px;
    padding: 0 4px;
    font-size: 0.78rem;
    text-align: center;
  }

  .note-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .upload-progress {
    width: 100%;
  }

  .dock-head,
  .chat-messages,
  .chat-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 14px;
  }

  .chat-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .chat-form-actions .icon-button {
    width: 52px;
  }

  .chat-attachment-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  #callPanel {
    padding: 14px;
  }

  .call-shell {
    gap: 10px;
  }

  .call-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .call-hero,
  .call-section,
  .call-stage {
    border-radius: 16px;
  }

  .call-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .call-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    justify-content: stretch;
  }

  .call-toolbar-actions > .button:not(.icon-button) {
    grid-column: span 2;
  }

  .call-members {
    order: 2;
    min-height: 0;
  }

  .call-members-head strong {
    font-size: 0.72rem;
  }

  .participants-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 2px;
  }

  .participant-item {
    flex: 0 0 min(220px, 84vw);
  }

  .remote-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .remote-card {
    min-height: 210px;
  }

  .remote-card-chrome {
    inset: auto 10px 10px;
    width: calc(100% - 20px);
    gap: 8px;
  }

  .remote-card-controls {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
  }

  .remote-card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .remote-card-volume {
    width: 100%;
    min-width: 0;
  }

  .remote-volume-input {
    min-width: 0;
  }

  .queue-item-actions {
    flex-wrap: wrap;
  }

  .floating-overlay {
    width: 180px;
    height: 140px;
    border-radius: 18px;
  }

  .floating-overlay.is-expanded {
    border-radius: 16px;
  }

  .floating-handle {
    padding: 8px 10px;
  }

  .floating-name {
    font-size: 0.76rem;
  }

  .floating-action {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .player-shell.is-fullscreen .player-controls,
  #playerShell:fullscreen .player-controls,
  #playerShell:-webkit-full-screen .player-controls {
    padding:
      calc(8px + env(safe-area-inset-top))
      calc(10px + env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      calc(10px + env(safe-area-inset-left));
  }

  .player-shell.is-fullscreen .player-call-row,
  #playerShell:fullscreen .player-call-row,
  #playerShell:-webkit-full-screen .player-call-row {
    margin-bottom: 6px;
  }

  .player-shell.is-fullscreen .timeline-row,
  #playerShell:fullscreen .timeline-row,
  #playerShell:-webkit-full-screen .timeline-row {
    margin-bottom: 8px;
  }

  .player-shell.is-fullscreen .player-action-row,
  #playerShell:fullscreen .player-action-row,
  #playerShell:-webkit-full-screen .player-action-row {
    gap: 8px;
  }

  .player-shell.is-fullscreen .player-button,
  #playerShell:fullscreen .player-button,
  #playerShell:-webkit-full-screen .player-button {
    width: 36px;
    height: 36px;
  }

  .player-shell.is-fullscreen .rate-button,
  #playerShell:fullscreen .rate-button,
  #playerShell:-webkit-full-screen .rate-button {
    min-width: 48px;
    height: 36px;
    padding: 0 10px;
  }
}
