:root {
  color-scheme: dark;
  font-family: "Cinema Vazirmatn", Tahoma, sans-serif;
  color: #f1f1ed;
  background: #111315;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.welcome {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: radial-gradient(ellipse at 70% 12%, #232a21, transparent 55%), #111315;
}
.account {
  width: min(100%, 27rem);
  padding: clamp(1.25rem, 6vw, 2.25rem);
  background: #191c1f;
  border: 1px solid #ffffff17;
  border-radius: 1.5rem;
  box-shadow: 0 24px 80px #0004;
}
.identity { margin: 0; color: #d8ec9a; font-weight: 700; font-size: .9rem; }
.account h1 { font-size: 1.8rem; margin: .5rem 0 1.4rem; }
.account form, #dashboard { display: grid; gap: .9rem; }
.account label { display: grid; gap: .4rem; font-size: .86rem; }
.account input, .account button { font: inherit; min-height: 2.9rem; border-radius: .7rem; }
.account input { width: 100%; background: #111315; color: inherit; border: 1px solid #ffffff26; padding: .6rem .7rem; }
.account button { cursor: pointer; border: 1px solid transparent; padding: .5rem .8rem; }
.account .primary { color: #1e2810; background: #d8ec9a; font-weight: 700; }
.account .secondary { color: #f1f1ed; background: #22262b; }
.account :focus-visible { outline: 2px solid #d8ec9a; outline-offset: 3px; }
.subtle { color: #b6bdba; font-size: .9rem; line-height: 1.8; }
#account-error { color: #ffb4a8; line-height: 1.8; margin-bottom: 0; }

.cr-chat-log > .cr-chat-empty {
  align-self: stretch;
  flex: 1 0 auto;
  min-height: 0;
  height: auto;
  gap: 8px;
  padding: 12px;
}
.cr-chat-empty > svg {
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  margin: 0 0 4px;
  padding: 11px;
  border: 1px solid var(--cr-line);
  border-radius: 14px;
  background: var(--cr-raised);
  color: var(--cr-muted);
  opacity: 1;
}
.cr-chat-empty strong { font-weight: 650; }

.cr-subtitle-sync-controls,
.cr-subtitle-sync-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.cr-subtitle-sync-controls .cr-button {
  background: var(--cr-raised);
  flex: 1 1 auto;
}
.cr-subtitle-sync-controls .cr-button svg { width: 16px; height: 16px; }
.cr-subtitle-sync .cr-subtitle-offset { width: 80px; margin: 0; text-align: center; }
.cr-subtitle-sync-actions { justify-content: space-between; }
.cr-subtitle-sync [role="status"]:not(:empty) { margin-top: 8px; }

.cr-audio {
  --cr-volume-color: var(--cr-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.cr-audio[data-boosted="true"] { --cr-volume-color: #69c3ff; }
.cr-audio .cr-volume {
  display: block;
  appearance: none;
  width: clamp(62px, 9vw, 120px);
  height: 32px;
  margin: 0;
  background: linear-gradient(to right, var(--cr-volume-color) var(--cr-volume-fill, 80%), #80808055 0)
    center / 100% 4px no-repeat;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  touch-action: pan-y;
}
.cr-audio .cr-volume::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cr-volume-color);
}
.cr-audio .cr-volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--cr-volume-color);
}
.cr-volume-value {
  min-width: 4ch;
  color: var(--cr-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.cr-audio[data-boosted="true"] .cr-volume-value { color: var(--cr-volume-color); }
.cr .cr-audio .cr-boost {
  min-height: 34px;
  min-width: 48px;
  padding: 4px 8px;
  border: 1px solid var(--cr-line);
  border-radius: 9px;
  background: var(--cr-raised);
  color: var(--cr-text);
  font-size: 11px;
  font-weight: 650;
}
.cr .cr-audio .cr-boost[aria-pressed="true"] {
  background: color-mix(in srgb, #69c3ff 18%, var(--cr-panel));
  border-color: color-mix(in srgb, #69c3ff 50%, var(--cr-line));
}
@media (max-width: 800px) {
  .cr-timeline { flex-wrap: wrap; }
  .cr-audio {
    order: 1;
    flex: 1 0 100%;
    justify-content: center;
  }
  .cr-audio .cr-volume { width: clamp(70px, 34vw, 155px); }
  .cr-player:is(:fullscreen,.cr-fullscreen) .cr-controls-dock { height: 184px; }
}
