
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #e7e9ea;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app {
  min-height: 100%;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 600px) 380px;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 100vh;
}

.shell--auth {
  grid-template-columns: minmax(0, 420px);
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
}

.shell--wide-main {
  grid-template-columns: 260px minmax(0, 980px);
  max-width: 1320px;
}

body.app:has(.messages-shell) .shell--wide-main {
  max-width: 1320px;
}

.col {
  border-right: 1px solid #2f3336;
}

.col--right {
  border-right: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  box-sizing: border-box;
  min-width: 0;
}

.col--left {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.col--center {
  min-height: 100vh;
  border-right: 1px solid #2f3336;
}

.col--single {
  border-right: 0;
  width: 100%;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.brand {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 4px 0 0;
  margin-bottom: -1px;
}

.brand__link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.brand__link:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand__img {
  display: block;
  max-width: 130px;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
}

.nav__icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 26px;
  justify-content: center;
  align-items: center;
  color: inherit;
}

.nav__icon svg {
  display: block;
}

.nav__premium-badge {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (min-width: 701px) {
  .col--left .nav__icon {
    width: 30px;
  }

  .col--left .nav__icon svg {
    width: 26px;
    height: 26px;
  }

  .col--left .nav__premium-badge {
    width: 26px;
    height: 26px;
  }
}

@media (min-width: 1101px) {
  .col--left .nav__link {
    font-size: 1.2rem;
  }
}

.nav__link--notif-unread .nav__icon,
.nav__link--has-unread .nav__icon {
  position: relative;
}

.nav__link--notif-unread .nav__icon::after,
.nav__link--has-unread .nav__icon::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd400;
  box-shadow: 0 0 0 2px #000;
  pointer-events: none;
}

.nav__link--active .nav__icon--explore svg path,
.nav__link--active .nav__icon--catalog svg path {
  paint-order: stroke fill;
  stroke: currentColor;
  stroke-width: 0.55;
  stroke-linejoin: round;
}

.nav__link:hover {
  background: #181818;
  text-decoration: none;
}

.nav__link--active {
  font-weight: 800;
}

.nav__link--quiet {
  font-weight: 500;
  font-size: 0.95rem;
  color: #71767b;
}

.btn-post {
  width: 100%;
  text-align: center;
  margin-top: 8px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.nav-user {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #2f3336;
  position: relative;
}

.nav-user__summary {
  list-style: none;
  cursor: pointer;
  border-radius: 999px;
}

.nav-user__summary::-webkit-details-marker {
  display: none;
}

.nav-user__summary::marker {
  display: none;
}

.nav-user__summary-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav-user__summary:hover .nav-user__summary-inner,
.nav-user[open] .nav-user__summary-inner {
  background: #181818;
}

.nav-user__menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.nav-user__menu-item {
  display: block;
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 1px solid #2f3336;
  text-decoration: none;
}

.nav-user__menu-item:last-child {
  border-bottom: 0;
}

.nav-user__menu-item:hover {
  background: #181818;
  text-decoration: none;
}

.nav-user__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-user__name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user__handle {
  color: #71767b;
  font-size: 0.9rem;
}

.display-name-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  vertical-align: middle;
}

.display-name-with-badge__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.premium-admin-badge {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.nav-guest {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn.btn-post {
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(0.92);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary.is-loading:disabled {
  opacity: 1;
  cursor: wait;
  filter: none;
}

.btn .btn__spinner {
  display: none;
  width: 15px;
  height: 15px;
  margin-right: 0;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  animation: btn-spin 0.65s linear infinite;
}

.btn.is-loading .btn__spinner {
  display: block;
  margin-right: 8px;
}

.btn-outline .btn__spinner,
.btn-ghost .btn__spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #536471;
}

.btn-outline:hover {
  background: #181818;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #2f3336;
}

.btn-ghost:hover {
  background: #0d0d0d;
}

.btn-danger {
  background: #400;
  color: #fff;
  border-color: #600;
}

.col-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2f3336;
  padding: 14px 16px;
}

.col-header__title {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
  min-width: 0;
}

.col-header__badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2f3336;
  background: #16181c;
  color: #acd628;
  white-space: nowrap;
}

.catalog-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-sync-badge--checking::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: catalog-sync-spin 0.75s linear infinite;
}

.catalog-sync-badge--updated {
  color: #acd628;
}

.catalog-sync-badge--stale {
  color: #ffd166;
}

.catalog-sync-badge--error {
  color: #ff7a7a;
}

.catalog-sync-badge--disabled {
  color: #71767b;
}

@keyframes catalog-sync-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Episode search (search.php / Explore "Search Episodes" tab): extra space above sticky title and before the form. Not For You — that uses the default col-header padding. */
.col--center:has(.search-page):not(:has(.explore-tabs)) > .col-header {
  padding-top: 22px;
  padding-bottom: 16px;
}

.thread-header-bar {
  display: flex;
  align-items: center;
  gap: 2px;
}

.thread-header__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
  margin: -4px 0 -4px -6px;
  border-radius: 999px;
  color: inherit;
}

.thread-header__back:hover {
  background: #181818;
  text-decoration: none;
}

.thread-header__back svg {
  display: block;
}

.thread-header__title {
  flex: 1;
  min-width: 0;
}

.watch-party-header-share {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #2f3336;
}

.home-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}

.tabs__link {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  font-weight: 700;
  color: #71767b;
  border-bottom: 2px solid transparent;
}

.tabs__link:hover {
  background: #080808;
  text-decoration: none;
}

.tabs__link--active {
  color: #e7e9ea;
  border-bottom-color: #1d9bf0;
}

.composer {
  padding: 14px 16px;
  border-bottom: 1px solid #2f3336;
  display: flex;
  gap: 12px;
}

.composer__main {
  flex: 1;
  min-width: 0;
}

.textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  background: #000;
  color: #e7e9ea;
  border: 0;
  font: inherit;
  outline: none;
}

.composer .textarea {
  font-size: 20px;
}

.composer:not(.composer--modal) .textarea {
  min-height: unset;
}

.mention-compose-field {
  position: relative;
}

.mention-compose-highlight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e7e9ea;
  pointer-events: none;
}

.mention-compose__mention {
  color: #1d9bf0;
  font-weight: 600;
}

.mention-compose-field > .textarea {
  position: relative;
  z-index: 1;
  display: block;
  background: transparent;
  color: transparent;
  caret-color: #e7e9ea;
}

.mention-compose-field > .textarea::placeholder {
  color: #71767b;
  opacity: 1;
}

.mention-compose-field > .textarea::selection {
  color: #e7e9ea;
  background: rgba(29, 155, 240, 0.35);
}

.mention-suggest {
  margin-top: 8px;
  border: 1px solid #2f3336;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mention-suggest[hidden] {
  display: none !important;
}

.mention-suggest__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #2f3336;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mention-suggest__item:last-child {
  border-bottom: 0;
}

.mention-suggest__item:hover,
.mention-suggest__item--active {
  background: #16181c;
}

.mention-suggest__name {
  font-weight: 800;
}

.mention-suggest__handle {
  color: #71767b;
  font-size: 0.92rem;
}

.composer__preview-wrap {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2f3336;
  max-height: 280px;
}

.composer__preview-img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #16181c;
}

.composer__preview-video {
  display: block;
  width: 100%;
  max-height: 280px;
  background: #16181c;
}

.composer__toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(239, 243, 244, 0.12);
}

.composer__filename {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer__toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.composer__toolbar .btn-primary {
  padding-top: 4px;
  padding-bottom: 4px;
  font-weight: 800;
}

.composer__media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  padding: 0;
  background: transparent;
  border-radius: 999px;
  color: #71767b;
  cursor: pointer;
  flex-shrink: 0;
}

.composer__media-btn:hover {
  background: #181818;
  color: #71767b;
}

.composer__media-btn svg {
  display: block;
}

.composer__media-btn:focus-visible {
  outline: 2px solid #536471;
  outline-offset: 2px;
}

.composer__emoji-wrap {
  position: relative;
}

.emoji-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  width: min(288px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid #2f3336;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.composer:not(.composer--modal) .emoji-picker {
  bottom: auto;
  top: calc(100% + 8px);
}

.emoji-picker[hidden] {
  display: none !important;
}

.emoji-picker__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.emoji-picker__btn:hover {
  background: #181818;
}

.composer__gif-wrap {
  position: relative;
}

.composer__gif-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.composer__gif-wrap[data-gif-selected="1"] .composer__gif-btn {
  color: #1d9bf0;
}

.composer__gif-preview-wrap {
  position: relative;
  width: min(100%, 520px);
  margin-top: 12px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  overflow: hidden;
  background: #16181c;
}

.composer__gif-preview-wrap[hidden] {
  display: none !important;
}

.composer__gif-preview-img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.composer__gif-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.composer__gif-preview-remove:hover {
  background: rgba(39, 44, 48, 0.9);
}

.composer__gif-preview-remove:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: 2px;
}

.gif-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: min(336px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid #2f3336;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.composer:not(.composer--modal) .gif-picker {
  bottom: auto;
  top: calc(100% + 8px);
}

.gif-picker[hidden] {
  display: none !important;
}

.gif-picker__search {
  width: 100%;
  min-height: 38px;
  border: 1px solid #2f3336;
  border-radius: 999px;
  padding: 8px 12px;
  background: #000;
  color: #e7e9ea;
}

.gif-picker__search:focus {
  outline: none;
  border-color: #1d9bf0;
}

.gif-picker__status {
  min-height: 18px;
  margin: 8px 2px;
}

.gif-picker__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.gif-picker__item {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid #2f3336;
  border-radius: 10px;
  overflow: hidden;
  background: #16181c;
  cursor: pointer;
}

.gif-picker__item:hover {
  border-color: #71767b;
}

.gif-picker__item:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: 2px;
}

.gif-picker__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-user__summary:focus {
  outline: none;
}

.nav-user__summary:focus-visible .nav-user__summary-inner {
  outline: 2px solid #1d9bf0;
  outline-offset: 2px;
}

.input,
.input[type="file"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #2f3336;
  background: #000;
  color: #e7e9ea;
  font: inherit;
}

.handle-field {
  position: relative;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #2f3336;
  background: #000;
  box-sizing: border-box;
}

.handle-field:focus-within {
  border-color: #536471;
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.45);
}

.handle-field__at {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  color: #71767b;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
}

.handle-field__input.input {
  position: relative;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  padding: 12px 14px 12px 32px;
  box-sizing: border-box;
}

.handle-field--with-status .handle-field__input.input {
  padding-right: 48px;
}

.handle-field__input.input:focus {
  outline: none;
}

.input-status-field {
  position: relative;
  width: 100%;
}

.input-status-field__input.input {
  padding-right: 48px;
}

.availability-icon {
  display: none;
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  box-sizing: border-box;
  z-index: 2;
}

.availability-icon--checking,
.availability-icon--success,
.availability-icon--error {
  display: block;
}

.availability-icon--checking {
  border: 2px solid rgba(255, 212, 0, 0.35);
  border-top-color: #ffd400;
  border-radius: 999px;
  animation: availability-spin 0.75s linear infinite;
}

.availability-icon--success,
.availability-icon--error {
  border-radius: 999px;
}

.availability-icon--success {
  border: 1px solid rgba(0, 186, 124, 0.55);
  background: rgba(0, 186, 124, 0.14);
}

.availability-icon--success::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #00ba7c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.availability-icon--error {
  border: 1px solid rgba(244, 33, 46, 0.55);
  background: rgba(244, 33, 46, 0.14);
}

.availability-icon--error::before,
.availability-icon--error::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 2px;
  background: #f4212e;
  border-radius: 2px;
}

.availability-icon--error::before {
  transform: rotate(45deg);
}

.availability-icon--error::after {
  transform: rotate(-45deg);
}

@keyframes availability-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 6px 0 2px;
  color: #e7e9ea;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tweet {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #2f3336;
}

.tweet > .tweet__avatar .avatar--md {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
}

.tweet:hover {
  background: #080808;
}

.tweet--clickable {
  cursor: pointer;
}

.tweet__body {
  flex: 1;
  min-width: 0;
}

.tweet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.tweet__header-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.tweet__identity {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tweet__name {
  font-weight: 800;
}

.tweet__menu-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.tweet__menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #71767b;
  cursor: pointer;
  font: inherit;
}

.tweet__menu-trigger:hover {
  background: rgba(239, 243, 244, 0.1);
  color: #e7e9ea;
}

.tweet__menu-trigger:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: 2px;
}

.tweet__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 220px;
  padding: 6px 0;
  margin: 0;
  background: #000;
  border: 1px solid #2f3336;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  z-index: 100;
}

.tweet__menu-follow-form {
  margin: 0;
}

.tweet__menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #e7e9ea;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

a.tweet__menu-item:hover,
button.tweet__menu-item:hover:not(:disabled) {
  background: #181818;
}

.tweet__menu-item--submit {
  border-radius: 0;
}

.tweet__menu-item--inactive {
  color: #71767b;
  cursor: default;
}

.tweet__menu-item--danger {
  color: #f4212e;
}

.tweet__menu-item--danger:hover {
  background: rgba(244, 33, 46, 0.1);
}

.tweet__menu-item--danger .tweet__menu-icon {
  color: inherit;
}

.tweet__menu-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: #e7e9ea;
}

.tweet__menu-item--inactive .tweet__menu-icon {
  color: #71767b;
}

.tweet__menu-item--unfollow,
.tweet__menu-item--unfollow .tweet__menu-icon {
  color: #fff;
}

button.tweet__menu-item--unfollow:hover:not(:disabled) {
  background: #181818;
  color: #fff;
}

button.tweet__menu-item--unfollow:hover:not(:disabled) .tweet__menu-icon {
  color: #fff;
}

body.tweet-dialog-open {
  overflow: hidden;
}

.tweet-dialog {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.tweet-dialog[hidden] {
  display: none !important;
}

.tweet-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.tweet-dialog__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 20px 20px 18px;
  background: #000;
  border: 1px solid #2f3336;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.tweet-dialog__panel--compact {
  max-width: 360px;
}

.tweet-dialog__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.tweet-dialog__text {
  margin: 0 0 18px;
  line-height: 1.45;
}

.tweet-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.tweet-dialog__actions--single {
  justify-content: stretch;
}

.tweet-dialog__actions--single .btn {
  width: 100%;
}

.tweet-dialog__delete-form {
  display: inline-flex;
  margin: 0;
  gap: 10px;
  align-items: center;
}

.tweet__meta,
.tweet__time {
  color: #71767b;
  font-size: 0.9rem;
}

.tweet__text {
  margin-top: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}

.tweet__mention {
  color: #1d9bf0;
  font-weight: 600;
}

.tweet__space {
  margin-top: 10px;
}

.tweet__space .space-card {
  overflow: hidden;
  border: 1px solid #4b3c67;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.34), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.16), transparent 28%),
    #050505;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.12);
}

.tweet__space .space-card__link {
  align-items: center;
  padding: 14px;
}

.tweet__space .space-card__link:hover {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.4), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.2), transparent 28%),
    rgba(8, 8, 8, 0.96);
}

.space-card__cta {
  display: none;
}

.tweet__space .space-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid rgba(247, 249, 249, 0.9);
  border-radius: 999px;
  background: transparent;
  color: #f7f9f9;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  box-sizing: border-box;
}

.tweet__space .space-card--ended .space-card__cta {
  border-color: rgb(247 249 249 / 45%);
  color: #f7f9f987;
}

@media (hover: hover) and (pointer: fine) {
  .tweet__space .watch-party-card .space-card__cta:hover {
    border-color: rgba(167, 139, 250, 0.75);
    background: rgba(124, 58, 237, 0.18);
    color: #fff;
    transform: translateY(-1px);
  }
}

.tweet__media {
  margin-top: 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2f3336;
}

.tweet__media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.tweet__media video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #000;
}

.feed .tweet__media img {
  cursor: zoom-in;
}

.tweet__clip {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #000;
}

.tweet__clip-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tweet__clip-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tweet__clip-body {
  padding: 12px 14px 14px;
  border-top: 1px solid #2f3336;
  background: #16181c;
}

.tweet__clip-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  min-width: 0;
}

.tweet__clip-label {
  color: #acd628;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tweet__clip-time {
  font-size: 0.85rem;
}

.tweet__clip-snippet-wrap {
  position: relative;
  max-height: calc(1.45em * 2);
  overflow: hidden;
  cursor: pointer;
}

.tweet__clip-snippet-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1.8em;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(22, 24, 28, 0), #16181c);
}

.tweet__clip-snippet-wrap:hover .tweet__clip-snippet,
.tweet__clip-snippet-wrap:focus-visible .tweet__clip-snippet {
  color: #fff;
}

.tweet__clip-snippet-wrap:focus-visible {
  outline: 2px solid #536471;
  outline-offset: 3px;
  border-radius: 6px;
}

.tweet__clip-snippet-wrap--expanded {
  max-height: none;
}

.tweet__clip-snippet-wrap--expanded::after {
  display: none;
}

.tweet__clip-snippet {
  margin: 0;
  color: #e7e9ea;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.tweet__clip-snippet-wrap--expanded .tweet__clip-snippet {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.tweet__clip-link {
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
  color: #1d9bf0;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.image-lightbox__frame {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
}

.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.image-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.image-lightbox__close:hover {
  opacity: 0.8;
}

.tweet__bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: start;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  color: #71767b;
  font-size: 0.85rem;
}

.tweet__bar-form {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
}

.tweet__bar > a.tweet__bar-item,
.tweet__bar > span.tweet__bar-item {
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.tweet__bar-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 36px;
  width: fit-content;
  max-width: 100%;
  padding: 0 8px 0 0;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.tweet__bar-item:hover {
  color: #1d9bf0;
  background: transparent;
}

.tweet__bar-item--reply:hover {
  color: #1d9bf0;
  background: transparent;
}

.tweet__bar-item--repost:hover,
.tweet__bar-item--reposted {
  color: #00ba7c;
  background: transparent;
}

.tweet__bar-item--like:hover {
  color: #f91880;
  background: transparent;
}

.tweet__bar-item--liked,
.tweet__bar-item--liked:hover {
  color: #f91880;
  background: transparent;
}

.tweet__bar-item--views {
  cursor: default;
}

.tweet__bar-item--views:hover {
  color: inherit;
  background: transparent;
}

.tweet__bar-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.tweet__bar-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

.tweet__bar-count {
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
  background: #333;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar--sm {
  width: 40px;
  height: 40px;
  font-size: 0.92rem;
}

.avatar--md {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

.avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 1.4rem;
}

.avatar--xl {
  width: 96px;
  height: 96px;
  font-size: 1.75rem;
}

.avatar--fallback {
  font-weight: 800;
  color: #fff;
}

.profile-cover {
  width: 100%;
  min-height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 -42px 38px -20px rgba(0, 0, 0, 0.88);
}

.profile-cover--empty {
  background: linear-gradient(135deg, #1a1d21 0%, #0d0d0d 100%);
}

.profile-head {
  padding: 16px;
  border-bottom: 1px solid #2f3336;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.profile-meta h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.profile-meta .handle {
  color: #71767b;
}

.profile-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #71767b;
}

.profile-stats strong {
  color: #e7e9ea;
}

.profile-bio {
  margin-top: 10px;
  white-space: pre-wrap;
}

.profile-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.profile-actions .btn:hover {
  text-decoration: none;
}

.profile-action-btn {
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 0.86rem;
}

.edit-profile-error {
  margin: 12px 16px 0;
}

.edit-profile-form {
  padding: 16px;
  border-top: 1px solid #2f3336;
}

.edit-profile-bio {
  min-height: 100px;
  border: 1px solid #2f3336;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
}

.widget {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #000;
}

.widget--sidebar-search {
  position: sticky;
  top: 12px;
  z-index: 3;
}

.widget--whats-happening {
  border-color: #4b3c67;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.34), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.16), transparent 28%),
    #050505;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.12);
}

.right-sticky-stack {
  position: sticky;
  top: 100px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.widget__title {
  font-weight: 800;
  margin-bottom: 8px;
}

.widget__title--live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a78bfa;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.widget__title--live .space-live-dot {
  flex: 0 0 auto;
}

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

.whos-live-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 -6px;
  padding: 10px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
}

.whos-live-item:hover {
  border-color: rgba(167, 139, 250, 0.42);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.whos-live-item__avatar {
  flex: 0 0 auto;
  margin-top: 2px;
}

.whos-live-item__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.whos-live-item__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.whos-live-item__eyebrow .space-live-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px rgba(249, 24, 128, 0.13);
}

.whos-live-item__title {
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whos-live-item__meta {
  overflow: hidden;
  margin-top: 3px;
  color: #a8b0b6;
  font-size: 0.82rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whos-live-item__action {
  display: none;
}

.whos-live-empty {
  padding: 2px 0 0;
}

.whos-live-empty__title {
  margin: 0 0 4px;
  color: #fff;
  font-weight: 800;
}

.whos-live-empty p:last-child {
  margin-bottom: 0;
}

.who-follow {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.who-follow__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  margin: 0 -4px;
  border-radius: 8px;
  min-width: 0;
}

.who-follow__row:hover {
  background: #16181c;
}

.who-follow__link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.who-follow__link:hover,
.who-follow__link:visited {
  text-decoration: none;
  color: inherit;
}

.who-follow__action {
  flex-shrink: 0;
}

.who-follow__form {
  margin: 0;
  padding: 0;
}

.who-follow__follow {
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.who-follow__follow:hover {
  text-decoration: none;
}

.who-follow__state {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #2f3336;
  background: #16181c;
  color: #acd628;
}

.who-follow__avatar {
  flex-shrink: 0;
  line-height: 0;
}

.who-follow__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.who-follow__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-follow__handle {
  color: #71767b;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-feed {
  min-height: 120px;
}

.notif-feed a:hover {
  text-decoration: none;
}

.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #2f3336;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.notif-row__type-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71767b;
  line-height: 0;
}

.notif-row__type-icon--follow {
  color: #e7e9ea;
}

.notif-row__type-icon--like {
  color: #f91880;
}

.notif-row__type-icon--reply {
  color: #1d9bf0;
}

.notif-row__type-icon--repost {
  color: #00ba7c;
}

.notif-row__type-icon--mention {
  color: #1d9bf0;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.notif-row:hover {
  background: #080808;
}

.notif-row--with-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.notif-row--with-bar:hover {
  background: #080808;
}

.notif-row__primary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  box-sizing: border-box;
}

.notif-row__bar-wrap {
  margin-top: 8px;
  padding-left: 98px;
  min-width: 0;
}

.notif-row__bar-wrap .tweet__bar {
  margin-top: 0;
}

.notif-row__avatar {
  flex-shrink: 0;
  line-height: 0;
}

.notif-row__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.notif-row__text {
  line-height: 1.35;
  color: #71767b;
}

.notif-row__text strong {
  font-weight: 800;
  color: #e7e9ea;
}

.notif-row__snippet {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e7e9ea;
  word-break: break-word;
}

.notif-row__time {
  color: #71767b;
  font-size: 0.9rem;
}

.notif-tabs .tabs__link {
  padding: 12px 6px;
  font-size: 0.85rem;
}

.messages-shell {
  display: grid;
  grid-template-columns: 380px minmax(0, 600px);
  height: 100vh;
  min-height: 640px;
  background: #000;
}

.messages-sidebar {
  min-width: 0;
  border-right: 1px solid #2f3336;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.messages-pane-header,
.messages-conversation__header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #2f3336;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}

.messages-pane-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.messages-search {
  padding: 12px 16px;
  border-bottom: 1px solid #2f3336;
  background: #000;
}

.messages-search__field {
  background: #16181c;
}

.messages-search__input {
  min-height: 42px;
}

.messages-alert {
  margin: 12px;
  padding: 10px 12px;
  border: 1px solid #5a2500;
  border-radius: 12px;
  color: #ffd6a8;
  background: #180900;
}

.messages-thread-list {
  min-height: 0;
  overflow-y: auto;
}

.messages-empty--search {
  border-top: 1px solid #2f3336;
}

.messages-thread-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #2f3336;
  color: inherit;
  text-decoration: none;
}

.messages-thread-row:hover,
.messages-thread-row--active {
  background: #080808;
  text-decoration: none;
}

.messages-thread-row--active {
  box-shadow: inset 4px 0 0 #fff;
}

.messages-thread-row__avatar {
  flex-shrink: 0;
  line-height: 0;
}

.messages-thread-row__main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.messages-thread-row__top {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.messages-thread-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.messages-thread-row__handle,
.messages-thread-row__time,
.messages-thread-row__snippet {
  color: #71767b;
}

.messages-thread-row__handle {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-thread-row__time {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.85rem;
}

.messages-thread-row__snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
}

.messages-thread-row--unread .messages-thread-row__name,
.messages-thread-row--unread .messages-thread-row__snippet {
  color: #e7e9ea;
}

.messages-thread-row__unread {
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd400;
  flex-shrink: 0;
}

.messages-conversation {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.messages-conversation__back {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex-shrink: 0;
}

.messages-conversation__back:hover {
  background: #181818;
  text-decoration: none;
}

.messages-conversation__identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.messages-conversation__identity:hover {
  text-decoration: none;
}

.messages-conversation__identity span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}

.messages-conversation__identity strong,
.messages-conversation__identity .muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

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

.message-row--theirs {
  justify-content: flex-start;
}

.message-row__avatar {
  flex-shrink: 0;
  line-height: 0;
}

.message-row__stack {
  display: flex;
  max-width: min(430px, 76%);
  flex-direction: column;
  gap: 4px;
}

.message-row--mine .message-row__stack {
  align-items: flex-end;
}

.message-row--theirs .message-row__stack {
  align-items: flex-start;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 20px;
  background: #202327;
  color: #e7e9ea;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-row--mine .message-bubble {
  border-bottom-right-radius: 6px;
  background: #eff3f4;
  color: #0f1419;
}

.message-row--theirs .message-bubble {
  border-bottom-left-radius: 6px;
}

.message-row__time {
  padding: 0 4px;
  color: #71767b;
  font-size: 0.78rem;
}

.message-composer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #2f3336;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}

.message-composer__field {
  flex: 1;
  min-width: 0;
}

.message-composer__error {
  margin: 0 0 8px;
}

.message-composer__textarea {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  max-height: 160px;
  resize: none;
  padding: 11px 14px;
  border: 1px solid #2f3336;
  border-radius: 22px;
  outline: none;
  background: #16181c;
  color: #e7e9ea;
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.message-composer__textarea:focus {
  border-color: #fff;
}

.message-composer__send {
  min-height: 44px;
}

.messages-empty,
.messages-select-empty {
  padding: 28px 24px;
  color: #e7e9ea;
}

.messages-empty h2,
.messages-select-empty h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.messages-empty p,
.messages-select-empty p {
  margin: 0;
}

.messages-select-empty {
  margin: auto;
  max-width: 360px;
  text-align: center;
}

.messages-select-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f3336;
  border-radius: 50%;
  color: #71767b;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.86rem;
}

.spaces-page {
  padding-bottom: 32px;
}

.spaces-page.is-space-audio-connecting [data-space-end-button] {
  display: none;
}

.spaces-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px 16px;
  border-bottom: 1px solid #2f3336;
}

.spaces-header h2 {
  margin: 0 0 6px;
  font-size: 1.8rem;
  line-height: 1.1;
}

.spaces-header__eyebrow,
.space-card__eyebrow,
.space-room__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #a78bfa;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.space-live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f91880;
  box-shadow: 0 0 0 5px rgba(249, 24, 128, 0.16);
}

.space-ended-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #71767b;
  box-shadow: 0 0 0 5px rgba(113, 118, 123, 0.16);
}

.spaces-alert,
.spaces-status {
  margin: 14px 20px 0;
}

.spaces-alert {
  padding: 12px 14px;
  border: 1px solid #3a2d12;
  border-radius: 16px;
  background: rgba(255, 212, 0, 0.08);
  color: #f4d86a;
}

.spaces-alert code {
  color: inherit;
}

.spaces-status--error {
  color: #ff7a7a;
}

.space-create-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px 20px;
  border-bottom: 1px solid #2f3336;
}

.space-create-card--launcher {
  display: flex;
  justify-content: flex-end;
}

.space-create-card--guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.space-create-card p {
  margin: 0;
}

.space-start-button {
  position: relative;
  isolation: isolate;
  gap: 8px;
  overflow: hidden;
  border-color: rgba(167, 139, 250, 0.42);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.58), transparent 36%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.34), transparent 30%),
    #050505;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.12) inset, 0 0 22px rgba(124, 58, 237, 0.2), 0 10px 26px rgba(0, 0, 0, 0.32);
  animation: spaceStartButtonPulse 3.6s ease-in-out infinite;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.space-start-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(167, 139, 250, 0.16), transparent 52%);
  opacity: 0.7;
  transition: opacity 160ms ease;
}

.space-start-button:hover {
  border-color: rgba(167, 139, 250, 0.72);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2) inset, 0 0 28px rgba(124, 58, 237, 0.3), 0 12px 30px rgba(0, 0, 0, 0.36);
}

.space-start-button:hover::before {
  opacity: 1;
}

.space-start-button--premium {
  border-color: rgba(226, 232, 240, 0.68);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 34%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #c7ccd4 48%, #111318 100%);
  color: #050505;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 0 24px rgba(226, 232, 240, 0.22), 0 10px 26px rgba(0, 0, 0, 0.32);
}

.space-start-button--premium::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(15, 23, 42, 0.18), transparent 52%);
}

.space-start-button--premium:hover {
  border-color: rgba(248, 250, 252, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32) inset, 0 0 30px rgba(226, 232, 240, 0.28), 0 12px 30px rgba(0, 0, 0, 0.36);
}

.space-start-button:active {
  transform: translateY(0) scale(0.98);
}

.space-start-button:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

@keyframes spaceStartButtonPulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.12) inset, 0 0 20px rgba(124, 58, 237, 0.18), 0 10px 26px rgba(0, 0, 0, 0.32);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(249, 24, 128, 0.14) inset, 0 0 27px rgba(124, 58, 237, 0.26), 0 10px 26px rgba(0, 0, 0, 0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .space-start-button {
    animation: none;
  }
}

.space-create-modal__panel {
  overflow: hidden;
  max-width: 460px;
  border-color: rgba(124, 58, 237, 0.5);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.3), transparent 36%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.14), transparent 30%),
    rgba(5, 5, 5, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62), 0 0 36px rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(16px);
}

.space-create-modal .compose-modal__backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.74);
}

.space-create-modal__head {
  align-items: flex-start;
  padding: 18px 20px 16px;
  border-bottom-color: rgba(167, 139, 250, 0.16);
}

.space-create-modal__head .compose-modal__title {
  font-size: 1.32rem;
}

.space-create-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.space-create-modal .compose-modal__close {
  color: #c4b5fd;
}

.space-create-modal .compose-modal__close:hover {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.space-create-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px 20px;
}

.space-create-modal__form .label {
  margin: 0;
  color: #e9d5ff;
  font-weight: 800;
}

.space-create-modal__form .input {
  border-color: rgba(167, 139, 250, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.08) inset;
}

.space-create-modal__form .input:focus {
  border-color: rgba(167, 139, 250, 0.78);
  outline: none;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.24), 0 0 22px rgba(124, 58, 237, 0.18);
}

.space-create-modal__form .input::placeholder {
  color: #8b98a5;
}

.space-create-modal__form .space-start-button {
  align-self: flex-end;
  min-width: 120px;
}

.space-start-button .space-live-dot {
  flex: 0 0 auto;
  animation: space-live-dot-pulse 1.45s ease-in-out infinite;
}

@keyframes space-live-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(249, 24, 128, 0.14);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(249, 24, 128, 0);
    transform: scale(1.18);
  }
}

.spaces-list {
  display: flex;
  flex-direction: column;
}

.spaces-list--live {
  gap: 12px;
  padding: 16px 16px 16px;
}

.spaces-recent-section {
  border-top: 1px solid #2f3336;
}

.spaces-section-header {
  padding: 20px 20px 8px;
}

.spaces-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.space-card {
  border-bottom: 1px solid #2f3336;
}

.spaces-list--live .space-card {
  overflow: hidden;
  border: 1px solid #4b3c67;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.34), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.16), transparent 28%),
    #050505;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.12);
}

.space-card__link {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  text-decoration: none;
}

.spaces-list--live .space-card__link {
  align-items: center;
  padding: 14px;
}

.space-card--ended .space-card__link {
  cursor: pointer;
}

.space-card__link:hover {
  background: #080808;
  text-decoration: none;
}

.spaces-list--live .space-card__link:hover {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.4), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.2), transparent 28%),
    rgba(8, 8, 8, 0.96);
}

.space-card__host {
  flex: 0 0 auto;
}

.space-card__body {
  min-width: 0;
  flex: 1 1 auto;
}

.space-card__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.space-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.space-card__title-row .space-card__title {
  margin: 0;
}

.space-card__title-main {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.space-card__title-link {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.space-card__title-link:hover {
  text-decoration: underline;
}

.space-card__title-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
}

.space-card__eyebrow--inline {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.space-card__menu-wrap {
  margin-left: 0;
}

.space-card__menu-trigger {
  margin: -7px -8px -7px 0;
}

.space-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  color: #71767b;
}

.space-card__avatars {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 6px;
}

.space-card__avatar {
  display: inline-flex;
  margin-left: -6px;
}

.space-card__avatar .avatar {
  border: 2px solid #000;
}

.space-card--ended .space-card__eyebrow {
  color: #71767b;
}

.spaces-list--live .space-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid rgba(231, 233, 234, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
}

.spaces-empty {
  padding: 56px 22px;
  text-align: center;
}

.spaces-empty--live {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.16), transparent 40%),
    radial-gradient(circle at bottom right, rgba(249, 24, 128, 0.1), transparent 36%);
}

.spaces-empty--live::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(167, 139, 250, 0.34), transparent 72%) left bottom / 1px 100% no-repeat,
    linear-gradient(to top, rgba(249, 24, 128, 0.24), transparent 72%) right bottom / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(167, 139, 250, 0.34), rgba(249, 24, 128, 0.24)) left bottom / 100% 1px no-repeat;
}

.spaces-empty--compact {
  padding: 28px 22px 36px;
}

.spaces-empty--live-condensed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at bottom left, rgba(167, 139, 250, 0.16), transparent 40%),
    radial-gradient(circle at bottom right, rgba(249, 24, 128, 0.18), transparent 44%),
    linear-gradient(90deg, transparent 58%, rgba(249, 24, 128, 0.08));
  text-align: left;
}

.spaces-empty--live-condensed::after {
  background:
    linear-gradient(to top, rgba(167, 139, 250, 0.34), transparent 72%) left bottom / 1px 100% no-repeat,
    linear-gradient(to top, rgba(249, 24, 128, 0.18), transparent 72%) right bottom / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(167, 139, 250, 0.34), rgba(249, 24, 128, 0.18)) left bottom / 100% 1px no-repeat;
}

.spaces-empty--live-condensed .spaces-empty__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.spaces-empty--live-condensed h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
}

.spaces-empty--live-condensed p {
  margin: 0;
}

.spaces-empty--live-condensed .btn {
  position: relative;
  z-index: 1;
  align-self: center;
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}

.spaces-empty h2 {
  margin: 0 0 8px;
}

.spaces-empty .btn {
  margin-top: 18px;
}

.spaces-empty.spaces-empty--live-condensed .btn {
  align-self: center;
  margin-top: 0;
}

.spaces-room-shell {
  min-height: 100vh;
}

body.has-space-dock {
  padding-bottom: 96px;
}

body.has-space-dock-expanded {
  padding-bottom: 220px;
}

.space-global-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: min(560px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid #3f4650;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.28), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.12), transparent 28%),
    rgba(5, 5, 5, 0.94);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42), 0 0 24px rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: width 180ms ease, padding 180ms ease, border-radius 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.space-global-dock[hidden] {
  display: none !important;
}

.space-global-dock:not(.space-global-dock--expanded) {
  overflow: hidden;
}

.space-global-dock--expanded {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 44px);
  padding: 22px;
  border-color: #4b3c67;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.34), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.16), transparent 28%),
    rgba(5, 5, 5, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52), 0 0 34px rgba(124, 58, 237, 0.18);
}

.space-global-dock--expanded.space-global-dock--watch-party {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.space-global-dock__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.space-global-dock__pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(249, 24, 128, 0.12);
  overflow: visible;
}

.space-global-dock--expanded .space-global-dock__pulse {
  display: inline-flex;
  width: 48px;
  height: 48px;
}

.space-dock-speaker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.space-global-dock__pulse .avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.space-global-dock__main {
  flex: 1 1 auto;
  min-width: 0;
}

.space-global-dock__header-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.space-global-dock__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #3f4650;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7e9ea;
  cursor: pointer;
}

.space-global-dock__icon-btn:hover {
  border-color: #a78bfa;
  background: rgba(255, 255, 255, 0.08);
}

.space-global-dock__icon-btn svg {
  display: block;
}

.space-global-dock__icon-btn .space-global-dock__chevron--down,
.space-global-dock--expanded .space-global-dock__icon-btn .space-global-dock__chevron--up {
  display: none;
}

.space-global-dock--expanded .space-global-dock__icon-btn .space-global-dock__chevron--down {
  display: block;
}

.space-global-dock__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.space-global-dock__title {
  display: block;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-global-dock--expanded .space-global-dock__title {
  margin-top: 2px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.08;
  white-space: normal;
}

.space-global-dock__title:hover {
  text-decoration: underline;
}

.space-global-dock__participants {
  display: none;
}

.space-global-dock--expanded .space-global-dock__participants {
  display: block;
  width: 100%;
}

.space-global-dock__watch-preview {
  display: none;
}

.space-global-dock--expanded.space-global-dock--watch-party .space-global-dock__watch-preview {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.space-global-dock__watch-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.space-global-dock__watch-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.28), transparent 42%),
    rgba(0, 0, 0, 0.86);
  color: #d1d5db;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.space-global-dock__watch-preview--sharing .space-global-dock__watch-empty {
  pointer-events: none;
  opacity: 0;
}

.space-global-dock__participants .space-stage,
.space-global-dock__participants .space-listeners {
  padding: 10px 0 0;
}

.space-global-dock__participants .space-stage h3,
.space-global-dock__participants .space-listeners h3 {
  margin-bottom: 10px;
}

.space-global-dock__participants .space-stage + .space-listeners {
  margin-top: 8px;
}

.space-global-dock__participants .space-participant-grid--speakers {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.space-global-dock__participants .space-participant-grid--listeners {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}

.space-global-dock__participants .space-participant-grid {
  gap: 18px 14px;
}

.space-global-dock__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.space-global-dock__action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.space-global-dock:not(.space-global-dock--expanded) .space-global-dock__actions:has([data-space-dock-join].is-loading) {
  justify-content: center;
}

.space-global-dock:not(.space-global-dock--expanded) [data-space-dock-join].is-loading {
  min-width: 180px;
  margin-inline: auto;
  border-color: transparent;
  background: #000;
  color: #71767b;
}

.space-global-dock:not(.space-global-dock--expanded) [data-space-dock-join]:not([hidden]):not(.is-loading) {
  width: 100%;
}

.space-global-dock:not(.space-global-dock--expanded) [data-space-dock-join].is-loading .btn__spinner {
  border-color: rgba(113, 118, 123, 0.32);
  border-top-color: currentColor;
}

.space-global-dock [data-space-dock-leave] {
  margin-left: auto;
}

[data-space-dock-leave] {
  border-color: rgba(255, 122, 122, 0.45);
  background: rgba(244, 33, 46, 0.1);
  color: #ff9a9a;
}

[data-space-dock-leave]:hover {
  background: rgba(244, 33, 46, 0.16);
}

.space-global-dock .space-reaction-trigger,
.space-global-dock .space-soundboard__trigger {
  width: auto;
  height: 32px;
  min-height: 0;
  padding: 6px 12px;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 0.86rem;
  line-height: 1;
}

.space-global-dock__request-bell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 1px solid #3f4650;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #71767b;
  cursor: pointer;
  flex-shrink: 0;
}

.space-global-dock__icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 1px solid #3f4650;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7e9ea;
  cursor: pointer;
  flex-shrink: 0;
}

.space-global-dock__icon-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

.space-global-dock__request-bell:hover {
  background: rgba(255, 255, 255, 0.1);
}

.space-global-dock__request-bell--active {
  border-color: rgba(124, 58, 237, 0.9);
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
  animation: spaceRequestBellPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

@keyframes spaceRequestBellPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16), 0 0 0 0 rgba(124, 58, 237, 0.34);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22), 0 0 0 7px rgba(124, 58, 237, 0);
  }
}

.space-global-dock--expanded .space-global-dock__actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 6px;
}

.space-global-dock__mic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #7c3aed;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
}

.space-global-dock__mic svg {
  display: block;
}

.space-global-dock__mic--on {
  background: #7c3aed;
}

.space-global-dock__request {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.16);
  color: #fff;
  font-weight: 800;
}

.space-global-dock__request:hover {
  background: rgba(124, 58, 237, 0.24);
}

.space-global-dock__request:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.spaces-back-link {
  display: inline-flex;
  margin: 14px 20px 0;
  color: #a78bfa;
  font-weight: 700;
}

.space-room {
  position: relative;
  margin: 14px 20px 24px;
  border: 1px solid #2f3336;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.34), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.16), transparent 28%),
    #050505;
  box-shadow: 0 0 34px rgba(124, 58, 237, 0.12);
}

.space-room__hero {
  padding: 26px 26px 10px;
}

.space-room__hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.space-room__hero-main {
  min-width: 0;
}

.space-room__hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.space-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #3f4650;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7e9ea;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.space-share-button:hover {
  border-color: #a78bfa;
  background: rgba(255, 255, 255, 0.08);
}

.space-share-button svg {
  display: block;
  width: 18px;
  height: 18px;
}

.space-stage,
.space-listeners,
.space-requests {
  padding: 16px 26px 4px;
}

.space-stage h3,
.space-listeners h3,
.space-requests h3 {
  margin: 0 0 14px;
  font-size: 0.98rem;
  color: #e7e9ea;
}

.space-participant-grid {
  display: grid;
  gap: 18px 14px;
}

.space-participant-grid--speakers {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.space-participant-grid--listeners {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
}

.space-participant {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.space-participant__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.space-participant__profile:hover .space-participant__name {
  text-decoration: underline;
}

.space-participant__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.space-participant__avatar-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.space-participant__avatar-wrap .avatar {
  position: relative;
  z-index: 1;
}

.space-participant--speaking .space-participant__avatar-wrap::before,
.space-dock-speaker--speaking::before {
  content: '';
  position: absolute;
  inset: -5px;
  z-index: 0;
  border-radius: 999px;
  background:
    conic-gradient(from 120deg, rgba(124, 58, 237, 0.95), rgba(249, 24, 128, 0.72), rgba(124, 58, 237, 0.95));
  animation: spaceSpeakingPulse 1.25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes spaceSpeakingPulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.space-participant__mic {
  position: absolute;
  right: -2px;
  bottom: 2px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid #050505;
  border-radius: 50%;
  background: #71767b;
}

.space-participant__mic::before {
  content: '';
  position: absolute;
  inset: 4px 6px 5px;
  border-radius: 999px;
  background: #050505;
}

.space-participant__mic--on {
  background: #7c3aed;
}

.space-participant__name {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.space-stage .space-participant__name {
  font-size: 0.94rem;
}

.space-listeners .space-participant__name {
  font-size: 0.88rem;
}

.space-participant__handle {
  display: none;
  overflow: hidden;
  color: #71767b;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-participant__role {
  overflow: hidden;
  color: #71767b;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-inline-action {
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid #3f4650;
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.space-inline-action:hover {
  border-color: #a78bfa;
}

.space-participant__actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 8px;
}

.space-participant__actions .space-inline-action {
  margin-top: 0;
  white-space: nowrap;
}

.space-reactions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.space-reactions__float {
  position: absolute;
  right: 18px;
  bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.space-global-dock .space-reactions__float {
  right: 18px;
  bottom: 76px;
}

.space-global-dock--expanded .space-reactions__float {
  bottom: 108px;
}

.space-reaction-burst {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 1.35rem;
  animation: spaceReactionRise 3.2s ease-out both;
}

.space-reaction-picker,
.space-soundboard {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.space-reaction-trigger,
.space-reaction-btn,
.space-soundboard__trigger,
.space-soundboard__pad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
}

.space-reaction-trigger,
.space-soundboard__trigger {
  width: 44px;
  height: 44px;
  border: 1px solid #3f4650;
  background: rgba(255, 255, 255, 0.04);
  color: #71767b;
}

.space-reaction-btn {
  width: 34px;
  height: 34px;
}

.space-reaction-trigger:hover,
.space-reaction-btn:hover,
.space-soundboard__trigger:hover,
.space-soundboard__pad:hover {
  background: rgba(255, 255, 255, 0.1);
}

.space-reaction-trigger svg,
.space-soundboard__trigger svg {
  display: block;
}

.space-soundboard__panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: 178px;
  padding: 8px;
  border: 1px solid #2f3336;
  border-radius: 18px;
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
}

.space-soundboard__panel[hidden] {
  display: none !important;
}

.space-soundboard__panel.space-soundboard__panel--portal {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 5000;
  transform: none;
}

.space-soundboard__panel.space-soundboard__panel--portal::after {
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.space-soundboard__panel::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #2f3336;
  border-bottom: 1px solid #2f3336;
  background: rgba(5, 5, 5, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.space-soundboard__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.space-soundboard__pad {
  width: 50px;
  height: 50px;
  border: 1px solid #3f4650;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7e9ea;
  font-size: 0.92rem;
  font-weight: 900;
}

.space-soundboard__pad--custom {
  border-color: rgba(124, 58, 237, 0.75);
  background: rgba(124, 58, 237, 0.18);
  color: #ddd6fe;
}

.space-soundboard__pad--playing {
  transform: scale(0.94);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.22);
}

.space-reaction-tray {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
}

.space-reaction-tray--portal {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 5000;
  transform: none;
}

.space-reaction-tray--portal::after {
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.space-reaction-tray[hidden] {
  display: none !important;
}

.space-reaction-tray::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border-right: 1px solid #2f3336;
  border-bottom: 1px solid #2f3336;
  background: rgba(5, 5, 5, 0.94);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes spaceReactionRise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.85);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-84px) scale(1.12);
  }
}

.space-requests {
  margin: 10px 26px 0;
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.space-request-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.space-request-row + .space-request-row {
  border-top: 1px solid #2f3336;
}

.space-controls {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 18px 20px 22px;
  border-top: 1px solid #2f3336;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
}

.space-controls__action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.space-controls__action-group:has([data-space-join-audio]:not([hidden])) {
  width: 100%;
}

.space-controls [data-space-join-audio]:not([hidden]) {
  width: 100%;
}

.space-controls > .btn-danger,
.space-controls > [data-space-action="leave"] {
  margin-left: auto;
}

[data-space-connected-only][hidden] {
  display: none !important;
}

[data-space-join-audio][hidden],
[data-space-dock-join][hidden] {
  display: none !important;
}

.space-controls .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
  font-weight: 800;
}

.space-replay-player {
  width: 100%;
}

.space-replay-player__main {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.space-replay-player__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  color: #e7e9ea;
  cursor: pointer;
}

.space-replay-player__play:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.space-replay-player--ready .space-replay-player__play:hover {
  background: rgba(124, 58, 237, 0.34);
}

.space-replay-player__play span {
  display: inline-flex;
}

.space-replay-player__play span[hidden] {
  display: none;
}

.space-replay-player__body {
  min-width: 0;
  flex: 1 1 auto;
}

.space-replay-player__head,
.space-replay-player__times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.space-replay-player__title {
  font-weight: 900;
}

.space-replay-player__status,
.space-replay-player__times {
  color: #71767b;
  font-size: 0.82rem;
  font-weight: 700;
}

.space-replay-player__timeline {
  position: relative;
  height: 6px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #2f3336;
}

.space-replay-player--ready .space-replay-player__timeline {
  cursor: pointer;
}

.space-replay-player__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #f91880);
}

.space-mic-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #7c3aed;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
}

.space-mic-button--on {
  background: #7c3aed;
}

.space-mic-button svg {
  display: block;
  width: 16px;
  height: 16px;
}

.space-mic-button__icon {
  position: relative;
  width: 16px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.space-mic-button__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

.spaces-rtk-elements {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 700px) {
  .avatar--xl {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .spaces-header,
  .space-create-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .space-create-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .space-create-card--guest {
    align-items: stretch;
    flex-direction: column;
  }

  .spaces-back-link,
  .spaces-alert,
  .spaces-status {
    margin-left: 14px;
    margin-right: 14px;
  }

  #space-room-fragment {
    box-sizing: border-box;
    display: flex;
    min-height: 0;
  }

  .space-room {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin: 12px 10px 20px;
    max-height: min(56dvh, 460px);
    min-height: 300px;
    border-radius: 22px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .spaces-page:not(.watch-party-page) #space-room-fragment {
    display: block;
  }

  .spaces-page:not(.watch-party-page) .space-room {
    display: block;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .space-room__hero,
  .space-stage,
  .space-listeners {
    padding-left: 16px;
    padding-right: 16px;
  }

  .space-requests {
    margin-left: 16px;
    margin-right: 16px;
  }

  .space-participant-grid--speakers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .space-participant-grid--listeners {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .space-listeners {
    min-height: 0;
    padding-bottom: 86px;
  }

  .space-controls {
    bottom: 0;
    flex-shrink: 0;
    padding: 14px 12px;
  }

  .spaces-page:not(.watch-party-page) .space-controls {
    position: fixed;
    z-index: 1040;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    padding: 10px;
    border: 1px solid #2f3336;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .spaces-page:not(.watch-party-page) .space-controls .space-controls__action-group {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    width: auto;
  }

  .spaces-page:not(.watch-party-page) .space-controls:has([data-space-join-audio]:not([hidden])) .space-controls__action-group,
  .spaces-page:not(.watch-party-page) .space-controls [data-space-join-audio]:not([hidden]) {
    width: 100%;
  }

  .spaces-page:not(.watch-party-page) .space-controls .space-mic-button,
  .spaces-page:not(.watch-party-page) .space-controls .space-reaction-trigger,
  .spaces-page:not(.watch-party-page) .space-controls .space-soundboard__trigger,
  .spaces-page:not(.watch-party-page) .space-controls > [data-space-action="leave"],
  .spaces-page:not(.watch-party-page) .space-controls > [data-space-action="end"] {
    flex: 0 0 auto;
    min-height: 38px;
    height: 38px;
  }

  .spaces-page:not(.watch-party-page) .space-controls .space-mic-button {
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .spaces-page:not(.watch-party-page) .space-controls .space-reaction-trigger,
  .spaces-page:not(.watch-party-page) .space-controls .space-soundboard__trigger {
    width: 38px;
  }

  .spaces-page:not(.watch-party-page) .space-controls > [data-space-action="leave"],
  .spaces-page:not(.watch-party-page) .space-controls > [data-space-action="end"] {
    margin-left: 0;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .spaces-page .space-controls [data-space-action="request_speaker"]:not(:disabled) [data-space-request-label] {
    font-size: 0;
  }

  .spaces-page .space-controls [data-space-action="request_speaker"]:not(:disabled) [data-space-request-label]::after {
    content: 'Request';
    font-size: 0.82rem;
  }

  .spaces-page:not(.watch-party-page) .space-room {
    margin-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }

  .space-global-dock {
    right: 10px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    width: calc(100vw - 20px);
    padding: 12px;
  }

  .space-global-dock--expanded {
    box-sizing: border-box;
    max-height: calc(100dvh - 94px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .space-global-dock__actions {
    flex-wrap: wrap;
  }

  .space-global-dock--expanded .space-global-dock__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -12px -12px;
    padding: 12px;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(14px);
    border-top: 1px solid #2f3336;
  }

  .space-reaction-picker {
    order: 10;
  }

  .space-soundboard {
    order: 11;
  }

  .space-reaction-tray {
    left: 0;
    transform: none;
  }

  .space-soundboard__panel {
    left: 0;
    transform: none;
  }

  .space-reaction-tray::after {
    left: 17px;
    transform: rotate(45deg);
  }

  .space-soundboard__panel::after {
    left: 17px;
    transform: rotate(45deg);
  }

  .space-controls .space-reaction-tray {
    left: 50%;
    transform: translateX(-50%);
  }

  .space-controls .space-reaction-tray::after {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .space-controls .space-soundboard__panel {
    left: 50%;
    transform: translateX(-50%);
  }

  .space-controls .space-soundboard__panel::after {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .space-request-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .space-request-row .btn {
    grid-column: span 1;
  }

  .admin-settings-form {
    padding: 14px;
  }

  .admin-settings-form__row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-soundboard-grid {
    grid-template-columns: 1fr;
  }
}

.admin-page {
  padding: 16px;
}

.admin-tabs {
  margin-bottom: 18px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #000;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-tabs__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: max-content;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.admin-tabs__badge {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.admin-tab-panel[hidden] {
  display: none;
}

.admin-placeholder-panel {
  min-height: 160px;
}

.admin-alert {
  margin: 0 0 12px;
}

.admin-notice {
  padding: 10px 12px;
  border: 1px solid #164b22;
  border-radius: 12px;
  background: rgba(22, 75, 34, 0.22);
  color: #d7ffd9;
}

.admin-chart {
  padding: 16px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #000;
  margin-bottom: 18px;
}

.admin-chart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-chart__head h2,
.admin-chart__head p {
  margin: 0;
}

.admin-chart__head p {
  margin-top: 4px;
}

.admin-chart__bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(34px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 220px;
}

.admin-chart__bar-wrap {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  min-width: 0;
  height: 220px;
}

.admin-chart__bar-value,
.admin-chart__bar-label {
  color: #71767b;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.admin-chart__bar-track {
  display: flex;
  align-items: end;
  height: 160px;
  min-height: 160px;
  border-radius: 999px;
  background: #080808;
  overflow: hidden;
}

.admin-chart__bar {
  width: 100%;
  height: var(--admin-bar-height, 4%);
  min-height: 4px;
  border-radius: 999px 999px 0 0;
  background: #e7e9ea;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-stat {
  padding: 16px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #080808;
}

.admin-stat__label {
  margin-bottom: 8px;
  color: #71767b;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-stat__value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.admin-panel {
  border: 1px solid #2f3336;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.admin-panel__head {
  padding: 16px;
  border-bottom: 1px solid #2f3336;
}

.admin-panel__head h2,
.admin-panel__head p {
  margin: 0;
}

.admin-panel__head p {
  margin-top: 4px;
}

.admin-empty-state {
  padding: 20px;
}

.admin-premium-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.admin-premium-summary-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #080808;
}

.admin-premium-summary-card .admin-subscription-badge {
  width: auto;
  max-width: max-content;
}

.admin-premium-summary-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.admin-premium-summary-card p {
  margin: 0;
}

.admin-premium-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.admin-premium-feature-form {
  border-top: 1px solid #2f3336;
}

.admin-premium-feature-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.admin-premium-feature-form__head h3,
.admin-premium-feature-form__head p {
  margin: 0;
}

.admin-premium-feature-form__head p {
  margin-top: 4px;
}

.admin-premium-feature-form__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.admin-premium-feature-form__actions .btn[hidden],
.admin-premium-feature-cancel[hidden],
.admin-premium-feature-save[hidden] {
  display: none !important;
}

.admin-premium-feature-matrix {
  display: grid;
  border-top: 1px solid #2f3336;
}

.admin-premium-feature-matrix__head,
.admin-premium-feature-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(90px, 120px));
  gap: 0;
}

.admin-premium-feature-matrix__head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #080808;
  color: #71767b;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-premium-feature-matrix__head > div,
.admin-premium-feature-row > div {
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #2f3336;
}

.admin-premium-feature-matrix__head > div:not(:first-child),
.admin-premium-feature-row > div:not(:first-child) {
  text-align: center;
}

.admin-premium-feature-row strong {
  display: block;
}

.admin-premium-feature-row .muted {
  display: block;
  margin-top: 3px;
}

.admin-premium-feature-access {
  color: #536471;
  font-size: 1rem;
  font-weight: 800;
}

.admin-premium-feature-access--yes {
  color: #9ff2b4;
}

.admin-premium-feature-save.btn-primary {
  background: #e7e9ea;
  border-color: #e7e9ea;
  color: #000;
}

.admin-premium-feature-save.btn-primary:hover,
.admin-premium-feature-save.btn-primary:focus-visible {
  background: #d7dbdc;
  border-color: #d7dbdc;
  color: #000;
}

.admin-premium-feature-cancel.btn-outline {
  border-color: rgba(239, 68, 68, 0.72);
  color: #ff8a8a;
}

.admin-premium-feature-cancel.btn-outline:hover,
.admin-premium-feature-cancel.btn-outline:focus-visible {
  background: rgba(239, 68, 68, 0.12);
  color: #ffb4b4;
}

.admin-premium-feature-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  color: #e7e9ea;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.admin-premium-feature-form--editing .admin-premium-feature-toggle {
  display: inline-flex;
}

.admin-premium-feature-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #1d9bf0;
}

.admin-premium-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px;
  background: rgba(29, 155, 240, 0.08);
}

.admin-panel__head--with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-settings-panel {
  margin-bottom: 18px;
}

.admin-settings-form {
  max-width: 900px;
  padding: 18px;
}

.admin-settings-form > .label {
  display: block;
  margin-bottom: 8px;
}

.admin-settings-form__row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) auto;
  gap: 12px;
  align-items: center;
}

.admin-settings-form__row + .muted {
  margin: 8px 0 0;
}

.admin-settings-form__actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.admin-settings-form__actions[hidden] {
  display: none;
}

.admin-soundboard-settings {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #2f3336;
}

.admin-soundboard-settings__head {
  margin-bottom: 16px;
}

.admin-soundboard-settings__head h3,
.admin-soundboard-settings__head p {
  margin: 0;
}

.admin-soundboard-settings__head p {
  margin-top: 6px;
}

.admin-soundboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-soundboard-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-soundboard-slot .label {
  margin: 0;
}

.admin-soundboard-slot .muted {
  margin: 0;
}

.admin-soundboard-slot__preview {
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
}

.admin-soundboard-slot__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #71767b;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-soundboard-slot input[type="file"] {
  width: 100%;
  margin-top: auto;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #2f3336;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #71767b;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-user-row {
  cursor: pointer;
}

.admin-user-row:hover td,
.admin-user-row:focus-visible td {
  background: #080808;
}

.admin-user-row:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: -2px;
}

.admin-request-row {
  cursor: pointer;
}

.admin-request-row:hover td,
.admin-request-row:focus-visible td {
  background: #080808;
}

.admin-request-row:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: -2px;
}

.admin-user-row__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  color: #e7e9ea;
}

.admin-user-row__handle {
  font-weight: 700;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: #080808;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-role-badge--standard {
  border-color: rgba(113, 118, 123, 0.48);
  background: rgba(113, 118, 123, 0.12);
  color: #cfd9de;
}

.admin-role-badge--admin {
  border-color: rgba(29, 155, 240, 0.45);
  background: rgba(29, 155, 240, 0.14);
  color: #8ecdf8;
}

.admin-subscription-badge,
.admin-subscription-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: #080808;
  color: #e7e9ea;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-subscription-badge + .admin-subscription-status {
  margin-left: 6px;
}

.admin-subscription-badge--free {
  border-color: rgba(113, 118, 123, 0.48);
  background: rgba(113, 118, 123, 0.12);
  color: #cfd9de;
}

.admin-subscription-badge--premium {
  border-color: rgba(29, 155, 240, 0.54);
  background: rgba(29, 155, 240, 0.14);
  color: #9bd5ff;
}

.admin-subscription-badge--clipper {
  border-color: rgba(255, 212, 0, 0.38);
  background: rgba(255, 212, 0, 0.1);
  color: #ffe57a;
}

.admin-subscription-status--active,
.admin-subscription-status--trialing {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.1);
  color: #9ff2b4;
}

.admin-subscription-status--past_due {
  border-color: rgba(255, 212, 0, 0.3);
  background: rgba(255, 212, 0, 0.08);
  color: #ffe57a;
}

.admin-subscription-status--canceled,
.admin-subscription-status--inactive {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.1);
  color: #ffb4b4;
}

.admin-request-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: #080808;
  color: #e7e9ea;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-request-status--pending {
  border-color: rgba(255, 212, 0, 0.3);
  background: rgba(255, 212, 0, 0.08);
  color: #ffe57a;
}

.admin-request-status--approved {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.1);
  color: #9ff2b4;
}

.admin-request-status--rejected {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.1);
  color: #ffb4b4;
}

.admin-user-modal[hidden] {
  display: none;
}

.admin-user-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-user-modal-open {
  overflow: hidden;
}

.admin-user-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.admin-user-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid #2f3336;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.admin-user-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #2f3336;
}

.admin-user-modal__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-user-modal__identity h3,
.admin-user-modal__identity p {
  margin: 0;
}

.admin-user-modal__identity h3 {
  font-size: 1.1rem;
}

.admin-user-modal__identity p {
  margin-top: 2px;
  color: #71767b;
}

.admin-user-modal__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

.admin-user-modal__close:hover,
.admin-user-modal__close:focus-visible {
  background: #181818;
  outline: none;
}

.admin-user-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #2f3336;
}

.admin-user-details div {
  min-width: 0;
}

.admin-user-details dt {
  color: #71767b;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-user-details dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.admin-user-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.admin-user-modal__danger {
  padding: 0 18px 18px;
}

.admin-request-modal__panel {
  width: min(100%, 720px);
}

.admin-request-reviewed {
  margin: 0;
  padding: 0 18px 14px;
  border-bottom: 1px solid #2f3336;
}

.admin-request-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.admin-request-section {
  min-width: 0;
}

.admin-request-section h4,
.admin-request-section p {
  margin: 0;
}

.admin-request-section h4 {
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-request-channel-list {
  display: grid;
  gap: 10px;
}

.admin-request-channel {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #2f3336;
  border-radius: 14px;
  background: #080808;
}

.admin-request-channel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-request-channel a {
  overflow-wrap: anywhere;
}

.admin-request-status-form {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #2f3336;
}

.admin-request-delete-form {
  padding-top: 12px;
}

.explore-tabs .tabs__link {
  padding: 12px 4px;
  font-size: 0.78rem;
}

.explore-tabs .tabs__link-text--mobile {
  display: none;
}

@media (max-width: 700px) {
  .explore-tabs .tabs__link-text--desktop {
    display: none;
  }

  .explore-tabs .tabs__link-text--mobile {
    display: inline;
  }

  .admin-page {
    padding: 12px;
  }

  .admin-premium-summary {
    grid-template-columns: 1fr;
  }

  .admin-premium-feature-matrix {
    overflow-x: auto;
  }

  .admin-premium-feature-matrix__head,
  .admin-premium-feature-row {
    min-width: 620px;
  }

  .admin-chart {
    padding: 14px;
  }

  .admin-chart__bars {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-chart__bar-wrap {
    min-width: 42px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stat {
    padding: 14px;
  }

  .admin-stat__value {
    font-size: 1.45rem;
  }

  .admin-panel__head--with-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-panel__head--with-actions .admin-settings-form__actions {
    width: 100%;
  }

  .admin-panel__head--with-actions .admin-settings-form__actions .btn {
    width: 100%;
  }

  .admin-user-modal {
    align-items: stretch;
    padding: 0;
  }

  .admin-user-modal__panel {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .admin-user-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-request-body {
    padding: 16px;
  }
}

.catalog-tabs {
  position: sticky;
  top: 58px;
  z-index: 9;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.catalog-tabs .tabs__link {
  padding: 12px 6px;
  font-size: 0.78rem;
}

.catalog-search-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  cursor: pointer;
}

.catalog-search-toggle:focus-visible {
  outline: 2px solid #1d9bf0;
  outline-offset: 2px;
}

.catalog-search-toggle svg {
  display: block;
}

.catalog-search-toolbar {
  position: sticky;
  top: 58px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #2f3336;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
}

.catalog-search-toolbar[hidden] {
  display: none;
}

.catalog-search-toolbar__field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.catalog-search-toolbar__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #71767b;
  line-height: 0;
  pointer-events: none;
}

.catalog-search-toolbar__icon svg {
  display: block;
}

.catalog-search-toolbar__input {
  display: block;
  width: 100%;
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: #202327;
  color: #e7e9ea;
  padding: 8px 14px 8px 38px;
  font: inherit;
  outline: none;
}

.catalog-search-toolbar__input:focus {
  border-color: #536471;
}

.catalog-search-toolbar__input::placeholder {
  color: #71767b;
}

.catalog-search-toolbar__clear {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #1d9bf0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}

.catalog-search-toolbar__clear[hidden] {
  display: none;
}

.catalog-search-toolbar.is-open + .catalog-tabs {
  top: 115px;
}

.catalog-page {
  padding: 12px 16px 24px;
}

.catalog-page__empty {
  margin: 16px 0 0;
}

.catalog-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  color: #71767b;
  font-size: 0.9rem;
}

.catalog-load-more[hidden] {
  display: none;
}

.catalog-load-more__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #2f3336;
  border-top-color: #1d9bf0;
  border-radius: 999px;
  animation: catalogLoadSpin 0.8s linear infinite;
}

@keyframes catalogLoadSpin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-page--grid .search-hit-list.catalog-episode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.catalog-page--months .search-hit-list.catalog-episode-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.catalog-episode-month {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
  color: #e7e9ea;
}

.catalog-page--grid .catalog-episode-month {
  grid-column: 1 / span 2;
  justify-self: stretch;
  margin: 10px 0 0;
}

.catalog-month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.catalog-month-header .catalog-episode-month {
  min-width: 0;
  margin: 0;
}

.catalog-month-controls {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.catalog-month-controls[hidden] {
  display: none;
}

.catalog-month-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(113, 118, 123, 0.55);
  border-radius: 999px;
  background: rgba(22, 24, 28, 0.88);
  color: #e7e9ea;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.catalog-month-nav:hover:not(:disabled),
.catalog-month-nav:focus-visible {
  border-color: #1d9bf0;
  background: rgba(29, 155, 240, 0.16);
  color: #fff;
}

.catalog-month-nav:disabled {
  cursor: default;
  opacity: 0.35;
}

.catalog-month-section {
  min-width: 0;
}

.catalog-month-section + .catalog-month-section {
  border-top: 1px solid rgba(47, 51, 54, 0.72);
  padding-top: 20px;
}

.catalog-month-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px 4px;
}

.catalog-month-row::-webkit-scrollbar {
  display: none;
}

.catalog-month-row {
  scrollbar-width: none;
}

.catalog-page--months .catalog-episode-card-wrap {
  flex: 0 0 min(72vw, 340px);
  max-width: 340px;
  scroll-snap-align: start;
}

.catalog-episode-card-wrap {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.catalog-episode-card-wrap > .search-hit-card.catalog-episode-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.catalog-episode-card-wrap > .search-hit-card.catalog-episode-card .search-hit-card__thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.catalog-episode-card-wrap > .search-hit-card.catalog-episode-card .search-hit-card__thumb {
  aspect-ratio: 16 / 9;
}

.catalog-episode-card__duration-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  pointer-events: none;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.catalog-episode-card-wrap > .search-hit-card.catalog-episode-card .catalog-episode-card__content {
  flex: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0 0;
}

.catalog-episode-card-wrap > .search-hit-card.catalog-episode-card .search-hit-card__body,
.catalog-episode-card-wrap > .search-hit-card.catalog-episode-card .catalog-episode-card__body {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 0;
  gap: 0;
}

.search-hit-card.catalog-episode-card .catalog-episode-card__title {
  margin: 0;
  display: -webkit-box;
  min-width: 0;
  min-height: 2.5em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1rem;
  line-height: 1.25;
}

.catalog-episode-card__title-text {
  display: inline;
}

.catalog-episode-card__title-date {
  display: inline;
  color: #71767b;
  font-weight: 500;
}

.catalog-episode-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 0;
}

.catalog-episode-card-wrap:hover,
.catalog-episode-card-wrap:focus-within {
  background: transparent;
}

@media (max-width: 700px) {
  .catalog-tabs {
    top: 110px;
  }

  .catalog-search-toolbar {
    top: 110px;
    padding: 8px 12px;
  }

  .catalog-search-toolbar__input {
    font-size: 16px;
  }

  .catalog-search-toolbar.is-open + .catalog-tabs {
    top: 165px;
  }

  .catalog-page--grid .search-hit-list.catalog-episode-list {
    column-gap: 8px;
    row-gap: 12px;
  }

  .catalog-episode-month {
    font-size: 0.98rem;
  }

  .catalog-month-header {
    gap: 10px;
  }

  .catalog-month-controls {
    gap: 6px;
  }

  .catalog-month-nav {
    width: 30px;
    height: 30px;
  }

  .catalog-page--grid .catalog-episode-month {
    grid-column: 1 / span 2;
  }

  .catalog-month-row {
    gap: 8px;
    scroll-padding-inline: 12px;
    margin: 0 -12px;
    padding: 0 12px 4px;
  }

  .catalog-page--months .catalog-episode-card-wrap {
    flex-basis: 72vw;
    max-width: 340px;
  }

  .search-hit-card.catalog-episode-card .catalog-episode-card__title {
    font-size: 0.82rem;
  }

}

.episode-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-bottom: 1px solid #2f3336;
  overflow: hidden;
}

.episode-media__thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.episode-media__thumb--empty {
  background: linear-gradient(135deg, #1a1d21 0%, #0d0d0d 100%);
}

.episode-media__player {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.episode-media__player[hidden] {
  display: none;
}

.episode-media__player--audio {
  display: flex;
  align-items: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, #000 100%);
}

.episode-media__player--audio[hidden] {
  display: none;
}

.episode-media__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.episode-media__audio {
  display: block;
  width: min(100%, 720px);
  margin: 0 auto;
  background: #fff;
  border-radius: 999px;
  filter: invert(1) hue-rotate(180deg);
}

.episode-media--playing .episode-media__thumb {
  opacity: 0;
  pointer-events: none;
}

.episode-media--audio-playing .episode-media__thumb {
  opacity: 1;
}

.episode-media--playing .episode-media__player {
  opacity: 1;
  pointer-events: auto;
}

.episode-head {
  padding: 16px;
  border-bottom: 1px solid #2f3336;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.episode-meta {
  flex: 1;
  min-width: 0;
}

.episode-meta h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
  word-break: break-word;
}

.episode-details {
  font-size: 0.9rem;
  line-height: 1.4;
}

.episode-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.95rem;
  color: #71767b;
}

.episode-stats strong {
  color: #e7e9ea;
}

.episode-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.episode-watch-btn__text--mobile {
  display: none;
}

@media (max-width: 700px) {
  .episode-watch-btn__text--desktop {
    display: none;
  }

  .episode-watch-btn__text--mobile {
    display: inline;
  }

  .episode-watch-btn--youtube {
    display: none;
  }
}

.episode-watch-btn:hover,
.episode-watch-btn:focus,
.episode-watch-btn:visited {
  text-decoration: none;
}

.episode-watch-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.episode-tabs .tabs__link {
  appearance: none;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.episode-tab-panel[hidden] {
  display: none;
}

.episode-transcript-panel {
  padding: 0;
}

.episode-transcript-list {
  max-height: 500px;
  overflow-y: auto;
  border-top: 1px solid #2f3336;
}

.episode-transcript-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #2f3336;
  background: transparent;
  color: #e7e9ea;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.episode-transcript-row--clickable {
  cursor: pointer;
}

.episode-transcript-row--clickable:hover,
.episode-transcript-row--clickable:focus {
  background: #080808;
  outline: none;
}

.episode-transcript-row--active {
  background: #0f1419;
}

.episode-transcript-row__time {
  color: #1d9bf0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.episode-transcript-row__text {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.episode-transcript-empty {
  margin: 0;
  padding: 16px;
}

@media (max-width: 700px) {
  .episode-transcript-row {
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding: 12px 16px;
  }
}

.episode-snippet-banner-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  border-bottom: 1px solid transparent;
}

.episode-snippet-banner-wrap--open {
  grid-template-rows: 1fr;
  border-bottom-color: #2f3336;
}

.episode-snippet-banner {
  overflow: hidden;
  min-height: 0;
  background: #16181c;
}

.episode-snippet-banner__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 0;
}

.episode-snippet-banner__title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.episode-snippet-banner__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.episode-snippet-banner__post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(172, 214, 40, 0.55);
  border-radius: 999px;
  background: rgba(172, 214, 40, 0.12);
  color: #acd628;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.episode-snippet-banner__post:hover,
.episode-snippet-banner__post:focus-visible {
  background: rgba(172, 214, 40, 0.2);
  color: #d8f46d;
}

.episode-snippet-banner__times {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.episode-snippet-banner__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #acd628;
}

.episode-snippet-banner__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -8px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #71767b;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.episode-snippet-banner__close:hover,
.episode-snippet-banner__close:focus-visible {
  color: #e7e9ea;
  background: rgba(231, 233, 234, 0.1);
}

.episode-snippet-banner__text {
  margin: 0;
  padding: 8px 16px 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e7e9ea;
  word-break: break-word;
}

.feed + .episode-login-prompt {
  border-top: 1px solid #2f3336;
}

.episode-login-prompt {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid #2f3336;
  font-size: 0.95rem;
}

.episode-login-prompt a {
  color: #1d9bf0;
  text-decoration: none;
}

.episode-login-prompt a:hover {
  text-decoration: underline;
}

.widget--episode .episode-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.episode-card__thumb-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2f3336;
  background: #16181c;
  line-height: 0;
}

.episode-card__thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.episode-card__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.episode-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #e7e9ea;
}

.episode-card__desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.episode-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.episode-card__meta {
  margin: 0;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.35;
}

.episode-card__cta {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  background: #fff;
  color: #000;
}

.episode-card__cta:hover,
.episode-card__cta:focus,
.episode-card__cta:visited {
  text-decoration: none;
}

.search-pill {
  border-radius: 999px;
  border: 1px solid #2f3336;
  background: #202327;
  color: #71767b;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
}

.search-pill-form {
  margin: 0;
  width: 100%;
}

.search-pill-field {
  position: relative;
  width: 100%;
  border-radius: 999px;
  border: 1px solid #2f3336;
  background: #202327;
  box-sizing: border-box;
}

.search-pill-field:focus-within {
  border-color: #536471;
}

.search-pill-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  color: #71767b;
  display: inline-flex;
  line-height: 0;
}

.search-pill-field__icon svg {
  display: block;
}

.search-pill-form__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px 12px 38px;
  outline: none;
}

.search-pill-form__input::placeholder {
  color: #71767b;
}

.mobile-top-bar__notifications,
.mobile-top-bar__compose {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  color: #e7e9ea;
  text-decoration: none;
}

.mobile-top-bar__notifications {
  margin-left: auto;
}

.mobile-top-bar__compose {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.mobile-top-bar__notifications:hover,
.mobile-top-bar__notifications:focus-visible,
.mobile-top-bar__compose:hover,
.mobile-top-bar__compose:focus-visible {
  background: #181818;
  text-decoration: none;
}

.search-page {
  padding: 20px 16px 24px;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.search-page__form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px;
}

.search-page__input {
  flex: 1;
  min-width: 0;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: #202327;
  color: #e7e9ea;
  font: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  outline: none;
}

.search-page__input::placeholder {
  color: #71767b;
}

.search-page__submit {
  flex-shrink: 0;
}

.search-page__hint {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.search-page__results {
  min-height: 80px;
}

.search-premium-gate {
  display: grid;
  grid-template-areas:
    "copy button"
    "description description";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 640px;
  margin: 20px auto 24px;
  padding: 18px 20px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.22), transparent 38%),
    radial-gradient(circle at bottom right, rgba(249, 24, 128, 0.12), transparent 34%),
    #050505;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.1);
}

.search-premium-gate__copy {
  grid-area: copy;
  min-width: 0;
}

.search-premium-gate__copy h2 {
  margin: 0;
  font-size: 1.18rem;
}

.search-premium-gate__description {
  grid-area: description;
  margin: 0;
  line-height: 1.45;
}

.search-premium-gate__button {
  grid-area: button;
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .search-premium-gate {
    grid-template-areas:
      "copy"
      "description"
      "button";
    grid-template-columns: 1fr;
    row-gap: 4px;
    text-align: center;
    width: auto;
    margin: 16px 14px 22px;
  }

  .search-premium-gate__button {
    align-self: stretch;
    width: 100%;
  }

  .search-premium-gate__description {
    text-align: center;
  }
}

.search-page__loading,
.search-page__empty,
.search-page__error {
  margin: 12px 0 0;
}

.tweet-search-results {
  display: flex;
  flex-direction: column;
}

.tweet-search-user-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
  border-bottom: 1px solid #2f3336;
}

.tweet-search-user-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #2f3336;
}

.tweet-search-user-card:last-child {
  border-bottom: none;
}

.tweet-search-user-card:hover {
  background: #080808;
}

.tweet-search-user-card__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.tweet-search-user-card__link:hover,
.tweet-search-user-card__link:visited {
  text-decoration: none;
  color: inherit;
}

.tweet-search-user-card__avatar {
  flex-shrink: 0;
  line-height: 0;
}

.tweet-search-user-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tweet-search-user-card__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tweet-search-user-card__handle {
  font-size: 0.9rem;
}

.search-hit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-hit-card {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #000;
  box-sizing: border-box;
}

a.search-hit-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.search-hit-card--link:hover,
a.search-hit-card--link:focus,
a.search-hit-card--link:visited {
  text-decoration: none;
  color: inherit;
  background: #080808;
}

.search-hit-card__thumb-wrap {
  flex-shrink: 0;
  width: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2f3336;
  background: #16181c;
  aspect-ratio: 16 / 9;
  line-height: 0;
}

.search-hit-card__thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 67px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.search-hit-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #536471;
}

.search-hit-card__thumb-icon {
  display: block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

.search-hit-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-hit-card__headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.search-hit-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  color: #e7e9ea;
}

.catalog-episode-card .catalog-episode-card__title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: block;
  line-height: 1.35;
}

.search-hit-card__title-full {
  display: none;
}

.search-hit-card__title-short {
  display: inline;
}

.search-hit-card__snippet {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #c4c7c5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}

.search-hit-card__score {
  flex-shrink: 0;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .search-hit-card__score {
    display: none;
  }

  .search-hit-card__title-short {
    display: none;
  }

  .search-hit-card__title-full {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
  }

  .search-hit-card__title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    flex: 1 1 auto;
  }

  .search-hit-card__snippet {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

.muted {
  color: #71767b;
}

.small {
  font-size: 0.9rem;
}

.error {
  color: #f4212e;
  margin: 0 0 10px;
}

.shell--auth .col--single {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.auth-brand {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.auth-brand:hover {
  opacity: 0.92;
  text-decoration: none;
}

.auth-brand__img {
  display: block;
  width: 100%;
  max-width: 148px;
  height: auto;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
  padding: 22px 20px 20px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #000;
  box-sizing: border-box;
}

.auth-card .stack {
  gap: 2px;
}

.auth-card .stack > .btn-block {
  margin-top: 18px;
}

.auth-card__skip-button {
  background: transparent;
  border-color: transparent;
  color: #71767b;
}

.auth-card__skip-button:hover {
  background: transparent;
  color: #e7e9ea;
}

.auth-card__foot {
  margin: 18px 0 0;
  text-align: center;
}

.auth-card__link {
  color: #ffd400;
  font-weight: 700;
  text-decoration: none;
}

.auth-card__link:hover {
  color: #ffe14d;
  text-decoration: underline;
}

.auth-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.app--minimal {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
}

@media (min-width: 480px) {
  .app--minimal {
    align-items: center;
    padding-top: max(40px, env(safe-area-inset-top, 0px));
  }

  .shell--auth .col--single {
    padding-top: max(32px, env(safe-area-inset-top, 0px));
    justify-content: center;
    min-height: calc(100dvh - 24px);
  }

  .auth-card {
    padding: 24px;
  }
}

.thread {
  border-bottom: 1px solid #2f3336;
}

.feed + .reply-composer {
  border-top: 1px solid #2f3336;
}

.reply-composer {
  padding: 14px 16px;
  border-bottom: 1px solid #2f3336;
  display: flex;
  gap: 12px;
}

body.compose-modal-open {
  overflow: hidden;
}

.compose-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.compose-modal[hidden] {
  display: none !important;
}

.compose-modal__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.compose-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin-top: 5vh;
  background: #000;
  border: 1px solid #2f3336;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

.compose-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #2f3336;
}

.compose-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.compose-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.compose-modal__close:hover {
  background: #202327;
}

#compose-modal .compose-modal__backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.74);
}

#compose-modal .compose-modal__panel {
  overflow: hidden;
  border-color: rgba(124, 58, 237, 0.5);
  border-radius: 24px;
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62), 0 0 36px rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(16px);
}

#compose-modal .compose-modal__head {
  padding: 18px 20px 16px;
  border-bottom-color: rgba(167, 139, 250, 0.16);
}

#compose-modal .compose-modal__title {
  font-size: 1.32rem;
}

#compose-modal .compose-modal__close {
  color: #c4b5fd;
}

#compose-modal .compose-modal__close:hover {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.premium-invite-modal .compose-modal__backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.74);
}

.premium-invite-modal__panel {
  overflow: hidden;
  max-width: 640px;
  border-color: rgba(124, 58, 237, 0.5);
  border-radius: 24px;
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62), 0 0 36px rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(16px);
}

.premium-invite-modal__head {
  padding: 18px 20px 16px;
  border-bottom-color: rgba(167, 139, 250, 0.16);
}

.premium-invite-modal__head .compose-modal__title {
  font-size: 1.32rem;
}

.premium-invite-modal__head .compose-modal__close {
  color: #c4b5fd;
}

.premium-invite-modal__head .compose-modal__close:hover,
.premium-invite-modal__head .compose-modal__close:focus-visible {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.premium-invite-modal__eyebrow {
  margin: 0 0 4px;
  color: #c4b5fd;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-invite-modal__body {
  max-height: min(72vh, 720px);
  overflow-y: auto;
  padding: 18px 20px 20px;
}

.premium-invite-modal__empty {
  padding: 0;
}

.premium-invite-modal__alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 800;
}

.premium-invite-modal__alert--error {
  border: 1px solid rgba(244, 33, 46, 0.5);
  background: rgba(244, 33, 46, 0.13);
  color: #ffd7dc;
}

.premium-invite-modal__alert--success {
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.14);
  color: #d7ffd9;
}

.premium-invite-form,
.premium-redeem-form {
  display: grid;
  gap: 16px;
}

.premium-redeem-form {
  padding: 18px 20px 20px;
}

.premium-invite-form__field .label,
.premium-redeem-form .label {
  display: block;
  margin-bottom: 8px;
}

.premium-invite-code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.premium-invite-options {
  display: grid;
  grid-template-columns: repeat(2, max-content) minmax(120px, 1fr);
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 16px;
}

.premium-invite-options legend {
  padding: 0 4px;
  color: #e7e9ea;
  font-size: 0.88rem;
  font-weight: 800;
}

.premium-invite-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e7e9ea;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.premium-invite-options input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #1d9bf0;
}

.premium-invite-form__small-input:disabled {
  opacity: 0.5;
}

.premium-invite-list {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(167, 139, 250, 0.16);
}

.premium-invite-list__head {
  margin-bottom: 12px;
}

.premium-invite-list__head h3,
.premium-invite-list__head p,
.premium-invite-list__empty {
  margin: 0;
}

.premium-invite-list__head p {
  margin-top: 4px;
}

.premium-invite-code-list {
  display: grid;
  gap: 10px;
}

.premium-invite-code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: rgba(22, 24, 28, 0.86);
}

.premium-invite-code-card__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.premium-invite-code-card code {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.premium-invite-code-card__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #71767b;
  font-size: 0.82rem;
}

.premium-invite-code-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.premium-invite-code-card__actions form {
  margin: 0;
}

.premium-invite-code-card__copy,
.premium-invite-code-card__actions .btn {
  justify-self: end;
}

.premium-invite-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #9ff2b4;
  font-size: 0.74rem;
  font-weight: 800;
}

.premium-invite-status--expired,
.premium-invite-status--exhausted {
  background: rgba(239, 68, 68, 0.12);
  color: #ffb4b4;
}

.premium-redeem-form__error {
  margin: 0;
}

.spaces-premium-modal__panel {
  max-width: 520px;
}

.spaces-premium-modal__body {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px 22px 22px;
  text-align: center;
}

.spaces-premium-modal__badge {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(124, 58, 237, 0.42));
}

.spaces-premium-modal__body p {
  max-width: 420px;
  margin: 0;
  color: #c9d1d9;
  line-height: 1.5;
}

.spaces-premium-modal__actions {
  display: grid;
  gap: 10px;
  width: 100%;
}

.spaces-premium-modal__actions[hidden],
.spaces-premium-modal--invite-open .spaces-premium-modal__actions {
  display: none !important;
}

.spaces-premium-modal__actions .btn:hover,
.spaces-premium-modal__actions .btn:focus-visible,
.spaces-premium-invite-form .btn:hover,
.spaces-premium-invite-form .btn:focus-visible {
  text-decoration: none;
}

.spaces-premium-invite-form {
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.spaces-premium-invite-form[hidden] {
  display: none;
}

.spaces-premium-invite-form .label {
  margin: 0;
  color: #e9d5ff;
  font-weight: 800;
}

.spaces-premium-invite-form__error {
  margin: 0;
}

#compose-modal-form.composer--modal {
  padding: 18px 20px 20px;
  background: transparent;
  align-items: flex-start;
  gap: 12px;
}

#compose-modal .tweet__avatar {
  flex-shrink: 0;
}

#compose-modal .tweet__avatar .avatar--md {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
}

#compose-modal .composer__main {
  padding-top: 2px;
}

#compose-modal .compose-modal__author {
  margin-bottom: 6px;
}

#compose-modal .compose-modal__author-name {
  color: #e7e9ea;
}

#compose-modal .compose-modal__author-meta {
  font-size: 0.95rem;
}

#compose-modal .textarea {
  min-height: 118px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1.35;
}

#compose-modal .textarea:focus {
  box-shadow: none;
}

#compose-modal .textarea::placeholder {
  color: #8b98a5;
}

#compose-modal .composer__toolbar {
  margin-top: 14px;
  padding-top: 14px;
  border-top-color: rgba(167, 139, 250, 0.16);
}

#compose-modal .composer__media-btn {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.08);
}

#compose-modal .composer__media-btn:hover,
#compose-modal .composer__media-btn:focus-visible {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

#compose-modal .composer__gif-wrap[data-gif-selected="1"] .composer__gif-btn {
  color: #f0abfc;
}

#compose-modal-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(167, 139, 250, 0.42);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.58), transparent 36%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.34), transparent 30%),
    #050505;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.12) inset, 0 0 22px rgba(124, 58, 237, 0.2), 0 10px 26px rgba(0, 0, 0, 0.32);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

#compose-modal-submit:hover {
  border-color: rgba(167, 139, 250, 0.72);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2) inset, 0 0 28px rgba(124, 58, 237, 0.3), 0 12px 30px rgba(0, 0, 0, 0.36);
}

#compose-modal-submit:active {
  transform: translateY(0) scale(0.98);
}

#compose-modal-submit .btn__spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
}

#clip-search-modal .compose-modal__backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(124, 58, 237, 0.18), transparent 34%),
    rgba(0, 0, 0, 0.74);
}

#clip-search-modal .compose-modal__panel {
  border-color: rgba(124, 58, 237, 0.5);
  border-radius: 24px;
  background: rgba(5, 5, 5, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.62), 0 0 36px rgba(124, 58, 237, 0.2);
  backdrop-filter: blur(16px);
}

#clip-search-modal .compose-modal__head {
  padding: 18px 20px 16px;
  border-bottom-color: rgba(167, 139, 250, 0.16);
}

#clip-search-modal .compose-modal__title {
  font-size: 1.32rem;
}

#clip-search-modal .compose-modal__close {
  color: #c4b5fd;
}

#clip-search-modal .compose-modal__close:hover {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

#clip-search-modal .tweet__avatar {
  flex-shrink: 0;
}

#clip-search-modal .tweet__avatar .avatar--md {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
}

#clip-search-modal .composer__main {
  padding-top: 2px;
}

#clip-search-modal .compose-modal__author {
  margin-bottom: 6px;
}

#clip-search-modal .compose-modal__author-name {
  color: #e7e9ea;
}

#clip-search-modal .compose-modal__author-meta {
  font-size: 0.95rem;
}

#clip-search-modal .textarea {
  min-height: 118px;
  padding: 4px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  line-height: 1.35;
}

#clip-search-modal .textarea:focus {
  box-shadow: none;
}

#clip-search-modal .textarea::placeholder {
  color: #8b98a5;
}

#clip-search-modal .composer__toolbar {
  margin-top: 14px;
  padding-top: 14px;
  border-top-color: rgba(167, 139, 250, 0.16);
}

#clip-compose-submit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(167, 139, 250, 0.42);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.58), transparent 36%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.34), transparent 30%),
    #050505;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.12) inset, 0 0 22px rgba(124, 58, 237, 0.2), 0 10px 26px rgba(0, 0, 0, 0.32);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

#clip-compose-submit:hover {
  border-color: rgba(167, 139, 250, 0.72);
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2) inset, 0 0 28px rgba(124, 58, 237, 0.3), 0 12px 30px rgba(0, 0, 0, 0.36);
}

#clip-compose-submit:active {
  transform: translateY(0) scale(0.98);
}

#clip-compose-submit .btn__spinner {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: currentColor;
}

.composer--modal {
  border-bottom: none;
  padding: 14px 16px 18px;
}

.episode-clip-compose__preview {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #000;
}

.episode-clip-compose__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.episode-clip-compose__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.episode-clip-compose__iframe[hidden] {
  display: none;
}

.episode-clip-compose__snippet {
  padding: 12px 14px 14px;
  border-top: 1px solid #2f3336;
  background: #16181c;
}

.episode-clip-compose__snippet-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  color: #acd628;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.episode-clip-compose__snippet-head .muted {
  color: #71767b;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.episode-clip-compose__snippet p {
  margin: 0;
  color: #e7e9ea;
  font-size: 0.95rem;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.episode-clip-compose__toolbar {
  margin-top: 12px;
}

.clip-search-modal {
  padding: 18px 16px;
}

.clip-search-modal__panel {
  max-width: 860px;
  max-height: calc(100vh - 36px);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.clip-search-modal__body {
  padding: 18px 20px 20px;
  overflow-y: auto;
}

.clip-search-modal__search-form {
  margin-bottom: 12px;
}

.clip-search-modal__search-form .search-page__input {
  border-color: rgba(167, 139, 250, 0.22);
  background: rgba(22, 24, 28, 0.92);
}

.clip-search-modal__search-form .search-page__input:focus {
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.22), 0 0 20px rgba(124, 58, 237, 0.16);
}

.clip-search-modal__hint {
  margin-bottom: 16px;
}

.clip-search-modal__results {
  min-height: 180px;
}

.clip-search-modal__loading {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #71767b;
  font-weight: 700;
}

.clip-search-modal__loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #2f3336;
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

.clip-search-modal__result {
  width: 100%;
  cursor: pointer;
}

.clip-search-modal__result:hover,
.clip-search-modal__result:focus-visible {
  background: rgba(124, 58, 237, 0.08);
}

.clip-search-modal__result:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.72);
  outline-offset: 2px;
}

.clip-search-modal__result--disabled {
  opacity: 0.68;
}

.clip-search-modal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #c4b5fd;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.clip-search-modal__back:hover,
.clip-search-modal__back:focus-visible {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.clip-search-modal__back:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.72);
  outline-offset: 2px;
}

.clip-search-modal__compose.composer--modal {
  padding: 0;
}

.clip-search-modal__compose {
  align-items: flex-start;
  gap: 12px;
  border-bottom: 0;
  background: transparent;
}

.clip-search-modal__compose #clip-compose-body {
  min-height: 118px;
}

.clip-search-modal__preview {
  max-width: 720px;
  border-color: rgba(167, 139, 250, 0.22);
}

.clip-search-modal__snippet-wrap {
  max-height: calc(1.45em * 3);
}

.clip-search-modal__error {
  margin: 0 0 12px;
}

.premium-page {
  padding: 0 18px 32px;
}

.premium-alert {
  margin: 16px 0 0;
}

.premium-notice {
  padding: 10px 12px;
  border: 1px solid #164b22;
  border-radius: 12px;
  background: rgba(22, 75, 34, 0.22);
  color: #d7ffd9;
}

.premium-hero {
  position: relative;
  overflow: hidden;
  margin: 16px 0 18px;
  padding: 42px 32px;
  border: 1px solid #2f3336;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(29, 155, 240, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(22, 24, 28, 0.98), rgba(0, 0, 0, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.premium-hero--benefits {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-color: rgba(167, 139, 250, 0.42);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.58), transparent 36%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.34), transparent 30%),
    #050505;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.12) inset, 0 0 34px rgba(124, 58, 237, 0.18), 0 18px 48px rgba(0, 0, 0, 0.3);
}

.premium-hero__content {
  min-width: 0;
}

.premium-hero__manage {
  flex: 0 0 auto;
}

.premium-hero__eyebrow,
.premium-note__eyebrow {
  margin: 0 0 8px;
  color: #1d9bf0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-hero--benefits .premium-hero__eyebrow {
  color: #ffe57a;
}

.premium-hero__title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.premium-hero--benefits .premium-hero__title {
  font-size: clamp(2rem, 6vw, 4.35rem);
}

.premium-hero__copy {
  max-width: 600px;
  margin: 18px 0 0;
  color: #c9d1d9;
  font-size: 1.12rem;
  line-height: 1.5;
}

.premium-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.premium-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.premium-benefit-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid #2f3336;
  border-radius: 24px;
  background: #16181c;
}

.premium-benefit-card--spaces {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 34%),
    #16181c;
}

.premium-benefit-card--watch-party {
  background:
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.14), transparent 32%),
    #16181c;
}

.premium-benefit-card__head {
  margin-bottom: 16px;
}

.premium-benefit-card__head h2,
.premium-benefit-card__head p {
  margin: 0;
}

.premium-benefit-card__head h2 {
  font-size: 1.65rem;
}

.premium-benefit-card__head .muted {
  margin-top: 10px;
  line-height: 1.5;
}

.premium-benefit-card .premium-note__eyebrow {
  color: #ffe57a;
}

.premium-benefit-card__callout {
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.08);
  color: #e7e9ea;
  line-height: 1.45;
}

.premium-benefit-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: auto 0 18px;
}

.premium-benefit-stats div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #080808;
}

.premium-benefit-stats dt {
  color: #71767b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.premium-benefit-stats dd {
  margin: 7px 0 0;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.premium-benefit-card__cta {
  align-self: stretch;
  width: 100%;
}

.premium-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.premium-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid #2f3336;
  border-radius: 24px;
  background: #16181c;
}

.premium-tier--featured {
  border-color: rgba(29, 155, 240, 0.82);
  background:
    radial-gradient(circle at top right, rgba(29, 155, 240, 0.24), transparent 34%),
    #16181c;
  box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.16), 0 18px 38px rgba(29, 155, 240, 0.12);
}

.premium-tier--clipper {
  background:
    radial-gradient(circle at top right, rgba(255, 212, 0, 0.12), transparent 34%),
    #16181c;
}

.premium-tier__badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.premium-tier__badge--placeholder {
  visibility: hidden;
}

.premium-tier__head {
  margin-bottom: 18px;
}

.premium-tier__name {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.1;
}

.premium-tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 0;
  color: #fff;
}

.premium-tier__price span {
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.premium-tier__price-value--blurred {
  filter: blur(5px);
  user-select: none;
}

.premium-tier__price small {
  color: #71767b;
  font-size: 0.95rem;
  font-weight: 600;
}

.premium-tier__summary {
  margin: 12px 0 0;
  min-height: 62px;
  color: #8b98a5;
  line-height: 1.45;
}

.premium-tier__cta {
  margin-top: 0;
}

.premium-tier__cta:hover,
.premium-tier__cta:focus-visible {
  text-decoration: none;
}

.premium-tier__cta:disabled {
  opacity: 0.62;
  cursor: default;
}

.premium-tier__cta:disabled:hover {
  background: transparent;
  filter: none;
}

.premium-tier__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.premium-tier__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #e7e9ea;
  line-height: 1.35;
}

.premium-tier__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-top: -1px;
  border-radius: 50%;
  background: rgba(29, 155, 240, 0.14);
  color: #1d9bf0;
  flex: 0 0 auto;
}

.premium-note {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid #2f3336;
  border-radius: 22px;
  background: #000;
}

.premium-note h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.premium-note p:last-child {
  margin-bottom: 0;
}

.premium-note--clipper {
  border-color: rgba(255, 212, 0, 0.22);
}

.clipper-request-modal[hidden] {
  display: none;
}

.clipper-request-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.clipper-request-modal-open {
  overflow: hidden;
}

.clipper-request-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.74);
  cursor: pointer;
}

.clipper-request-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid #2f3336;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.58);
}

.clipper-request-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid #2f3336;
}

.clipper-request-modal__head h2,
.clipper-request-modal__eyebrow {
  margin: 0;
}

.clipper-request-modal__eyebrow {
  margin-bottom: 6px;
  color: #1d9bf0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clipper-request-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
}

.clipper-request-modal__close:hover,
.clipper-request-modal__close:focus-visible {
  background: #181818;
  outline: none;
}

.clipper-request-form {
  padding: 20px;
}

.clipper-request-form__error {
  margin: 0 0 16px;
}

.clipper-request-overview {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.clipper-request-overview__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #080808;
}

.clipper-request-overview__status p {
  margin: 0;
}

.clipper-request-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: #000;
  color: #e7e9ea;
  font-size: 0.86rem;
  font-weight: 800;
}

.clipper-request-status--pending {
  border-color: rgba(255, 212, 0, 0.3);
  background: rgba(255, 212, 0, 0.08);
  color: #ffe57a;
}

.clipper-request-status--approved {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.1);
  color: #9ff2b4;
}

.clipper-request-status--rejected {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.1);
  color: #ffb4b4;
}

.clipper-request-overview__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.clipper-request-overview__stats div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #2f3336;
  border-radius: 14px;
  background: #080808;
}

.clipper-request-overview__stats dt {
  color: #71767b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clipper-request-overview__stats dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.clipper-request-overview__section {
  min-width: 0;
}

.clipper-request-overview__section h3,
.clipper-request-overview__section p {
  margin: 0;
}

.clipper-request-overview__section h3 {
  margin-bottom: 8px;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clipper-request-overview__channels {
  display: grid;
  gap: 10px;
}

.clipper-request-overview__channel {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #2f3336;
  border-radius: 14px;
  background: #080808;
}

.clipper-request-overview__channel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clipper-request-overview__channel a {
  overflow-wrap: anywhere;
}

.clipper-progress {
  margin-bottom: 20px;
}

.clipper-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #8b98a5;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clipper-progress__track {
  height: 8px;
  border-radius: 999px;
  background: #16181c;
  overflow: hidden;
}

.clipper-progress__bar {
  width: 33.333%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d9bf0, #7c3aed);
  transition: width 0.18s ease;
}

.clipper-step[hidden] {
  display: none;
}

.clipper-step h3,
.clipper-step p {
  margin: 0;
}

.clipper-step > .label {
  display: block;
  margin-bottom: 8px;
}

.clipper-step > .muted {
  margin-top: 8px;
}

.clipper-request-form__textarea {
  min-height: 112px;
}

.clipper-step__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.clipper-step__head p {
  margin-top: 4px;
}

.clipper-channel-list {
  display: grid;
  gap: 12px;
}

.clipper-channel-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(180px, 1.2fr) minmax(120px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #080808;
}

.clipper-channel-row label {
  min-width: 0;
}

.clipper-channel-row .label {
  display: block;
  margin-bottom: 6px;
}

.clipper-channel-row__remove {
  width: 36px;
  height: 36px;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: #000;
  color: #e7e9ea;
  cursor: pointer;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
}

.clipper-channel-row__remove:hover,
.clipper-channel-row__remove:focus-visible {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  outline: none;
}

.clipper-channel-row__remove[hidden] {
  display: none;
}

.clipper-review {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.clipper-review__incomplete {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 212, 0, 0.28);
  border-radius: 12px;
  background: rgba(255, 212, 0, 0.08);
  color: #ffe57a;
  font-size: 0.9rem;
  font-weight: 700;
}

.clipper-review__incomplete[hidden] {
  display: none;
}

.clipper-review__block {
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #080808;
}

.clipper-review__block h4,
.clipper-review__block p {
  margin: 0;
}

.clipper-review__block h4 {
  margin-bottom: 8px;
}

.clipper-review__channels {
  display: grid;
  gap: 8px;
}

.clipper-request-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #2f3336;
}

.clipper-request-form__actions .btn[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .premium-tier-grid {
    grid-template-columns: 1fr;
  }

  .premium-tier__summary {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .premium-page {
    padding: 0 12px 24px;
  }

  .premium-hero {
    margin-top: 12px;
    padding: 30px 20px;
    border-radius: 22px;
  }

  .premium-hero--benefits {
    flex-direction: column;
  }

  .premium-hero__manage {
    width: 100%;
  }

  .premium-hero__actions {
    flex-direction: column;
  }

  .premium-benefit-grid {
    grid-template-columns: 1fr;
  }

  .premium-benefit-card {
    padding: 20px;
  }

  .premium-benefit-stats {
    grid-template-columns: 1fr;
  }

  .premium-tier {
    padding: 20px;
  }

  .premium-invite-modal {
    align-items: stretch;
    padding: 0;
  }

  .premium-invite-modal__panel {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    margin-top: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .premium-invite-modal__body {
    max-height: calc(100vh - 73px);
    max-height: calc(100dvh - 73px);
  }

  .premium-invite-modal.spaces-premium-modal {
    align-items: flex-start;
    padding: max(16px, env(safe-area-inset-top, 0px)) 14px max(16px, env(safe-area-inset-bottom, 0px));
  }

  .premium-invite-modal.spaces-premium-modal .premium-invite-modal__panel {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin-top: 4vh;
    border-right: 1px solid rgba(124, 58, 237, 0.5);
    border-left: 1px solid rgba(124, 58, 237, 0.5);
    border-radius: 24px;
  }

  .premium-invite-modal.spaces-premium-modal .spaces-premium-modal__body {
    max-height: calc(100vh - 122px);
    max-height: calc(100dvh - 122px);
    overflow-y: auto;
  }

  .premium-invite-code-field,
  .premium-invite-options,
  .premium-invite-code-card {
    grid-template-columns: 1fr;
  }

  .premium-invite-code-card__actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-self: stretch;
  }

  .premium-invite-code-card__copy,
  .premium-invite-code-card__actions .btn,
  .premium-invite-code-card__actions form {
    width: 100%;
  }

  .clipper-request-modal {
    align-items: flex-start;
    padding: max(16px, env(safe-area-inset-top, 0px)) 14px max(16px, env(safe-area-inset-bottom, 0px));
  }

  .clipper-request-modal__panel {
    width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin-top: 4vh;
    border-radius: 24px;
    border-right: 1px solid #2f3336;
    border-left: 1px solid #2f3336;
  }

  .clipper-request-modal__head,
  .clipper-request-form,
  .clipper-request-overview {
    padding: 16px;
  }

  .clipper-request-overview__status {
    align-items: flex-start;
    flex-direction: column;
  }

  .clipper-request-overview__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clipper-step__head,
  .clipper-request-form__actions {
    flex-direction: column;
  }

  .clipper-step__head .btn,
  .clipper-request-form__actions .btn {
    width: 100%;
  }

  .clipper-channel-row {
    grid-template-columns: 1fr;
  }

  .clipper-channel-row__remove {
    width: 100%;
    border-radius: 12px;
  }
}

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

  .col--right {
    display: none;
  }

  .col--left {
    padding: 12px 8px;
  }

  .brand__link {
    justify-content: center;
  }

  .brand__img {
    max-width: 56px;
  }

  .nav__link .nav__label {
    display: none;
  }

  .nav-user__meta,
  .nav-user__handle,
  .nav-user__name {
    display: none;
  }
}

.mobile-top-bar,
.mobile-footer-nav {
  display: none;
}

.mobile-top-bar {
  box-sizing: border-box;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 8px;
  border-bottom: 1px solid #2f3336;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}

.mobile-top-bar__menu-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #e7e9ea;
  cursor: pointer;
  font: inherit;
}

.mobile-top-bar__menu-btn:hover {
  background: #181818;
}

.mobile-top-bar__menu-btn .avatar {
  pointer-events: none;
}

.mobile-top-bar__menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-top-bar__brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.mobile-top-bar__brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.mobile-top-bar__brand-img {
  display: block;
  height: 30px;
  width: auto;
  max-width: min(160px, 42vw);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.55);
}

.mobile-footer-nav {
  box-sizing: border-box;
  align-items: stretch;
}

.mobile-footer-nav__link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  border-radius: 14px;
  color: #71767b;
  text-decoration: none;
}

.mobile-footer-nav__link:hover,
.mobile-footer-nav__link:focus-visible {
  background: #181818;
  color: #e7e9ea;
  text-decoration: none;
}

.mobile-footer-nav__link.nav__link--active {
  color: #e7e9ea;
  font-weight: 800;
}

.mobile-footer-nav__icon {
  width: auto;
}

@media (max-width: 700px) {
  .shell {
    display: block;
    grid-template-columns: 1fr;
  }

  .mobile-top-bar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    height: 52px;
  }

  .mobile-footer-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 5px max(8px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-top: 1px solid #2f3336;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .col--left {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 16px 16px 24px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    border-right: 1px solid #2f3336;
    border-bottom: none;
    background: #000;
    z-index: 1060;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: none;
  }

  body.mobile-nav-open .col--left {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55);
  }

  .col--left .brand {
    display: none;
  }

  .col--left .nav {
    flex-direction: column;
    flex-wrap: nowrap;
    margin-top: 40px;
  }

  .col--left .btn-post {
    display: none;
  }

  .col--left .nav-user {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #2f3336;
  }

  #mobile-nav-drawer .nav__label {
    display: inline;
  }

  #mobile-nav-drawer .nav__link--desktop-only {
    display: none;
  }

  #mobile-nav-drawer .nav-user__meta,
  #mobile-nav-drawer .nav-user__name,
  #mobile-nav-drawer .nav-user__handle {
    display: block;
  }

  #mobile-nav-drawer .nav-user__meta {
    display: flex;
    flex-direction: column;
  }

  .col--center {
    border-right: 0;
    padding-top: 52px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.app:has(.messages-shell) .col--center {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
  }

  body.app:has(.messages-shell) {
    overflow: hidden;
  }

  /* Home feed: hide inline composer; post via the header compose button */
  .col--center > form.composer:not(.composer--modal) {
    display: none;
  }

  .col-header {
    top: 52px;
  }

  .home-tabs {
    top: 52px;
  }

  .feed .tweet {
    padding-left: 12px;
    padding-right: 12px;
  }

  .feed .tweet .tweet__header-text {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 4px;
    white-space: nowrap;
  }

  .feed .tweet .tweet__identity {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 4px;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }

  .feed .tweet .tweet__name {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.92rem;
  }

  .feed .tweet .tweet__name .display-name-with-badge {
    min-width: 0;
    overflow: hidden;
  }

  .feed .tweet .tweet__name .display-name-with-badge__text {
    white-space: nowrap;
  }

  .feed .tweet .tweet__meta,
  .feed .tweet .tweet__time {
    display: inline-flex;
    align-items: baseline;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .feed .tweet .tweet__time {
    flex: 0 0 auto;
    overflow: visible;
  }

  .feed .tweet .tweet__handle {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .feed .tweet .tweet__separator,
  .feed .tweet .tweet__time {
    flex: 0 0 auto;
  }

  .messages-shell {
    display: block;
    position: fixed;
    top: 52px;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    left: 0;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .messages-sidebar,
  .messages-conversation {
    height: 100%;
    min-height: 0;
    border-right: 0;
    overflow: hidden;
  }

  .messages-shell--has-thread .messages-sidebar {
    display: none;
  }

  .messages-shell:not(.messages-shell--has-thread) .messages-conversation {
    display: none;
  }

  .messages-pane-header,
  .messages-conversation__header {
    top: 0;
  }

  .messages-conversation__back {
    display: inline-flex;
  }

  .messages-thread-row {
    padding: 14px;
  }

  .messages-list {
    padding: 16px 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .message-row__stack {
    max-width: 84%;
  }

  .message-composer {
    flex-shrink: 0;
    padding: 10px 12px 12px;
  }

  .clip-search-modal {
    padding: 0;
  }

  .clip-search-modal__panel {
    max-width: none;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .clip-search-modal__body {
    padding: 12px;
  }

  .clip-search-modal__search-form {
    align-items: stretch;
  }

  .clip-search-modal__compose.composer--modal {
    gap: 10px;
  }

  .col--left .nav-guest {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #2f3336;
  }
}

.watch-party-room-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.watch-party-summary {
  margin: 14px 20px -2px;
  padding: 4px 2px 0;
}

.watch-party-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 3px;
}

.watch-party-summary__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a78bfa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.watch-party-summary h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.watch-party-summary__counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 14px;
}

.watch-party-summary__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
}

.watch-party-summary__count svg {
  width: 16px;
  height: 16px;
}

.watch-party-player {
  margin: 0 20px;
  overflow: hidden;
  border: 1px solid #2f3336;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 36%),
    #080808;
}

.watch-party-player__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.watch-party-player__iframe,
.watch-party-player__fallback,
.watch-party-player__screen {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.watch-party-player__screen {
  position: relative;
  z-index: 2;
  display: none;
  background: #000;
}

.watch-party-player--sharing .watch-party-player__screen {
  display: block;
}

.watch-party-player--sharing .watch-party-player__fallback {
  display: none;
}

.watch-party-player__empty {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.56);
  color: #fff;
  text-align: center;
}

.watch-party-player__empty-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.watch-party-player__empty strong {
  font-size: 1.12rem;
}

.watch-party-player__empty span {
  max-width: 420px;
  color: #cfd9de;
}

.watch-party-player--sharing .watch-party-player__empty {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  background: transparent;
  pointer-events: none;
}

.watch-party-player--sharing .watch-party-player__empty-copy {
  display: none;
}

.watch-party-player--sharing .watch-party-player__host-actions {
  pointer-events: auto;
}

.watch-party-player__viewer-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
}

.watch-party-player__start {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

.watch-party-player__start:hover {
  background: rgba(29, 155, 240, 0.88);
  text-decoration: none;
}

.watch-party-player__start[hidden] {
  display: none;
}

.watch-party-player__replay {
  display: none;
}

.watch-party-player__meta {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 16px;
  padding: 16px 18px 18px;
}

.watch-party-player__meta h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.watch-party-player__meta p {
  margin: 0;
}

.watch-party-player__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #c4b5fd;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.watch-party-player__badge {
  align-self: flex-end;
  flex: 0 0 auto;
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 999px;
  padding: 8px 12px;
  color: #e9d5ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.watch-party-player__empty .watch-party-player__badge--overlay {
  align-self: center;
  padding: 5px 9px;
  color: #e9d5ff;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.watch-party-player__host-actions {
  display: flex;
  align-self: center;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.watch-party-player__host-actions [data-watch-party-share-screen] {
  color: #000;
}

.watch-party-player__host-actions [data-watch-party-share-label] {
  color: #000;
}

.watch-party-tabs {
  margin: 0 20px 24px;
  overflow: hidden;
  border: 1px solid #2f3336;
  border-radius: 24px;
  background: #050505;
  box-shadow: 0 0 34px rgba(124, 58, 237, 0.1);
}

.watch-party-main-comments {
  margin: 0 20px 24px;
  overflow: hidden;
  border: 1px solid #2f3336;
  border-radius: 24px;
  background: #050505;
  box-shadow: 0 0 34px rgba(124, 58, 237, 0.1);
}

.watch-party-live-rail {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid #2f3336;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.34), transparent 34%),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.16), transparent 28%),
    #050505;
  box-shadow: 0 0 34px rgba(124, 58, 237, 0.12);
}

.watch-party-right-stack {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.watch-party-right-stack .widget--sidebar-search,
.watch-party-right-stack .watch-party-live-rail {
  position: static;
}

.watch-party-live-rail__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 14px;
  color: #a78bfa;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.watch-party-live-rail .space-room {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.watch-party-live-rail .space-room__hero {
  display: none;
}

.watch-party-live-rail .space-stage,
.watch-party-live-rail .space-listeners {
  padding: 0 0 14px;
}

.watch-party-live-rail .space-listeners {
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(47, 51, 54, 0.9);
}

.watch-party-live-rail .space-stage + .space-listeners {
  margin-top: 2px;
  border-top: 1px solid rgba(47, 51, 54, 0.9);
  padding-top: 14px;
}

.watch-party-live-rail .space-stage h3,
.watch-party-live-rail .space-listeners h3 {
  margin-bottom: 10px;
}

.watch-party-live-rail .space-stage h3 {
  font-size: 1.05rem;
}

.watch-party-live-rail .space-participant-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-party-live-rail .space-participant {
  align-items: center;
  flex-direction: row;
  gap: 10px;
  text-align: left;
}

.watch-party-live-rail .space-participant__profile {
  align-items: center;
  flex: 1 1 auto;
  flex-direction: row;
  gap: 10px;
  min-width: 0;
}

.watch-party-live-rail .space-participant__meta {
  align-items: flex-start;
  flex: 1 1 auto;
}

.watch-party-live-rail .space-participant__avatar-wrap .avatar {
  width: 48px;
  height: 48px;
  font-size: 0.95rem;
}

.watch-party-live-rail .space-participant__name {
  margin-top: 0;
}

.watch-party-live-rail .space-participant__handle {
  display: block;
}

.watch-party-live-rail .space-participant__role {
  flex: 0 0 auto;
}

.watch-party-live-rail .space-participant__actions {
  margin-top: 0;
}

.watch-party-voice-share {
  display: none;
}

.watch-party-live-rail .watch-party-voice-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin: 0 0 14px;
  border-color: #3f4650;
  color: #e7e9ea;
}

.watch-party-live-rail .watch-party-voice-share:hover {
  border-color: #a78bfa;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.watch-party-live-rail .watch-party-voice-share svg {
  flex: 0 0 auto;
}

.watch-party-live-rail .space-controls {
  margin-top: 0;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.watch-party-page .space-room--ended .space-controls {
  display: none;
}

.watch-party-live-rail .watch-party-end-button,
.watch-party-live-rail .space-controls > [data-space-action="leave"] {
  width: 100%;
  border-color: rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.08);
  color: #f87171;
}

.watch-party-live-rail .watch-party-end-button:hover,
.watch-party-live-rail .space-controls > [data-space-action="leave"]:hover {
  border-color: rgba(248, 113, 113, 0.72);
  background: rgba(244, 63, 94, 0.14);
  text-decoration: none;
}

.watch-party-comments__desktop-title {
  display: none;
}

@media (min-width: 701px) {
  .watch-party-header-title,
  .watch-party-header-share {
    display: none;
  }

  .watch-party-tabs {
    margin: 0 20px 24px;
  }

  .watch-party-tabs__nav,
  .watch-party-tabs [data-watch-party-panel="live"] {
    display: none;
  }

  .watch-party-tabs [data-watch-party-panel="comments"][hidden] {
    display: block;
  }

  .watch-party-player__replay {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: block;
    pointer-events: none;
  }

  .watch-party-player__replay .space-replay-player--overlay-head {
    position: relative;
    height: 100%;
  }

  .watch-party-player__replay .space-replay-player--overlay-head > .space-replay-player__head {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    left: 16px;
    pointer-events: none;
  }

  .watch-party-player__replay .space-replay-player--overlay-head > .space-replay-player__head .space-replay-player__title,
  .watch-party-player__replay .space-replay-player--overlay-head > .space-replay-player__head .space-replay-player__status {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
  }

  .watch-party-player__replay .space-replay-player--overlay-head .space-replay-player__main {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    pointer-events: auto;
  }

  .watch-party-player__replay .space-replay-player__main {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
  }

  .watch-party-live-rail .space-replay-player {
    display: none;
  }

  .watch-party-comments__desktop-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 20px 4px;
    padding: 16px 2px 0;
    border-top: 1px solid #2f3336;
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .watch-party-tabs {
    border-radius: 16px;
  }

  .watch-party-tabs .watch-party-comments__list {
    max-height: none;
    overflow: visible;
  }

  .watch-party-tabs .watch-party-comment__handle {
    display: none;
  }

  .watch-party-tabs .watch-party-comments {
    display: flex;
    flex-direction: column;
  }

  .watch-party-tabs .watch-party-comments__form {
    order: -1;
    border-top: 0;
    border-bottom: 1px solid #2f3336;
    padding: 14px 16px;
  }

  .watch-party-tabs .watch-party-comments__form .btn {
    border-radius: 12px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.watch-party-tabs .space-room__hero {
  display: none;
}

.watch-party-tabs__nav {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #2f3336;
  background: rgba(0, 0, 0, 0.34);
}

.watch-party-tabs__tab {
  flex: 1 1 0;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: #71767b;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.watch-party-tabs__tab:hover,
.watch-party-tabs__tab--active {
  background: rgba(124, 58, 237, 0.18);
  color: #f7f9f9;
}

.watch-party-tabs__panel[hidden] {
  display: none;
}

@media (min-width: 701px) {
  .watch-party-tabs__nav,
  .watch-party-tabs [data-watch-party-panel="live"] {
    display: none;
  }

  .watch-party-tabs [data-watch-party-panel="comments"][hidden] {
    display: block;
  }
}

.watch-party-tabs #space-room-fragment {
  display: block;
}

.watch-party-tabs .space-room {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.watch-party-comments {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.watch-party-comments__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #2f3336;
}

.watch-party-comments__header h3 {
  margin: 0;
  font-size: 1rem;
}

.watch-party-comments__list {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
}

.watch-party-comments__empty,
.watch-party-comments__hint {
  margin: 0;
  padding: 14px 16px;
}

.watch-party-comment {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(47, 51, 54, 0.7);
}

.watch-party-comment--own {
  flex-direction: row-reverse;
  text-align: right;
}

.watch-party-comment:last-child {
  border-bottom: 0;
}

.watch-party-comment__body {
  min-width: 0;
  flex: 1 1 auto;
}

.watch-party-comment__head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.watch-party-comment--own .watch-party-comment__head {
  justify-content: flex-end;
}

.watch-party-comment__name {
  min-width: 0;
  font-weight: 800;
}

.watch-party-comment p {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.watch-party-comment__time {
  align-self: center;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1;
}

.watch-party-comments__form {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #2f3336;
}

.watch-party-comments__form .input {
  flex: 1 1 auto;
  min-width: 0;
}

.watch-party-card .space-card__link {
  align-items: center;
}

.watch-party-card__thumb {
  position: relative;
  flex: 0 0 148px;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.watch-party-card__thumb img,
.watch-party-card__thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-party-card__thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(124, 58, 237, 0.32), transparent 42%),
    linear-gradient(135deg, #1a1d21 0%, #0d0d0d 100%);
  color: rgba(231, 233, 234, 0.78);
}

.watch-party-card__thumb-empty svg {
  filter: drop-shadow(0 0 16px rgba(124, 58, 237, 0.42));
}

.watch-party-card__episode {
  margin: 8px 0 8px;
  color: #cfd9de;
  font-weight: 650;
}

.watch-party-create-modal__panel {
  display: flex;
  overflow: hidden;
  max-height: min(88vh, 820px);
  flex-direction: column;
  max-width: 620px;
}

.watch-party-create-modal__form {
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  gap: 0;
  padding: 0;
}

.watch-party-create-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 20px;
}

.watch-party-create-modal__footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(167, 139, 250, 0.16);
  background:
    linear-gradient(to top, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.94)),
    radial-gradient(circle at top right, rgba(249, 24, 128, 0.12), transparent 34%);
  box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.28);
}

.watch-party-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-party-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.watch-party-type-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #2f3336;
  border-radius: 18px;
  background: #090909;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.watch-party-type-card:hover,
.watch-party-type-card--selected {
  border-color: rgba(167, 139, 250, 0.72);
  background: rgba(124, 58, 237, 0.14);
}

.watch-party-type-card__icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.16);
  color: #a78bfa;
}

.watch-party-type-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.watch-party-type-card__title {
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.15;
}

.watch-party-type-card__meta {
  color: #71767b;
  font-size: 0.82rem;
  line-height: 1.25;
}

.watch-party-picker__episodes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-party-picker__episodes[hidden] {
  display: none;
}

.watch-party-picker__search {
  margin-bottom: 2px;
}

.watch-party-picker__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.watch-party-picker__episode {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #2f3336;
  border-radius: 16px;
  background: #090909;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.watch-party-picker__episode:hover,
.watch-party-picker__episode--selected {
  border-color: rgba(167, 139, 250, 0.72);
  background: rgba(124, 58, 237, 0.14);
}

.watch-party-picker__episode--general {
  border-style: dashed;
}

.watch-party-picker__thumb {
  flex: 0 0 74px;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
  aspect-ratio: 16 / 9;
}

.watch-party-picker__thumb--general {
  display: grid;
  place-items: center;
  color: #a78bfa;
  font-size: 1.35rem;
  font-weight: 900;
}

.watch-party-picker__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch-party-picker__body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
}

.watch-party-picker__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.watch-party-picker__meta {
  color: #71767b;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .watch-party-summary {
    margin-left: 12px;
    margin-right: 12px;
  }

  .watch-party-player,
  .watch-party-comments,
  .watch-party-tabs,
  .watch-party-main-comments {
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 18px;
  }

  .watch-party-card .space-card__link {
    align-items: stretch;
    flex-direction: column;
  }

  .watch-party-player__host-actions {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .watch-party-player__host-actions .btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .watch-party-card__thumb {
    flex-basis: auto;
    width: 100%;
  }

  .watch-party-type-grid {
    grid-template-columns: 1fr;
  }

  .watch-party-picker__list {
    grid-template-columns: 1fr;
  }

  .watch-party-comments__form {
    position: fixed;
    z-index: 1040;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 10px;
    border: 1px solid #2f3336;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .watch-party-comments__form .btn {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
  }

  .watch-party-comment__handle {
    display: none;
  }

  .watch-party-tabs [data-watch-party-panel="comments"]:not([hidden]) {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .watch-party-tabs [data-watch-party-panel="comments"]:not([hidden]) .watch-party-comments__list {
    max-height: min(52dvh, 420px);
  }

  .watch-party-tabs #space-room-fragment {
    display: block;
    min-height: 0;
  }

  .watch-party-tabs .space-room {
    max-height: min(56dvh, 460px);
    min-height: 300px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .watch-party-tabs .space-stage,
  .watch-party-tabs .space-listeners {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .watch-party-tabs .space-listeners {
    min-height: 0;
    padding-bottom: 86px;
  }

  .watch-party-tabs .space-participant-grid {
    gap: 14px 10px;
  }

  .watch-party-page .watch-party-tabs .space-controls {
    position: fixed;
    z-index: 1040;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    margin-top: 0;
    padding: 10px;
    border: 1px solid #2f3336;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .watch-party-page .watch-party-tabs .space-controls {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .watch-party-page .watch-party-tabs .space-controls .space-controls__action-group {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    width: auto;
  }

  .watch-party-page .watch-party-tabs .space-controls:has([data-space-join-audio]:not([hidden])) .space-controls__action-group,
  .watch-party-page .watch-party-tabs .space-controls [data-space-join-audio]:not([hidden]) {
    width: 100%;
  }

  .watch-party-page .watch-party-tabs .space-controls .space-mic-button,
  .watch-party-page .watch-party-tabs .space-controls .space-reaction-trigger,
  .watch-party-page .watch-party-tabs .space-controls .space-soundboard__trigger,
  .watch-party-page .watch-party-tabs .space-controls > [data-space-action="leave"] {
    flex: 0 0 auto;
    min-height: 38px;
    height: 38px;
  }

  .watch-party-page .watch-party-tabs .space-controls .space-mic-button {
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .watch-party-page .watch-party-tabs .space-controls .space-reaction-trigger,
  .watch-party-page .watch-party-tabs .space-controls .space-soundboard__trigger {
    width: 38px;
  }

  .watch-party-page .watch-party-tabs .space-controls > [data-space-action="leave"] {
    margin-left: 0;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .watch-party-page .watch-party-tabs {
    margin-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

}
/* ---- Password field (show/hide toggle) ---- */
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field__input {
  flex: 1;
  padding-right: 44px;
}

.password-field__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-field__toggle:hover,
.password-field__toggle:focus {
  opacity: 1;
  outline: none;
}

.password-field__eye {
  display: block;
}

.password-field__slash {
  stroke: currentColor;
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 0.2s ease;
}

.password-field__toggle--visible .password-field__slash {
  stroke-dashoffset: 0;
}

.edit-profile-section-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.edit-profile-notice {
  color: #1a8a3a;
  background: rgba(26, 138, 58, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}