:root {
  --bg: #03070c;
  --panel: rgba(0, 0, 0, 0.76);
  --panel-soft: rgba(8, 14, 22, 0.86);
  --line: rgba(121, 146, 171, 0.32);
  --line-strong: rgba(20, 169, 245, 0.72);
  --text: #f6f9ff;
  --muted: #aeb7c4;
  --dim: #738093;
  --accent: #12aef7;
  --accent-2: #58d3ff;
  --danger: #ff5a6f;
  --success: #5ce29b;
  --warning: #ffd166;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --radius: 8px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
a {
  font: inherit;
}

button,
a,
input,
textarea {
  outline: none;
}

.screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 1280px;
  min-height: 720px;
  padding: 48px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(18, 174, 247, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(11, 18, 27, 0.88), rgba(2, 4, 8, 0.92)),
    var(--bg);
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(30, 54, 76, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 54, 76, 0.26) 1px, transparent 1px);
  background-size: 240px 180px;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 12%, rgba(14, 32, 48, 0.48) 12.4%, transparent 12.8%),
    linear-gradient(19deg, transparent 31%, rgba(18, 174, 247, 0.11) 31.2%, transparent 31.5%),
    linear-gradient(150deg, transparent 57%, rgba(255, 44, 80, 0.10) 57.2%, transparent 57.6%);
}

.screen-content {
  position: relative;
  z-index: 1;
  height: 100%;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-lockup img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.brand-lockup strong {
  display: block;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-lockup span {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
}

.setup-layout {
  display: grid;
  grid-template-columns: 1fr minmax(640px, 760px);
  gap: 70px;
  align-items: center;
  height: 100%;
}

.setup-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-left: 16px;
}

.setup-hero .mark {
  width: 156px;
  height: 156px;
  margin-bottom: 28px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.setup-hero h1 {
  font-size: 62px;
  line-height: 1;
  font-weight: 900;
}

.tagline {
  margin-top: 26px;
  font-size: 34px;
  font-weight: 800;
}

.setup-copy {
  max-width: 790px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 30px;
  line-height: 1.24;
}

.device-id {
  margin-top: 42px;
  font-size: 38px;
  font-weight: 900;
}

.device-id span {
  color: var(--accent);
  letter-spacing: 1px;
}

.panel {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.setup-panel {
  padding: 46px 48px 36px;
}

.setup-panel h2 {
  text-align: center;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 900;
}

.setup-panel .lead {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 27px;
  line-height: 1.25;
}

.instruction-title {
  margin-top: 36px;
  color: var(--accent);
  text-align: center;
  font-size: 36px;
  font-weight: 900;
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.step {
  color: var(--text);
  font-size: 28px;
  line-height: 1.22;
}

.step small {
  color: var(--muted);
  font-size: 25px;
}

.link-text {
  color: var(--text);
  word-break: break-word;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
}

.button {
  min-width: 196px;
  min-height: 64px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #00111c;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.35);
}

.button.dark {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.06);
}

.button.danger {
  border-color: rgba(255, 90, 111, 0.6);
  color: #ffd8de;
}

.button:focus,
.button.focused,
a:focus,
input:focus,
textarea:focus,
.card:focus,
.row:focus,
.dash-brand:focus,
.dash-settings:focus,
.dash-rounds button:focus,
.dash-nav-item:focus,
.media-card:focus,
.settings-back:focus,
.settings-tile:focus,
.setting-option:focus,
.player-select:focus,
.add-player:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(18, 174, 247, 0.24), 0 0 34px rgba(18, 174, 247, 0.42);
  transform: translateY(-1px);
}

.legal-note {
  margin-top: 34px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.32;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.legal-links a {
  min-height: 46px;
  padding: 9px 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 20px;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  gap: 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status {
  color: var(--muted);
  font-size: 25px;
  font-weight: 700;
}

.status b {
  color: var(--accent);
}

.empty-main {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 36px;
  min-height: 0;
}

.nav-panel,
.content-panel,
.player-panel {
  background: rgba(0, 0, 0, 0.55);
}

.nav-panel {
  padding: 22px;
}

.nav-list {
  display: grid;
  gap: 14px;
}

.nav-item {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 29px;
  font-weight: 850;
  text-align: left;
}

.nav-item svg {
  width: 42px;
  height: 42px;
  color: var(--muted);
}

.nav-item .count {
  color: var(--muted);
  font-size: 25px;
  font-weight: 800;
}

.nav-item.active {
  background: rgba(18, 174, 247, 0.18);
  border-color: rgba(18, 174, 247, 0.5);
}

.content-panel {
  position: relative;
  min-height: 0;
  padding: 38px;
}

.panel-title {
  color: var(--text);
  font-size: 36px;
  font-weight: 900;
}

.panel-subtitle {
  max-width: 950px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 25px;
  line-height: 1.35;
}

.empty-state {
  display: grid;
  place-items: center;
  height: calc(100% - 110px);
  min-height: 430px;
  text-align: center;
}

.empty-state-inner {
  max-width: 780px;
}

.empty-state svg {
  width: 110px;
  height: 110px;
  color: var(--accent);
  opacity: 0.9;
}

.empty-state h2 {
  margin-top: 26px;
  font-size: 40px;
}

.empty-state p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 26px;
  line-height: 1.35;
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--dim);
  font-size: 20px;
}

.footer-note strong {
  color: var(--muted);
}

.dashboard-screen {
  padding: 68px 84px 22px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at 82% 12%, rgba(18, 174, 247, 0.16), transparent 24%),
    linear-gradient(90deg, #02060b, #08131b 45%, #030408);
}

.dashboard-layout {
  display: grid;
  grid-template-rows: 120px minmax(0, 1fr) 124px 64px 26px;
  height: 100%;
}

.dash-top {
  display: grid;
  grid-template-columns: 470px 1fr 360px;
  align-items: center;
  gap: 28px;
}

.dash-brand,
.dash-settings,
.dash-rounds button,
.dash-nav-item,
.media-card {
  border: 2px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 16px;
  border-radius: var(--radius);
  text-align: left;
}

.dash-brand img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.dash-brand strong {
  color: var(--text);
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
}

.dash-brand span,
.dash-playlist b,
.dash-settings span,
.dash-expire span {
  color: var(--accent);
}

.dash-playlist {
  align-self: start;
  padding-top: 18px;
  text-align: center;
  color: var(--text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
}

.dash-settings {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 300px;
  min-height: 92px;
  padding: 10px 18px;
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 35px;
  font-weight: 900;
}

.dash-settings svg {
  width: 82px;
  height: 82px;
  padding: 18px;
  border: 3px solid rgba(18, 174, 247, 0.52);
  border-radius: 50%;
  background: rgba(18, 174, 247, 0.08);
}

.dashboard-main {
  min-height: 0;
}

.dashboard-home-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  align-items: center;
}

.dash-section-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
}

.vod-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  height: 420px;
  padding: 18px 34px;
  border: 2px solid rgba(121, 146, 171, 0.42);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.54);
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
}

.media-card {
  position: relative;
  height: 100%;
  min-width: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  background: rgba(10, 20, 30, 0.9);
}

.media-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88));
}

.poster {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(28, 48, 66, 0.92), rgba(2, 5, 10, 0.98));
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-empty {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 28px;
  color: var(--accent);
  text-align: center;
}

.poster-empty svg {
  width: 96px;
  height: 96px;
}

.poster-empty small {
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.card-star {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 12px;
  color: #f6bf16;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7));
}

.card-star svg {
  width: 52px;
  height: 52px;
  fill: currentColor;
  stroke: currentColor;
}

.card-title,
.card-meta {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-title {
  bottom: 46px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.card-meta {
  bottom: 18px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.dash-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  min-height: 124px;
}

.dash-nav-item {
  display: grid;
  place-items: center;
  gap: 8px;
  min-width: 136px;
  min-height: 104px;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
}

.dash-nav-item svg {
  width: 48px;
  height: 48px;
}

.dash-nav-item.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(18, 174, 247, 0.18);
}

.dash-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 64px;
}

.dash-expire {
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
}

.dash-rounds {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dash-rounds button {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border-color: rgba(18, 174, 247, 0.52);
  background: rgba(18, 174, 247, 0.08);
  color: var(--muted);
}

.dash-rounds svg {
  width: 44px;
  height: 44px;
}

.dashboard-note {
  align-self: end;
}

.category-panel {
  height: 100%;
  overflow: hidden;
}

.playlist-dashboard .dashboard-layout {
  grid-template-rows: 106px minmax(0, 1fr) 104px 56px 26px;
}

.playlist-dashboard .dash-top {
  grid-template-columns: 430px 1fr 330px;
}

.playlist-dashboard .dash-brand img {
  width: 96px;
  height: 96px;
}

.playlist-dashboard .dash-brand strong {
  font-size: 40px;
}

.playlist-dashboard .dash-playlist {
  font-size: 30px;
}

.playlist-dashboard .dash-settings {
  min-height: 78px;
  font-size: 30px;
}

.playlist-dashboard .dash-settings svg {
  width: 66px;
  height: 66px;
  padding: 14px;
}

.playlist-dashboard .dash-nav {
  gap: 42px;
  min-height: 104px;
}

.playlist-dashboard .dash-nav-item {
  min-height: 88px;
}

.playlist-dashboard .dash-bottom {
  min-height: 56px;
}

.playlist-dashboard .dash-expire {
  font-size: 24px;
}

.playlist-dashboard .dash-rounds button {
  width: 62px;
  height: 62px;
}

.playlist-dashboard .dashboard-main {
  overflow: hidden;
}

.playlist-dashboard .playlist-grid {
  height: 100%;
}

.settings-screen {
  padding: 0 44px 42px;
  background: #000;
}

.settings-screen::before,
.settings-screen::after {
  display: none;
}

.settings-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px 1fr 220px;
  align-items: center;
  height: 86px;
  color: var(--text);
}

.settings-header h1 {
  justify-self: center;
  font-size: 34px;
  line-height: 1;
  font-weight: 850;
}

.settings-header time {
  justify-self: end;
  font-size: 36px;
  font-weight: 800;
}

.settings-back {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.settings-back svg {
  width: 44px;
  height: 44px;
}

.settings-crumb {
  position: absolute;
  left: 118px;
  top: 27px;
  padding-left: 28px;
  border-left: 4px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
}

.settings-body {
  position: relative;
  z-index: 1;
  height: calc(100vh - 128px);
}

.settings-main {
  display: grid;
  grid-template-columns: 540px 1fr;
  gap: 18px;
  height: 100%;
}

.settings-left,
.settings-grid-panel {
  background: rgba(0, 0, 0, 0.82);
}

.settings-left {
  padding: 30px;
}

.settings-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 26px;
  text-align: center;
}

.settings-brand img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.settings-brand strong {
  font-size: 40px;
  font-weight: 900;
}

.settings-brand span {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.settings-info-card {
  min-height: 204px;
  margin-top: 20px;
  padding: 24px;
  border: 2px solid rgba(18, 174, 247, 0.28);
  border-radius: 8px;
  background: rgba(8, 20, 28, 0.72);
}

.settings-info-card h2 {
  margin-bottom: 22px;
  text-align: center;
  font-size: 26px;
}

.settings-info-card p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 800;
}

.settings-info-card b,
.settings-info-card strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 26px;
  font-weight: 900;
}

.settings-info-card strong {
  color: var(--text);
}

.settings-grid-panel {
  padding: 44px 58px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 24px 34px;
  height: 100%;
}

.settings-tile {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 26px;
  min-width: 0;
  min-height: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
  cursor: pointer;
  text-align: center;
}

.settings-tile svg {
  width: 66px;
  height: 66px;
  color: rgba(255, 255, 255, 0.82);
}

.settings-tile span {
  display: block;
  max-width: 330px;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
}

.settings-detail {
  width: 980px;
  max-width: 70vw;
  margin: 0 auto;
  padding-top: 50px;
}

.account-detail {
  width: 780px;
}

.account-list {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 22px 36px;
  margin: 0;
}

.account-list dt,
.account-list dd {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.account-list dd {
  color: var(--muted);
}

.settings-actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 54px;
}

.settings-actions .button {
  min-width: 300px;
}

.centered-detail {
  display: grid;
  justify-items: center;
  padding-top: 260px;
}

.setting-options {
  display: grid;
  gap: 26px;
  width: 650px;
}

.setting-option {
  display: grid;
  grid-template-columns: 1fr 64px;
  align-items: center;
  min-height: 52px;
  padding: 4px 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.setting-option span {
  font-size: 31px;
}

.setting-option i {
  justify-self: end;
  width: 38px;
  height: 38px;
  border: 4px solid var(--accent);
  border-radius: 50%;
}

.setting-option.selected i {
  border-color: #fff;
  box-shadow: inset 0 0 0 9px #000, inset 0 0 0 18px #fff;
}

.language-detail {
  width: 720px;
  padding-top: 90px;
}

.language-options {
  width: 620px;
  gap: 16px;
}

.player-settings {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  height: 100%;
  padding: 90px 80px 140px;
}

.add-player {
  position: absolute;
  top: 0;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px 14px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
}

.add-player svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.player-labels,
.player-selects {
  display: grid;
  grid-template-rows: repeat(6, 70px);
  gap: 20px;
}

.player-labels {
  align-items: center;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
}

.player-select {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 70px;
  padding: 0 18px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: #2f5654;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.player-select span {
  font-size: 28px;
}

.player-select small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 17px;
}

.player-settings .settings-actions {
  position: absolute;
  left: 50%;
  bottom: 28px;
  margin: 0;
  transform: translateX(-50%);
}

.player-settings .settings-actions .button {
  min-width: 270px;
  min-height: 74px;
}

.external-detail {
  width: 900px;
  padding-top: 56px;
}

.external-player-item {
  display: flex;
  align-items: center;
  gap: 28px;
}

.external-player-item svg {
  width: 92px;
  height: 92px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(18, 174, 247, 0.18);
  color: var(--accent);
}

.external-player-item h2 {
  font-size: 32px;
}

.external-player-item p,
.settings-note {
  color: var(--muted);
  font-size: 26px;
  line-height: 1.35;
}

.settings-note {
  margin-top: 46px;
  text-align: center;
  font-weight: 800;
}

.share-detail h2 {
  margin-top: 84px;
  text-align: center;
  font-size: 32px;
}

.playlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  height: 100%;
}

.form-panel {
  padding: 34px;
}

.playlist-grid .form-panel {
  padding: 18px 34px;
}

.playlist-grid .panel-title {
  font-size: 32px;
}

.playlist-grid .panel-subtitle {
  font-size: 20px;
  line-height: 1.18;
}

.field {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.playlist-grid .field {
  gap: 8px;
  margin-top: 11px;
}

.field label {
  color: var(--muted);
  font-size: 23px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 62px;
  padding: 16px 18px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font-size: 24px;
}

.playlist-grid .field input {
  min-height: 45px;
  padding: 8px 18px;
}

.field textarea {
  min-height: 168px;
  resize: none;
  line-height: 1.35;
}

.playlist-grid .field textarea {
  min-height: 74px;
}

.split-fields {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.split-fields > div {
  display: grid;
  gap: 12px;
}

.compact-row {
  margin-top: 10px;
  justify-content: flex-start;
}

.playlist-grid .compact-row .button {
  min-height: 50px;
  font-size: 22px;
}

.playlist-grid .button-row:not(.compact-row) {
  margin-top: 14px;
}

.playlist-grid .button-row:not(.compact-row) .button {
  min-height: 52px;
  font-size: 23px;
}

.confirm {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.32;
}

.playlist-grid .confirm {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.18;
}

.confirm input {
  width: 26px;
  height: 26px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.rows {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  max-height: calc(100vh - 280px);
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  min-height: 68px;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
}

.row small {
  color: var(--muted);
  font-size: 20px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 174, 247, 0.16);
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 900;
}

.player-screen {
  padding: 0;
  background: #020408;
}

.player-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 50% 42%, rgba(18, 174, 247, 0.18), transparent 18%),
    linear-gradient(180deg, #070d14, #010205 72%);
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 52px 64px 56px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 35%, rgba(0, 0, 0, 0.72));
}

.player-top,
.player-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.player-title {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 38px;
  font-weight: 850;
}

.back-button {
  width: 72px;
  min-width: 72px;
  height: 72px;
  padding: 0;
  display: grid;
  place-items: center;
}

.player-center {
  display: grid;
  place-items: center;
}

.player-empty {
  max-width: 760px;
  padding: 42px;
  text-align: center;
}

.player-empty h2 {
  color: var(--accent);
  font-size: 42px;
}

.player-empty p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 25px;
  line-height: 1.35;
}

.transport {
  display: flex;
  align-items: center;
  gap: 24px;
}

.transport .button {
  min-width: 74px;
  width: 74px;
  height: 74px;
  padding: 0;
}

.progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
}

.toast {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 48px;
  max-width: 860px;
  padding: 18px 26px;
  transform: translateX(-50%);
  border: 2px solid rgba(18, 174, 247, 0.45);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.88);
  color: var(--text);
  font-size: 23px;
  box-shadow: var(--shadow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Fallbacks for older webOS Chromium engines without CSS custom properties. */
html,
body,
#app {
  background: #03070c;
  color: #f6f9ff;
}

.panel,
.setup-panel,
.nav-panel,
.content-panel,
.player-panel,
.player-empty,
.form-panel,
.settings-left,
.settings-grid-panel {
  border-color: rgba(121, 146, 171, 0.32);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.76);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.brand-lockup span,
.device-id span,
.instruction-title,
.empty-state svg,
.player-empty h2,
.status b {
  color: #12aef7;
}

.setup-copy,
.setup-panel .lead,
.step small,
.legal-note,
.legal-links a,
.status,
.nav-item svg,
.nav-item .count,
.panel-subtitle,
.empty-state p,
.footer-note,
.field label,
.confirm,
.row small {
  color: #aeb7c4;
}

.button,
.nav-item,
.row,
.field input,
.field textarea,
.toast,
.settings-back,
.settings-tile,
.setting-option,
.player-select,
.add-player {
  color: #f6f9ff;
  border-radius: 8px;
}

.button.primary,
.progress span {
  background: #12aef7;
}

.button.primary {
  color: #00111c;
}

.button:focus,
.button.focused,
a:focus,
input:focus,
textarea:focus,
.card:focus,
.row:focus,
.dash-brand:focus,
.dash-settings:focus,
.dash-rounds button:focus,
.dash-nav-item:focus,
.media-card:focus,
.settings-back:focus,
.settings-tile:focus,
.setting-option:focus,
.player-select:focus,
.add-player:focus {
  border-color: #12aef7;
}

@media (max-width: 1300px) {
  .screen {
    min-width: 0;
    min-height: 0;
    padding: 30px;
  }

  .setup-layout,
  .empty-main,
  .playlist-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .setup-hero {
    display: none;
  }
}
