:root {
  color-scheme: dark;
  --bg: #121212;
  --panel: #1c1c1c;
  --raised: #272727;
  --line: #333333;
  --text: #f2f2f2;
  --muted: #a0a0a0;
  --accent: #e2e2e2;
  --ink: #242424;
  --danger: #c3c3c3;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  color: inherit;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.08;
}
h2 {
  font-size: 23px;
  font-weight: 530;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 17px;
  font-weight: 550;
}
p {
  line-height: 1.6;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
input[type='color'] {
  padding: 3px;
  height: 44px;
}
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
form {
  display: grid;
  gap: 18px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  background: #efefef;
  transform: translateY(-1px);
}
.btn.secondary {
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
}
.btn.danger {
  background: #2b2b2b;
  color: var(--danger);
}
.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  background: var(--raised);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
}
.pill.live {
  color: var(--accent);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 20px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hidden {
  display: none !important;
}
.error {
  color: var(--danger);
  font-size: 13px;
}
.rule {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
}
.boot img {
  width: 40px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  background: #212121;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 28px;
  letter-spacing: -0.06em;
  font-weight: 650;
}
.brand img {
  width: 34px;
  height: 34px;
}
.orbit {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%) rotate(-22deg);
  width: 550px;
  height: 550px;
  border: 1px solid #444444;
  border-radius: 50%;
}
.orbit:before,
.orbit:after {
  content: '';
  position: absolute;
  inset: 48px;
  border: 1px solid #444444;
  border-radius: 50%;
}
.orbit:after {
  inset: 100px;
  background: radial-gradient(circle at 35% 30%, #656565, #2b2b2b 70%);
}
.orbit-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  color: var(--accent);
  opacity: 0.9;
}
.login-copy {
  position: relative;
  max-width: 360px;
}
.login-copy h1 {
  font-size: 54px;
}
.login-copy p {
  margin-top: 20px;
  color: #b2b2b2;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.login-form > div {
  width: 100%;
  max-width: 340px;
}
.login-form h2 {
  font-size: 30px;
  margin: 12px 0;
}
.login-form p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form .btn {
  width: 100%;
}
.login-foot {
  margin-top: 28px;
  font-size: 11px !important;
}
.shell {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 18px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #161616;
  z-index: 10;
}
.sidebar .brand {
  padding: 0 16px;
  margin-bottom: 45px;
}
.nav-label {
  margin: 25px 16px 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #7d7d7d;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 3px 0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  width: 100%;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-item:hover {
  background: #232323;
  color: var(--text);
}
.nav-item.active {
  background: #2f2f2f;
  color: var(--accent);
}
.nav-item .icon {
  width: 18px;
  height: 18px;
}
.nav-spacer {
  flex: 1;
}
.server-chip {
  margin: 20px 12px 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.server-chip .dot {
  color: var(--accent);
}
.main {
  min-width: 0;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  gap: 20px;
}
.search {
  position: relative;
  max-width: 420px;
  width: 50%;
}
.search input {
  background: transparent;
  border: 0;
  padding-left: 31px;
  font-size: 12px;
}
.search > .icon {
  position: absolute;
  left: 0;
  top: 11px;
  color: var(--muted);
  width: 16px;
}
.avatar {
  width: 29px;
  height: 29px;
  background: #3a3a3a;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
}
.main-content {
  padding: 38px 42px 70px;
  max-width: 1700px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  margin-bottom: 13px;
}
.page-heading h1 {
  font-size: 36px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  border-radius: 20px;
  background: #2d2d2d;
  margin-bottom: 40px;
  display: flex;
  align-items: end;
  padding: 40px;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 22, 13, 0.98), rgba(16, 22, 13, 0.5) 50%, transparent),
    linear-gradient(0deg, rgba(16, 22, 13, 0.9), transparent 85%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, 90%);
}
.hero-copy h1 {
  margin: 17px 0;
  font-size: 45px;
}
.hero-copy > p {
  font-size: 13px;
  color: #c1c1c1;
  max-width: 450px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-copy .row:last-child {
  margin-top: 23px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 20px;
}
.section-heading small {
  font-size: 11px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px 18px;
}
.media-grid.landscape {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.media-card {
  min-width: 0;
  position: relative;
  text-align: left;
  padding: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.media-card:hover {
  transform: translateY(-5px);
}
.card-image {
  position: relative;
  aspect-ratio: 2/3;
  background: linear-gradient(145deg, #3c3c3c, #252525);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ffffff0b;
  display: grid;
  place-items: center;
}
.landscape .card-image {
  aspect-ratio: 16/9;
}
.card-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 18px;
  background: radial-gradient(at 15% 10%, #4d4d4d, transparent 75%);
  font-size: 24px;
  font-weight: 500;
  color: #929292;
  letter-spacing: -0.04em;
  line-height: 1.1;
  z-index: 0;
}
.card-image > img {
  position: relative;
  z-index: 1;
}
.card-image .card-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.media-card:hover .card-play,
.media-card:focus-visible .card-play {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #161616c9;
  backdrop-filter: blur(6px);
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 9px;
}
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #191919;
  z-index: 3;
}
.progress-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.card-title {
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.empty {
  border: 1px dashed #424242;
  border-radius: 20px;
  padding: 60px 25px;
  text-align: center;
  background: radial-gradient(at 50% 0%, #2b2b2b, transparent 70%);
}
.empty > .icon {
  width: 46px;
  height: 46px;
  color: var(--accent);
  margin-bottom: 20px;
}
.empty h2 {
  font-size: 26px;
  margin-bottom: 12px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 430px;
  margin: 0 auto 25px;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.setup-step {
  padding: 23px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.step-number {
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 20px;
}
.setup-step p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.panel {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
.panel > h3 {
  margin-bottom: 8px;
}
.panel > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border-bottom: 0;
}
.setting-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 360px;
}
.switch {
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 23px;
  border-radius: 20px;
  background: #404040;
  padding: 3px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.switch[aria-checked='true'] {
  background: var(--accent);
}
.switch:after {
  content: '';
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.25s;
}
.switch[aria-checked='true']:after {
  transform: translateX(17px);
  background: var(--ink);
}
.library-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.library-row:last-child {
  border: 0;
}
.library-row > .icon {
  color: var(--accent);
}
.library-row .info {
  flex: 1;
  min-width: 0;
}
.library-row small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.filterbar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.filterbar select {
  width: auto;
  min-width: 140px;
  font-size: 11px;
  background: transparent;
  padding: 9px;
}
.tabs {
  display: flex;
  gap: 5px;
}
.tab {
  padding: 9px 13px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
}
.tab.active {
  background: var(--raised);
  color: var(--accent);
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.channel-card {
  position: relative;
  overflow: hidden;
  min-height: 235px;
  border-radius: 18px;
  background: #2c2c2c;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
}
.channel-card:before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -45px;
  top: 10px;
  border: 1px solid #ffffff18;
  border-radius: 50%;
  box-shadow:
    0 0 0 26px #ffffff07,
    0 0 0 52px #ffffff04;
  pointer-events: none;
}
.channel-card h2 {
  font-size: 29px;
  margin: 10px 0 5px;
}
.channel-card p {
  font-size: 12px;
  color: var(--muted);
}
.channel-card .row {
  position: relative;
  z-index: 1;
}
.channel-card .channel-name {
  position: relative;
  z-index: 1;
}
.schedule-layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(360px, 1.2fr);
  gap: 22px;
}
.schedule-board {
  position: relative;
  margin-top: 15px;
  display: grid;
  grid-template-columns: 50px 1fr;
  height: 1152px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #171717;
}
.hours {
  position: relative;
  border-right: 1px solid var(--line);
}
.hour-label {
  position: absolute;
  left: 8px;
  transform: translateY(-50%);
  font:
    10px ui-monospace,
    monospace;
  color: #7f7f7f;
}
.timeline {
  position: relative;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 47px,
    #37373766 47px,
    #37373766 48px
  );
}
.schedule-block {
  position: absolute;
  left: 8px;
  right: 8px;
  min-height: 32px;
  border: 1px solid #7d7d7d;
  border-radius: 9px;
  background: #424242;
  padding: 9px 12px;
  color: #e9e9e9;
  text-align: left;
  cursor: grab;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.schedule-block:hover {
  box-shadow: 0 4px 20px #00000055;
  z-index: 3;
}
.schedule-block strong {
  display: block;
  font-size: 12px;
}
.schedule-block small {
  font-size: 10px;
  display: block;
  margin-top: 3px;
  color: #bfbfbf;
}
.schedule-block.dragging {
  opacity: 0.45;
}
.schedule-block.selected {
  border-color: var(--accent);
  background: #515151;
}
.day-tabs {
  display: flex;
  gap: 5px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.day-tabs button {
  background: var(--raised);
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--muted);
}
.day-tabs button.active {
  color: var(--ink);
  background: var(--accent);
}
.video-pool {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pool-video {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  cursor: grab;
}
.pool-video:last-child {
  border: 0;
}
.pool-video > .icon {
  color: var(--muted);
  width: 14px;
}
.pool-video .info {
  flex: 1;
  min-width: 0;
}
.pool-video .info span {
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.pool-video small {
  font-size: 10px;
}
.approved-list {
  min-height: 70px;
  border: 1px dashed #6e6e6e;
  border-radius: 10px;
  padding: 6px;
  background: #292929;
}
.approved-list .pool-video {
  background: #383838;
  border-radius: 6px;
  margin: 4px 0;
  border: 0;
}
.drop-hint {
  font-size: 11px;
  text-align: center;
  color: #9f9f9f;
  padding: 20px;
}
.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: #2d2d2d;
  color: #c6c6c6;
  font-size: 12px;
  line-height: 1.6;
}
.notice.error {
  background: #2a2a2a;
  color: var(--danger);
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  width: min(580px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 30px 140px #000000aa;
}
dialog::backdrop {
  background: #000000aa;
  backdrop-filter: blur(8px);
}
dialog h2 {
  margin-bottom: 14px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.close {
  color: var(--muted);
  padding: 8px;
}
.detail-img {
  width: calc(100% + 60px);
  height: 240px;
  object-fit: cover;
  margin: -30px -30px 22px;
  background: var(--raised);
}
.detail-overview {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 24px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-tracks {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 20px;
}
.episode-list {
  max-height: 250px;
  overflow: auto;
  margin-top: 25px;
}
.episode {
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  text-align: left;
}
.player-dialog {
  max-width: none;
}
#player-dialog {
  background: #090909;
  border: 0;
  border-radius: 12px;
  width: min(1400px, calc(100vw - 30px));
  padding: 0;
  max-height: 95vh;
  overflow: auto;
}
#player {
  position: relative;
}
#player video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000000;
}
.player-top {
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.player-top h3 {
  font-size: 14px;
}
.player-bottom {
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.player-bottom select {
  width: auto;
  font-size: 11px;
  padding: 8px;
}
.player-bottom label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.player-status {
  font-size: 12px;
  color: var(--muted);
  padding: 0 22px 16px;
}
.player-status:empty {
  display: none;
}
.player-error {
  padding: 50px 25px;
  text-align: center;
}
.kids-top {
  padding: 30px 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.kids-content {
  max-width: 1200px;
  margin: auto;
  padding: 55px 40px;
}
.kids-content h1 {
  margin-bottom: 15px;
}
.kids-content > p {
  color: var(--muted);
  margin-bottom: 35px;
}
.kids-top .brand {
  font-size: 23px;
}
.source-token {
  font:
    12px ui-monospace,
    monospace;
  word-break: break-all;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 10px;
  color: var(--accent);
  user-select: all;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  padding: 13px 20px;
  border: 1px solid #5d5d5d;
  border-radius: 11px;
  background: #313131;
  color: var(--text);
  box-shadow: 0 10px 40px #00000055;
  font-size: 13px;
  max-width: 90vw;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.enter {
  animation: enter 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.stagger > * {
  animation: enter 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.stagger > :nth-child(2) {
  animation-delay: 35ms;
}
.stagger > :nth-child(3) {
  animation-delay: 70ms;
}
.stagger > :nth-child(4) {
  animation-delay: 105ms;
}
.stagger > :nth-child(5) {
  animation-delay: 140ms;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-brand {
  display: none;
}
.keyboard-hint {
  font:
    10px ui-monospace,
    monospace;
  color: #767676;
}
.tmdb-credit {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 20px;
}
.tmdb-credit img {
  width: 65px;
  display: block;
  margin-bottom: 9px;
}
.channel-edit-actions {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  padding: 12px;
  border-radius: 12px;
  background: #222222e8;
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  margin-top: 20px;
}
.channel-edit-actions .muted {
  font-size: 11px;
}
.inline-error {
  margin-top: 10px;
  font-size: 12px;
  color: var(--danger);
}
.picker-results {
  max-height: 280px;
  overflow: auto;
}
.movie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.movie-row small {
  font-size: 11px;
}
.stats {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}
.stats strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.stats small {
  font-size: 10px;
}
.block-dates {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.block-dates label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
}
.schedule-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.channel-title-input {
  font-size: 22px;
  letter-spacing: -0.03em;
}
.save-state {
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
  .hero {
    min-height: 410px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .main-content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .schedule-layout {
    grid-template-columns: 1fr 1.2fr;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    height: 65px;
    width: 100%;
    padding: 7px 8px;
    flex-direction: row;
    justify-content: space-around;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #161616ed;
    backdrop-filter: blur(15px);
  }
  .sidebar .brand,
  .sidebar .nav-label,
  .sidebar .nav-spacer,
  .sidebar .server-chip,
  .sidebar .nav-library,
  .sidebar .nav-signout {
    display: none;
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 9px;
    padding: 5px 9px;
    width: auto;
    margin: 0;
  }
  .nav-item .icon {
    width: 19px;
    height: 19px;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
  }
  .topbar > .row > .pill,
  .keyboard-hint {
    display: none;
  }
  .search {
    width: 80%;
  }
  .main-content {
    padding: 27px 20px 100px;
  }
  .hero {
    padding: 25px;
    min-height: 350px;
  }
  .hero-copy {
    width: 100%;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading {
    align-items: center;
  }
  .page-heading .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }
  .media-grid.landscape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landscape .card-meta {
    font-size: 10px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    min-height: 270px;
    padding: 30px;
  }
  .login-copy h1 {
    font-size: 36px;
    margin-top: 25px;
  }
  .login-copy p {
    display: none;
  }
  .orbit {
    left: 85%;
    top: 80%;
    width: 380px;
    height: 380px;
  }
  .orbit-play {
    left: 85%;
    top: 80%;
    font-size: 60px;
  }
  .login-form {
    padding: 40px 30px;
  }
  .login-art .eyebrow {
    display: none;
  }
  .schedule-layout {
    grid-template-columns: 1fr;
  }
  .schedule-board {
    height: 864px;
  }
  .timeline {
    background-size: 100% 36px;
  }
  .schedule-layout > .panel:last-child {
    grid-row: 1;
  }
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
  .filterbar {
    align-items: start;
  }
  .tabs {
    gap: 0;
  }
  .tab {
    font-size: 10px;
    padding: 9px;
  }
  .filterbar select {
    min-width: 105px;
    max-width: 135px;
  }
  .kids-top {
    padding: 20px;
  }
  .kids-content {
    padding: 35px 20px;
  }
  .panel {
    padding: 20px;
  }
  .channel-edit-actions {
    bottom: 78px;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .detail-img {
    height: 190px;
  }
  .player-bottom {
    padding: 12px;
  }
  .player-bottom .row {
    gap: 8px;
  }
  .player-bottom label {
    font-size: 9px;
  }
  .player-top {
    padding: 14px;
  }
  .player-top h3 {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Minima: smoky glass, cinema-red controls, and a quiet landscape-first shelf. */
:root {
  --bg: #282828;
  --panel: #3b3b3b;
  --raised: #4e4e4e;
  --line: #ffffff15;
  --text: #f9f9f9;
  --muted: #c0c0c0;
  --accent: #434343;
  --ink: #ffffff;
  --danger: #cdcdcd;
  font-family:
    Arial,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 80% 0%, #525252 0, transparent 50%),
    radial-gradient(ellipse at 0 100%, #626262 0, transparent 50%),
    linear-gradient(135deg, #1f1f1f, #404040 55%, #2b2b2b);
  background-attachment: fixed;
}
.shell {
  position: relative;
  max-width: 1700px;
  min-height: calc(100vh - 80px);
  margin: 40px 30px 40px 115px;
  border: 1px solid #b9b9b966;
  border-radius: 32px;
  overflow: clip;
  grid-template-columns: 248px 1fr;
  background: linear-gradient(120deg, #5b5b5b66, #373737bd 65%, #7777778a);
  box-shadow:
    0 35px 100px #00000055,
    inset 0 1px #ffffff20;
  backdrop-filter: blur(35px);
}
.sidebar {
  height: calc(100vh - 80px);
  top: 40px;
  background: #44444444;
  padding: 35px 22px 25px;
  border-color: #d3d3d319;
}
.sidebar .brand {
  padding: 0 8px;
  margin-bottom: 33px;
  font-size: 34px;
  color: var(--accent);
  letter-spacing: -0.07em;
}
.brand {
  font-weight: 850;
  letter-spacing: -0.06em;
}
.brand img {
  width: 35px;
  height: 35px;
}
.nav-label {
  color: #b2b2b2;
  letter-spacing: 0.13em;
  font-size: 9px;
  margin: 20px 12px 8px;
}
.nav-item {
  padding: 11px 12px;
  font-size: 12px;
  border-radius: 9px;
  color: #d6d6d6;
}
.nav-item.active {
  color: #ffffff;
  background: #ffffff0a;
}
.nav-item.active .icon {
  color: var(--accent);
}
.nav-item:hover {
  background: #ffffff0b;
  color: #ffffff;
}
.nav-item .icon {
  width: 17px;
  height: 17px;
}
.nav-library {
  font-size: 11px;
  padding: 8px 12px;
}
.server-chip {
  display: none;
}
.topbar {
  height: 103px;
  border: 0;
  padding: 0 30px;
  gap: 15px;
}
.search {
  max-width: 500px;
  flex: 1;
  width: auto;
}
.search input {
  border: 0;
  border-radius: 50px;
  background: #aaaaaa18;
  padding: 14px 20px 14px 44px;
}
.search > .icon {
  left: 17px;
  top: 14px;
}
.history-buttons {
  gap: 15px;
  color: #c8c8c8;
}
.history-buttons button {
  padding: 3px;
}
.history-buttons .icon {
  width: 19px;
  height: 19px;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #c8c8c817;
  border-radius: 40px;
  padding: 9px 15px 9px 9px;
  text-align: left;
  font-size: 11px;
}
.profile-card strong,
.profile-card small {
  display: block;
}
.profile-card small {
  font-size: 10px;
  margin-top: 3px;
}
.avatar {
  width: 33px;
  height: 33px;
  border: 2px solid var(--accent);
  background: #5a5a5a;
  color: #ffffff;
  font-size: 12px;
}
.main-content {
  padding: 8px 30px 45px;
  max-width: 1450px;
}
.page-heading {
  margin-bottom: 22px;
}
.page-heading h1 {
  font-size: 29px;
  letter-spacing: -0.035em;
  font-weight: 550;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.page-heading p {
  font-size: 12px;
}
.hero {
  min-height: 355px;
  margin-bottom: 32px;
  border-radius: 20px;
  background: #232323;
  padding: 34px;
}
.hero > img {
  opacity: 1;
}
.hero:after {
  background:
    linear-gradient(
      90deg,
      rgba(12, 24, 17, 0.94),
      rgba(17, 29, 20, 0.45) 45%,
      rgba(0, 0, 0, 0.05) 75%
    ),
    linear-gradient(0deg, rgba(8, 19, 13, 0.6), transparent 70%);
}
.hero-copy h1 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: clamp(34px, 4vw, 59px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.065em;
  max-width: 500px;
  margin: 20px 0;
}
.hero-copy > p {
  color: #d5d5d5;
  font-size: 12px;
  max-width: 390px;
}
.hero-copy .pill {
  background: #ffffff12;
  border-color: #ffffff17;
  color: #e4e4e4;
  font-size: 8px;
}
.hero-copy .row:last-child {
  margin-top: 20px;
}
.hero-copy .btn {
  border-radius: 11px;
  padding: 12px 20px;
}
.btn {
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 550;
  border-radius: 10px;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  background: #525252;
  box-shadow: 0 5px 22px #30303038;
}
.btn.secondary {
  background: #a8a8a81f;
  color: #ffffff;
  border-color: #d3d3d319;
  box-shadow: none;
}
.btn.secondary:hover {
  background: #b7b7b72c;
}
.btn.ghost {
  background: transparent;
  color: #d4d4d4;
  box-shadow: none;
}
.pill {
  background: #ffffff0c;
  border-color: #ffffff19;
  color: #d6d6d6;
}
.pill.live {
  color: #ffffff;
  background: #40404033;
  border-color: #43434344;
}
.section-heading {
  margin: 28px 0 19px;
}
.section-heading h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.025em;
}
.section-heading small {
  font-size: 9px;
  letter-spacing: 0.06em;
}
.media-grid,
.media-grid.landscape {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px 15px;
}
.media-card {
  background: #090909;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 15px #00000022;
  transform-origin: 50% 70%;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s;
}
.media-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 10px 30px #00000055;
}
.card-image,
.landscape .card-image {
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 0;
  min-height: 115px;
}
.card-placeholder {
  color: #d6d6d6;
  background:
    radial-gradient(at 15% 10%, #5d5d5d, transparent 80%), linear-gradient(145deg, #424242, #212121);
  font-size: 21px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-family: var(--font-sans);
  text-transform: uppercase;
}
.card-title {
  margin: 0;
  padding: 11px 12px 0;
  font-size: 12px;
  font-weight: 600;
}
.card-meta {
  margin: 0;
  padding: 5px 12px 12px;
  font-size: 9px;
  color: #d1d1d1;
}
.card-image .card-play {
  background: var(--accent);
  color: #ffffff;
  width: 40px;
  height: 40px;
  box-shadow: 0 0 30px #43434355;
}
.progress-bar {
  height: 3px;
}
.progress-bar i {
  background: var(--accent);
}
.card-badge {
  background: #00000099;
  font-size: 8px;
}
.sidebar-shelf {
  margin: 25px 6px 5px;
}
.shelf-heading {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 17px;
}
.mini-card {
  padding: 0;
  width: 100%;
  position: relative;
  background: #ffffff12;
  border-radius: 13px;
  overflow: hidden;
  text-align: left;
  margin-bottom: 18px;
  display: block;
}
.mini-card > img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.mini-card > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  font-size: 10px;
  gap: 5px;
  min-height: 33px;
}
.mini-card .icon {
  width: 20px;
  height: 20px;
  background: #ffffff44;
  border-radius: 50%;
  padding: 5px;
}
.icon-rail {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 19px;
  padding: 12px 8px;
  border: 1px solid #ffffff50;
  border-radius: 40px;
  z-index: 20;
  background: #69696944;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 20px #00000044;
}
.icon-rail a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #e2e2e2;
}
.icon-rail a:first-child {
  background: var(--accent);
  box-shadow: 0 0 22px #4f4f4f44;
}
.icon-rail .icon {
  width: 21px;
  height: 21px;
}
.panel {
  background: #26262633;
  border-color: #d7d7d71d;
  border-radius: 18px;
}
.panel > p,
.setting-row p {
  color: #c4c4c4;
}
.empty {
  background: radial-gradient(at 50% 0%, #6f6f6f33, transparent 70%);
  border-color: #d4d4d444;
}
.empty > .icon {
  color: #717171;
}
.setup-step {
  background: #ffffff0a;
  border-color: #ffffff17;
}
.step-number {
  color: #a7a7a7;
}
.setup-step p {
  color: #c9c9c9;
}
.login-art {
  background: linear-gradient(145deg, #484848, #2b2b2b);
}
.login {
  background: #262626;
}
.login-art .brand {
  color: var(--accent);
  font-size: 32px;
}
.login-form input {
  background: #16161699;
}
.orbit {
  border-color: #acacac33;
}
.orbit:before,
.orbit:after {
  border-color: #c7c7c722;
}
.orbit:after {
  background: radial-gradient(at 35% 30%, #545454, #333333 70%);
}
.orbit-play {
  color: #636363;
}
.login-copy p {
  color: #cacaca;
}
.login-foot {
  color: #adadad !important;
}
.switch[aria-checked='true'] {
  background: var(--accent);
}
.switch[aria-checked='true']:after {
  background: #ffffff;
}
.notice {
  background: #72727233;
  color: #dedede;
}
.tab.active {
  background: #ffffff19;
  color: #ffffff;
}
.filterbar select {
  background: #ffffff0c;
}
.schedule-board {
  background: #22222266;
}
.schedule-block {
  background: #3a3a3a;
  border-color: #99999980;
  color: #ffffff;
}
.schedule-block.selected {
  background: #3e3e3e;
  border-color: #b1b1b1;
}
.schedule-block small {
  color: #cecece;
}
.approved-list {
  background: #323232;
  border-color: #cccccc80;
}
.approved-list .pool-video {
  background: #4d4d4d;
}
.channel-card {
  background: linear-gradient(140deg, #65656577, #313131aa);
  border-color: #d3d3d333;
}
.channel-card:before {
  border-color: #e8e8e81f;
}
.channel-edit-actions {
  background: #353535e8;
  border-color: #c1c1c13d;
}
.channel-edit-actions .btn {
  background: var(--accent);
}
.source-token {
  color: #e7e7e7;
  background: #1f1f1f99;
}
.player-bottom select {
  background: #353535;
}
.player-top .eyebrow {
  color: #8d8d8d;
}
.kids-top {
  background: #47474755;
}
.kids-top .brand {
  color: var(--accent);
}
.kids-content {
  padding-top: 50px;
}
#toast {
  background: #464646;
  border-color: #bababa77;
}
dialog {
  background: #3b3b3beb;
  backdrop-filter: blur(30px);
  border-color: #c5c5c544;
}
dialog::backdrop {
  background: #0f0f0f88;
}
.schedule-block:active,
.mini-card:active {
  transform: scale(0.99);
}
@media (min-width: 1700px) {
  .shell {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 220px);
  }
  .hero {
    min-height: 390px;
  }
  .media-grid,
  .media-grid.landscape {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1250px) {
  .shell {
    grid-template-columns: 200px 1fr;
    margin: 25px 20px 25px 95px;
    border-radius: 26px;
  }
  .sidebar {
    padding: 30px 15px;
    top: 25px;
    height: calc(100vh - 50px);
  }
  .sidebar .brand {
    font-size: 28px;
  }
  .sidebar .brand img {
    width: 28px;
    height: 28px;
  }
  .icon-rail {
    left: 19px;
  }
  .topbar {
    padding: 0 22px;
  }
  .main-content {
    padding: 8px 22px 40px;
  }
  .profile-card > span:last-child {
    display: none;
  }
  .profile-card {
    padding: 0;
    background: none;
  }
  .media-grid,
  .media-grid.landscape {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
  .hero {
    min-height: 320px;
    padding: 28px;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .sidebar-shelf {
    margin-top: 20px;
  }
  .shelf-heading {
    font-size: 14px;
  }
}
@media (max-width: 960px) {
  .shell {
    margin: 20px 20px 20px 85px;
    grid-template-columns: 165px 1fr;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .sidebar .brand {
    font-size: 24px;
    padding: 0 5px;
  }
  .sidebar .brand img {
    width: 25px;
    height: 25px;
  }
  .nav-item {
    font-size: 11px;
    gap: 8px;
  }
  .history-buttons {
    display: none;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-copy > p {
    -webkit-line-clamp: 2;
  }
  .media-grid,
  .media-grid.landscape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    align-items: start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .topbar {
    height: 85px;
  }
  .sidebar-shelf {
    display: none;
  }
  .schedule-layout {
    grid-template-columns: 1fr;
  }
  .schedule-layout > .panel:last-child {
    grid-row: 1;
  }
}
@media (max-width: 760px) {
  body {
    background: #2d2d2d;
  }
  .shell {
    display: block;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
    backdrop-filter: none;
    background: linear-gradient(160deg, #505050, #2e2e2e 45%, #3b3b3b);
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 65px;
    flex-direction: row;
    padding: 7px 8px;
    border-top: 1px solid #b8b8b833;
    background: #414141e8;
  }
  .sidebar .nav-item {
    font-size: 9px;
    padding: 5px 9px;
    gap: 4px;
  }
  .icon-rail,
  .sidebar-shelf,
  .history-buttons {
    display: none;
  }
  .topbar {
    height: 75px;
    padding: 0 20px;
  }
  .profile-card {
    display: none;
  }
  .search {
    max-width: none;
  }
  .main-content {
    padding: 15px 20px 100px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .hero {
    padding: 24px;
    min-height: 340px;
    border-radius: 17px;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-copy > p {
    font-size: 11px;
  }
  .hero-copy .btn {
    padding: 11px 14px;
  }
  .media-grid,
  .media-grid.landscape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 12px;
  }
  .card-image,
  .landscape .card-image {
    min-height: 0;
  }
  .card-title {
    font-size: 11px;
    padding: 10px 10px 0;
  }
  .card-meta {
    font-size: 9px;
    padding: 5px 10px 11px;
  }
  .section-heading h2 {
    font-size: 19px;
  }
  .section-heading small {
    font-size: 8px;
  }
  .login-art {
    min-height: 260px;
  }
  .login-copy h1 {
    font-size: 38px;
  }
  .schedule-layout {
    grid-template-columns: 1fr;
  }
  .sidebar .brand {
    display: none;
  }
  .sidebar .nav-library {
    display: none;
  }
  .channel-edit-actions {
    bottom: 78px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
}

/* Neutral chrome. Every nested surface uses outer radius minus its visible inset. */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #151515;
  --panel: #242424;
  --raised: #333333;
  --line: #ffffff18;
  --text: #f4f4f4;
  --muted: #a6a6a6;
  --accent: #f0f0f0;
  --ink: #151515;
  --danger: #dedede;
  --radius: 24px;
  font-family: var(--font-sans);
}
body {
  background:
    radial-gradient(ellipse at 70% 0%, #303030, transparent 60%),
    linear-gradient(135deg, #141414, #252525);
}
h1,
h2,
h3,
.brand,
.hero-copy h1,
.card-placeholder {
  font-family: var(--font-sans);
}
.eyebrow,
.nav-label,
.step-number,
.keyboard-hint,
.server-chip {
  display: none !important;
}
.page-heading > div > .eyebrow,
.page-heading p,
.setting-row p,
.panel > p,
.notice:not(.error),
.schedule-meta {
  display: none;
}
.shell {
  border-radius: 40px;
  background: linear-gradient(135deg, #ffffff0c, #ffffff05);
  border-color: #ffffff20;
  box-shadow:
    0 24px 80px #00000040,
    inset 0 1px #ffffff0a;
}
.sidebar {
  padding: 15px;
  background: #ffffff03;
}
.sidebar .brand {
  color: var(--text);
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.055em;
  margin: 8px 8px 28px;
  padding: 0;
}
.brand img {
  width: 32px;
  height: 32px;
}
.nav-item {
  font-size: 13px;
  padding: 12px;
  border-radius: 12px;
}
.nav-item.active {
  background: #ffffff0e;
  color: #ffffff;
}
.nav-item.active .icon {
  color: #ffffff;
}
.topbar {
  height: 80px;
  padding: 15px;
}
.search input {
  height: 48px;
  padding: 14px 16px 14px 44px;
  border-radius: 24px;
  background: #ffffff08;
  font-size: 13px;
}
.search > .icon {
  left: 16px;
  top: 15px;
  width: 18px;
  height: 18px;
}
.profile-card {
  height: 48px;
  padding: 8px;
  gap: 8px;
  border-radius: 24px;
  background: #ffffff08;
  color: var(--text);
}
.profile-card strong {
  padding-right: 8px;
  font-size: 12px;
  font-weight: 500;
}
.avatar {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: #ffffff10;
  color: #ffffff;
}
.main-content {
  padding: 15px 15px 15px;
}
.page-heading {
  min-height: 40px;
  margin: 0 0 16px;
  align-items: center;
}
.page-heading h1 {
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.04em;
}
.hero {
  min-height: 360px;
  padding: 16px;
  border-radius: 24px;
  background: #202020;
  margin-bottom: 24px;
}
.hero:after {
  background:
    linear-gradient(90deg, #000000cc, #00000045 60%, #00000005),
    linear-gradient(0deg, #00000077, transparent 75%);
}
.hero-copy {
  width: min(640px, 85%);
}
.hero-copy h1 {
  font-family: var(--font-sans);
  text-transform: none;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.04;
  margin: 0 0 16px;
}
.hero-copy > p {
  color: #d0d0d0;
  font-size: 13px;
  margin: 0 0 16px;
}
.hero-copy .row:last-child {
  margin-top: 16px;
  gap: 8px;
}
.hero-copy .btn {
  border-radius: 8px;
  padding: 12px 16px;
}
.btn {
  border-radius: 8px;
  padding: 12px 16px;
  background: #f0f0f0;
  color: #141414;
  box-shadow: none;
}
.btn:hover {
  background: #d8d8d8;
  color: #141414;
  box-shadow: none;
}
.btn.secondary {
  background: #ffffff10;
  color: #f4f4f4;
  border-color: #ffffff12;
}
.btn.secondary:hover {
  background: #ffffff18;
  color: #ffffff;
}
.btn.ghost {
  background: transparent;
  color: #bcbcbc;
}
.btn.ghost:hover {
  color: #ffffff;
}
.btn.danger {
  background: #ffffff15;
  color: #ffffff;
}
.btn.small {
  padding: 8px 12px;
}
.icon-rail {
  padding: 7px;
  border-radius: 28px;
  gap: 12px;
  background: #ffffff07;
  border-color: #ffffff22;
}
.icon-rail a {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  color: #cccccc;
}
.icon-rail a:first-child {
  color: #151515;
  background: #f0f0f0;
  box-shadow: none;
}
.media-card {
  padding: 7px;
  border: 1px solid #ffffff0c;
  border-radius: 24px;
  background: #151515;
}
.card-image,
.landscape .card-image {
  border-radius: 16px;
  background: #262626;
}
.card-placeholder {
  background: linear-gradient(145deg, #343434, #202020);
  font-family: var(--font-sans);
  color: #a8a8a8;
  text-transform: none;
  font-weight: 500;
}
.card-image .card-play {
  background: #f4f4f4;
  color: #151515;
  box-shadow: 0 8px 24px #00000040;
}
.card-title {
  margin: 0;
  padding: 12px 8px 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 550;
}
.card-meta {
  padding: 5px 8px 8px;
  font-size: 11px;
  color: #a6a6a6;
}
.progress-bar i {
  background: #eeeeee;
}
.section-heading {
  margin: 24px 0 16px;
}
.section-heading h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.section-heading small {
  display: none;
}
.sidebar-shelf {
  margin: 24px 0 0;
}
.shelf-heading {
  font-size: 14px;
  font-weight: 500;
  margin: 0 8px 12px;
}
.mini-card {
  padding: 7px;
  border: 1px solid #ffffff0c;
  border-radius: 20px;
  background: #ffffff03;
  margin-bottom: 12px;
}
.mini-card > img {
  border-radius: 12px;
}
.mini-card > span {
  padding: 10px 4px 4px;
  font-size: 11px;
}
.mini-card .icon {
  border-radius: 10px;
  background: #ffffff12;
}
.panel {
  border-radius: 24px;
  padding: 15px;
  border: 1px solid #ffffff12;
  background: #ffffff04;
}
.panel > h3 {
  margin-bottom: 16px;
}
input,
select,
textarea {
  border-radius: 8px;
  padding: 11px 12px;
  background: #151515;
  border-color: #ffffff18;
}
.switch[aria-checked='true'] {
  background: #f0f0f0;
}
.switch[aria-checked='true']:after {
  background: #202020;
}
.pill {
  color: #c0c0c0;
  background: #ffffff08;
  border-color: #ffffff15;
}
.pill.live {
  color: #ffffff;
  background: #ffffff12;
  border-color: #ffffff24;
}
.channel-card {
  border-radius: 24px;
  padding: 15px;
  border: 1px solid #ffffff18;
  background: linear-gradient(145deg, #ffffff08, #ffffff02);
}
.channel-card h2 {
  font-size: 26px;
}
.channel-card:before {
  display: none;
}
.channel-edit-actions {
  padding: 7px;
  border-radius: 16px;
  background: #232323ee;
  border-color: #ffffff20;
}
.channel-edit-actions .btn {
  background: #f0f0f0;
  color: #151515;
}
.schedule-board {
  border-radius: 8px;
  background: #191919;
}
.schedule-block {
  border-radius: 8px;
  background: #424242;
  border-color: #777777;
  color: #ffffff;
}
.schedule-block.selected {
  background: #555555;
  border-color: #dddddd;
}
.schedule-block small {
  color: #dddddd;
}
.approved-list {
  border-radius: 8px;
  background: #202020;
  border-color: #777777;
}
.approved-list .pool-video {
  border-radius: 4px;
  background: #383838;
}
.pool-video {
  font-size: 13px;
}
.day-tabs button.active {
  color: #161616;
  background: #eeeeee;
}
.notice.error {
  background: #333333;
  color: #f0f0f0;
  border-radius: 8px;
}
dialog {
  border-radius: 24px;
  padding: 15px;
  background: #222222f5;
  border-color: #ffffff25;
}
.detail-img {
  width: 100%;
  height: 240px;
  margin: 0 0 16px;
  border-radius: 8px;
}
.detail-actions {
  gap: 8px;
}
.detail-overview:empty,
.player-status:empty {
  display: none;
}
#player-dialog {
  padding: 7px;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: #151515;
}
#player {
  border-radius: 16px;
  overflow: hidden;
}
.player-top,
.player-bottom {
  padding: 16px;
}
.player-bottom select {
  border-radius: 8px;
  background: #2b2b2b;
}
.kids-top {
  background: #ffffff04;
}
.kids-top .brand {
  color: #ffffff;
}
.kids-content > p {
  display: none;
}
.login {
  display: grid;
  grid-template-columns: 1fr;
  background: transparent;
}
.login-form {
  min-height: 100vh;
  padding: 24px;
}
.login-card {
  border: 1px solid #ffffff18;
  border-radius: 32px;
  padding: 23px;
  background: #ffffff04;
}
.login-card .brand {
  margin-bottom: 32px;
  font-size: 28px;
  color: #f0f0f0;
}
.login-card h1 {
  font-size: 28px;
  margin-bottom: 24px;
}
.login-form p {
  display: none;
}
.login-form .btn {
  border-radius: 8px;
}
.empty {
  border-radius: 24px;
  padding: 40px 16px;
  background: #ffffff03;
  border-color: #ffffff20;
}
.empty > .icon {
  color: #d0d0d0;
}
.empty > p,
.setup-grid {
  display: none;
}
#toast {
  background: #303030;
  border-color: #ffffff20;
  border-radius: 16px;
  color: #f4f4f4;
}
:focus-visible {
  outline: 2px solid #e6e6e6;
}
@media (max-width: 1250px) {
  .shell {
    border-radius: 40px;
  }
  .topbar {
    padding: 15px;
  }
  .main-content {
    padding: 15px;
  }
  .sidebar .brand {
    font-size: 24px;
  }
  .profile-card > span:last-child {
    display: block;
  }
  .hero {
    padding: 16px;
    border-radius: 24px;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
}
@media (max-width: 960px) {
  .sidebar-shelf {
    display: none;
  }
  .profile-card > span:last-child {
    display: none;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
}
@media (max-width: 760px) {
  .shell {
    border: 0;
    border-radius: 0;
    background: #1c1c1c;
  }
  .sidebar {
    padding: 7px 8px;
    background: #222222f0;
    border-color: #ffffff18;
  }
  .topbar {
    height: 80px;
    padding: 16px;
  }
  .main-content {
    padding: 0 16px 88px;
  }
  .page-heading {
    margin: 0 0 16px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .hero {
    min-height: 320px;
    padding: 16px;
    border-radius: 24px;
  }
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero-copy .btn {
    padding: 12px 16px;
  }
  .media-card {
    padding: 7px;
    border-radius: 20px;
  }
  .card-image,
  .landscape .card-image {
    border-radius: 12px;
  }
  .card-title {
    font-size: 13px;
    padding: 10px 4px 0;
  }
  .card-meta {
    font-size: 10px;
    padding: 4px 4px 4px;
  }
  .panel {
    padding: 15px;
    border-radius: 24px;
  }
  .settings-layout {
    gap: 16px;
  }
  .channel-edit-actions {
    bottom: 80px;
  }
  .detail-img {
    height: 190px;
  }
  .login-card {
    padding: 23px;
    border-radius: 32px;
  }
  .icon-rail {
    display: none;
  }
}

/* Shared inset geometry for controls and media surfaces. */
.settings-layout,
.schedule-layout,
.stack {
  gap: 16px;
}
.approved-list {
  padding: 3px;
  display: grid;
  gap: 4px;
}
.approved-list .pool-video {
  margin: 0;
  border-radius: 4px;
}
.source-token {
  border-radius: 8px;
}
#player-dialog {
  border-radius: 32px;
}
#player {
  border-radius: 24px;
}
