:root {
  color-scheme: dark;
  --bg: #05070a;
  --bg-2: #090d12;
  --surface: #0d131a;
  --surface-2: #111923;
  --surface-3: #151f2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f8fb;
  --muted: #8a96a3;
  --soft: #c8d2dc;
  --green: #33ff8a;
  --blue: #35a8ff;
  --red: #ff365c;
  --amber: #f8c35b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(51, 255, 138, 0.1), transparent 26rem),
    radial-gradient(circle at 80% 12%, rgba(53, 168, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #05070a 0%, #080b0f 52%, #05070a 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
.btn:disabled,
.banner-slot.disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.banner-slot.disabled {
  pointer-events: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #031008;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 26px rgba(51, 255, 138, 0.22);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
}

.brand-live {
  color: var(--green);
}

.mobile-brand {
  display: none;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button,
.mobile-nav button {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.nav button.active,
.mobile-nav button.active {
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
}

.nav svg,
.mobile-nav svg,
.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-panel {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 31, 42, 0.9), rgba(13, 19, 26, 0.9));
}

.sidebar-panel strong {
  display: block;
  font-size: 13px;
}

.sidebar-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

.api-status {
  position: relative;
  padding-left: 12px;
}

.api-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.api-status.live::before {
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.api-status.demo::before {
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}

.main {
  min-width: 0;
}

.admin-auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(51, 255, 138, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(53, 168, 255, 0.1), transparent 30rem),
    var(--bg);
}

.admin-topbar {
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.74);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-auth-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.admin-status {
  margin: 0 0 18px;
}

.login-card {
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(13, 19, 26, 0.86)),
    url("./assets/stream-hero-bg.png") center/cover;
  box-shadow: var(--shadow);
  padding: clamp(22px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 26px;
  align-items: center;
}

.login-card h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.96;
}

.login-card p {
  max-width: 560px;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
}

.login-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.7);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border-radius: 8px;
  padding: 0 14px 0 40px;
  outline: 0;
}

.search svg {
  position: absolute;
  left: 13px;
  top: 11px;
  color: var(--muted);
}

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #031008;
  border-color: transparent;
}

.btn.danger {
  background: rgba(255, 54, 92, 0.12);
  color: #ff8aa0;
  border-color: rgba(255, 54, 92, 0.26);
}

.content {
  padding: 28px;
}

.loading-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
  background-size: 180% 100%;
  animation: loadingSweep 1.1s linear infinite;
}

@keyframes loadingSweep {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

.mobile-nav {
  display: none;
  padding: 10px;
  gap: 7px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.86);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.player-stage {
  min-height: clamp(390px, 58vh, 500px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(51, 255, 138, 0.1), rgba(53, 168, 255, 0.05)),
    #030506;
  box-shadow: var(--shadow);
  position: relative;
}

.player-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 42%, rgba(51, 255, 138, 0.26), transparent 10rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.9)),
    url("./assets/stream-hero-bg.png") center/cover;
  opacity: 0.92;
  filter: saturate(0.94) contrast(1.08);
}

.player-scan {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 5px;
  opacity: 0.2;
}

.player-content {
  position: relative;
  min-height: clamp(390px, 58vh, 500px);
  padding: clamp(20px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status {
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid;
}

.status.live {
  color: #ffdbe2;
  background: rgba(255, 54, 92, 0.18);
  border-color: rgba(255, 54, 92, 0.45);
}

.status.soon {
  color: #fff0c7;
  background: rgba(248, 195, 91, 0.15);
  border-color: rgba(248, 195, 91, 0.36);
}

.status.ended {
  color: #a8b4bf;
  background: rgba(168, 180, 191, 0.12);
  border-color: rgba(168, 180, 191, 0.25);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.viewer-pill {
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--soft);
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
}

.hero-title {
  max-width: 720px;
}

.hero-title h1 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 0.98;
  font-weight: 900;
}

.hero-title p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.6;
}

.player-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
}

.play-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #031008;
  background: var(--green);
  display: grid;
  place-items: center;
}

.progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.progress span {
  display: block;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.side-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel,
.match-card,
.admin-card,
.event-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 19, 26, 0.84);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.panel {
  padding: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title h2,
.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.panel-title span,
.section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.banner-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.banner-strip.banner-position-sidebar {
  margin-bottom: 0;
  gap: 12px;
}

.banner-strip.banner-position-match_grid,
.banner-strip.banner-position-footer {
  margin-top: 18px;
}

.banner-slot {
  min-height: 74px;
  border: 1px solid rgba(51, 255, 138, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(51, 255, 138, 0.12), rgba(53, 168, 255, 0.08)),
    rgba(13, 19, 26, 0.92);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px;
}

.banner-position-hero_top .banner-slot {
  min-height: 96px;
  aspect-ratio: 1200 / 160;
}

.banner-position-player_above .banner-slot {
  min-height: 82px;
  aspect-ratio: 980 / 120;
}

.banner-position-sidebar .banner-slot {
  height: clamp(300px, 34vh, 380px);
  min-height: 0;
  align-items: flex-end;
}

.banner-position-match_grid .banner-slot {
  min-height: 140px;
  aspect-ratio: 640 / 180;
}

.banner-position-footer .banner-slot {
  min-height: 92px;
  aspect-ratio: 1200 / 140;
}

.banner-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
}

.banner-position-sidebar .banner-slot img {
  object-fit: cover;
}

.banner-fallback {
  font-weight: 900;
  line-height: 1.25;
  max-width: 620px;
}

.banner-slot small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.telegram-reserve-card {
  min-height: 160px;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(53, 168, 255, 0.28);
  border-radius: var(--radius);
  background: #06101b;
  color: var(--text);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.telegram-reserve-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.telegram-reserve-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.05), rgba(5, 8, 13, 0.88));
}

.telegram-reserve-card > div,
.telegram-reserve-card > .btn {
  position: relative;
  z-index: 1;
}

.telegram-reserve-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.telegram-reserve-card h2 {
  margin: 6px 0;
  font-size: 20px;
  line-height: 1.1;
}

.telegram-reserve-card p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.quick-list {
  display: grid;
  gap: 10px;
}

.quick-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.quick-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.quick-item > span > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.category-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  justify-content: flex-start;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  border-radius: 999px;
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.chip.active {
  color: #031008;
  background: var(--green);
  border-color: transparent;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 26px 0 14px;
}

.home-events-block {
  margin-top: 22px;
}

.home-events-head {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  gap: 14px;
}

.match-card {
  overflow: hidden;
}

.match-media {
  aspect-ratio: 16 / 9;
  padding: 12px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  background:
    linear-gradient(135deg, rgba(51, 255, 138, 0.14), rgba(53, 168, 255, 0.12)),
    #111923;
}

.match-body {
  padding: 14px;
}

.teams {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.28;
}

.meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.match-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.archive-item {
  grid-template-columns: 1fr auto;
}

.archive-item > button:first-child {
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}


.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.video-shell {
  aspect-ratio: 16 / 9;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #020304;
  box-shadow: var(--shadow);
  position: relative;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020304;
}

.video-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  display: none;
}

.video-overlay.show {
  display: block;
}

.video-overlay strong,
.video-overlay span {
  display: block;
}

.video-overlay span {
  color: var(--soft);
  margin-top: 5px;
  font-size: 13px;
}

.player-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

.chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.watch-meta {
  margin-top: 12px;
}

.watch-meta h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.watch-meta p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.comments {
  display: grid;
  gap: 10px;
}

.comments-panel {
  max-height: clamp(300px, 40vh, 390px);
  display: flex;
  flex-direction: column;
}

.comments-panel .comments {
  min-height: 0;
  flex: 1;
}

.comment-list {
  min-height: 0;
  max-height: clamp(110px, 18vh, 190px);
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.comment {
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border-radius: var(--radius);
}

.comment strong {
  display: block;
  font-size: 13px;
}

.comment span {
  display: block;
  margin-top: 5px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.comment-form input {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  padding: 0 12px;
}

.viewer-identity {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.viewer-identity input {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  padding: 0 12px;
}

.viewer-identity span {
  color: var(--soft);
  font-size: 13px;
}


.archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-card {
  padding: 16px;
}

.metric {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 900;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.admin-layout.wide {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.7fr 0.7fr;
  gap: 12px;
  padding: 13px 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 19, 26, 0.78);
}

.event-table .table-row {
  grid-template-columns: minmax(180px, 1.3fr) 0.45fr 0.55fr minmax(130px, 0.8fr) 0.5fr;
}

.table-row code {
  color: var(--soft);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row.header {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.035);
}

.copy-field {
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  margin-bottom: 10px;
}

.copy-field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 7px;
}

.copy-field code {
  display: block;
  color: var(--soft);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.obs-help {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(51, 255, 138, 0.16);
  border-radius: var(--radius);
  background: rgba(51, 255, 138, 0.055);
}

.obs-help strong {
  display: block;
  font-size: 13px;
}

.obs-help span {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.admin-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-form input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  padding: 0 12px;
  outline: 0;
}

.admin-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.admin-form input[type="file"] {
  height: auto;
  min-height: 40px;
  padding: 9px 12px;
}

.admin-form label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-form input:focus {
  border-color: rgba(51, 255, 138, 0.48);
  box-shadow: 0 0 0 3px rgba(51, 255, 138, 0.08);
}

.admin-form select:focus,
.admin-form textarea:focus {
  border-color: rgba(51, 255, 138, 0.48);
  box-shadow: 0 0 0 3px rgba(51, 255, 138, 0.08);
}

.admin-form p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 12px 14px;
  border: 1px solid rgba(51, 255, 138, 0.35);
  background: rgba(13, 19, 26, 0.94);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.banner-position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.banner-position,
.muted-empty {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.banner-position strong,
.banner-position span {
  display: block;
}

.banner-position span,
.muted-empty {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.empty-live {
  margin: 20px;
  padding: 28px;
}

.empty-live h1 {
  margin: 0 0 8px;
}

.empty-live p {
  margin: 0;
  color: var(--muted);
}

.banner-admin-row {
  grid-template-columns: 1fr auto;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-brand {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    position: sticky;
    top: 68px;
    z-index: 19;
  }

  .hero-grid,
  .watch-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-layout.wide {
    grid-template-columns: 1fr;
  }

  .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    height: auto;
    min-height: 64px;
    padding: 12px;
    flex-wrap: wrap;
  }

  .search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }

  .content {
    padding: 14px;
  }

  .admin-topbar {
    padding: 12px;
    flex-wrap: wrap;
  }

  .login-card {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .player-stage,
  .player-content,
  .watch-player {
    min-height: 450px;
  }

  .video-shell {
    min-height: auto;
  }

  .banner-position-hero_top .banner-slot,
  .banner-position-player_above .banner-slot,
  .banner-position-footer .banner-slot {
    min-height: 76px;
  }

  .banner-position-sidebar .banner-slot {
    height: 260px;
  }

  .telegram-reserve-card {
    min-height: 170px;
  }

  .player-content {
    padding: 18px;
  }

  .player-controls {
    grid-template-columns: auto 1fr;
  }

  .player-controls .viewer-pill {
    grid-column: 1 / -1;
  }

  .match-grid,
  .admin-grid,
  .archive-list,
  .banner-position-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .home-events-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-row {
    justify-content: flex-start;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .event-table .table-row {
    grid-template-columns: 1fr;
  }

  .table-row.header {
    display: none;
  }
}
