* {
  box-sizing: border-box;
}

:root {
  --app-height: 100dvh;
  --room-color: #14b8a6;
  --room-text-color: #f4f4f5;
  --room-avatar-image: none;
  --app-avatar-image: var(--room-avatar-image);
  --chat-avatar-image: var(--room-avatar-image);
  --theme-blur: 22px;
  --theme-opacity: 0.28;
  --panel-bg:
    linear-gradient(rgba(9, 9, 11, 0.62), rgba(9, 9, 11, 0.62)),
    linear-gradient(135deg, color-mix(in srgb, var(--room-color) 18%, transparent), rgba(9, 9, 11, 0.62)),
    var(--app-avatar-image);
  --card-bg:
    linear-gradient(rgba(24, 24, 27, 0.72), rgba(24, 24, 27, 0.72)),
    linear-gradient(135deg, color-mix(in srgb, var(--room-color) 12%, transparent), transparent),
    var(--app-avatar-image);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--room-color, #14b8a6) 22%, transparent), transparent 42%),
    rgb(9 9 11);
}

body::before {
  content: "";
  position: fixed;
  inset: -24px;
  z-index: 0;
  background-image: var(--app-avatar-image, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(var(--theme-blur));
  opacity: var(--theme-opacity);
  transform: scale(1.04);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--room-color, #14b8a6) 28%, transparent), transparent 34%),
    rgba(9, 9, 11, 0.72);
  pointer-events: none;
}

body.auth-required .app-shell {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  height: var(--app-height);
  overflow: hidden;
  color: var(--room-text-color);
}

.brand {
  color: rgb(45 212 191);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.muted {
  margin: 0;
  color: rgb(161 161 170);
  font-size: 14px;
}

.panel {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.input {
  width: 100%;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background:
    linear-gradient(rgba(9, 9, 11, 0.82), rgba(9, 9, 11, 0.82)),
    color-mix(in srgb, var(--room-color) 10%, rgb(9 9 11));
  color: var(--room-text-color);
  min-height: 42px;
  padding: 0 12px;
  outline: none;
}

.button,
.icon-button,
.small-button {
  border: 0;
  border-radius: 8px;
  background: rgb(20 184 166);
  color: rgb(4 47 46);
  min-height: 42px;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: rgb(212 212 216);
  color: rgb(24 24 27);
}

.icon-button.secondary {
  background: rgb(212 212 216);
  color: rgb(24 24 27);
}

.small-button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.small-button.secondary {
  background: rgb(212 212 216);
  color: rgb(24 24 27);
}

.link-button {
  border: 0;
  background: transparent;
  color: rgb(45 212 191);
  cursor: pointer;
  font-weight: 800;
  min-height: 34px;
}

.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.icon-button img,
.plus-button img {
  width: 24px;
  height: 24px;
  display: block;
  pointer-events: none;
}

.logout-button {
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background: var(--card-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(8px);
  color: var(--room-text-color);
  width: 38px;
  min-height: 38px;
  cursor: pointer;
}

.playlist {
  display: grid;
  gap: 8px;
}

.playlist-item {
  border: 1px solid rgb(39 39 42);
  border-radius: 8px;
  background: var(--card-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(8px);
  padding: 10px;
}

.playlist-item {
  cursor: pointer;
  color: var(--room-text-color);
  text-align: left;
}

.workspace {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  height: var(--app-height);
  overflow: hidden;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--room-color, #14b8a6) 28%, rgb(39 39 42));
  padding: 8px 12px;
  background: var(--panel-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(12px);
}

.mobile-tabs {
  display: none;
  gap: 6px;
}

.mobile-tabs button {
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background: transparent;
  color: var(--room-text-color);
  min-height: 36px;
  padding: 0 10px;
}

.mobile-tabs .active {
  background: rgb(20 184 166);
  color: rgb(4 47 46);
  border-color: rgb(20 184 166);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr) 300px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.player-pane,
.chat-pane,
.rooms-pane {
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  background: var(--panel-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(10px);
}

.chat-pane,
.rooms-pane {
  border-left: 1px solid color-mix(in srgb, var(--room-color, #14b8a6) 28%, rgb(39 39 42));
}

.chat-pane {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  background:
    linear-gradient(rgba(9, 9, 11, 0.62), rgba(9, 9, 11, 0.62)),
    linear-gradient(135deg, color-mix(in srgb, var(--room-color) 18%, transparent), rgba(9, 9, 11, 0.62)),
    var(--chat-avatar-image);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-header h1 {
  margin: 0;
  font-size: 18px;
}

.chat-header p {
  color: color-mix(in srgb, var(--room-text-color) 68%, transparent);
  margin: 4px 0 0;
  font-size: 13px;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background:
    linear-gradient(rgba(9, 9, 11, 0.82), rgba(9, 9, 11, 0.82)),
    color-mix(in srgb, var(--room-color) 14%, rgb(9 9 11));
  cursor: pointer;
}

.header-icon-button img {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.mobile-message-mask-button {
  display: none;
}

.mobile-online-count {
  display: none;
}

.room-code-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background:
    linear-gradient(rgba(9, 9, 11, 0.82), rgba(9, 9, 11, 0.82)),
    color-mix(in srgb, var(--room-color) 14%, rgb(9 9 11));
  color: var(--room-color, rgb(45 212 191));
  min-height: 34px;
  padding: 0 9px;
  cursor: pointer;
  white-space: nowrap;
}

.rooms-pane {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 12px;
  max-height: 100%;
  overflow: hidden;
}

.pane-kicker {
  margin: 0 0 4px;
  color: rgb(45 212 191);
  font-size: 13px;
  font-weight: 800;
}

.room-form {
  display: flex;
  gap: 8px;
}

.room-current {
  display: grid;
  gap: 8px;
}

.room-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.room-actions form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.room-settings {
  display: grid;
  grid-template-columns: 52px 42px;
  gap: 8px;
  align-items: center;
}

.room-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background:
    center / cover no-repeat var(--room-avatar-image, none),
    color-mix(in srgb, var(--room-color, #14b8a6) 24%, rgb(9 9 11));
  cursor: pointer;
  overflow: hidden;
}

.room-avatar.has-image img {
  display: none;
}

.room-avatar img,
.delete-avatar-button img {
  width: 26px;
  height: 26px;
  display: block;
  pointer-events: none;
}

.delete-avatar-button {
  background: transparent;
}

.color-picker {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background: rgb(9 9 11);
  overflow: hidden;
  cursor: pointer;
}

.color-picker input {
  width: 54px;
  height: 54px;
  margin: -6px;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.online-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.online-panel h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgb(212 212 216);
}

.online-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}

.online-user {
  border: 1px solid rgb(39 39 42);
  border-radius: 8px;
  background: var(--card-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(8px);
  padding: 9px 10px;
  color: var(--room-text-color);
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: black;
  border-radius: 8px;
  overflow: hidden;
}

#player {
  width: 100%;
  height: 100%;
}

.youtube-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--room-color) 18%, rgb(9 9 11)), rgb(0 0 0));
  color: rgb(255 0 0);
  font-size: clamp(42px, 8vw, 76px);
  pointer-events: none;
}

.youtube-placeholder span {
  display: grid;
  place-items: center;
  width: 1.42em;
  height: 1em;
  border-radius: 0.22em;
  background: currentColor;
  color: white;
  font-size: 0.72em;
  line-height: 1;
}

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

.sync-play-button {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  border: 1px solid rgb(239 68 68);
  border-radius: 8px;
  background: rgb(220 38 38);
  color: white;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.sync-play-button.hidden {
  display: none;
}

.player-controls,
.composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.message-input {
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 64px;
  padding-right: 86px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 20px;
  resize: none;
  overflow-y: auto;
}

.composer-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.composer-input-wrap .plus-button {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.composer-input-wrap .plus-button img {
  width: 22px;
  height: 22px;
}

.notification-button {
  position: absolute;
  right: 42px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.5);
  cursor: pointer;
}

.notification-button img {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.typing-indicator {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 62px;
  z-index: 8;
  color: var(--room-text-color);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.78;
  pointer-events: none;
}

.clear-messages-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(69, 10, 10, 0.68);
  cursor: pointer;
}

#sendMessageButton {
  height: 42px;
  min-height: 42px;
  flex: 0 0 auto;
}

.clear-messages-button img {
  width: 22px;
  height: 22px;
  display: block;
  pointer-events: none;
}

.chat-action-menu {
  display: grid;
  gap: 8px;
  border: 1px solid rgb(39 39 42);
  border-radius: 8px;
  background: var(--card-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(8px);
  padding: 8px;
}

.menu-actions {
  display: flex;
  gap: 8px;
}

.menu-action,
.plus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 999px;
  background: rgb(20 184 166);
  color: rgb(4 47 46);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.plus-button {
  background: transparent;
}

.add-room-button {
  background: transparent;
}

.menu-action {
  border-radius: 8px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 6px;
  max-height: 172px;
  overflow-y: auto;
}

.emoji-option {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.42);
  font-size: 20px;
  cursor: pointer;
}

.emoji-option:hover {
  background: color-mix(in srgb, var(--room-color) 22%, rgba(9, 9, 11, 0.72));
}

.recording {
  background: rgb(248 113 113);
  color: rgb(69 10 10);
}

.recording-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgb(248 113 113);
  border-radius: 8px;
  background: rgba(69, 10, 10, 0.72);
  color: rgb(254 242 242);
  padding: 9px 10px;
}

.recording-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}

.recording-status strong {
  font-variant-numeric: tabular-nums;
}

.recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgb(248 113 113);
  box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.7);
  animation: recordPulse 1.2s infinite;
}

.recording-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

@keyframes recordPulse {
  70% {
    box-shadow: 0 0 0 8px rgba(248, 113, 113, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0);
  }
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}

.messages.no-room {
  align-items: center;
  justify-content: center;
  padding: 0;
}

.chat-empty-state {
  color: color-mix(in srgb, var(--room-text-color) 72%, transparent);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.message {
  position: relative;
  z-index: 1;
  max-width: 70%;
  border: 1px solid rgb(39 39 42);
  border-radius: 8px;
  background: var(--card-bg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  backdrop-filter: blur(8px);
  padding: 10px;
  color: var(--room-text-color);
  overflow-wrap: anywhere;
}

.message.reaction-open {
  z-index: 20;
}

.message.mine {
  align-self: flex-end;
  border-color: color-mix(in srgb, var(--room-color) 48%, rgb(39 39 42));
  background: color-mix(in srgb, var(--room-color) 30%, rgba(9, 9, 11, 0.74));
}

.message.other {
  align-self: flex-start;
}

.message.audio-message {
  width: 70%;
  max-width: 70%;
}

.message strong {
  display: block;
  color: rgb(45 212 191);
  font-size: 13px;
  margin-bottom: 3px;
}

.message img {
  max-width: 100%;
  border-radius: 8px;
}

.message audio {
  width: 100%;
  min-width: 260px;
  display: block;
}

.message a {
  color: rgb(45 212 191);
  overflow-wrap: anywhere;
}

.masked-message {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  font-size: 24px;
}

.message-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  min-height: 22px;
}

.message.mine .message-footer {
  justify-content: flex-end;
}

.reaction-button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgb(63 63 70);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.38);
  color: color-mix(in srgb, var(--room-text-color) 72%, transparent);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgb(63 63 70);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.42);
  padding: 0 7px;
  font-size: 13px;
}

.message-seen {
  margin-top: 4px;
  color: color-mix(in srgb, var(--room-text-color) 58%, transparent);
  font-size: 11px;
  text-align: right;
}

.message-reaction-tray {
  position: absolute;
  z-index: 30;
  left: 10px;
  bottom: -38px;
  display: flex;
  gap: 4px;
  border: 1px solid rgb(63 63 70);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.92);
  padding: 5px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
}

.message-reaction-tray.open-up {
  top: -38px;
  bottom: auto;
}

.message.mine .message-reaction-tray {
  right: 10px;
  left: auto;
}

.message-reaction-tray button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.message-reaction-tray button:hover {
  background: color-mix(in srgb, var(--room-color) 20%, rgba(255, 255, 255, 0.08));
}

.playlist {
  margin-top: 12px;
  max-height: calc(100vh - 430px);
  overflow-y: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.playlist-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 8px;
}

.playlist-item.dragging {
  opacity: 0.55;
}

.playlist-item.active {
  border-color: var(--room-color);
  background:
    linear-gradient(rgba(20, 184, 166, 0.22), rgba(20, 184, 166, 0.22)),
    var(--card-bg);
  box-shadow: inset 3px 0 0 var(--room-color);
}

.playlist-item img {
  width: 72px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: rgb(9 9 11);
}

.playlist-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.playlist-item small {
  display: block;
  margin-top: 3px;
  color: color-mix(in srgb, var(--room-text-color) 62%, transparent);
  font-size: 11px;
}

.playlist-delete {
  width: 30px;
  height: 30px;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.62);
  color: rgb(248 113 113);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.playlist-delete:hover {
  background: rgb(69 10 10);
  border-color: rgb(248 113 113);
}

@media (max-width: 1320px) {
  .playlist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .playlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 9, 11, 0.72);
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background: rgb(24 24 27);
  padding: 22px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.theme-card {
  width: min(520px, 100%);
}

.sound-card {
  width: min(480px, 100%);
}

.incoming-notification-modal {
  z-index: 35;
}

.incoming-notification-card {
  width: min(360px, 100%);
  justify-items: center;
  text-align: center;
}

.incoming-notification-card > img {
  width: 64px;
  height: 64px;
}

.sound-list {
  display: grid;
  gap: 8px;
  max-height: min(420px, calc(var(--app-height) - 180px));
  overflow-y: auto;
}

.sound-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background: rgba(9, 9, 11, 0.62);
  color: rgb(244 244 245);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.sound-option:hover {
  border-color: var(--room-color);
  background: color-mix(in srgb, var(--room-color) 18%, rgba(9, 9, 11, 0.72));
}

.sound-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sound-option img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.setting-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.setting-row span,
.setting-row output {
  color: rgb(212 212 216);
  font-size: 14px;
}

.setting-row input[type="color"] {
  width: 52px;
  height: 38px;
  border: 1px solid rgb(63 63 70);
  border-radius: 8px;
  background: rgb(9 9 11);
  padding: 2px;
}

.setting-row input[type="range"] {
  width: 100%;
}

.auth-kicker {
  margin: 0 0 4px;
  color: rgb(45 212 191);
  font-size: 13px;
  font-weight: 800;
}

.auth-card h2 {
  margin: 0;
  font-size: 26px;
}

.auth-error {
  border: 1px solid rgb(248 113 113);
  border-radius: 8px;
  background: rgb(69 10 10);
  color: rgb(254 202 202);
  padding: 10px 12px;
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  border-radius: 8px;
  background: rgb(20 184 166);
  color: rgb(4 47 46);
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.file-picker-input {
  position: fixed;
  left: -100vw;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  body {
    min-height: var(--app-height);
    overflow: hidden;
  }

  .mobile-tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .split-view .rooms-pane,
  .split-view .player-controls,
  .split-view .playlist {
    display: none;
  }

  .split-view .player-pane {
    display: flex;
    align-items: normal;
    justify-content: center;
    overflow: hidden;
  }

  .split-view .player-frame {
    width: min(100%, calc((var(--app-height) - 180px) * 16 / 9));
    max-height: calc(var(--app-height) - 180px);
  }

  .split-view .chat-header {
    display: none;
  }

  .split-view .mobile-message-mask-button {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: grid;
  }

  .split-view .mobile-online-count {
    position: absolute;
    top: 18px;
    left: calc(50% + 28px);
    z-index: 12;
    display: block;
    color: color-mix(in srgb, var(--room-text-color) 82%, transparent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
  }

  .split-view .chat-pane {
    min-height: 0;
    max-height: calc(var(--app-height) - 260px);
    padding: 10px;
    grid-template-rows: 1fr auto auto;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .split-view .typing-indicator,
  .chat-view .typing-indicator {
    left: 10px;
    right: 10px;
    bottom: calc(54px + env(safe-area-inset-bottom));
  }

  .split-view .messages {
    min-height: 120px;
  }

  .split-view .composer {
    align-items: center;
    margin-top: 8px;
  }

  .split-view .composer .input {
    height: 42px;
    min-height: 42px;
  }

  .split-view .composer .message-input {
    max-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .split-view .composer .button {
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    flex: 0 0 auto;
  }

  .message.audio-message {
    width: 70%;
    max-width: 70%;
  }

  .message audio {
    min-width: 0;
  }

  .chat-pane,
  .rooms-pane {
    border-left: 0;
    border-top: 1px solid rgb(39 39 42);
  }

  .chat-pane {
    min-height: 55vh;
  }

  .rooms-pane {
    min-height: 40vh;
  }

  .playlist {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .playlist-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .video-view .chat-pane,
  .video-view .rooms-pane,
  .chat-view .player-pane,
  .chat-view .rooms-pane,
  .room-view .player-pane,
  .room-view .chat-pane {
    display: none;
  }
}
