:root {
  color-scheme: light;
  --ink: #181818;
  --muted: #67645e;
  --panel: #ffffff;
  --paper: #f6f7f3;
  --line: #d9ddd3;
  --black: #101113;
  --red: #d84437;
  --teal: #0c938b;
  --gold: #d8a317;
  --shadow: 0 18px 48px rgb(24 24 24 / 12%);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(16 17 19 / 4%) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgb(216 68 55 / 5%) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--paper);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

:where(a, button, input, select):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

a:focus,
button:focus,
input:focus,
select:focus {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 8%), transparent 34%),
    var(--black);
  border-right: 1px solid rgb(255 255 255 / 12%);
}

.brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
.overlay-logo,
.generated-logo {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--accent, var(--red));
  box-shadow: inset 0 -10px 24px rgb(0 0 0 / 18%);
}

.brand-mark {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 10px 24px rgb(0 0 0 / 22%);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
  letter-spacing: 0;
}

.search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: rgb(255 255 255 / 72%);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
}

.search-box input {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: rgb(255 255 255 / 46%);
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-button {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: rgb(255 255 255 / 76%);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.filter-button:hover,
.filter-button:focus-visible {
  color: #fff;
  background: rgb(255 255 255 / 9%);
}

.filter-button.is-active {
  color: #fff;
  background: rgb(216 68 55 / 26%);
  border-color: rgb(216 68 55 / 60%);
}

.rail-meta {
  display: grid;
  gap: 6px;
  margin-top: auto;
  color: rgb(255 255 255 / 58%);
  font-size: 13px;
}

.member-panel {
  position: fixed;
  top: 18px;
  right: 28px;
  left: 308px;
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  max-width: none;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.member-panel > span {
  display: none;
}

body:not(.is-member-logged-in) .member-panel strong {
  display: none;
}

.member-panel strong {
  max-width: 210px;
  min-height: 34px;
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  font-size: 12px;
  line-height: 34px;
  background: rgb(255 255 255 / 82%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgb(24 24 24 / 8%);
  backdrop-filter: blur(10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.member-action,
.overlay-login-button,
.login-form button {
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  font-weight: 800;
  background: var(--red);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
}

.member-action {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  background: rgb(255 255 255 / 78%);
  border-color: rgb(217 221 211 / 88%);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgb(24 24 24 / 8%);
  backdrop-filter: blur(10px);
}

.member-action.ghost {
  color: var(--ink);
  background: rgb(255 255 255 / 78%);
}

.member-action:hover,
.member-action:focus-visible {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

body.is-member-logged-in .main-stage {
  padding-top: 72px;
}

body:not(.is-member-logged-in) .main-stage {
  padding-top: 72px;
}

.main-stage {
  display: grid;
  gap: 28px;
  align-content: start;
  min-width: 0;
  padding: 28px;
}

.player-section {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "copy"
    "player"
    "toolbar";
  gap: 14px;
  align-items: stretch;
  min-height: 0;
  padding: clamp(14px, 2vw, 24px);
  color: #fff;
  background:
    linear-gradient(115deg, rgb(16 17 19 / 92%), rgb(16 17 19 / 78)),
    linear-gradient(90deg, var(--red), var(--teal));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-copy {
  grid-area: copy;
  align-self: start;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.player-section .eyebrow {
  display: none;
}

.player-copy h1 {
  max-width: 100%;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.player-copy p:last-child {
  display: none;
}

.player-frame {
  position: relative;
  grid-area: player;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  overflow: hidden;
  background: #050506;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--radius);
  box-shadow: 0 22px 60px rgb(0 0 0 / 35%);
}

.video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050506;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 8%), transparent 45%),
    #08090b;
}

.overlay-logo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 900;
}

.overlay-logo.has-image {
  width: 112px;
  height: 112px;
  padding: 14px;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 82%;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius);
  box-shadow:
    0 20px 48px rgb(0 0 0 / 30%),
    inset 0 0 0 1px rgb(16 17 19 / 6%);
}

.player-overlay strong {
  max-width: 100%;
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.player-overlay span:last-child {
  color: rgb(255 255 255 / 64%);
}

.player-toolbar {
  grid-area: toolbar;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: rgb(255 255 255 / 80%);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 999px;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #aeb4aa;
  border-radius: 50%;
}

body[data-stream-tone="live"] .status-dot {
  background: #37d684;
  box-shadow: 0 0 0 6px rgb(55 214 132 / 14%);
}

body[data-stream-tone="loading"] .status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgb(216 163 23 / 16%);
}

body[data-stream-tone="error"] .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 6px rgb(216 68 55 / 16%);
}

body[data-stream-tone="locked"] .status-dot {
  background: #8f97a3;
  box-shadow: 0 0 0 6px rgb(143 151 163 / 16%);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button,
.favorite-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--radius);
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgb(255 255 255 / 18%);
}

.channels-section {
  min-width: 0;
  padding-bottom: 28px;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}

.channel-card {
  position: relative;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgb(24 24 24 / 6%);
  overflow: hidden;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.channel-card:hover,
.channel-card:focus-within,
.channel-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgb(24 24 24 / 10%);
}

.channel-card.is-selected::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--accent);
}

.channel-tap {
  display: grid;
  gap: 9px;
  justify-items: start;
  width: 100%;
  min-height: 236px;
  padding: 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.card-topline {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
}

.member-badge {
  position: absolute;
  top: 50px;
  left: 14px;
  z-index: 1;
  min-height: 24px;
  padding: 4px 8px;
  color: #fff;
  background: #20242b;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgb(24 24 24 / 14%);
  font-size: 12px;
  font-weight: 800;
}

.channel-logo {
  width: 104px;
  height: 104px;
  margin-top: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgb(217 221 211 / 72%);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 8px 22px rgb(24 24 24 / 7%);
}

.generated-logo {
  padding: 6px;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.channel-name,
.channel-subname {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-name {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 800;
}

.channel-subname {
  color: var(--muted);
  font-size: 13px;
}

.source-state {
  align-self: end;
  min-height: 24px;
  padding: 4px 8px;
  color: var(--muted);
  background: #f0f1ed;
  border-radius: 999px;
  font-size: 12px;
}

.source-live {
  color: #0b6f45;
  background: #dff4e9;
}

.source-locked {
  color: #6d4300;
  background: #f7e6bd;
}

.favorite-button {
  position: absolute;
  top: 48px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: var(--accent);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 6px 16px rgb(24 24 24 / 10%);
}

.favorite-button:hover,
.favorite-button:focus-visible {
  color: #fff;
  background: var(--accent);
}

.empty-state {
  min-height: 140px;
  margin: 0;
  padding: 40px;
  color: var(--muted);
  text-align: center;
  background: rgb(255 255 255 / 60%);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(16 17 19 / 62%);
  backdrop-filter: blur(8px);
}

.login-card,
.access-card {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
}

.access-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 40px));
}

.login-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.access-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.modal-description {
  margin: 10px 42px 18px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.access-card > .modal-description {
  margin: -2px 0 0;
}

.access-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  padding-right: 44px;
}

.reset-access {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 800;
  background: #f0f1ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.access-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.access-list {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  max-height: min(540px, calc(100vh - 260px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.access-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.access-group-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  background: #ecefe7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.access-group-heading strong {
  font-size: 14px;
}

.access-group-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.access-group-rows {
  display: grid;
  gap: 8px;
}

.access-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(170px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: #fafbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.access-row.is-hidden-channel {
  opacity: 0.58;
}

.access-logo {
  width: 54px;
  height: 54px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: contain;
}

.member-level-mark {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.access-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.access-main strong,
.access-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-main span {
  color: var(--muted);
  font-size: 13px;
}

.access-select-wrap {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.access-select-wrap select {
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.access-select-wrap select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(216 68 55 / 16%);
}

.access-select-wrap select {
  accent-color: var(--red);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: #f0f1ed;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.login-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(216 68 55 / 16%);
}

.login-form input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(216 68 55 / 16%);
}

.field-hint {
  margin-top: -2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.login-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-note button {
  min-height: 0;
  padding: 0;
  color: var(--red);
  font-weight: 800;
  background: transparent;
  border: 0;
}

.login-error {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

body.modal-open {
  overflow: hidden;
}

@media (pointer: coarse) {
  .filter-button,
  .member-action,
  .overlay-login-button,
  .login-form button {
    min-height: 48px;
  }

  .search-box {
    min-height: 52px;
  }

  .icon-button,
  .favorite-button {
    width: 48px;
    height: 48px;
  }

  .channel-tap {
    min-height: 224px;
  }
}

@media (min-width: 1500px) {
  .app-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .side-rail {
    gap: 26px;
    padding: 32px;
  }

  .brand {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
  }

  .brand strong {
    font-size: 22px;
  }

  .brand small,
  .rail-meta,
  .channel-subname,
  .section-heading > span {
    font-size: 15px;
  }

  .search-box {
    min-height: 54px;
    font-size: 17px;
  }

  .filter-button {
    min-height: 52px;
    font-size: 17px;
  }

  .member-panel {
    top: 24px;
    right: 40px;
    left: 360px;
  }

  body.is-member-logged-in .main-stage {
    padding-top: 96px;
  }

  body:not(.is-member-logged-in) .main-stage {
    padding-top: 96px;
  }

  .member-panel strong,
  .member-action {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 14px;
  }

  .main-stage {
    gap: 36px;
    padding: 40px;
  }

  .player-section {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 28px;
  }

  .player-copy h1 {
    font-size: clamp(22px, 1.8vw, 32px);
  }

  .player-frame {
    min-height: 360px;
  }

  .status-pill {
    min-height: 48px;
    padding-inline: 16px;
    font-size: 18px;
  }

  .icon-button {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .channel-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }

  .channel-tap {
    min-height: 280px;
    padding: 18px;
  }

  .channel-logo {
    width: 128px;
    height: 128px;
  }

  .favorite-button {
    width: 46px;
    height: 46px;
  }

  .channel-name {
    font-size: 20px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .side-rail,
  .main-stage {
    display: contents;
  }

  .brand {
    grid-row: 1;
    margin: 16px 16px 0;
    color: var(--ink);
  }

  .brand small {
    color: var(--muted);
  }

  .member-panel {
    top: 10px;
    right: 12px;
    left: auto;
    max-width: min(440px, calc(100vw - 24px));
    margin: 0;
    color: var(--ink);
  }

  .member-panel strong {
    max-width: 160px;
    color: var(--ink);
  }

  .member-panel > span {
    color: var(--muted);
  }

  .player-section {
    grid-row: 3;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "player"
      "toolbar";
    min-height: 0;
    margin: 16px;
  }

  .search-box {
    grid-row: 4;
    min-height: 54px;
    margin: 0 16px;
    color: var(--muted);
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 8px 22px rgb(24 24 24 / 6%);
  }

  .search-box input {
    color: var(--ink);
  }

  .search-box input::placeholder {
    color: var(--muted);
  }

  .filter-list {
    grid-row: 5;
    display: flex;
    gap: 8px;
    margin: 14px 16px 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 84px;
    color: var(--muted);
    text-align: center;
  }

  .filter-button:hover,
  .filter-button:focus-visible {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
  }

  .filter-button.is-active {
    color: #fff;
    background: var(--red);
    border-color: var(--red);
  }

  .rail-meta {
    grid-row: 6;
    display: flex;
    justify-content: space-between;
    margin: 14px 16px 0;
    color: var(--muted);
  }

  .channels-section {
    grid-row: 7;
    margin: 24px 16px 0;
  }

  .main-stage {
    padding: 0;
  }

  .player-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  body {
    background: var(--paper);
  }

  .brand {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }

  .player-section {
    padding: 16px;
  }

  .player-copy h1 {
    font-size: 20px;
  }

  .player-toolbar,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: flex-start;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .channel-tap {
    min-height: 198px;
    padding: 12px;
  }

  .channel-logo {
    width: 64px;
    height: 64px;
  }

  .favorite-button {
    top: 44px;
    right: 10px;
  }

  .member-badge {
    top: 42px;
    left: 12px;
  }

  .access-heading {
    flex-direction: column;
    padding-right: 40px;
  }

  .access-row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .access-logo {
    width: 48px;
    height: 48px;
  }

  .access-select-wrap {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }
}
