
:root {
  color-scheme: dark;
  --page: #d5d0c8;
  --surface: #514342;
  --surface-soft: #3e3535;
  --text: #fff7e8;
  --muted: #dfd0c0;
  --line: #d7bda152;
  --gold: #ffdc8d;
  --twitch: #c7a4eb;
  --kick: #a8df78;
  --both: #f2cb68;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--page);
}
body {
  min-height: calc(100vh - 36px);
  margin: 18px;
  overflow-x: hidden;
  border: 1px solid #796e68;
  background: linear-gradient(145deg, #53494a, #886e61 62%, #a47d63);
  box-shadow:
    0 0 0 4px #b5ada5,
    0 6px 24px #392e2a55;
  color: var(--text);
  font:
    14px "DM Sans",
    Arial,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  color: inherit;
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection {
  background: var(--gold);
  color: #302827;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #332c2b55;
}
.header-inner,
main,
footer {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    600 18px "Pixelify Sans",
    monospace;
}
.brand img {
  width: 52px;
  height: 68px;
  object-fit: contain;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font:
    10px "DM Sans",
    sans-serif;
  letter-spacing: 3px;
}
nav {
  display: flex;
  align-self: stretch;
  gap: 28px;
}
nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
nav a.active {
  color: var(--text);
}
nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
}
#favorite-count {
  padding: 2px 6px;
  background: #ffffff18;
  font-size: 10px;
}
.edition {
  margin-left: auto;
  color: var(--muted);
  font:
    11px "Pixelify Sans",
    monospace;
  letter-spacing: 1px;
}

main {
  min-height: calc(100vh - 190px);
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 30px;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hero-content {
  animation: hero-arrive 520ms ease-out both;
}
@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-logo {
  width: 112px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 4px 2px #34282766);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font:
    600 11px "Pixelify Sans",
    monospace;
  letter-spacing: 1px;
}
.hero h1 {
  margin: 0;
  font:
    600 clamp(34px, 4.4vw, 54px)/1.05 "Pixelify Sans",
    monospace;
  text-shadow: 3px 4px #392e2e;
}
.hero h1 span {
  color: var(--gold);
}
.hero-content > div > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.live-info {
  min-width: 190px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
}
.live-info strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.live-info .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--kick);
}
.live-info button {
  display: block;
  margin: 4px 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.live-info button:disabled {
  opacity: 0.55;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  background: #332c2b66;
}
.tabs {
  display: flex;
  gap: 4px;
}
.tabs button {
  padding: 9px 11px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font:
    11px "Press Start 2P",
    monospace;
}
.tabs button[aria-pressed="true"] {
  border-color: #f4dcaa;
  background: #f3d494;
  color: #392e2d;
}
.tabs b {
  margin-left: 4px;
  font:
    10px "DM Sans",
    sans-serif;
}
.search {
  position: relative;
  width: 230px;
  margin-left: auto;
}
.search svg {
  position: absolute;
  top: 11px;
  left: 11px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}
.search input {
  width: 100%;
  height: 38px;
  padding: 0 10px 0 34px;
  border: 1px solid var(--line);
  background: #332c2b55;
  font-size: 12px;
}
.search input::placeholder {
  color: var(--muted);
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 16px;
  color: var(--muted);
  font-size: 11px;
}
.list-heading strong {
  color: var(--text);
  font-weight: 500;
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 10px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend i {
  width: 7px;
  height: 7px;
  background: var(--twitch);
}
.legend .kick i {
  background: var(--kick);
}
.legend .both i {
  background: var(--both);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
  padding-bottom: 38px;
}
.card {
  min-width: 0;
  --accent: var(--twitch);
}
.card.kick {
  --accent: var(--kick);
}
.card.both {
  --accent: var(--both);
}
.card.offline,
.card.unknown,
.card.pending,
.card.checking {
  --accent: #b7aa98;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-bottom: 9px;
}
.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #d9bd9877;
  background: #493b35;
  image-rendering: pixelated;
  object-fit: contain;
}
.identity {
  min-width: 0;
  flex: 1;
}
.identity a {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity a:hover {
  color: var(--gold);
}
.identity small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.favorite {
  padding: 5px;
  border: 0;
  background: none;
  color: #e6d3b8;
  font-size: 22px;
  line-height: 1;
}
.favorite[aria-pressed="true"] {
  color: var(--gold);
}
.preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: #493d39;
  text-align: left;
}
.preview .scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition:
    opacity 180ms ease,
    transform 240ms ease;
}
.preview:hover .scene {
  transform: scale(1.03);
  opacity: 1;
}
.preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, #211b1bcc);
  content: "";
}
.preview-label {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 8px;
  padding: 4px 6px;
  background: #292322cc;
  font:
    10px "Pixelify Sans",
    monospace;
}
.play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #211b1b44;
  font-size: 13px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}
.preview:hover .play,
.preview:focus-visible .play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff3;
}
.sleep-skin {
  z-index: 1;
  height: 90px;
  image-rendering: pixelated;
  opacity: 0.8;
}
.live-strip {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  border: 0;
  background: var(--accent);
  color: #302b22;
  font:
    600 12px "Pixelify Sans",
    monospace;
  text-align: left;
}
.live-strip:hover {
  filter: brightness(1.08);
}
.live-strip .state {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-strip .state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.card.twitch .live-strip .state::before,
.card.kick .live-strip .state::before,
.card.both .live-strip .state::before {
  animation: live-pulse 1.4s ease-in-out infinite;
}
.live-strip span:last-child {
  font:
    600 10px "DM Sans",
    sans-serif;
}
.offline .preview::after,
.unknown .preview::after,
.pending .preview::after,
.checking .preview::after {
  display: none;
}
.offline .live-strip,
.unknown .live-strip,
.pending .live-strip,
.checking .live-strip {
  border: 1px solid var(--line);
  background: #3d3532;
  color: var(--muted);
}
.offline .state::before,
.unknown .state::before,
.pending .state::before,
.checking .state::before {
  border: 1px solid currentColor;
  background: transparent;
}
.unknown-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.empty {
  margin: 0 0 40px;
  padding: 60px 18px;
  border: 1px dashed var(--line);
  text-align: center;
}
.empty h2,
.detail-center h2 {
  font:
    600 28px "Pixelify Sans",
    monospace;
}
.empty p {
  color: var(--muted);
}
.loading {
  padding: 100px 18px;
  border: 0;
}
.plain-button {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid var(--line);
  background: #443936;
}
.back {
  display: inline-block;
  margin: 28px 0;
  color: var(--muted);
  font-size: 12px;
}
.back:hover {
  color: var(--text);
}
.detail {
  max-width: 900px;
  margin: 0 auto 55px;
}
.profile-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.profile-title .avatar {
  width: 64px;
  height: 64px;
}
.profile-title h1 {
  margin: 0;
  font:
    600 38px "Pixelify Sans",
    monospace;
}
.profile-title p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
.profile-title .favorite {
  margin-left: auto;
  font-size: 28px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.detail-actions button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: #443936;
  font-family: "Pixelify Sans", monospace;
}
.detail-actions button[aria-pressed="true"] {
  background: var(--gold);
  color: #382e2d;
}
.detail-preview {
  position: relative;
  display: grid;
  min-height: 290px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  background: #332c2b;
}
.detail-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.detail-center {
  position: relative;
  z-index: 1;
  padding: 20px;
  text-align: center;
}
.detail-center .sleep-skin {
  height: 120px;
}
.detail-center p,
.detail-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.channel-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.channel-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.channel-link {
  display: inline-flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 16px;
  background: var(--twitch);
  color: #2c2332;
  font:
    600 13px "Pixelify Sans",
    monospace;
}
.channel-link.kick {
  background: var(--kick);
  color: #24301d;
}
.channel-link.both {
  background: var(--both);
  color: #302819;
}
.detail-note {
  margin-top: 16px;
}
.mobile-player-note {
  display: none;
}
.selector {
  max-width: 680px;
  margin: 0 auto 60px;
  padding: 12px 0 28px;
  text-align: center;
}
.selector > .avatar {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}
.selector h1 {
  font:
    600 38px "Pixelify Sans",
    monospace;
}
.selector > p {
  color: var(--muted);
  line-height: 1.6;
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 18px;
  text-align: left;
}
.choice {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid #c7a4eb88;
  background: #443944;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}
.choice:hover {
  transform: translateY(-2px);
  border-color: var(--twitch);
}
.choice.kick {
  border-color: #a8df7888;
  background: #3d4437;
}
.choice.kick:hover {
  border-color: var(--kick);
}
.choice .platform,
.choice .go {
  color: var(--twitch);
  font-family: "Pixelify Sans", monospace;
}
.choice.kick .platform,
.choice.kick .go {
  color: var(--kick);
}
.choice .platform {
  font-size: 28px;
}
.choice small,
.choice .state-label,
.selector .fine {
  color: var(--muted);
  font-size: 11px;
}
.choice .go {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}
.selector .return {
  display: inline-block;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
footer button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
}
.version-label {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}
.muted {
  color: var(--muted);
}
dialog {
  position: relative;
  width: min(520px, 90vw);
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 40px #0007;
}
dialog::backdrop {
  background: #0009;
}
dialog h2 {
  font:
    600 30px "Pixelify Sans",
    monospace;
}
dialog p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
dialog a {
  text-decoration: underline;
}
.close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 26px;
}
#toast {
  position: fixed;
  z-index: 5;
  bottom: 22px;
  left: 50%;
  padding: 12px 18px;
  transform: translate(-50%, 8px);
  background: var(--text);
  color: #302827;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}
#toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.skip {
  position: fixed;
  z-index: 10;
  top: -60px;
  left: 20px;
  padding: 12px;
  background: var(--gold);
  color: #302827;
}
.skip:focus {
  top: 10px;
}
.autumn-leaves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.autumn-leaves i {
  position: absolute;
  top: 130px;
  width: 18px;
  height: 30px;
  transform: rotate(35deg);
  border-radius: 80% 0;
  background: #d27c48;
  opacity: 0.8;
}
.autumn-leaves i:nth-child(1) {
  left: 2%;
}
.autumn-leaves i:nth-child(2) {
  top: 210px;
  right: 2%;
  background: #e0b64e;
}
.autumn-leaves i:nth-child(3) {
  top: 680px;
  left: 1%;
  background: #d99a47;
}
.autumn-leaves i:nth-child(4) {
  top: 960px;
  right: 1%;
  background: #9c5147;
}

@keyframes live-pulse {
  50% {
    opacity: 0.55;
    transform: scale(0.82);
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .header-inner {
    gap: 28px;
  }
}
@media (max-width: 650px) {
  body {
    min-height: calc(100vh - 18px);
    margin: 9px;
  }
  .header-inner,
  main,
  footer {
    width: calc(100% - 28px);
  }
  .header-inner {
    min-height: 70px;
    gap: 14px;
  }
  .brand {
    gap: 7px;
    font-size: 13px;
  }
  .brand img {
    width: 38px;
    height: 52px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2px;
  }
  nav {
    gap: 12px;
  }
  nav a {
    font-size: 10px;
  }
  .edition {
    display: none;
  }
  .hero {
    display: block;
    padding: 24px 0;
  }
  .hero-content {
    gap: 14px;
  }
  .hero-logo {
    width: 78px;
    height: 112px;
  }
  .hero h1 {
    font-size: 29px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .hero-content > div > p:last-child {
    font-size: 10px;
  }
  .live-info {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    text-align: left;
  }
  .live-info strong {
    font-size: 10px;
  }
  .live-info > span {
    font-size: 10px;
  }
  .live-info button {
    margin: 0 0 0 auto;
  }
  .toolbar {
    display: block;
    padding: 10px;
  }
  .tabs {
    justify-content: space-between;
  }
  .tabs button {
    padding: 8px 6px;
    font-size: 12px;
  }
  .search {
    width: 100%;
    margin-top: 10px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .card-header {
    gap: 6px;
  }
  .avatar {
    width: 32px;
    height: 32px;
  }
  .identity a {
    font-size: 11px;
  }
  .identity small {
    font-size: 9px;
  }
  .live-strip {
    min-height: 40px;
    gap: 4px;
    padding: 7px 6px;
    font-size: 10px;
  }
  .live-strip span:last-child {
    font-size: 9px;
  }
  .preview-label {
    top: 6px;
    left: 6px;
    font-size: 8px;
  }
  .sleep-skin {
    height: 64px;
  }
  .list-heading {
    align-items: flex-start;
    font-size: 10px;
  }
  .legend {
    gap: 7px;
    font-size: 8px;
  }
  .legend span {
    gap: 3px;
  }
  .channel-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-preview {
    min-height: 250px;
    aspect-ratio: 1.25;
  }
  .profile-title {
    gap: 10px;
  }
  .profile-title .avatar {
    width: 54px;
    height: 54px;
  }
  .profile-title h1 {
    font-size: 30px;
  }
  .profile-title .eyebrow,
  .profile-title p {
    font-size: 9px;
  }
  .selector h1 {
    font-size: 30px;
  }
  .choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .choice {
    padding: 18px;
  }
  .mobile-player-note {
    display: block;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    font-size: 11px;
    line-height: 1.6;
  }
  .detail-preview.twitch-small {
    display: none;
  }
  footer {
    flex-direction: column;
    padding-block: 18px;
  }
}
@media (min-width: 651px) {
  .mobile-player-note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.multi-workspace { align-items: start; }
.multi-chat { align-self: start; height: fit-content; }
.multi-chat-body { height: auto; min-height: 110px; }
.multi-chat-body p { margin: 0; }
.multi-grid.has-focus .dock-left .multi-focus,
.multi-grid.has-focus .dock-right .multi-focus {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  justify-content: start;
  gap: 8px;
  overflow: hidden;
}
.multi-grid.has-focus .dock-left .creator,
.multi-grid.has-focus .dock-right .creator { min-width: 0; gap: 8px; }
.multi-grid.has-focus .dock-left .creator .avatar,
.multi-grid.has-focus .dock-right .creator .avatar { width: 36px; height: 36px; }
.multi-grid.has-focus .dock-left .creator strong,
.multi-grid.has-focus .dock-right .creator strong { overflow: hidden; text-overflow: ellipsis; }
.multi-grid.has-focus .dock-left .multi-focus > span,
.multi-grid.has-focus .dock-right .multi-focus > span { display: none; }
.multi-chat {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 430px;
  border: 1px solid var(--line);
  background: #211e1e;
}
.multi-chat-head {
  display: flex;
  align-content: start;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--line);
}
.chat-platform { font: 12px "Press Start 2P", monospace; color: var(--gold); }
.chat-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.multi-chat-head > a { margin-top: auto; color: var(--gold); font-size: 12px; }
.multi-chat-frame { display: block; width: 100%; height: 430px; border: 0; background: #171515; }
.multi-chat-empty { grid-column: 1 / -1; padding: 28px; color: var(--muted); }
main:has(.multi-workspace) {
  width: min(2200px, calc(100% - 56px));
}
.multi-workspace {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.multi-grid.has-focus {
  width: 100%;
  grid-template-columns: minmax(260px, .9fr) minmax(580px, 2fr) minmax(260px, .9fr);
  gap: 16px;
}
.multi-chat {
  position: static;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
}
.multi-chat-head { display: flex; flex-wrap: wrap; align-content: center; align-items: baseline; gap: 8px 16px; }
.multi-chat-head h2 { margin: 0; }
.multi-chat-body { min-height: 78px; display: flex; align-items: center; }
@media (max-width: 1250px) {
  .multi-grid.has-focus {
    grid-template-columns: minmax(210px, .8fr) minmax(420px, 2fr) minmax(210px, .8fr);
  }
}
@media (max-width: 1000px) {
  main:has(.multi-workspace) { width: calc(100% - 32px); }
  .multi-grid.has-focus { grid-template-columns: 1fr; grid-template-rows: auto; }
  .multi-grid.has-focus .multi-tile.focused,
  .multi-grid.has-focus .dock-left,
  .multi-grid.has-focus .dock-right,
  .multi-grid.has-focus .dock-bottom { grid-column: 1; grid-row: auto; width: auto; }
  .multi-chat { grid-template-columns: 190px minmax(0, 1fr); min-height: 380px; }
  .multi-chat-frame { height: 380px; }
}
@media (max-width: 650px) {
  .multi-chat { grid-template-columns: 1fr; }
  .multi-chat-head { border-right: 0; border-bottom: 1px solid var(--line); }
  .multi-chat-head > a { margin-top: 0; }
  .multi-chat-frame { height: 400px; }
}

/* Inauguration poster inspired finish and restrained motion. */
:root {
  --page: #e1ddd7;
  --surface: #55474a;
  --gold: #ffd889;
  --line: #ddc6a45c;
}
body {
  background: linear-gradient(155deg, #51494b 0%, #876b60 54%, #ac8469 100%);
}
.hero h1 {
  font:
    400 clamp(20px, 2.7vw, 34px)/1.5 "Press Start 2P",
    monospace;
  letter-spacing: 0;
  text-shadow: 3px 4px #392e2e;
}
.eyebrow,
.brand,
.edition {
  font-family: "Press Start 2P", monospace;
}
.hero-content {
  animation: poster-in 650ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
.toolbar {
  animation: poster-in 700ms 90ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
.card {
  transition:
    transform 220ms ease,
    filter 220ms ease;
}
.card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 12px #2b201e55);
}
.preview,
.live-strip,
.tabs button,
.favorite,
.channel-link {
  transition:
    transform 200ms ease,
    filter 200ms ease,
    background-color 200ms ease;
}
.preview:hover .scene {
  transform: scale(1.045);
}
.favorite:hover {
  transform: scale(1.12);
  color: var(--gold);
}
.live-strip:hover,
.channel-link:hover {
  filter: brightness(1.08);
}
.live-info .dot {
  animation: live-glow 1.8s ease-in-out infinite;
}
@keyframes poster-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes live-glow {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 0 5px #a8df7830;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.player-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.player-stat,
.player-medals {
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #332c2b55;
}
.player-stat span,
.player-medals > span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font:
    9px "Press Start 2P",
    monospace;
  letter-spacing: 0.5px;
}
.player-stat strong {
  font-size: 13px;
  font-weight: 500;
}
.player-medals > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.medal {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--gold);
  background: #ffd88922;
  color: var(--gold);
  font:
    14px "Press Start 2P",
    monospace;
}
.placeholder {
  color: var(--muted);
  letter-spacing: 3px;
}
.rights-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}
@media (max-width: 650px) {
  .player-info {
    grid-template-columns: 1fr 1fr;
  }
  .player-medals {
    grid-column: 1/-1;
  }
}
/* Community pages */
html {
  background-color: #d5d0c8;
  background-image:
    linear-gradient(32deg, transparent 46%, #a29c9466 47%, transparent 49%),
    radial-gradient(#f9f4eb 2px, transparent 3px);
  background-size:
    260px 320px,
    28px 31px;
}
body {
  position: relative;
  isolation: isolate;
}
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 10% 0%, #25232b77, transparent 40%),
    radial-gradient(#ffe7b212 1px, transparent 2px);
  background-size:
    auto,
    35px 39px;
}
.header-inner {
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 12px;
}
nav {
  gap: 21px;
  min-height: 44px;
  flex-wrap: wrap;
}
.edition {
  display: none;
}
.tabs {
  flex-wrap: wrap;
}
.tabs button {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
}
.section-heading {
  padding: 48px 0 24px;
}
.section-heading h1 {
  font:
    400 clamp(19px, 2.8vw, 29px)/1.6 "Press Start 2P",
    monospace;
  color: var(--gold);
  text-shadow: 3px 3px #33292c;
}
.section-heading p:last-child,
.section-status {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}
.section-status {
  min-height: 24px;
  margin: 18px 0;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 48px;
}
.media-card {
  min-width: 0;
  background: #332b2d66;
  border: 1px solid var(--line);
  padding: 14px;
  box-shadow: 0 4px 0 #3e2f2822;
}
.creator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
.creator strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.media-card h2 {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}
.media-card p {
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.vod-channel {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}
.vod-channel h2 { margin: 0; }
.vod-cover:not(:has(img)) {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #251f21, #514342);
}
.fine {
  font-size: 11px !important;
  color: var(--muted);
  line-height: 1.6;
}
.media-player,
.video-cover {
  aspect-ratio: 16/9;
  background: #262222;
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
}
.media-player iframe,
.media-player video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
}
.video-cover {
  border: 0;
  padding: 0;
  cursor: pointer;
}
.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms;
}
.video-cover:hover img {
  transform: scale(1.04);
}
.video-cover span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #211e1ed9;
  color: var(--gold);
  padding: 9px 12px;
  font-size: 12px;
}
.media-original {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 12px;
}
.submit-panel {
  padding: 18px;
  border: 1px solid var(--line);
  background: #3d303355;
}
.submit-panel summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 600;
}
.community-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.community-form label,
.multi-controls label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.community-form .full {
  grid-column: 1/-1;
}
.community-form input,
.community-form textarea,
.community-form select,
.multi-controls select {
  width: 100%;
  background: #332b2e;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
  border-radius: 2px;
}
.community-form textarea {
  resize: vertical;
}
.community-form button {
  justify-self: start;
}
.multi-controls {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.multi-controls label {
  flex: 1;
  min-width: 240px;
}
#multi-note,
#clip-feedback {
  font-size: 12px;
  line-height: 1.7;
  color: var(--gold);
}
.multi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(400px, 1fr));
  gap: 20px;
  margin-bottom: 45px;
  overflow: auto;
}
.multi-tile {
  border: 1px solid var(--line);
  background: #332b2d66;
  padding: 12px;
}
.multi-tile header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.multi-tile header button {
  background: none;
  border: 0;
  font-size: 25px;
  align-self: start;
}
.multi-tile header .multi-focus { flex: 1; min-width: 0; font-size: 13px; }
.multi-focus .creator { margin: 0; min-width: 0; }
.multi-focus .creator strong { white-space: nowrap; }
.multi-focus > span { margin-left: auto; color: var(--gold); font-size: 11px; white-space: nowrap; }
.multi-tile > a {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--gold);
}
.multi-grid:empty::before {
  content: "Elige los primeros directos para montar tu pantalla.";
  color: var(--muted);
  padding: 48px 12px;
}
.multi-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 20px;
  margin-bottom: 45px;
}
.multi-chat {
  position: sticky;
  top: 18px;
  min-width: 0;
  border: 1px solid var(--line);
  background: #332b2d66;
}
.multi-chat-head { padding: 16px; border-bottom: 1px solid var(--line); }
.multi-chat-head h2 { margin: 8px 0 4px; font-size: 17px; }
.chat-origin { color: var(--muted); font-size: 11px; }
.multi-chat-body { height: 480px; min-height: 220px; background: #211e1e; }
.multi-chat-body iframe { width: 100%; height: 100%; border: 0; }
.multi-chat-body p { padding: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.multi-controls input[type="search"] { min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); background: #332b2e; color: var(--text); font: inherit; }
@media (max-width: 1000px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .multi-grid {
    grid-template-columns: 1fr;
  }
  .multi-workspace { grid-template-columns: 1fr; }
  .multi-chat { position: static; }
  .multi-chat-body { height: 360px; }
}
@media (max-width: 650px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
  .community-form {
    grid-template-columns: 1fr;
  }
  .header-inner {
    justify-content: space-between;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 9px;
  }
  .section-heading {
    padding-top: 30px;
  }
  .multi-grid {
    grid-template-columns: minmax(400px, 1fr);
  }
  .section-heading h1 {
    font-size: 19px;
  }
  .brand {
    font-size: 12px;
  }
}
.kick-cover {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border: 0;
  background: #22291e;
  color: #b7ed9a;
  font: inherit;
  cursor: pointer;
}
.kick-cover:hover {
  background: #303d28;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #171717;
  --surface: #242322;
  --surface-soft: #191919;
  --text: #f3eee5;
  --muted: #b5aaa0;
  --line: #ffffff24;
  --gold: #e5bd70;
  --twitch: #b598d8;
  --kick: #91ca69;
  --both: #e1bd58;
}
:root[data-theme="dark"] body {
  background: radial-gradient(ellipse at 50% -20%, #38322a, #191817 65%);
  box-shadow:
    0 0 0 4px #34312c,
    0 6px 28px #0009;
}
:root[data-theme="dark"] .site-header {
  background: #111b;
}
.theme-toggle {
  position: fixed;
  z-index: 30;
  right: 30px;
  bottom: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--gold);
  font-size: 21px;
  box-shadow: 0 8px 26px #0005;
  transition:
    transform 0.2s,
    background 0.2s;
}
.theme-toggle:hover {
  transform: translateY(-3px) rotate(18deg);
}
.beta-dialog {
  max-width: 520px;
  padding: 32px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--gold);
  box-shadow: 0 25px 80px #0008;
}
.beta-dialog::backdrop {
  background: #171313c9;
  backdrop-filter: blur(5px);
}
.beta-dialog h2 {
  font-family: "Press Start 2P";
  font-size: 19px;
  line-height: 1.7;
  color: var(--gold);
}
.beta-dialog p {
  line-height: 1.8;
  color: var(--muted);
}
.beta-dialog a {
  color: var(--gold);
  font-weight: 700;
}
.profile-title::after {
  content: "PERFIL BETA · DATOS POR CONFIRMAR";
  display: block;
  grid-column: 1/-1;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.12em;
  margin-top: 6px;
}
.multi-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  overflow: visible;
}
.multi-tile {
  transition:
    transform 0.25s,
    grid-column 0.25s;
}
.multi-tile header .multi-focus {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
}
.multi-grid.has-focus {
  display: grid;
  grid-template-columns: minmax(145px, .75fr) minmax(0, 2.5fr) minmax(145px, .75fr);
  grid-template-rows: repeat(3, auto);
  align-items: start;
}
.multi-grid.has-focus .multi-tile.focused {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 0;
}
.multi-grid.has-focus .dock-left { grid-column: 1; }
.multi-grid.has-focus .dock-right { grid-column: 3; }
.multi-grid.has-focus .dock-bottom {
  grid-column: 1 / -1;
  width: min(100%, 420px);
  min-width: 0;
}
@media (max-width: 800px) {
  .multi-grid.has-focus { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .multi-grid.has-focus .multi-tile.focused,
  .multi-grid.has-focus .dock-left,
  .multi-grid.has-focus .dock-right,
  .multi-grid.has-focus .dock-bottom { grid-column: 1; grid-row: auto; width: auto; }
  .theme-toggle {
    right: 20px;
    bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .multi-tile {
    transition: none;
  }
}

/* Keep the focused stream layout and its chat pane from collapsing into
   the narrow legacy sidebar layout. */
.multi-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 23vw, 420px);
  align-items: stretch;
  gap: 20px;
}
.multi-grid {
  min-width: 0;
  margin-bottom: 0;
}
.multi-grid.has-focus {
  min-width: 0;
  grid-template-columns: minmax(150px, 0.75fr) minmax(0, 2.5fr) minmax(150px, 0.75fr);
  grid-template-rows: repeat(3, auto);
}
.multi-grid.has-focus .multi-tile.focused {
  grid-column: 2;
  grid-row: 1 / span 3;
}
.multi-grid.has-focus .dock-left { grid-column: 1; }
.multi-grid.has-focus .dock-right { grid-column: 3; }
.multi-grid.has-focus .dock-bottom {
  grid-column: 1 / -1;
  width: min(100%, 680px);
}
.multi-chat {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: auto;
  min-width: 0;
  height: min(78vh, 780px);
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #211e1e;
}
.multi-chat-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 16px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}
.multi-chat-head > a { margin-top: 2px; }
.multi-chat-frame {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  border: 0;
  background: #171515;
}
.multi-chat-empty { margin: auto; }
@media (max-width: 1100px) {
  .multi-workspace { grid-template-columns: minmax(0, 1fr); }
  .multi-chat {
    position: static;
    height: 580px;
    min-height: 420px;
  }
  .multi-grid.has-focus { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .multi-grid.has-focus .multi-tile.focused,
  .multi-grid.has-focus .dock-left,
  .multi-grid.has-focus .dock-right,
  .multi-grid.has-focus .dock-bottom {
    grid-column: 1;
    grid-row: auto;
    width: auto;
  }
}
@media (max-width: 650px) {
  .multi-chat { height: 520px; }
}
