:root {
  --ink: #17131f;
  --muted: #6d6678;
  --surface: #ffffff;
  --surface-soft: #f7f5fa;
  --line: #e8e3ed;
  --brand: #791bd1;
  --brand-dark: #311064;
  --magenta: #ed087e;
  --cyan: #18b7cf;
  --success: #159b69;
  --warning: #f59e0b;
  --danger: #e13f5c;
  --shadow: 0 20px 50px rgba(48, 17, 86, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#main-content { transition: opacity 160ms ease; }
#main-content.is-loading { opacity: .45; pointer-events: none; }
[data-reveal] { animation: reveal-card .48s ease both; }
[data-reveal]:nth-child(2n) { animation-delay:.06s; }
[data-reveal]:nth-child(3n) { animation-delay:.12s; }
@keyframes reveal-card { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 5% 2%, rgba(122, 29, 209, 0.08), transparent 32rem),
    #fbfaff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  padding-bottom: 196px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 800;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 5, 44, 0.94);
  box-shadow: 0 10px 35px rgba(18, 3, 37, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1460px, calc(100% - 40px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  flex: 0 0 205px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 190px;
  max-height: 62px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  padding: 11px 15px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.93rem;
  font-weight: 750;
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: var(--magenta);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.icon-button span {
  font-size: 1.55rem;
  line-height: 1;
}

.menu-button {
  display: none;
}

.admin-link {
  padding: 11px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--magenta), #ff3b63);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(237, 8, 126, 0.25);
}

.top-ad {
  width: min(970px, calc(100% - 36px));
  min-height: 78px;
  margin: 18px auto;
}

.ad-slot {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px dashed #cfc5d8;
  border-radius: 16px;
  background:
    linear-gradient(125deg, rgba(121, 27, 209, 0.04), rgba(237, 8, 126, 0.04)),
    #fff;
  color: #62586c;
  text-align: center;
}

.ad-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent, transparent 20px, rgba(78, 53, 98, 0.02) 20px, rgba(78, 53, 98, 0.02) 40px);
}

.ad-slot > * {
  position: relative;
}

.ad-label {
  padding: 4px 7px;
  border-radius: 6px;
  background: #eee9f2;
  color: #756a7e;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ad-slot small {
  color: #857b8e;
}

#app {
  min-height: 680px;
  outline: none;
}

.page-shell {
  width: min(1460px, calc(100% - 40px));
  margin: 0 auto 42px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 50px;
  align-items: center;
  padding: 58px 64px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 15%, rgba(255, 20, 145, 0.48), transparent 27%),
    radial-gradient(circle at 75% 80%, rgba(49, 210, 230, 0.18), transparent 28%),
    linear-gradient(135deg, #16022d 0%, #3d0d72 52%, #761891 100%);
  color: #fff;
  box-shadow: 0 30px 80px rgba(57, 15, 105, 0.24);
}

.hero::after {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  right: -90px;
  top: -180px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.025), 0 0 0 88px rgba(255, 255, 255, 0.025);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--magenta);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #ff85c2;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 5.1vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #fff 15%, #ff9bd1 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 670px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.06rem;
}

.hero-search {
  max-width: 700px;
  margin-top: 30px;
  display: flex;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(15px);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  padding: 12px 16px;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.hero-search button,
.primary-button {
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--magenta), #ff3d65);
  color: #fff;
  padding: 12px 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(237, 8, 126, 0.25);
}

.hero-panel {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 25px;
  background: rgba(13, 1, 28, 0.36);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.hero-panel > p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.geo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.geo-fields label,
.filter-control label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.geo-fields label:first-child {
  grid-column: 1 / -1;
}

.geo-fields select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 0.88rem;
}

.geo-action {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: var(--brand-dark);
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 42px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(49, 16, 90, 0.05);
}

.stat-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(121, 27, 209, 0.12), rgba(237, 8, 126, 0.1));
  color: var(--brand);
  font-size: 1.25rem;
}

.stat-card strong {
  display: block;
  font-size: 1.18rem;
}

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

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.section-block {
  margin-bottom: 42px;
}

#directory-results {
  scroll-margin-top: 96px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 850;
  cursor: pointer;
}

.station-grid,
.tv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.station-card,
.tv-card,
.location-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
  transition: 180ms ease;
}

.station-card:hover,
.tv-card:hover,
.location-card:hover {
  transform: translateY(-3px);
  border-color: #d3c3e2;
  box-shadow: var(--shadow);
}

.station-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.station-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(135deg, #3d0d72, var(--magenta));
  color: #fff;
  font-weight: 950;
}

.station-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.station-info {
  min-width: 0;
  cursor: pointer;
}

.station-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.94rem;
}

.station-info span,
.station-info small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
}

.station-info small {
  margin-top: 4px;
  color: var(--brand);
  font-weight: 750;
}

.play-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #f4eafa;
  color: var(--brand);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  transition: 160ms ease;
}

.play-button [data-play-label] {
  font-size: .78rem;
}

.play-button:hover,
.play-button.is-playing {
  background: linear-gradient(135deg, var(--brand), var(--magenta));
  color: #fff;
  box-shadow: 0 9px 20px rgba(121, 27, 209, 0.24);
}

.side-rail {
  min-width: 0;
}

.side-ad {
  min-height: 540px;
  flex-direction: column;
  padding: 24px;
}

.side-ad strong {
  font-size: 1.25rem;
}

.owner-card {
  margin-top: 18px;
  padding: 24px;
  border-radius: 21px;
  background: linear-gradient(145deg, #251044, #4a1679);
  color: #fff;
}

.owner-card span {
  color: #ff8ec8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-card h3 {
  margin: 8px 0;
}

.owner-card p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.87rem;
}

.owner-card a {
  display: inline-flex;
  padding: 10px 13px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.department-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 3px 13px;
  scrollbar-width: thin;
}

.department-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 15px;
  color: #4d4455;
  cursor: pointer;
  font-weight: 750;
}

.department-chip:hover,
.department-chip.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 50px 54px;
  border-radius: 30px;
  background: linear-gradient(130deg, #190331, #52137c);
  color: #fff;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero.tv-hero {
  background:
    radial-gradient(circle at 80% 0%, rgba(26, 183, 207, 0.35), transparent 32%),
    linear-gradient(130deg, #071727, #102f52 62%, #124e65);
}

.policy-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c5f7ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.tv-card {
  min-height: 270px;
  padding: 18px;
}

.tv-preview {
  min-height: 155px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(16, 47, 82, 0.25), rgba(24, 183, 207, 0.35)),
    #10223a;
  color: #fff;
}

.tv-preview span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  font-size: 1.2rem;
}

.tv-preview img {
  width: 100%;
  height: 155px;
  border-radius: 16px;
  background: #fff;
  object-fit: contain;
}

.tv-card h3 {
  margin: 14px 0 4px;
}

.tv-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.format-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #e9fbfd;
  color: #08788a;
  font-size: 0.7rem;
  font-weight: 900;
}

.directory-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.directory-tools input,
.directory-tools select {
  min-width: 190px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  padding: 11px 13px;
  background: #fff;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.location-card {
  padding: 22px;
  cursor: pointer;
}

.location-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.location-card strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
}

.location-card small {
  display: block;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 850;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.submission-card,
.info-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(50, 20, 83, 0.05);
}

.submission-card {
  padding: 28px;
}

.form-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 5px;
  border-radius: 14px;
  background: var(--surface-soft);
}

.form-tabs button {
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 11px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
}

.form-tabs button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 5px 16px rgba(43, 20, 68, 0.08);
}

.form-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.form-stepper span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.form-stepper b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0e9f5;
  color: var(--brand);
}

.form-stepper span:first-child b {
  background: var(--brand);
  color: #fff;
}

.form-stepper i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.form-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.form-section > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field > span {
  font-size: 0.78rem;
  font-weight: 850;
}

.field em {
  color: var(--danger);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ddd5e5;
  border-radius: 11px;
  outline: none;
  background: #fff;
  padding: 11px 12px;
  transition: 160ms ease;
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(121, 27, 209, 0.1);
}

.field small {
  color: var(--muted);
  font-size: 0.72rem;
}

.inline-check {
  display: flex;
  align-items: start;
  gap: 10px;
  color: #514958;
  font-size: 0.82rem;
}

.inline-check input {
  margin-top: 3px;
  accent-color: var(--brand);
}

.form-submit-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.form-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.info-stack {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 23px;
}

.info-card h3 {
  margin: 0 0 10px;
}

.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 0.84rem;
}

.info-card ul {
  margin: 0;
  padding-left: 20px;
}

.info-card.accent {
  background: linear-gradient(145deg, #261043, #5a147e);
  color: #fff;
}

.info-card.accent p {
  color: rgba(255, 255, 255, 0.67);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-card {
  padding: 30px;
}

.detail-header {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 23px;
  align-items: center;
}

.detail-logo {
  width: 130px;
  height: 130px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 27px;
  background: linear-gradient(135deg, #411078, var(--magenta));
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
}

.detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.detail-title h1 {
  margin: 4px 0 5px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-title p {
  margin: 0;
  color: var(--muted);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(21, 155, 105, 0.12);
}

.big-play {
  min-width: 165px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--magenta));
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 14px 28px rgba(121, 27, 209, 0.28);
}

.big-play [data-play-label] { font-size: .78rem; font-weight: 900; }

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.detail-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3edf7;
  color: #62536f;
  font-size: 0.72rem;
  font-weight: 800;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.detail-section p {
  color: var(--muted);
}

.station-history-panel {
  position: relative;
}

.station-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.station-history-heading h2 { margin: 3px 0 2px; }
.station-history-heading p { margin: 0; font-size: .78rem; }
.history-live-badge { flex:0 0 auto; padding:6px 10px; border-radius:999px; background:#fff0f7; color:var(--magenta); font-size:.67rem; font-weight:900; text-transform:uppercase; }
.station-now-playing { display:grid; grid-template-columns:72px minmax(0,1fr); align-items:center; gap:15px; margin-top:18px; padding:13px; border:1px solid #eeddf8; border-radius:18px; background:linear-gradient(135deg,#fcf8ff,#fff4fa); }
.station-now-playing img { width:72px; height:72px; border-radius:14px; object-fit:cover; background:#fff; box-shadow:0 8px 20px rgba(49,16,90,.12); }
.station-now-playing small,.station-now-playing strong { display:block; }
.station-now-playing small { margin-bottom:4px; color:var(--magenta); font-size:.68rem; font-weight:900; text-transform:uppercase; }
.station-now-playing strong { line-height:1.25; }
.station-track-list { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin:12px 0 0; padding:0; list-style:none; }
.station-track-list li { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:10px; min-width:0; padding:9px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.station-track-list li img { width:44px; height:44px; border-radius:10px; object-fit:cover; background:#f5eff9; }
.station-track-list li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.76rem; font-weight:800; }
.station-track-list li time { color:var(--magenta); font-size:.68rem; }
.station-track-list .history-empty { display:block; grid-column:1/-1; padding:15px; color:var(--muted); font-size:.78rem; text-align:center; }

.info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-list div {
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-soft);
}

.info-list span,
.info-list strong {
  display: block;
}

.info-list span {
  color: var(--muted);
  font-size: 0.72rem;
}

.info-list strong {
  margin-top: 3px;
  font-size: 0.86rem;
}

.station-actions {
  display: grid;
  gap: 9px;
}

.station-actions button,
.station-actions a {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 11px 13px;
  color: #504757;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.station-actions .claim {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.admin-shell {
  width: min(1560px, calc(100% - 28px));
  min-height: 780px;
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-sidebar {
  padding: 22px 16px;
  background: #17052d;
  color: #fff;
}

.admin-sidebar .mini-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
  padding: 0 8px;
}

.mini-brand span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--magenta));
  font-weight: 950;
}

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

.mini-brand small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: left;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav .count {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-size: 0.65rem;
}

.admin-main {
  min-width: 0;
  background: #faf9fc;
}

.admin-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.25rem;
}

.admin-topbar p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.admin-search {
  max-width: 330px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  outline: none;
}

.admin-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--magenta));
  color: #fff;
  font-weight: 950;
}

.admin-content {
  padding: 24px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.admin-metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.admin-metric strong {
  display: block;
  margin: 6px 0 3px;
  font-size: 1.7rem;
}

.admin-metric small {
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 800;
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 1rem;
}

.panel-header button,
.panel-header select {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 7px 9px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.admin-table th,
.admin-table td {
  padding: 13px 15px;
  border-bottom: 1px solid #f0edf3;
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.table-station {
  display: flex;
  align-items: center;
  gap: 9px;
}

.table-station span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f2e9f8;
  color: var(--brand);
  font-weight: 950;
}

.status-badge {
  margin: 0;
  background: #eaf8f2;
  color: var(--success);
}

.status-badge.pending {
  background: #fff6df;
  color: #b16f00;
}

.status-badge.offline {
  background: #fff0f2;
  color: var(--danger);
}

.row-actions {
  display: flex;
  gap: 5px;
}

.row-actions button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 5px 7px;
  cursor: pointer;
  font-size: 0.68rem;
}

.row-actions button:last-child {
  color: var(--danger);
}

.queue-list,
.ad-manager-list {
  display: grid;
  gap: 0;
}

.queue-item,
.ad-manager-item {
  padding: 14px 17px;
  border-bottom: 1px solid #f0edf3;
}

.queue-item:last-child,
.ad-manager-item:last-child {
  border-bottom: 0;
}

.queue-item strong,
.queue-item small,
.ad-manager-item strong,
.ad-manager-item small {
  display: block;
}

.queue-item strong,
.ad-manager-item strong {
  font-size: 0.8rem;
}

.queue-item small,
.ad-manager-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.queue-item button {
  margin-top: 8px;
  border: 0;
  border-radius: 7px;
  background: #f1e8f7;
  color: var(--brand);
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 850;
}

.ad-manager-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-manager-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(21, 155, 105, 0.1);
}

.toggle-switch {
  margin-left: auto;
  width: 34px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  cursor: pointer;
}

.site-footer {
  width: min(1460px, calc(100% - 40px));
  margin: 50px auto 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 25px;
  background: #17052d;
  color: #fff;
}

.site-footer img {
  width: 180px;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-links button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.player-dock {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 80;
  width: min(1080px, calc(100% - 32px));
  min-height: 76px;
  display: grid;
  grid-template-columns: 52px minmax(220px, 1fr) auto 150px 42px auto 32px;
  gap: 13px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(23, 5, 45, 0.96);
  color: #fff;
  box-shadow: 0 22px 58px rgba(25, 3, 49, 0.34);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.player-station-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--magenta));
  font-weight: 950;
}

.player-station-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.player-wave {
  position: absolute;
  inset: 8px 14px;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow: hidden;
  opacity: .16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.player-wave i {
  flex: 1 1 0;
  width: 3px;
  max-width: 5px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4ca7, #a94fff 70%, #51d6e5);
  opacity: .7;
  transform-origin: center;
  transform: scaleY(.45);
}

.player-dock.is-playing .player-wave { opacity: .32; }

.player-dock.is-playing .player-wave i {
  opacity: 1;
  animation: radio-wave .9s ease-in-out infinite alternate;
}

.player-dock.is-playing .player-wave i:nth-child(4n+1) { animation-delay: -.18s; animation-duration: .72s; }
.player-dock.is-playing .player-wave i:nth-child(4n+2) { animation-delay: -.52s; animation-duration: 1.04s; }
.player-dock.is-playing .player-wave i:nth-child(4n+3) { animation-delay: -.76s; animation-duration: .84s; }
.player-dock.is-playing .player-wave i:nth-child(4n) { animation-delay: -.34s; animation-duration: 1.16s; }

@keyframes radio-wave {
  from { transform: scaleY(.35); }
  to { transform: scaleY(3.15); }
}

.player-station-mark,
.player-meta,
.player-controls,
.volume-control,
.player-favorite,
.player-history-button,
.player-close,
.player-history {
  z-index: 1;
}

.player-meta {
  min-width: 0;
}

.player-meta span,
.player-meta strong,
.player-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta .player-track {
  margin-top: 3px;
  color: #ffd2e9;
  font-size: .68rem;
}

.player-meta span {
  color: #ff7abf;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.player-meta strong {
  margin: 2px 0;
  font-size: 0.9rem;
}

.player-meta small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.7rem;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-controls button,
.player-favorite,
.player-close,
.player-history-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-weight: 900;
}

.player-history-button {
  width: auto;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  font-size: .68rem;
}

.player-history {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(390px, calc(100vw - 24px));
  max-height: 330px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  background: rgba(23,5,45,.98);
  color: #fff;
  box-shadow: 0 20px 55px rgba(20,2,40,.34);
}

.player-history > strong { display:block; margin-bottom:9px; font-size:.82rem; }
.player-history ol { margin:0; padding:0; list-style:none; }
.player-history li { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; padding:8px 0; border-top:1px solid rgba(255,255,255,.09); color:rgba(255,255,255,.8); font-size:.72rem; }
.player-history li img { width:34px; height:34px; border-radius:8px; object-fit:cover; background:#fff; }
.player-history li span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.player-history li.history-empty { display:block; padding:12px 0; }
.player-history time { flex:0 0 auto; color:#ff8ec8; }

.player-controls .player-main {
  width: 45px;
  height: 45px;
  background: #fff;
  color: var(--brand-dark);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 7px;
}

.volume-control input {
  min-width: 0;
  width: 110px;
  accent-color: var(--magenta);
}

.player-favorite {
  font-size: 1.25rem;
}

.player-favorite.active {
  color: #ff67b5;
}

.sticky-ad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  min-height: 76px;
  border-width: 1px 0 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -12px 30px rgba(42, 20, 62, 0.1);
  backdrop-filter: blur(16px);
}

.sticky-ad > button {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.sticky-ad > div:not(.ad-cta) {
  display: grid;
  text-align: left;
}

.ad-cta {
  padding: 9px 13px;
  border-radius: 9px;
  background: #1d1230;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.sticky-ad.is-hidden {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 4, 33, 0.68);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(780px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 36px 90px rgba(15, 2, 31, 0.42);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-content-inner {
  padding: 30px;
}

.modal-content-inner h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.modal-content-inner p {
  color: var(--muted);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  border-radius: 16px;
  background: #0b1220;
}

.global-search-results {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.global-search-results button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 11px 13px;
  cursor: pointer;
  text-align: left;
}

.toast {
  position: fixed;
  right: 22px;
  top: 96px;
  z-index: 300;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #1c0b31;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: 180ms ease;
  font-size: 0.82rem;
  font-weight: 750;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

/* Functional application screens */
.admin-body { padding-bottom: 0; background: #f5f2f8; }
.admin-nav a { width: 100%; display: flex; align-items: center; gap: 10px; border-radius: 11px; color: rgba(255,255,255,.65); padding: 10px 12px; font-size: .82rem; font-weight: 750; }
.admin-nav a.active,.admin-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav a b { width: 22px; text-align: center; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #50445a; padding: 11px 16px; cursor: pointer; font-weight: 850; }
.button-row,.panel-heading,.panel-heading>div,.table-entity,.moderation-card header,.moderation-card footer { display: flex; align-items: center; }
.button-row { flex-wrap: wrap; gap: 9px; }
.panel-heading { justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 18px 20px; }
.panel-heading h2,.panel-heading p,.welcome-panel h2,.welcome-panel p,.dashboard-side h2 { margin: 0; }
.panel-heading>div { align-items: flex-start; flex-direction: column; }
.panel-heading p { color: var(--muted); font-size: .82rem; }
.table-filters { display: flex; gap: 8px; margin-bottom: 14px; }
.table-filters input,.panel-heading input,.panel-heading select { min-width: 220px; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 10px 12px; }
.table-entity { gap: 10px; }
.table-entity img { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; object-fit: cover; }
.table-entity strong,.table-entity small,.admin-table td>strong,.admin-table td>small { display: block; }
.table-entity small,.admin-table td>small { color: var(--muted); }
.row-actions { align-items: center; white-space: nowrap; }
.row-actions form { display: inline-flex; margin: 0; }
.row-actions a,.row-actions button,.admin-table button { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4d4255; padding: 6px 8px; cursor: pointer; font-size: .7rem; font-weight: 800; }
.row-actions .danger-link,.danger-link { color: var(--danger)!important; }
.status-badge.status-pending,.status-badge.status-cancelled { background:#fff6df; color:#a96800; }
.status-badge.status-published,.status-badge.status-approved,.status-badge.status-active { background:#eaf8f2; color:var(--success); }
.status-badge.status-rejected,.status-badge.status-suspended,.status-badge.status-offline,.status-badge.status-archived { background:#fff0f2; color:var(--danger); }
.signal-state { display:inline-flex; margin-right:5px; padding:4px 7px; border-radius:999px; background:#f0edf3; font-size:.68rem; font-weight:850; }
.signal-online { background:#eaf8f2; color:var(--success); }
.signal-offline { background:#fff0f2; color:var(--danger); }
.signal-unknown { color:var(--muted); }
.entity-form { max-width:1050px; margin:0 auto; }
.narrow-form,.settings-form { max-width:880px; margin:0 auto; }
.mail-test-form { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:16px; }
.mail-test-form h2,.mail-test-form p { margin:0; }
.mail-test-form p { margin-top:5px; color:var(--muted); }
.auth-shell { padding-top:36px; }
.auth-card { display:grid; grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); overflow:hidden; border:1px solid var(--line); border-radius:28px; background:#fff; box-shadow:var(--shadow); }
.auth-copy { padding:48px; background:linear-gradient(140deg,#19032f,#51117b); color:#fff; }
.auth-copy h1 { margin:0; font-size:2.7rem; line-height:1; }
.auth-copy p { color:rgba(255,255,255,.68); }
.auth-form { display:grid; gap:18px; padding:48px; }
.flash-message { position:relative; z-index:70; width:min(920px,calc(100% - 30px)); margin:12px auto; padding:12px 15px; border:1px solid #bde9d8; border-radius:12px; background:#eaf8f2; color:#106d4c; font-size:.84rem; font-weight:750; transition:250ms ease; }
.flash-error { border-color:#ffd0d8; background:#fff0f2; color:#a61e38; }
.flash-message.is-leaving { opacity:0; transform:translateY(-8px); }
.moderation-list { display:grid; gap:14px; }
.moderation-card { overflow:hidden; border:1px solid var(--line); border-radius:17px; background:#fff; }
.moderation-card header { justify-content:space-between; padding:17px 19px; border-bottom:1px solid var(--line); }
.moderation-card header h3 { margin:7px 0 0; }
.moderation-card header p { margin:2px 0 0; color:var(--muted); font-size:.78rem; }
.moderation-body { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:18px; }
.moderation-body strong { font-size:.72rem; text-transform:uppercase; color:var(--muted); }
.moderation-body p { margin:5px 0 0; font-size:.84rem; }
.moderation-body details { grid-column:1/-1; }
details pre { max-width:100%; max-height:380px; overflow:auto; padding:14px; border-radius:10px; background:#1c1027; color:#f7efff; white-space:pre-wrap; font-size:.7rem; }
.moderation-card footer { justify-content:flex-end; gap:10px; padding:14px 18px; border-top:1px solid var(--line); }
.moderation-form { flex:1; display:flex; justify-content:flex-end; gap:8px; }
.moderation-form input { min-width:240px; flex:1; border:1px solid var(--line); border-radius:10px; padding:9px 11px; }
.form-side-panel,.dashboard-side,.cron-panel { padding:20px; }
.form-side-panel form { display:grid; gap:14px; }
.locations-layout { align-items:start; }
.cron-panel { margin:16px 0; }
.cron-panel code { display:block; overflow-x:auto; padding:12px; border-radius:10px; background:#1d0c30; color:#fff; }
.welcome-panel { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; padding:24px; border-radius:19px; background:linear-gradient(135deg,#250543,#651388); color:#fff; }
.welcome-panel p { color:rgba(255,255,255,.68); }
.quick-actions { display:grid; gap:8px; padding:15px; }
.home-news { margin: 32px 0 40px; }
.news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.home-news-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.news-card { overflow:hidden; display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:0 12px 32px rgba(49,16,90,.06); transition:180ms ease; }
.news-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.news-card-image { aspect-ratio:16/9; min-height:0; display:grid; place-items:center; overflow:hidden; background:linear-gradient(135deg,#250543,#8d1ab4); color:#fff; font-weight:900; }
.home-news-grid .news-card-image { min-height:0; }
.news-card-image img { width:100%; height:100%; min-height:0; object-fit:cover; }
.news-card-body { display:flex; flex:1; flex-direction:column; padding:17px; }
.news-card-body>span { color:var(--magenta); font-size:.68rem; font-weight:900; text-transform:uppercase; }
.news-card h3 { display:-webkit-box; min-height:2.5em; overflow:hidden; margin:8px 0 7px; font-size:1rem; line-height:1.25; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.news-card p { display:-webkit-box; flex:1; min-height:5.8em; max-height:5.8em; overflow:hidden; margin:0 0 16px; color:var(--muted); font-size:.83rem; line-height:1.45; -webkit-box-orient:vertical; -webkit-line-clamp:4; }
.news-read-more { color:var(--brand); font-size:.78rem; font-weight:900; }
.news-strip { width:min(1240px,calc(100% - 32px)); margin:32px auto 40px; padding:18px; overflow:hidden; border:1px solid var(--line); border-radius:24px; background:rgba(255,255,255,.9); box-shadow:0 16px 42px rgba(49,16,90,.07); }
.page-shell > .news-strip { width:100%; }
.news-strip-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.news-strip-heading h2 { margin:2px 0 0; font-size:1.18rem; }
.news-strip-actions { display:flex; align-items:center; gap:7px; }
.news-strip-actions button { width:34px; height:34px; border:1px solid var(--line); border-radius:50%; background:#fff; color:var(--brand); cursor:pointer; font-size:1.15rem; font-weight:900; }
.news-strip-actions a { margin-left:4px; color:var(--brand); font-size:.76rem; font-weight:900; }
.news-viewport { overflow:hidden; }
.news-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(245px,285px); gap:12px; overflow-x:auto; padding:2px 1px 7px; scroll-behavior:smooth; scroll-snap-type:x mandatory; scrollbar-width:none; }
.news-rail::-webkit-scrollbar { display:none; }
.news-mini-card { display:grid; grid-template-columns:92px minmax(0,1fr); gap:12px; align-items:center; min-width:0; padding:9px; border:1px solid var(--line); border-radius:16px; background:#fff; scroll-snap-align:start; transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.news-mini-card:hover { transform:translateY(-2px); border-color:#d8b9ed; box-shadow:0 10px 25px rgba(49,16,90,.1); }
.news-mini-image { width:92px; aspect-ratio:1; display:grid; place-items:center; overflow:hidden; border-radius:12px; background:linear-gradient(135deg,#2c0750,#c41084); color:#fff; font-weight:950; }
.news-mini-image img { width:100%; height:100%; object-fit:cover; }
.news-mini-card small { display:block; overflow:hidden; color:var(--magenta); font-size:.58rem; font-weight:900; text-overflow:ellipsis; text-transform:uppercase; white-space:nowrap; }
.news-mini-card h3 { display:-webkit-box; overflow:hidden; margin:5px 0 8px; font-size:.82rem; line-height:1.18; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.news-mini-link { color:var(--brand); font-size:.67rem; font-weight:900; }
.news-search { margin:24px 0; }
.article-shell { max-width:1040px; }
.article-card { overflow:hidden; border:1px solid var(--line); border-radius:28px; background:#fff; box-shadow:var(--shadow); }
.article-card>header,.article-card>footer { padding:38px clamp(22px,6vw,70px); }
.article-card>header h1 { max-width:900px; margin:0; font-size:clamp(2.2rem,5vw,4.5rem); line-height:1.02; letter-spacing:-.055em; }
.article-lead { max-width:800px; margin:18px 0; color:var(--muted); font-size:1.08rem; }
.article-card>header small { color:var(--muted); }
.article-cover { display:block; width:min(820px,calc(100% - 44px)); aspect-ratio:16/9; margin:0 auto 12px; border-radius:22px; object-fit:cover; }
.article-content { padding:12px clamp(22px,6vw,70px) 38px; font-size:1.03rem; line-height:1.8; }
.article-content p { margin:26px 0; }
.news-inline-ad { min-height:150px; margin:32px 0; }
.legal-card { max-width:960px; margin:34px auto; padding:clamp(24px,5vw,64px); border:1px solid var(--line); border-radius:28px; background:#fff; box-shadow:var(--shadow); }
.legal-card h1 { margin:0; font-size:clamp(2.2rem,5vw,4rem); letter-spacing:-.05em; }
.legal-card h2 { margin:34px 0 8px; font-size:1.2rem; }
.legal-card p { color:#50485a; }
.legal-updated { padding-bottom:22px; border-bottom:1px solid var(--line); color:var(--muted)!important; font-size:.8rem; }
.news-editor { max-width:1080px; margin:0 auto; }
.news-body-input { min-height:420px; line-height:1.65; }
.status-badge.status-draft { background:#f2edf5; color:#675b70; }
@media (max-width:1050px) {
  .news-grid,.home-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .news-grid,.home-news-grid { grid-template-columns:1fr; }
  .news-card-image,.home-news-grid .news-card-image { min-height:0; }
  .news-strip { width:calc(100% - 20px); margin:24px auto 30px; padding:13px; border-radius:19px; }
  .page-shell > .news-strip { width:100%; }
  .news-strip-heading { align-items:flex-end; }
  .news-strip-actions a { display:none; }
  .news-rail { grid-auto-columns:minmax(230px,82vw); }
  .news-mini-card { grid-template-columns:78px minmax(0,1fr); }
  .news-mini-image { width:78px; }
  .article-card>header,.article-card>footer,.article-content { padding-left:22px; padding-right:22px; }
  .article-cover { width:calc(100% - 28px); border-radius:16px; }
  .station-track-list { grid-template-columns:1fr; }
}
.quick-actions a { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:12px; }
.quick-actions a:hover { border-color:#c9aedf; background:#fbf7ff; }
.quick-actions b { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:#f2e9f8; color:var(--brand); }
.quick-actions strong,.quick-actions small { display:block; }
.quick-actions small { color:var(--muted); }
.help-list { color:var(--muted); line-height:2; }
.search-modal input { width:100%; border:1px solid var(--line); border-radius:13px; padding:13px 15px; }
.search-results { display:grid; gap:8px; margin-top:14px; }
.search-results>a { display:grid; grid-template-columns:42px 1fr auto; gap:10px; align-items:center; padding:9px; border:1px solid var(--line); border-radius:12px; }
.search-results img { width:42px; height:42px; border-radius:9px; object-fit:cover; }
.search-results strong,.search-results small { display:block; }
.search-results small { color:var(--muted); }
.country-tabs,.social-links { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 24px; }
.country-tabs a,.social-links a { border:1px solid var(--line); border-radius:999px; background:#fff; padding:9px 13px; color:#54485e; font-size:.8rem; font-weight:800; }
.country-tabs a.active,.country-tabs a:hover,.social-links a:hover { border-color:var(--brand); background:var(--brand); color:#fff; }
.pagination { display:flex; align-items:center; justify-content:center; gap:12px; margin:25px 0; }
.pagination a,.pagination span { border:1px solid var(--line); border-radius:10px; background:#fff; padding:9px 12px; font-size:.8rem; font-weight:800; }
.pagination a { color:var(--brand); }
#stickyAd .sticky-ad-close { position:fixed; right:12px; bottom:42px; z-index:90; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; background:#fff; cursor:pointer; }
.banner-slot img { display:block; max-width:100%; max-height:100%; object-fit:contain; }
.station-paid-ad { width:100%; min-height:250px; }
.station-paid-ad.banner-slot { aspect-ratio:6/5; padding:0; border-style:solid; }
.station-paid-ad.banner-slot a { width:100%; height:100%; }
.station-paid-ad.banner-slot img { width:100%; height:100%; max-height:none; object-fit:cover; }
.ad-device-mobile { display:none; }
.content-layout.has-left { grid-template-columns:230px minmax(0,1fr) 280px; }
.left-rail .side-ad { min-height:420px; }
.installer-body { padding:0; background:#120322; }
.installer-shell { min-height:100vh; display:grid; grid-template-columns:minmax(320px,.8fr) minmax(520px,1.2fr); }
.installer-brand { padding:clamp(40px,7vw,100px); background:radial-gradient(circle at 20% 10%,#7114a5,transparent 50%),#18042d; color:#fff; }
.installer-brand img { width:min(430px,100%); }
.installer-brand>span { display:block; margin-top:50px; color:#ff73b9; font-weight:900; letter-spacing:.12em; }
.installer-brand h1 { max-width:600px; margin:15px 0; font-size:clamp(2.4rem,5vw,5.4rem); line-height:.95; }
.installer-brand p,.installer-brand li { color:rgba(255,255,255,.68); }
.installer-form { padding:clamp(30px,6vw,80px); background:#fff; }
.installer-form h2 { font-size:2rem; }
.installer-form h3 { margin-top:30px; }
.requirements { display:flex; flex-wrap:wrap; gap:7px; margin:18px 0; }
.requirements span { padding:6px 9px; border-radius:8px; font-size:.72rem; font-weight:800; }
.requirements .ok { background:#eaf8f2; color:var(--success); }
.requirements .bad,.install-errors { background:#fff0f2; color:var(--danger); }
.install-errors { padding:10px 15px; border-radius:12px; }
.installer-submit { width:100%; margin-top:25px; }

@media (max-width:1180px) { .content-layout.has-left { grid-template-columns:minmax(0,1fr) 280px; } .left-rail { display:none; } }
@media (max-width:920px) { .auth-card,.installer-shell { grid-template-columns:1fr; } .installer-brand { min-height:420px; } .moderation-body { grid-template-columns:1fr; } .moderation-form { flex-wrap:wrap; } .moderation-form input { min-width:100%; } }
@media (max-width:680px) { .admin-nav a { justify-content:center; padding-inline:4px; } .admin-nav a span { display:none; } .panel-heading,.welcome-panel { align-items:stretch; flex-direction:column; } .panel-heading .button-row { width:100%; } .auth-copy,.auth-form,.installer-brand,.installer-form { padding:28px 22px; } .auth-copy h1 { font-size:2.2rem; } .table-filters { flex-direction:column; } .table-filters input { min-width:0; width:100%; } .ad-device-desktop { display:none; } .ad-device-mobile { display:flex; } }

@media (max-width: 1180px) {
  .header-inner {
    gap: 14px;
  }

  .main-nav a {
    padding-inline: 10px;
  }

  .hero {
    grid-template-columns: 1fr 360px;
    padding: 48px;
  }

  .station-grid,
  .tv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 920px) {
  body {
    padding-bottom: 178px;
  }

  .main-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 86px;
    display: none;
    padding: 12px;
    border-radius: 17px;
    background: #210841;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .admin-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout,
  .detail-layout,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .side-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .side-ad {
    min-height: 250px;
  }

  .owner-card {
    margin-top: 0;
  }

  .admin-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-sidebar {
    padding-inline: 10px;
  }

  .mini-brand div,
  .admin-nav button span:not(.count) {
    display: none;
  }

  .admin-nav button {
    justify-content: center;
    padding: 12px 7px;
    font-size: 1rem;
  }

  .admin-nav .count {
    position: absolute;
    margin: -20px 0 0 24px;
  }

  .admin-columns {
    grid-template-columns: 1fr;
  }

  .player-dock {
    grid-template-columns: 46px minmax(110px, 1fr) auto 30px;
    bottom: 70px;
    min-height: 66px;
  }

  .player-history-button {
    position: absolute;
    right: 44px;
    top: -31px;
    height: 28px;
    background: rgba(23,5,45,.96);
  }

  .player-station-mark {
    width: 46px;
    height: 46px;
  }

  .volume-control,
  .player-favorite {
    display: none;
  }

  .sticky-ad {
    min-height: 60px;
    padding-inline: 12px 42px;
  }

  .sticky-ad .ad-cta,
  .sticky-ad small {
    display: none;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 164px;
  }

  .header-inner,
  .page-shell,
  .site-footer {
    width: min(100% - 24px, 1460px);
  }

  .header-inner {
    height: 68px;
  }

  .brand {
    flex-basis: 156px;
  }

  .brand img {
    width: 150px;
  }

  .icon-button {
    display: none;
  }

  .top-ad {
    width: calc(100% - 24px);
    min-height: 62px;
    margin: 12px auto;
    padding: 10px;
  }

  .top-ad small {
    display: none;
  }

  .hero,
  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .hero {
    gap: 30px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero-search {
    display: grid;
  }

  .geo-fields,
  .fields-grid {
    grid-template-columns: 1fr;
  }

  .geo-fields label,
  .field.full {
    grid-column: auto;
  }

  .quick-stats {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 13px;
  }

  .stat-icon {
    display: none;
  }

  .station-grid,
  .tv-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .side-rail {
    grid-template-columns: 1fr;
  }

  .detail-card,
  .submission-card {
    padding: 20px;
  }

  .detail-header {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .detail-logo {
    width: 86px;
    height: 86px;
    border-radius: 20px;
  }

  .detail-header .big-play {
    grid-column: 1 / -1;
    width: 100%;
    height: 48px;
    border-radius: 12px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .form-stepper span {
    font-size: 0;
  }

  .form-stepper b {
    font-size: 0.75rem;
  }

  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shell {
    width: calc(100% - 16px);
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .admin-sidebar {
    padding-inline: 6px;
  }

  .mini-brand {
    padding: 0 !important;
  }

  .mini-brand span {
    width: 38px;
    height: 38px;
  }

  .admin-topbar {
    padding: 13px;
  }

  .admin-search {
    display: none;
  }

  .admin-avatar {
    margin-left: auto;
  }

  .admin-content {
    padding: 12px;
  }

  .admin-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-metric {
    padding: 13px;
  }

  .admin-metric strong {
    font-size: 1.35rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-note {
    grid-column: auto;
  }

  .player-dock {
    width: calc(100% - 12px);
    bottom: 58px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 76px;
    padding: 8px;
    border-radius: 15px;
  }

  .player-wave { inset:6px 8px; gap:3px; opacity:.13; }

  .player-station-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .player-controls button:not(.player-main),
  .player-close {
    display: none;
  }

  .player-controls .player-main {
    width: 42px;
    height: 42px;
  }

  .player-meta #playerLocation { display:none; }
  .player-meta .player-track { white-space:normal; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .player-history { right:-6px; }

  .sticky-ad {
    min-height: 52px;
    font-size: 0.76rem;
  }

  .modal-content-inner {
    padding: 24px 18px;
  }
}

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

