.dock {
  width: 76px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 16px;
  gap: 22px;
  z-index: 4;
}

.dock-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 14px;
}

.dock-pill {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.tab {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  transition: background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.tab svg {
  width: 20px;
  height: 20px;
}

.tab.is-on {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(3, 252, 182, 0.45);
}

.tab:hover:not(.is-on) {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.tab::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(10, 10, 14, 0.92);
  color: #fff;
  font-size: 12px;
  font-family: var(--font-ui);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.tab:hover::after {
  opacity: 1;
}

.hub-shell {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hub-top {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 12px;
}

.user-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(170%);
  font-size: 13px;
}

.ava-wrap {
  position: relative;
  width: 32px;
  height: 32px;
}

.hub-avatar,
.hub-av-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(3, 252, 182, 0.2);
  border: 1px solid rgba(3, 252, 182, 0.35);
  font-size: 12px;
  font-weight: 800;
}

#btn-avatar {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.avatar-pop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(12, 12, 16, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
}

.avatar-pop[hidden] { display: none !important; }

.avatar-pop input {
  width: 220px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 12, 0.6);
  color: #fff;
  padding: 0 8px;
}

.avatar-pop button {
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  padding: 0 10px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn svg { width: 15px; height: 15px; }

.icon-btn-alt {
  border-color: rgba(3, 252, 182, 0.4);
  background: rgba(3, 252, 182, 0.14);
  color: var(--accent);
  border-radius: 999px;
}

#hub-join-code {
  border: 0;
  border-radius: 999px;
  background: rgba(3, 252, 182, 0.16);
  color: var(--accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  cursor: pointer;
}

.hub-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 34%) minmax(0, 1fr) 44px;
  gap: 10px;
  padding: 6px 8px 8px 4px;
  overflow: visible;
  transition:
    grid-template-columns 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    gap 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-left {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  overflow: visible;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gift-tile,
.chat-tile {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(32px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.22);
}

.gift-tile {
  position: relative;
  z-index: 3;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.gift-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  pointer-events: none;
}

.chat-tile {
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.card-head {
  flex-shrink: 0;
  padding: 12px 14px 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.chat-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.chat-list {
  scrollbar-width: none;
}

.chat-list::-webkit-scrollbar {
  width: 0;
  display: none;
}

.chat-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}

.chat-row.is-me {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-row.is-them {
  align-self: flex-start;
}

.chat-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(3, 252, 182, 0.2);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.chat-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 16px 16px 16px 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.chat-row.is-me .chat-bubble {
  border-radius: 14px 14px 4px 14px;
  background: rgba(3, 252, 182, 0.18);
  border-color: rgba(3, 252, 182, 0.28);
}

.chat-bubble b {
  display: block;
  color: var(--accent);
  font-weight: 650;
  font-size: 10px;
  margin-bottom: 2px;
}

.chat-row.is-me .chat-bubble b {
  text-align: right;
}

.chat-del {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.chat-del:hover {
  color: #ff5b7a;
}

.chat-row b {
  color: var(--accent);
  font-weight: 600;
  margin-right: 5px;
}

.chat-form {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  padding: 0 10px 10px;
  position: relative;
}

.emoji-wrap {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
  width: 30px;
  height: 30px;
}

.emoji-toggle {
  all: unset;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.emoji-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 80;
  width: 248px;
  max-width: none;
  padding: 8px;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(14, 13, 20, 0.96);
  border: 1px solid rgba(3, 252, 182, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.emoji-search {
  display: none;
}

.emoji-tabs {
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-bottom: 8px;
}

.emoji-tab {
  all: unset;
  box-sizing: border-box;
  flex: 1;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: #fff;
}

.emoji-tab.is-on {
  background: rgba(3, 252, 182, 0.22);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 26px);
  justify-content: space-between;
  gap: 4px 2px;
}

.emoji-cell {
  all: unset;
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  border-radius: 8px;
}

.emoji-cell:hover {
  background: rgba(3, 252, 182, 0.16);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 11px;
  outline: none;
}

.chat-form > button[type="submit"] {
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: #03fcb6;
  color: #06150f;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.hero-zone {
  min-width: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.tab-panel {
  width: 100%;
  display: none;
}

.tab-panel.is-on {
  display: flex;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  animation: hubPanelIn 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hubPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.dash {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 0 2px;
}

.dash-floor {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

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

.dash-mid button,
.dash-mid article {
  text-align: left;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  cursor: pointer;
}

.dash-mid span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.dash-mid b {
  display: block;
  margin: 6px 0 4px;
  font-size: 18px;
}

.dash-mid p {
  color: var(--mute);
  font-size: 12px;
}

.hero-block {
  flex-shrink: 0;
  max-width: 640px;
}

.svlogo {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.brand-type {
  font-family: var(--font-brand);
  font-size: 46px;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  margin-bottom: 8px;
}

.hero-copy {
  max-width: 420px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.play-btn {
  height: 52px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.play-btn:hover {
  transform: translateY(-1px);
}

.dash-stage {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  min-height: 0;
  height: 248px;
  flex: 0 0 auto;
}

.dash-trailer,
.dash-live {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(180%);
}

.dash-trailer {
  min-height: 0;
  height: 100%;
  border-radius: 18px;
  padding: 14px 16px;
}

.dash-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

.dash-trailer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 28%, rgba(8, 8, 12, 0.82) 100%);
  pointer-events: none;
}

.dash-trailer > :not(.dash-shot) {
  position: relative;
  z-index: 2;
}

.dash-lives {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.dash-live {
  border-radius: 20px;
  padding: 12px 14px;
}

.dash-trailer span,
.dash-live span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.dash-trailer b { font-size: 16px; margin-top: 2px; }
.dash-trailer em {
  font-style: italic;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}
.dash-live b { font-size: 14px; margin-top: 2px; }

.dash-dock {
  margin-top: 0;
  flex-shrink: 0;
  min-height: 0;
  display: grid;
  gap: 8px;
}

.dash-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
}

.mini-card {
  min-height: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: default;
}

#ts-join {
  cursor: pointer;
}

.mini-card span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.mini-card b {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.mini-card p {
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
  display: none;
}

.dash-bottom {
  display: none;
}

.now-play {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(170%);
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 20px 44px rgba(0, 0, 0, 0.28);
}

.np-cover {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  flex-shrink: 0;
  object-fit: cover;
  background: #1a1922;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.np-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.np-meta span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.np-meta b {
  display: block;
  font-size: 20px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-meta em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: var(--mute);
  margin-top: 2px;
}

.np-eq {
  display: flex;
  align-items: flex-end;
  align-self: center;
  gap: 4px;
  height: 36px;
  flex-shrink: 0;
}

.np-eq i {
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
  animation: eq 0.9s ease-in-out infinite;
}

.np-eq i:nth-child(2) {
  animation-delay: 0.15s;
  height: 26px;
}

.np-eq i:nth-child(3) {
  animation-delay: 0.3s;
  height: 18px;
}

.np-eq i:nth-child(4) {
  animation-delay: 0.45s;
  height: 32px;
}

@keyframes eq {
  50% {
    transform: scaleY(0.35);
  }
}

.ts-fix {
  align-items: flex-start;
  text-align: left;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.ts-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 6px;
}

.ts-fix span {
  font-size: 14px;
  font-weight: 650;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 2px;
}

.ts-fix b {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
}

.ts-fix.is-on {
  border-color: var(--accent);
}

.ts-fix.is-on b {
  color: var(--accent);
}

.soon-card {
  padding: 28px 32px;
  background: rgba(16, 16, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(22px);
}

.soon-card h2 {
  font-family: var(--font-brand);
  margin-bottom: 8px;
}

.avatar-rail {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.online-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #2a2838;
  color: var(--accent);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-size: 13px;
  flex-shrink: 0;
}

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

.ava i {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #16151e;
  background: #3ba55d;
}

.ava i.idle {
  background: #faa81a;
}

.ava i.dnd {
  background: #ed4245;
}

.toasts {
  position: absolute;
  top: 56px;
  right: 16px;
  left: auto;
  bottom: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.toasts .toast {
  pointer-events: auto;
}

.toast {
  min-width: 260px;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(14, 13, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.toast p {
  font-size: 13px;
  margin-bottom: 8px;
}

.toast .code {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toast .code code {
  flex: 1;
  font-size: 11px;
  color: var(--accent);
  word-break: break-all;
}

.toast .code button {
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 11px;
}

.ticker {
  flex: 0 0 40px;
  height: 40px;
  margin: 0 12px 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 16, 0.62);
  backdrop-filter: blur(18px) saturate(160%);
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 40px;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker-track b {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  padding: 0 28px;
  white-space: nowrap;
}

.ticker-track b::after {
  content: "●";
  margin-left: 28px;
  font-size: 8px;
  color: var(--accent);
  vertical-align: middle;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}
