:root {
  --ink: #0b0d0c;
  --ink-2: #151917;
  --panel: #1d221f;
  --paper: #f1f2ed;
  --white: #ffffff;
  --muted: #aeb5ad;
  --line: rgba(255, 255, 255, 0.12);
  --green: #a7ee45;
  --green-dark: #4c7a16;
  --yellow: #ffd84f;
  --blue: #58b9ff;
  --red: #ff655c;
  --radius: 8px;
  --container: min(1440px, calc(100% - 48px));
  --font-body: "Manrope", Arial, sans-serif;
  --font-display: "Unbounded", "Arial Black", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: 78px;
  padding: 0 max(24px, calc((100% - 1440px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.88);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }

.brand-mark {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--green);
  border-radius: 44% 44% 42% 42%;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.14);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 13px;
  height: 13px;
  background: var(--green);
  border-radius: 50%;
  z-index: -1;
}

.brand-mark::before { left: 3px; }
.brand-mark::after { right: 3px; }
.brand-mark span { font-family: var(--font-display); font-size: 13px; font-weight: 800; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-family: var(--font-display); font-size: 18px; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { position: relative; color: #d3d8d3; font-size: 14px; font-weight: 600; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--green); transition: right .25s ease; }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
#openAdminButton, [data-open-admin] { display: none !important; }
.live-audience, .admin-online { display: inline-flex; align-items: center; gap: 7px; color: #d7dbd7; font-size: 13px; }
.live-audience > span:nth-child(2), .admin-online strong { color: var(--white); font-weight: 800; }
.presence-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(167, 238, 69, .11); animation: pulse-dot 2s infinite; }

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.icon-button:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
.icon-button svg { width: 18px; height: 18px; }
.icon-fallback { font-weight: 800; }
.lucide + .icon-fallback { display: none; }

.broadcast-section, .advertising-section { width: var(--container); margin: 0 auto; scroll-margin-top: 96px; }
.broadcast-section { padding: 68px 0 78px; min-height: calc(100vh - 78px); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 72px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 11px; line-height: 1.4; font-weight: 800; text-transform: uppercase; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--red); }
.section-heading h1, .section-heading h2, .partner-cta h2 {
  margin: 0;
  max-width: 980px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.05;
  text-transform: uppercase;
}
.section-heading h1 span, .section-heading h2 span { color: var(--green); }
.section-intro { max-width: 380px; margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.7; }

.broadcast-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 520px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.player-wrap { position: relative; min-height: 520px; overflow: hidden; background: #050605; }
.stream-player { width: 100%; height: 100%; min-height: 520px; border: 0; background: #000; display: none; }
.player-wrap.has-stream .stream-player { display: block; }
.player-wrap.has-stream .player-poster { display: none; }
.player-wrap.has-stream .player-toolbar { display: none; }

.player-poster { position: absolute; inset: 0; overflow: hidden; }
.player-poster > img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 48%; filter: saturate(.78) contrast(1.05); animation: poster-drift 18s ease-in-out infinite alternate; }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,5,.86) 0%, rgba(4,6,5,.42) 45%, rgba(4,6,5,.08) 78%), linear-gradient(0deg, rgba(4,6,5,.75) 0%, transparent 52%); }
.poster-content { position: absolute; left: 40px; bottom: 86px; max-width: 540px; z-index: 2; }
.poster-kicker { display: inline-block; margin-bottom: 16px; padding: 7px 10px; color: var(--ink); background: var(--yellow); border-radius: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.poster-content h2 { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 3.1vw, 44px); line-height: 1.08; text-transform: uppercase; }
.poster-content p { margin: 14px 0 0; color: #d5d9d4; font-size: 13px; }

.ball-orbit { position: absolute; right: 8%; top: 10%; width: 120px; height: 120px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; animation: orbit 9s linear infinite; }
.ball-orbit span { position: absolute; right: 6px; top: 4px; font-size: 30px; filter: grayscale(1) brightness(2); }

.player-toolbar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 14px 8px 20px; background: rgba(5,6,5,.9); border-top: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.player-state { display: flex; align-items: center; gap: 9px; color: #d3d7d2; font-size: 12px; font-weight: 600; }
.stream-state-dot { width: 8px; height: 8px; border-radius: 50%; background: #798079; }
.player-tools { display: flex; align-items: center; gap: 7px; }
.quality-control select { height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--white); background: #151815; font-size: 12px; font-weight: 700; cursor: pointer; }
.player-button { width: 38px; height: 38px; border-color: transparent; }

.match-panel { min-width: 0; padding: 28px; display: flex; flex-direction: column; background: var(--ink-2); border-left: 1px solid var(--line); }
.match-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-pill { padding: 6px 8px; color: var(--yellow); border: 1px solid rgba(255,216,79,.35); border-radius: 4px; }
.status-pill.live { color: var(--white); background: var(--red); border-color: var(--red); }
.match-info { margin: auto 0; }
.match-label { margin: 0 0 13px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.match-info h2 { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.2; text-transform: uppercase; }
.match-info > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.match-metrics { display: grid; grid-template-columns: 1fr 1fr; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.match-metrics div { display: flex; flex-direction: column; gap: 5px; }
.match-metrics div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.match-metrics strong { font-family: var(--font-display); font-size: 20px; color: var(--green); }
.match-metrics span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.capy-note { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.capy-avatar { flex: 0 0 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--green); border-radius: 50%; font-weight: 800; font-size: 10px; }
.capy-note p { margin: 0; color: #c9cec8; font-size: 11px; line-height: 1.5; }

.ticker { width: 100%; overflow: hidden; color: var(--ink); background: var(--green); transform: rotate(-1deg); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 30px; padding: 15px 0; animation: ticker 28s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-size: 13px; font-weight: 800; }
.ticker-track b { font-size: 14px; }

.advertising-section { padding: 72px 0 100px; }
.ad-heading { align-items: start; }
.ad-heading h2 { font-size: clamp(34px, 4.8vw, 68px); }
.ad-summary { max-width: 430px; padding-top: 28px; }
.ad-summary > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.ad-stats { display: flex; gap: 28px; margin-top: 24px; }
.ad-stats span { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.ad-stats strong { color: var(--white); font-family: var(--font-display); font-size: 24px; }

.ad-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 48px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.segmented-control { display: flex; gap: 5px; padding: 4px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 6px; }
.segmented-control button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.segmented-control button.active { color: var(--ink); background: var(--green); }
.slot-legend { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; }
.slot-legend span { display: inline-flex; align-items: center; gap: 7px; }
.slot-legend i { width: 8px; height: 8px; border-radius: 50%; }
.legend-free { background: transparent; border: 1px solid var(--green); }
.legend-occupied { background: var(--green); }

.ad-grid { display: block; }
.ad-grid-segment { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: 72px; gap: 10px; }
.ad-grid > .embedded-broadcast {
  width: 100%;
  min-height: 0;
  margin: 74px 0 22px;
  padding: 58px 0 0;
  border-top: 1px solid var(--line);
}
.ad-grid > .embedded-ticker {
  width: 100%;
  margin: 16px 0 62px;
  border-radius: 5px;
  transform: none;
}
.ad-slot { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 5px; animation: slot-in .45s ease both; }
.ad-slot.size-hero { grid-column: span 8; grid-row: span 3; }
.ad-slot.size-wide { grid-column: span 6; grid-row: span 2; }
.ad-slot.size-standard { grid-column: span 4; grid-row: span 2; }
.ad-slot.size-square { grid-column: span 3; grid-row: span 2; }
.ad-slot.size-small { grid-column: span 2; grid-row: span 2; }
.ad-slot[hidden] { display: none; }

.free-slot, .occupied-slot { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.free-slot { --slot-accent: var(--green); isolation: isolate; overflow: hidden; padding: 13px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; color: #d3d8d1; border: 1px dashed var(--slot-accent); background: #111713; cursor: pointer; text-align: left; transition: background .22s ease, border-color .22s ease, transform .22s ease; }
.ad-slot:nth-child(3n + 2) .free-slot { --slot-accent: var(--blue); background: #10171b; }
.ad-slot:nth-child(5n + 3) .free-slot { --slot-accent: var(--yellow); background: #18170f; }
.free-slot::before { content: ""; position: absolute; z-index: -1; right: -30px; bottom: -34px; width: 104px; height: 104px; border: 1px solid var(--slot-accent); border-radius: 50%; opacity: .15; }
.free-slot::after { content: ""; position: absolute; z-index: -1; left: -18px; top: 37%; width: 72px; height: 54px; border: 1px solid var(--slot-accent); opacity: .12; }
.free-slot > * { position: relative; z-index: 1; }
.free-slot:hover { background: #172019; border-color: var(--slot-accent); transform: translateY(-2px); }
.slot-number { color: var(--green); font-family: var(--font-display); font-size: 11px; }
.free-slot .slot-number, .free-slot .plus { color: var(--slot-accent); }
.free-slot-main { display: flex; flex-direction: column; gap: 4px; }
.free-slot-main strong { font-size: 12px; }
.free-slot-main small { color: var(--muted); font-size: 9px; }
.free-slot .plus { position: absolute; right: 12px; top: 10px; font-size: 20px; line-height: 1; }
.slot-format { max-width: calc(100% - 4px); display: flex; flex-direction: column; gap: 2px; color: #879087; }
.slot-format b { color: #cbd3ca; font-size: 8px; line-height: 1.2; font-weight: 800; }
.slot-format em { font-size: 7px; line-height: 1.2; font-style: normal; }
.size-small .free-slot { padding: 11px; }
.size-small .free-slot-main strong { font-size: 10px; }
.size-small .free-slot-main small { display: none; }
.size-small .slot-format b { font-size: 7px; }
.size-small .slot-format em { font-size: 6px; }

.occupied-slot { display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0; overflow: hidden; background-color: #273228; border: 1px solid rgba(23,32,25,.14); isolation: isolate; transition: transform .25s ease, filter .25s ease, box-shadow .25s ease; }
.occupied-slot:hover { transform: scale(1.015); filter: brightness(1.08); }
.occupied-media { min-width: 0; min-height: 0; padding: 10px; display: grid; place-items: center; overflow: hidden; }
.occupied-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.occupied-media-placeholder { width: 52px; height: 52px; display: grid; place-items: center; color: #173f31; background: rgba(255,255,255,.72); border: 2px solid rgba(255,255,255,.9); border-radius: 50%; font-family: var(--font-display); font-size: 15px; }
.occupied-slot .sponsor-copy { width: 100%; min-width: 0; min-height: 72px; padding: 10px 12px 11px; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(231,242,224,.72)); border-top: 1px solid rgba(255,255,255,.92); box-shadow: 0 -8px 24px rgba(22,47,32,.13), inset 0 1px 0 rgba(255,255,255,.8); backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25); }
.occupied-slot strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #17251b;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.18;
  text-transform: uppercase;
  paint-order: stroke fill;
  -webkit-text-stroke: .25px rgba(255,255,255,.9);
  text-shadow: 0 1px 0 rgba(255,255,255,.85);
}
.occupied-slot small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #3d4d41;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
  paint-order: stroke fill;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
}
.occupied-slot .slot-number { position: absolute; z-index: 2; right: 9px; top: 9px; padding: 4px 6px; color: var(--ink); background: var(--green); border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.18); }

.partner-cta { width: var(--container); margin: 10px auto 110px; padding: 42px 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-cta h2 { max-width: 760px; font-size: clamp(26px, 3.5vw, 50px); }

.primary-button, .secondary-button, .danger-button, .text-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.primary-button { color: var(--ink); background: var(--green); border: 1px solid var(--green); }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.primary-button svg, .secondary-button svg { width: 17px; height: 17px; }
.secondary-button { color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.2); }
.secondary-button:hover { background: rgba(255,255,255,.07); }
.danger-button { color: #ff8c86; background: rgba(255,101,92,.06); border: 1px solid rgba(255,101,92,.25); }
.text-button { min-height: 32px; padding: 0; color: var(--green); background: transparent; border: 0; }
.full-button { width: 100%; }
.compact-button { min-height: 34px; padding: 0 11px; font-size: 10px; }

.site-footer { width: var(--container); margin: 0 auto; padding: 32px 0 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: var(--muted); font-size: 10px; }
.photo-credit { text-align: right; }

dialog { color: var(--white); }
dialog::backdrop { background: rgba(3,5,4,.82); backdrop-filter: blur(8px); }
.modal { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: #151917; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.modal[open] { animation: modal-in .25s ease both; }
.modal-shell { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.compact-modal { padding: 30px; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.modal-header h2 { margin: 0; font-family: var(--font-display); font-size: 25px; text-transform: uppercase; }
.modal-header .eyebrow { margin-bottom: 8px; }
.close-button { flex: 0 0 38px; width: 38px; height: 38px; }
.modal-description { margin: -2px 0 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.banner-price-note { padding: 14px 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; color: #183324; background: linear-gradient(135deg, rgba(167,238,69,.25), rgba(255,216,79,.24)); border: 1px solid rgba(79,133,25,.28); border-radius: 8px; }
.banner-price-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: #4f8519; border-radius: 50%; }
.banner-price-icon svg { width: 22px; height: 22px; }
.banner-price-note div { min-width: 0; }
.banner-price-note small { display: block; color: #617052; font-size: 11px !important; font-weight: 800; text-transform: uppercase; }
.banner-price-note strong { display: block; margin-top: 3px; font-family: var(--font-display); font-size: 17px; line-height: 1.3; }
.banner-price-note p { margin: 5px 0 0; color: #5d6957; font-size: 11px; line-height: 1.45; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .slot-picker legend { color: #cbd0ca; font-size: 11px; font-weight: 700; }
.field b, .slot-picker b { color: var(--green); }
.field input, .field textarea, .field select, .panel-toolbar select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--white);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 5px;
  outline: none;
  resize: vertical;
}
.field textarea { min-height: 86px; }
.field-with-counter { position: relative; }
.field-with-counter > span { display: flex; align-items: baseline; gap: 5px; }
.field-with-counter > span small { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 500; }
.field-with-counter > em { align-self: flex-end; margin-top: -4px; color: var(--muted); font-size: 9px; font-style: normal; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(167,238,69,.08); }
.field input::placeholder, .field textarea::placeholder { color: #707770; }
.slot-picker { margin: 0; padding: 0; border: 0; }
.slot-picker legend { margin-bottom: 10px; }
.selected-slots { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.selected-slot { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: var(--ink); background: var(--green); border-radius: 4px; font-size: 10px; font-weight: 800; }
.selected-slot button { padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 14px; line-height: 1; }
.slot-picker-grid { max-height: 180px; margin-top: 10px; padding: 10px; grid-template-columns: repeat(8, 1fr); gap: 6px; overflow-y: auto; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 5px; }
.slot-picker-grid:not([hidden]) { display: grid; }
.slot-choice input { position: absolute; opacity: 0; pointer-events: none; }
.slot-choice span { height: 34px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; font-size: 10px; font-weight: 800; cursor: pointer; }
.slot-choice input:checked + span { color: var(--ink); background: var(--green); border-color: var(--green); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.consent-row input { accent-color: var(--green); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.telegram-button, .payment-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border-radius: 5px; cursor: pointer; font-size: 11px; font-weight: 800; transition: transform .2s ease, filter .2s ease; }
.telegram-button { color: #fff; background: #278bdc; border: 1px solid #278bdc; }
.payment-button { color: #fff; background: #173f31; border: 1px solid #173f31; }
.telegram-button:hover, .payment-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.telegram-button svg, .payment-button svg { width: 16px; height: 16px; }
.payment-note { margin: -8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: right; }
.creative-upload-field { min-height: 92px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px dashed rgba(255,255,255,.2); border-radius: 7px; cursor: pointer; }
.creative-upload-field:hover { border-color: var(--green); }
.creative-upload-field input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.creative-upload-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #4f8519; background: rgba(167,238,69,.15); border-radius: 7px; }
.creative-upload-icon svg { width: 21px; height: 21px; }
.creative-upload-copy { display: flex; flex-direction: column; gap: 5px; }
.creative-upload-copy strong { font-size: 11px; }
.creative-upload-copy b { color: #4f8519; }
.creative-upload-copy small { max-width: 420px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.creative-file-name { max-width: 130px; overflow: hidden; color: #667267; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.payment-method-picker { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; }
.payment-method-picker legend { grid-column: 1 / -1; margin-bottom: 8px; color: #374239; font-size: 11px; font-weight: 700; }
.payment-method-picker legend b { color: #4f8519; }
.payment-method-card { position: relative; }
.payment-method-card input { position: absolute; opacity: 0; pointer-events: none; }
.payment-method-card > span { min-height: 86px; padding: 14px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-content: center; align-items: center; gap: 3px 10px; color: #263128; background: #f5f8f2; border: 1px solid rgba(23,32,25,.13); border-radius: 8px; cursor: pointer; }
.payment-method-card svg { grid-row: 1 / span 2; width: 23px; height: 23px; color: #4f8519; }
.payment-method-card strong { font-size: 11px; }
.payment-method-card small { color: #69756a; font-size: 8px; }
.payment-method-card input:checked + span { background: #e6f3d2; border-color: #6da825; box-shadow: 0 0 0 3px rgba(109,168,37,.12); }
.payment-method-card input:disabled + span { opacity: .52; cursor: not-allowed; filter: grayscale(.45); }
.payment-details { min-height: 100px; padding: 16px; display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; color: #657066; background: #edf1e9; border: 1px solid rgba(23,32,25,.11); border-radius: 8px; }
.payment-details.active { color: #fff; background: linear-gradient(135deg, #214b39, #153127); border-color: transparent; }
.payment-details > svg { width: 24px; color: #5e951f; }
.payment-details.active > svg { color: #b7f05e; }
.payment-details strong { font-size: 11px; }
.payment-details p { margin: 7px 0 0; font-size: 10px; line-height: 1.65; white-space: pre-wrap; }
.payment-confirm-row { padding: 12px; background: #f5f8f2; border-radius: 6px; }
.form-error { min-height: 18px; margin: -4px 0; color: #ff8c86; font-size: 11px; }
.prototype-note { margin: 0; color: #777f77; font-size: 9px; line-height: 1.5; text-align: center; }

.admin-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: #0e1110; }
.admin-dialog[open] { animation: fade-in .18s ease both; }
.admin-app { height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); overflow: hidden; }
.admin-sidebar { min-width: 0; padding: 22px 14px 16px; display: flex; flex-direction: column; background: #151917; border-right: 1px solid var(--line); }
.admin-brand { min-height: 54px; padding: 0 10px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.admin-brand .brand-mark { flex-basis: 37px; width: 37px; height: 34px; }
.admin-brand > div { display: flex; flex-direction: column; gap: 5px; }
.admin-brand strong { font-family: var(--font-display); font-size: 14px; }
.admin-brand small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.admin-nav { margin-top: 18px; display: flex; flex-direction: column; gap: 5px; }
.admin-nav button, .admin-sidebar-footer button { width: 100%; min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 11px; color: #aeb5ae; background: transparent; border: 0; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 700; text-align: left; }
.admin-nav button:hover, .admin-sidebar-footer button:hover { color: var(--white); background: rgba(255,255,255,.05); }
.admin-nav button.active { color: var(--ink); background: var(--green); }
.admin-nav svg, .admin-sidebar-footer svg { width: 17px; height: 17px; }
.admin-nav b { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.07); border-radius: 4px; font-size: 9px; }
.admin-nav button.active b { color: var(--ink); background: rgba(0,0,0,.13); }
.admin-sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

.admin-main { min-width: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: 78px minmax(0, 1fr); }
.admin-header { padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #111412; }
.admin-header p { margin: 0 0 5px; color: #727a73; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-header h2 { margin: 0; font-family: var(--font-display); font-size: 20px; text-transform: uppercase; }
.admin-header-actions { display: flex; align-items: center; gap: 18px; }
.admin-online { padding-right: 18px; border-right: 1px solid var(--line); }
.admin-content { min-width: 0; overflow-y: auto; padding: 26px 28px 40px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fade-up .25s ease both; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-grid article { min-width: 0; min-height: 170px; padding: 18px; display: flex; flex-direction: column; background: #171b19; border: 1px solid var(--line); border-radius: 7px; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 5px; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-icon.green { color: var(--green); background: rgba(167,238,69,.09); }
.metric-icon.yellow { color: var(--yellow); background: rgba(255,216,79,.09); }
.metric-icon.blue { color: var(--blue); background: rgba(88,185,255,.09); }
.metric-icon.red { color: var(--red); background: rgba(255,101,92,.09); }
.metric-grid article p { margin: 17px 0 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.metric-grid article > strong { margin-top: auto; font-family: var(--font-display); font-size: 30px; }
.metric-grid .text-metric { font-size: 17px; line-height: 1.2; }
.metric-grid article small { margin-top: 5px; color: #697069; font-size: 8px; }

.overview-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: 14px; margin-top: 14px; }
.admin-section-block { min-width: 0; padding: 20px; background: #171b19; border: 1px solid var(--line); border-radius: 7px; }
.block-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.block-heading p { margin: 0 0 4px; color: #717971; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.block-heading h3 { margin: 0; font-size: 14px; }
.recent-list { min-height: 230px; }
.empty-state { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 8px; color: #697069; text-align: center; }
.empty-state svg { width: 28px; height: 28px; }
.empty-state strong { color: #aeb5ae; font-size: 12px; }
.empty-state p { margin: 0; font-size: 9px; }
.recent-item { min-width: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: 0; }
.initial-avatar { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); background: var(--green); border-radius: 50%; font-size: 11px; font-weight: 800; }
.recent-item div { min-width: 0; }
.recent-item strong, .recent-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item strong { font-size: 11px; }
.recent-item span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.recent-item time { color: #697069; font-size: 8px; }
.quick-actions { padding-top: 8px; }
.quick-actions button { width: 100%; min-height: 66px; padding: 0 4px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 10px; color: var(--muted); background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.quick-actions button:last-child { border-bottom: 0; }
.quick-actions > button > svg:first-child { width: 32px; height: 32px; padding: 8px; color: var(--green); background: rgba(167,238,69,.08); border-radius: 5px; }
.quick-actions > button > svg:last-child { width: 15px; height: 15px; }
.quick-actions span { display: flex; flex-direction: column; gap: 4px; }
.quick-actions strong { color: var(--white); font-size: 11px; }
.quick-actions small { color: #717971; font-size: 8px; }

.panel-toolbar { min-height: 58px; margin-bottom: 12px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; background: #171b19; border: 1px solid var(--line); border-radius: 7px; }
.search-box { min-width: 220px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 11px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 5px; }
.search-box svg { width: 15px; color: #6f776f; }
.search-box input { width: 100%; height: 38px; padding: 0; color: var(--white); background: transparent; border: 0; outline: 0; font-size: 11px; }
.panel-toolbar select { width: auto; min-width: 150px; min-height: 40px; padding: 0 30px 0 10px; font-size: 10px; }

.banner-management { min-height: calc(100vh - 190px); display: grid; grid-template-columns: minmax(360px, .95fr) minmax(330px, .7fr); gap: 12px; }
.banner-list { min-width: 0; background: #171b19; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.banner-list-header, .banner-row { display: grid; grid-template-columns: 56px minmax(120px, 1fr) 82px 86px; align-items: center; gap: 10px; }
.banner-list-header { min-height: 42px; padding: 0 14px; color: #697069; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.banner-row { width: 100%; min-height: 62px; padding: 8px 14px; color: var(--white); background: transparent; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; }
.banner-row:hover, .banner-row.active { background: rgba(167,238,69,.055); }
.banner-row:last-child { border-bottom: 0; }
.banner-row > strong { color: var(--green); font-family: var(--font-display); font-size: 10px; }
.banner-row-name { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.banner-row-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.banner-row-name small, .banner-row > span { color: var(--muted); font-size: 8px; }
.table-status { width: fit-content; padding: 5px 7px; border-radius: 4px; font-size: 8px; font-weight: 800; }
.table-status.free { color: var(--muted); background: rgba(255,255,255,.05); }
.table-status.occupied { color: var(--green); background: rgba(167,238,69,.08); }

.banner-editor { position: sticky; top: 0; align-self: start; min-height: 500px; max-height: calc(100vh - 130px); padding: 20px; overflow-y: auto; background: #171b19; border: 1px solid var(--line); border-radius: 7px; }
.editor-empty { min-height: 460px; display: grid; align-content: center; justify-items: center; gap: 10px; color: #6f766f; text-align: center; }
.editor-empty svg { width: 34px; height: 34px; }
.editor-empty h3 { margin: 5px 0 0; color: #bec4bd; font-size: 13px; }
.editor-empty p { margin: 0; font-size: 9px; }
.editor-fields { display: flex; flex-direction: column; gap: 14px; }
.editor-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.editor-title p { margin: 0 0 4px; color: #727972; font-size: 8px; text-transform: uppercase; }
.editor-title h3 { margin: 0; font-family: var(--font-display); font-size: 15px; }
.editor-title > span { padding: 5px 7px; color: var(--muted); background: rgba(255,255,255,.05); border-radius: 4px; font-size: 8px; }
.banner-preview { aspect-ratio: 27 / 20; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: 0; overflow: hidden; color: #fff; background-color: #0f1210; border: 1px dashed var(--line); border-radius: 7px; font-size: 9px; }
.banner-preview.background-clear { background-color: transparent; }
.banner-preview-media { min-width: 0; min-height: 0; padding: 14px; display: grid; place-items: center; overflow: hidden; }
.banner-preview-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.banner-preview-placeholder { width: 58px; height: 58px; display: grid; place-items: center; color: #173f31; background: rgba(255,255,255,.72); border-radius: 50%; font-family: var(--font-display); font-size: 16px; }
.banner-preview-copy { width: 100%; min-width: 0; min-height: 76px; padding: 11px 13px; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(231,242,224,.72)); border-top: 1px solid rgba(255,255,255,.92); box-shadow: 0 -8px 24px rgba(22,47,32,.13), inset 0 1px 0 rgba(255,255,255,.8); backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25); }
.banner-preview-copy strong { color: #17251b; font-family: var(--font-display); font-size: 11px; text-transform: uppercase; text-shadow: 0 1px 0 rgba(255,255,255,.85); }
.banner-preview-copy small { color: #3d4d41; text-shadow: 0 1px 0 rgba(255,255,255,.75); }
.upload-field { min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border: 1px dashed rgba(255,255,255,.18); border-radius: 5px; cursor: pointer; }
.upload-field:hover { border-color: var(--green); }
.upload-field input { display: none; }
.upload-field svg { width: 20px; color: var(--green); }
.upload-field > span { display: flex; flex-direction: column; gap: 3px; }
.upload-field strong { font-size: 10px; }
.upload-field small { color: #747c74; font-size: 8px; }
.toggle-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.toggle-row > span { display: flex; flex-direction: column; gap: 4px; }
.toggle-row strong { font-size: 10px; }
.toggle-row small { color: #747b74; font-size: 8px; }
.toggle-row input { width: 38px; height: 21px; accent-color: var(--green); }
.banner-background-controls { display: grid; gap: 10px; padding: 12px; background: #f5f8f2; border: 1px solid rgba(23,32,25,.1); border-radius: 7px; }
.banner-background-controls .toggle-row { padding-bottom: 10px; border-bottom: 1px solid rgba(23,32,25,.1); }
.color-picker-wrap { min-height: 46px; padding: 7px 10px; display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid rgba(23,32,25,.14); border-radius: 5px; }
.color-picker-wrap input[type="color"] { flex: 0 0 54px; width: 54px; height: 32px; min-height: 32px; padding: 2px; cursor: pointer; border-radius: 4px; }
.color-picker-wrap input[type="color"]:disabled { opacity: .4; cursor: not-allowed; }
.editor-actions .primary-button:disabled { opacity: .62; cursor: wait; }
.color-picker-wrap small { color: #69756a; font-size: 11px !important; }
.editor-actions { display: flex; justify-content: space-between; gap: 10px; padding-top: 3px; }

.request-list { display: flex; flex-direction: column; gap: 8px; }
.request-card { min-width: 0; padding: 17px; display: grid; grid-template-columns: minmax(150px, .7fr) minmax(160px, .8fr) minmax(250px, 1.35fr) minmax(120px, .55fr) 120px; align-items: center; gap: 16px; background: #171b19; border: 1px solid var(--line); border-radius: 7px; }
.request-person { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; }
.request-person .initial-avatar { width: 36px; height: 36px; }
.request-person div, .request-contact { min-width: 0; }
.request-person strong, .request-person span, .request-contact span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-person strong { font-size: 11px; }
.request-person span, .request-contact span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.request-contact strong { font-size: 9px; }
.request-target-link { max-width: 100%; margin-top: 7px; display: flex; align-items: center; gap: 5px; color: #1475ba; font-size: 9px; font-weight: 700; }
.request-target-link svg { flex: 0 0 13px; width: 13px; }
.request-target-link span { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-target-missing { margin-top: 7px; color: #8a948a; font-size: 9px; }
.submission-badge { width: fit-content; margin-top: 6px; padding: 4px 6px; border-radius: 3px; font-size: 7px; text-transform: uppercase; }
.submission-badge.telegram { color: #1475ba; background: rgba(39,139,220,.13); }
.submission-badge.payment { color: #4f8519; background: rgba(167,238,69,.16); }
.request-creative { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 10px; }
.request-creative img, .request-creative-empty { width: 58px; height: 48px; border-radius: 5px; object-fit: cover; background: #edf2e9; }
.request-creative-empty { display: grid; place-items: center; color: #7b867c; }
.request-creative-empty svg { width: 18px; }
.request-creative > div { min-width: 0; }
.request-creative strong, .request-creative span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-creative strong { font-size: 9px; }
.request-creative span { margin-top: 5px; color: var(--muted); font-size: 8px; }
.download-button { width: fit-content; margin-top: 7px; display: inline-flex; align-items: center; gap: 5px; color: #1475ba; font-size: 8px; font-weight: 800; }
.download-button svg { width: 13px; height: 13px; }
.request-payment { grid-column: 1 / -1; min-height: 58px; padding: 10px 12px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; align-items: center; gap: 11px; border-radius: 6px; }
.request-payment.pending { color: #634f0b; background: #fff7d5; border: 1px solid rgba(138,106,0,.16); }
.request-payment.confirmed { color: #2f6412; background: #eaf6da; border: 1px solid rgba(79,133,25,.18); }
.payment-state-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.65); }
.payment-state-icon svg { width: 17px; }
.request-payment > div { min-width: 0; }
.request-payment > div strong, .request-payment > div small { display: block; }
.request-payment > div strong { font-size: 10px; }
.request-payment > div small { margin-top: 4px; font-size: 8px; }
.request-payment .download-button { margin: 0; padding: 9px 10px; color: #173f31; background: rgba(255,255,255,.68); border-radius: 4px; }
.confirm-payment-button { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; color: #fff; background: #4f8519; border: 0; border-radius: 4px; cursor: pointer; font-size: 8px; font-weight: 800; }
.confirm-payment-button svg { width: 14px; }
.request-publish-action { grid-column: 1 / -1; min-height: 60px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #e4f0f5; border: 1px solid rgba(20,117,186,.14); border-radius: 6px; }
.request-publish-action > div { min-width: 0; }
.request-publish-action strong, .request-publish-action small { display: block; }
.request-publish-action strong { color: #175477; font-size: 12px; }
.request-publish-action small { margin-top: 4px; color: #557381; }
.request-publish-action button { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; color: #fff; background: #1475ba; border: 0; border-radius: 4px; cursor: pointer; font-size: 10px; font-weight: 800; white-space: nowrap; }
.request-publish-action button svg { width: 15px; }

.payment-settings-admin { padding: 24px; display: flex; flex-direction: column; gap: 20px; background: #fff; border: 1px solid rgba(23,32,25,.1); border-radius: 8px; box-shadow: 0 5px 18px rgba(31,47,32,.035); }
.settings-status { padding: 6px 8px; color: #4f8519; background: #eaf5da; border-radius: 4px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.payment-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-settings-grid > section { padding: 18px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 14px; background: #f5f8f2; border: 1px solid rgba(23,32,25,.1); border-radius: 7px; }
.payment-settings-grid > section > div p { margin: 0 0 4px; color: #768176; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.payment-settings-grid > section > div h3 { margin: 0; font-size: 13px; }
.payment-settings-grid .field { grid-column: 1 / -1; }
.payment-settings-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; }
.payment-settings-icon.card { color: #1475ba; background: rgba(39,139,220,.12); }
.payment-settings-icon.crypto { color: #8a6500; background: rgba(255,216,79,.22); }
.payment-settings-icon svg { width: 19px; }
.request-slots { display: flex; flex-wrap: wrap; gap: 5px; }
.request-slots span { padding: 5px 6px; color: var(--green); background: rgba(167,238,69,.07); border-radius: 3px; font-size: 8px; font-weight: 800; }
.request-card select { min-height: 36px; padding: 0 8px; color: var(--white); background: #202522; border: 1px solid var(--line); border-radius: 4px; font-size: 9px; }

.stream-admin-layout { display: grid; grid-template-columns: minmax(400px, 1fr) minmax(320px, .7fr); gap: 14px; }
.stream-settings, .stream-preview-admin { padding: 22px; background: #171b19; border: 1px solid var(--line); border-radius: 7px; }
.stream-settings { display: flex; flex-direction: column; gap: 16px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { margin: -3px 0 0; display: flex; align-items: flex-start; gap: 8px; color: #747b74; font-size: 9px; line-height: 1.5; }
.field-hint svg { flex: 0 0 14px; width: 14px; margin-top: 1px; color: var(--green); }
.stream-preview-admin > p { margin: 0 0 12px; color: #777f77; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.mini-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #080a09; }
.mini-player::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent 70%); }
.mini-player img { width: 100%; height: 100%; object-fit: cover; }
.mini-player > span { position: absolute; z-index: 2; left: 11px; top: 11px; padding: 5px 7px; color: var(--ink); background: var(--yellow); border-radius: 3px; font-size: 7px; font-weight: 800; }
.mini-player > div { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.mini-player strong { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; }
.mini-player small { color: #cbd0ca; font-size: 8px; }
.stream-checklist { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.stream-checklist div { display: flex; align-items: center; gap: 9px; color: #888f88; font-size: 9px; }
.stream-checklist svg { width: 16px; height: 16px; }
.stream-checklist .done { color: #bec4bd; }
.stream-checklist .done svg { color: var(--green); }

.toast-region { position: fixed; z-index: 10000; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.admin-toast-region { z-index: 20; }
.toast { min-width: 270px; max-width: 380px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; color: var(--ink); background: var(--green); border-radius: 6px; box-shadow: 0 14px 50px rgba(0,0,0,.35); animation: toast-in .25s ease both; }
.toast.error { color: var(--white); background: var(--red); }
.toast svg { width: 17px; }
.toast span { font-size: 11px; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Light theme */
body {
  color: #172019;
  background:
    radial-gradient(circle at 8% 2%, rgba(167, 238, 69, .3), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(88, 185, 255, .18), transparent 30rem),
    linear-gradient(180deg, #eef2e8 0%, #dfe7d8 100%);
}

.page-noise { opacity: .018; mix-blend-mode: multiply; }
.site-header { border-color: rgba(23, 56, 43, .15); background: rgba(249, 245, 229, .92); box-shadow: 0 8px 30px rgba(31, 47, 32, .08); }
.main-nav a, .live-audience, .admin-online { color: #59655a; }
.live-audience > span:nth-child(2), .admin-online strong { color: #172019; }
.icon-button { color: #172019; background: #fff; border-color: rgba(23, 32, 25, .14); box-shadow: 0 4px 14px rgba(31, 47, 32, .05); }
.icon-button:hover { background: #edf4e8; border-color: rgba(76, 122, 22, .28); }
.eyebrow, .section-heading h1 span, .section-heading h2 span, .match-label { color: #4f8519; }
.section-intro, .ad-summary > p, .ad-stats span, .slot-legend, .site-footer p { color: #687468; }
.ad-stats strong { color: #172019; }
.broadcast-layout { overflow: hidden; border: 1px solid rgba(23, 32, 25, .12); border-radius: 12px; box-shadow: 0 22px 60px rgba(37, 55, 39, .09); }
.match-panel { color: #fff; background: linear-gradient(160deg, #214b39 0%, #132f26 100%); border-color: rgba(255, 255, 255, .12); }
.match-topline, .match-info > p:last-child, .match-metrics span { color: #bdcdc2; }
.match-info h2 { color: #fff; }
.match-metrics { border-color: rgba(255, 255, 255, .14); }
.match-metrics div + div { border-color: rgba(255, 255, 255, .14); }
.match-metrics strong { color: #b7f05e; }
.capy-note p { color: #d5e0d8; }
.status-pill { color: #ffe782; background: rgba(255, 216, 79, .1); border-color: rgba(255, 216, 79, .4); }
.ticker { background: #9bdb43; }
.advertising-section { padding-bottom: 72px; }
.ad-heading { padding: 34px; border: 1px solid rgba(23, 56, 43, .1); border-radius: 16px; background: linear-gradient(125deg, rgba(230, 242, 198, .92) 0%, rgba(230, 242, 198, .92) 48%, rgba(207, 229, 237, .95) 100%); box-shadow: 0 16px 42px rgba(31, 47, 32, .08); }
.ad-toolbar { border-color: rgba(23, 32, 25, .11); }
.segmented-control { background: #cbd7c4; border-color: rgba(23, 32, 25, .12); }
.segmented-control button { color: #657165; }
.segmented-control button.active { color: #172019; background: #9bdb43; box-shadow: 0 3px 10px rgba(76, 122, 22, .16); }
.legend-free { border-color: #5b941f; }
.legend-occupied { background: #5b941f; }

/* Uniform advertising grid: every card follows the same rhythm. */
.ad-grid-segment { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; }
.ad-slot,
.ad-slot.size-hero,
.ad-slot.size-wide,
.ad-slot.size-standard,
.ad-slot.size-square,
.ad-slot.size-small { grid-column: span 1; grid-row: span 1; aspect-ratio: 1.35 / 1; border-radius: 8px; }
.free-slot { padding: 14px; color: #243027; background: #edf3df; border-color: color-mix(in srgb, var(--slot-accent) 75%, #667266); box-shadow: inset 0 0 0 1px rgba(23, 32, 25, .02); }
.ad-slot:nth-child(3n + 2) .free-slot { background: #d9edf4; }
.ad-slot:nth-child(5n + 3) .free-slot { background: #f6e7b3; }
.free-slot:hover { background: #dcebc9; box-shadow: 0 10px 24px rgba(37, 55, 39, .14); }
.free-slot-main small { color: #667267; }
.slot-format { color: #778278; }
.slot-format b { color: #445046; }
.size-small .free-slot { padding: 14px; }
.size-small .free-slot-main strong { font-size: 12px; }
.size-small .free-slot-main small { display: block; }
.size-small .slot-format b { font-size: 8px; }
.size-small .slot-format em { font-size: 7px; }
.occupied-slot { box-shadow: inset 0 0 0 1px rgba(23, 32, 25, .08); }
.ad-grid > .embedded-broadcast { margin: 48px 0 16px; padding-top: 48px; border-color: rgba(23, 32, 25, .11); }
.ad-grid > .embedded-ticker { margin: 8px 0 48px; }
.partner-cta { margin-bottom: 72px; padding: 42px; color: #fff; background: linear-gradient(120deg, #c95f4d, #e58059); border: 0; border-radius: 16px; box-shadow: 0 18px 44px rgba(104, 55, 43, .16); }
.partner-cta .eyebrow { color: #ffe985; }
.partner-cta .primary-button { color: #173125; background: #fff4c7; border-color: #fff4c7; }
.secondary-button { color: #172019; border-color: rgba(23, 32, 25, .18); }
.secondary-button:hover { background: #e9eee5; }
.site-footer { border-color: rgba(23, 32, 25, .14); }

dialog { color: #172019; }
dialog::backdrop { background: rgba(22, 29, 23, .42); }
.modal { background: #fff; border-color: rgba(23, 32, 25, .12); box-shadow: 0 30px 90px rgba(31, 47, 32, .2); }
.modal-description, .consent-row { color: #667267; }
.creative-upload-field { background: #f5f8f2; border-color: rgba(23, 32, 25, .2); }
.creative-upload-copy small, .field-with-counter > span small, .field-with-counter > em, .payment-note { color: #69756a; }
.field > span, .slot-picker legend { color: #374239; }
.field input, .field textarea, .field select, .panel-toolbar select { color: #172019; background: #f8faf6; border-color: rgba(23, 32, 25, .14); }
.field input::placeholder, .field textarea::placeholder { color: #929b92; }
.slot-picker-grid { background: #f5f8f2; border-color: rgba(23, 32, 25, .11); }
.slot-choice span { color: #637064; border-color: rgba(23, 32, 25, .14); }
.prototype-note { color: #7b857c; }

.admin-dialog { color: #172019; background: #dfe7d8; }
.admin-sidebar { background: #fff; border-color: rgba(23, 32, 25, .1); }
.admin-nav button, .admin-sidebar-footer button { color: #5f6b60; }
.admin-nav button:hover, .admin-sidebar-footer button:hover { color: #172019; background: #eef3e9; }
.admin-nav button.active { color: #172019; background: #9bdb43; }
.admin-nav b { color: #5e695f; background: #edf1e9; }
.admin-header { background: rgba(255,255,255,.88); border-color: rgba(23, 32, 25, .1); }
.admin-header p, .block-heading p, .editor-title p { color: #758076; }
.admin-content { background: #dfe7d8; }
.metric-grid article, .admin-section-block, .panel-toolbar, .banner-list, .banner-editor, .request-card, .stream-settings, .stream-preview-admin { background: #fff; border-color: rgba(23, 32, 25, .1); box-shadow: 0 5px 18px rgba(31, 47, 32, .035); }
.metric-grid article small, .empty-state, .empty-state p, .recent-item time, .quick-actions small, .editor-empty, .upload-field small, .toggle-row small, .field-hint, .stream-preview-admin > p { color: #778278; }
.empty-state strong, .editor-empty h3, .quick-actions strong { color: #263128; }
.recent-item, .quick-actions button, .block-heading, .banner-list-header, .banner-row { border-color: rgba(23, 32, 25, .09); }
.quick-actions button { color: #657066; }
.search-box { background: #f5f8f2; border-color: rgba(23, 32, 25, .1); }
.search-box input, .banner-row { color: #172019; }
.banner-list-header { color: #778278; background: #f6f8f3; }
.banner-row:hover, .banner-row.active { background: rgba(155, 219, 67, .12); }
.banner-row-name small, .banner-row > span { color: #6f7a70; }
.table-status.free, .editor-title > span { color: #687469; background: #eef2ea; }
.table-status.occupied { color: #477916; background: rgba(155, 219, 67, .18); }
.banner-preview { background-color: #edf2e9; border-color: rgba(23, 32, 25, .14); }
.upload-field { border-color: rgba(23, 32, 25, .18); }
.request-person span, .request-contact span { color: #6f7a70; }
.request-card select { color: #172019; background: #f4f7f1; border-color: rgba(23, 32, 25, .13); }
.stream-checklist div, .stream-checklist .done { color: #536054; }

/* Readable supporting typography */
small { font-size: 11px !important; line-height: 1.45; }
.eyebrow { font-size: 12px; }
.main-nav a { font-size: 15px; }
.live-audience, .admin-online { font-size: 14px; }
.poster-kicker { font-size: 11px; }
.poster-content p { font-size: 14px; line-height: 1.55; }
.player-state { font-size: 13px; }
.quality-control select { font-size: 13px; }
.match-topline { font-size: 12px; }
.match-label { font-size: 12px; }
.match-info > p:last-child { font-size: 14px; }
.match-metrics span { font-size: 11px; }
.capy-note p { font-size: 12px; }
.ad-stats span, .slot-legend { font-size: 12px; }
.free-slot-main strong, .size-small .free-slot-main strong { font-size: 13px; }
.free-slot-main small { font-size: 11px !important; }
.slot-format b, .size-small .slot-format b { font-size: 10px; }
.slot-format em, .size-small .slot-format em { font-size: 10px; }
.occupied-slot strong { font-size: 14px; }
.site-footer p { font-size: 12px; }
.modal-description { font-size: 13px; }
.field > span, .slot-picker legend, .payment-method-picker legend { font-size: 13px; }
.field input, .field textarea, .field select, .panel-toolbar select { font-size: 13px; }
.selected-slot, .slot-choice span { font-size: 11px; }
.consent-row { font-size: 12px; }
.field-with-counter > span small, .field-with-counter > em, .payment-note, .prototype-note { font-size: 11px !important; }
.creative-upload-copy strong { font-size: 13px; }
.creative-upload-copy small, .creative-file-name { font-size: 11px !important; }
.telegram-button, .payment-button { font-size: 13px; }
.payment-method-card strong { font-size: 13px; }
.payment-method-card small { font-size: 11px !important; }
.payment-details strong { font-size: 13px; }
.payment-details p { font-size: 12px; }
.admin-brand small { font-size: 10px !important; }
.admin-nav button, .admin-sidebar-footer button { font-size: 13px; }
.admin-nav b { font-size: 10px; }
.admin-header p { font-size: 11px; }
.metric-grid article p { font-size: 12px; }
.metric-grid article small { font-size: 11px !important; }
.block-heading p, .payment-settings-grid > section > div p { font-size: 10px; }
.empty-state strong { font-size: 13px; }
.empty-state p { font-size: 11px; }
.recent-item strong { font-size: 12px; }
.recent-item span { font-size: 11px; }
.recent-item time { font-size: 10px; }
.quick-actions strong { font-size: 12px; }
.quick-actions small { font-size: 11px !important; }
.search-box input { font-size: 13px; }
.panel-toolbar select { font-size: 12px; }
.banner-list-header { font-size: 10px; }
.banner-row > strong, .banner-row-name strong { font-size: 11px; }
.banner-row-name small, .banner-row > span, .table-status { font-size: 10px !important; }
.editor-title p { font-size: 10px; }
.editor-title > span { font-size: 10px; }
.banner-preview, .upload-field small, .toggle-row small { font-size: 11px !important; }
.upload-field strong, .toggle-row strong { font-size: 12px; }
.request-person strong { font-size: 12px; }
.request-person span, .request-contact span { font-size: 10px; }
.request-contact strong, .request-creative strong { font-size: 11px; }
.request-creative span, .request-slots span, .submission-badge { font-size: 10px; }
.request-target-link, .request-target-missing { font-size: 10px; }
.request-card select { font-size: 11px; }
.download-button, .confirm-payment-button { font-size: 10px; }
.request-payment > div strong { font-size: 12px; }
.request-payment > div small { font-size: 10px !important; }
.settings-status { font-size: 10px; }
.payment-settings-grid > section > div h3 { font-size: 14px; }
.field-hint, .stream-preview-admin > p { font-size: 11px; }
.mini-player > span { font-size: 9px; }
.mini-player strong { font-size: 13px; }
.mini-player small, .stream-checklist div { font-size: 11px !important; }
.toast span { font-size: 12px; }
.segmented-control button { font-size: 12px !important; }

@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 4px rgba(167,238,69,.1); } 50% { box-shadow: 0 0 0 7px rgba(167,238,69,0); } }
@keyframes poster-drift { from { transform: scale(1.01) translateX(0); } to { transform: scale(1.06) translateX(-1.5%); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes slot-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1100px) {
  .broadcast-layout { grid-template-columns: 1fr; }
  .match-panel { min-height: 280px; display: grid; grid-template-columns: 1.1fr .8fr; gap: 24px; border-left: 0; border-top: 1px solid var(--line); }
  .match-topline { grid-column: 1 / -1; }
  .match-info { margin: 0; }
  .match-metrics { align-self: center; }
  .capy-note { grid-column: 1 / -1; margin-top: 0; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .ad-grid-segment { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ad-slot.size-hero, .ad-slot.size-wide, .ad-slot.size-standard, .ad-slot.size-square, .ad-slot.size-small { grid-column: span 1; grid-row: span 1; }
  .banner-management { grid-template-columns: 1fr; }
  .banner-editor { position: static; max-height: none; }
  .request-card { grid-template-columns: 1fr 1.2fr 1fr; }
  .request-creative { grid-column: span 2; }
  .request-card select { grid-column: 3; }
}

@media (max-width: 820px) {
  :root { --container: min(100% - 28px, 1440px); }
  .site-header { height: 68px; padding: 0 14px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .brand-copy small, .audience-label { display: none; }
  .broadcast-section { min-height: auto; padding: 42px 0 60px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-heading h1, .section-heading h2 { font-size: 36px; }
  .section-intro { max-width: 520px; }
  .player-wrap { min-height: 390px; }
  .poster-content { left: 22px; right: 22px; bottom: 78px; }
  .poster-content h2 { font-size: 26px; }
  .ball-orbit { width: 90px; height: 90px; }
  .advertising-section { padding: 56px 0 70px; }
  .ad-summary { padding-top: 0; }
  .ad-toolbar { align-items: flex-start; flex-direction: column; }
  .slot-legend { display: none; }
  .ad-grid-segment { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
  .ad-grid > .embedded-broadcast { margin: 54px 0 14px; padding-top: 44px; }
  .ad-grid > .embedded-ticker { margin: 10px 0 46px; }
  .ad-slot.size-hero, .ad-slot.size-wide, .ad-slot.size-standard, .ad-slot.size-square, .ad-slot.size-small { grid-column: span 1; grid-row: span 1; }
  .partner-cta { align-items: flex-start; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .photo-credit { text-align: left; }
  .admin-app { grid-template-columns: 74px minmax(0, 1fr); }
  .admin-sidebar { padding: 14px 9px; }
  .admin-brand { justify-content: center; padding: 0 0 15px; }
  .admin-brand > div, .admin-nav button span, .admin-sidebar-footer span, .admin-nav b { display: none; }
  .admin-nav button, .admin-sidebar-footer button { justify-content: center; padding: 0; }
  .admin-content { padding: 18px; }
  .admin-header { padding: 0 18px; }
  .stream-admin-layout { grid-template-columns: 1fr; }
  .payment-settings-grid { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 1fr 1fr; }
  .request-creative { grid-column: 1 / -1; }
  .request-card select { grid-column: auto; }
}

@media (max-width: 560px) {
  .brand-mark { flex-basis: 36px; width: 36px; height: 34px; }
  .live-audience { font-size: 11px; }
  .section-heading h1, .section-heading h2 { font-size: 30px; }
  .broadcast-layout, .player-wrap { min-height: 330px; }
  .player-poster > img { object-position: 58% 50%; }
  .poster-shade { background: linear-gradient(0deg, rgba(4,6,5,.9), rgba(4,6,5,.12) 90%); }
  .poster-content { bottom: 75px; }
  .poster-content h2 { font-size: 21px; }
  .poster-content p { max-width: 250px; font-size: 10px; }
  .ball-orbit { display: none; }
  .quality-control { display: none; }
  .match-panel { min-height: auto; padding: 22px; display: flex; }
  .match-info { margin: 20px 0; }
  .match-metrics { width: 100%; }
  .ad-heading h2 { font-size: 30px; }
  .ad-stats { gap: 18px; }
  .segmented-control { width: 100%; }
  .segmented-control button { flex: 1; padding: 0 7px; font-size: 10px; }
  .ad-grid-segment { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 7px; }
  .ad-slot.size-hero, .ad-slot.size-wide, .ad-slot.size-standard, .ad-slot.size-square, .ad-slot.size-small { grid-column: span 1; grid-row: span 1; aspect-ratio: 1.35 / 1; }
  .occupied-media { padding: 7px; }
  .occupied-slot .sponsor-copy { min-height: 60px; padding: 7px 9px 8px; }
  .occupied-slot strong { font-size: 11px; }
  .occupied-slot small { font-size: 8px; }
  .free-slot-main small, .size-small .free-slot-main small { display: none; }
  .partner-cta { margin-bottom: 70px; }
  .modal-shell { padding: 20px; }
  .modal-header h2 { font-size: 20px; }
  .slot-picker-grid { grid-template-columns: repeat(5, 1fr); }
  .modal-actions { flex-direction: column; }
  .modal-actions button { width: 100%; }
  #requestModal .telegram-button { order: 1; }
  #requestModal .payment-button { order: 2; }
  #requestModal .modal-actions .secondary-button { order: 3; }
  .creative-upload-field { grid-template-columns: 40px minmax(0, 1fr); }
  .creative-file-name { grid-column: 2; max-width: 100%; }
  .payment-note { text-align: left; }
  .payment-method-picker { grid-template-columns: 1fr; }
  .request-payment { grid-template-columns: 34px minmax(0,1fr); }
  .request-payment .download-button, .request-payment .confirm-payment-button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .request-publish-action { align-items: stretch; flex-direction: column; }
  .request-publish-action button { width: 100%; justify-content: center; }
  .payment-settings-admin { padding: 16px; }
  .admin-app { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) 60px; }
  .admin-sidebar { grid-row: 2; padding: 6px; flex-direction: row; align-items: center; border-right: 0; border-top: 1px solid var(--line); z-index: 4; }
  .admin-brand, .admin-sidebar-footer { display: none; }
  .admin-nav { width: 100%; margin: 0; flex-direction: row; justify-content: space-around; }
  .admin-nav button { min-height: 46px; flex: 1; }
  .admin-main { grid-row: 1; height: calc(100vh - 60px); }
  .admin-header { height: 68px; }
  .admin-header p, .admin-online span:last-child { display: none; }
  .admin-header h2 { font-size: 16px; }
  .admin-content { padding: 12px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-grid article { min-height: 145px; padding: 13px; }
  .metric-grid article > strong { font-size: 24px; }
  .admin-section-block { padding: 14px; }
  .panel-toolbar { align-items: stretch; flex-direction: column; }
  .panel-toolbar select { width: 100%; }
  .banner-management { min-height: auto; display: block; }
  .banner-list-header, .banner-row { grid-template-columns: 42px minmax(110px, 1fr) 70px; }
  .banner-list-header span:nth-child(3), .banner-row > span { display: none; }
  .banner-editor { margin-top: 10px; padding: 16px; }
  .request-card { grid-template-columns: 1fr; gap: 13px; }
  .request-creative { grid-column: auto; }
  .request-card select { width: 100%; }
  .stream-settings, .stream-preview-admin { padding: 16px; }
  .two-fields { grid-template-columns: 1fr; }
  .toast-region { left: 12px; right: 12px; bottom: 72px; }
  .toast { min-width: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
