:root {
  --bg: #03060a;
  --ink: #a6d0ff;
  --ink-strong: #ecf6ff;
  --ink-soft: #85add2;
  --accent: #ffcc00;
  --accent-2: #00b3ff;
  --line: rgba(166, 208, 255, 0.25);
  --glass: rgba(5, 16, 28, 0.86);
  --glass-2: rgba(8, 23, 38, 0.78);
  --ok: #2ee46f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.program-guide-toolbar-panel {
  position: sticky;
  top: 84px;
  z-index: 18;
}

.program-guide-hero-note {
  border: 1px solid rgba(122, 212, 255, 0.18);
  background: rgba(8, 20, 34, 0.74);
  border-radius: 12px;
  padding: 11px 12px;
}

.program-guide-hero-note strong {
  display: block;
  color: #edf7ff;
  font-size: 0.95rem;
}

.program-guide-hero-note p {
  margin: 4px 0 0;
  color: #a9c0df;
  font-size: 0.84rem;
}

.program-guide-toolbar-top,
.program-guide-toolbar-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.program-guide-toolbar-bottom {
  margin-top: 10px;
  flex-wrap: wrap;
}

.program-guide-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.program-guide-filter {
  min-height: 36px;
}

.program-guide-filter.is-active {
  border-color: rgba(122, 212, 255, 0.75);
  background: rgba(24, 62, 96, 0.82);
  color: #eff8ff;
  box-shadow: 0 0 0 1px rgba(122, 212, 255, 0.18) inset;
}

.program-guide-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.program-guide-search-wrap {
  flex: 1 1 340px;
  min-width: min(340px, 100%);
}

.program-guide-search {
  width: 100%;
}

.program-guide-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6e7ff;
  font-size: 0.88rem;
}

.program-guide-sort-wrap select {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(122, 212, 255, 0.22);
  background: rgba(6, 14, 27, 0.82);
  color: #edf6ff;
  padding: 7px 10px;
}

.program-guide-meta {
  margin-left: auto;
  color: #a9c0df;
  font-size: 0.85rem;
  white-space: nowrap;
}

.channel-grid.program-guide-group-root {
  display: block;
}

.program-guide-sections {
  display: grid;
  gap: 14px;
}

.program-guide-group {
  padding: 14px;
}

.program-guide-group-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.program-guide-group-title h3 {
  margin: 0;
  color: #eef7ff;
  font-size: 1.02rem;
}

.program-guide-group-title p {
  margin: 4px 0 0;
  color: #9eb7d9;
  font-size: 0.84rem;
}

.program-guide-group-count {
  flex: 0 0 auto;
  min-width: 34px;
  text-align: center;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(122, 212, 255, 0.28);
  background: rgba(10, 25, 42, 0.78);
  color: #eef7ff;
  font-size: 0.8rem;
  font-weight: 700;
}

.program-guide-group-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.program-guide-empty {
  margin-top: 14px;
}

.program-guide-group-grid .channel-card {
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: none;
  background: rgba(4, 15, 27, 0.82);
}

.program-guide-group-grid .channel-card:hover {
  transform: none;
  border-color: rgba(122, 212, 255, 0.34);
}

.program-guide-group-grid .channel-card-top {
  margin-bottom: 0;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
}

.program-guide-group-grid .channel-logo-link {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.program-guide-group-grid .channel-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.program-guide-group-grid .channel-name {
  margin-right: 0;
}

.program-guide-group-grid .channel-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.program-guide-group-grid .epg-line {
  margin-top: 4px;
  font-size: 0.79rem;
}

.program-guide-group-grid .tags {
  display: none;
}

@media (min-width: 981px) {
  .program-guide-group-grid .channel-card {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    align-items: center;
    gap: 4px 14px;
  }

  .program-guide-group-grid .channel-card > .channel-card-top {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .program-guide-group-grid .channel-card > .epg-line {
    grid-column: 2;
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .program-guide-toolbar-panel {
    top: 76px;
  }

  .program-guide-toolbar-top {
    flex-direction: column;
    align-items: stretch;
  }

  .program-guide-actions {
    width: 100%;
  }

  .program-guide-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .program-guide-toolbar-bottom {
    align-items: stretch;
  }

  .program-guide-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .program-guide-sort-wrap select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .program-guide-meta {
    width: 100%;
    margin-left: 0;
    white-space: normal;
  }

  .program-guide-group {
    padding: 12px;
  }

  .program-guide-group-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .program-guide-group-count {
    align-self: flex-start;
  }

  .program-guide-group-grid .channel-card-headline {
    align-items: flex-start;
    flex-direction: column;
  }

  .program-guide-group-grid .channel-actions {
    justify-content: flex-start;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url('/cdn/img/i/1images.gif');
  background-repeat: repeat;
  background-attachment: fixed;
  line-height: 1.5;
}

.site-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 95% -10%, rgba(255, 204, 0, 0.12), transparent 55%),
    radial-gradient(920px 580px at -10% 10%, rgba(0, 179, 255, 0.1), transparent 53%),
    linear-gradient(180deg, rgba(2, 11, 20, 0.24), rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.46) 100%);
}

.site-overlay.menu-active {
  z-index: 55;
  pointer-events: auto;
  background: rgba(1, 6, 12, 0.66);
  backdrop-filter: blur(3px);
}

.shell {
  width: min(1240px, 94vw);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.page-main.main-wide {
  width: min(1760px, 97vw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58));
  backdrop-filter: blur(9px);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  text-decoration: none;
  color: #fff7ca;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 204, 0, 0.55);
  background: linear-gradient(145deg, rgba(255, 204, 0, 0.2), rgba(0, 179, 255, 0.24));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.brand-play {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff8d4;
  margin-left: 2px;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-cool {
  font-size: 1.02rem;
  color: #fff7ca;
}

.brand-tv {
  font-size: 1.08rem;
  color: var(--accent);
}

.brand-live {
  font-size: 0.62rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d8ffe7;
  border: 1px solid rgba(46, 228, 111, 0.62);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(46, 228, 111, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 0 0 rgba(46, 228, 111, 0.42);
  animation: livePulse 1.4s ease-out infinite;
}

.brand-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2ee46f;
  box-shadow: 0 0 9px rgba(46, 228, 111, 0.7);
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 228, 111, 0.42);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(46, 228, 111, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 228, 111, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-live {
    animation: none;
  }
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  border-color: rgba(255, 204, 0, 0.72);
}

.brand-mark {
  transition: transform .18s ease, border-color .18s ease;
}

.brand-radio {
  text-decoration: none;
  color: #d7f4ff;
  border: 1px solid rgba(83, 196, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(6, 24, 45, 0.9), rgba(7, 34, 62, 0.72));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

.brand-radio:hover,
.brand-radio.active {
  border-color: rgba(85, 212, 255, 0.68);
  background: linear-gradient(145deg, rgba(10, 43, 75, 0.95), rgba(4, 31, 61, 0.85));
  color: #effbff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(3, 26, 48, 0.32);
}

.brand-radio-label {
  font-weight: 700;
  font-size: 0.84rem;
}

.brand-radio-pill {
  border: 1px solid rgba(84, 255, 184, 0.46);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.58rem;
  color: #c5ffe1;
  background: rgba(8, 72, 39, 0.36);
  letter-spacing: 0.06em;
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 16px;
}

.nav-icon-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  margin-left: 0;
  border: 1px solid var(--line);
  color: #ffffcc;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.nav-links-primary,
.nav-links-utility {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links-utility {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 204, 0, 0.12);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(1, 8, 15, 0.98), rgba(1, 4, 10, 0.98));
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform .25s ease;
  display: none;
  overflow: auto;
  padding: 16px;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mobile-menu-head-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mobile-menu-head strong {
  color: #fff6c3;
  line-height: 1.15;
}

.mobile-menu-close {
  border: 1px solid var(--line);
  color: #ffffcc;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 40px;
  margin-left: auto;
}

.mobile-menu-radio {
  text-decoration: none;
  color: #d6f4ff;
  border: 1px solid rgba(90, 203, 255, 0.34);
  border-radius: 999px;
  background: rgba(5, 24, 42, 0.72);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  width: fit-content;
}

.mobile-menu-radio.active {
  border-color: rgba(90, 203, 255, 0.62);
  color: #f0fbff;
  background: rgba(8, 38, 68, 0.82);
}

.mobile-menu-search {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 204, 0, 0.26);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(8, 25, 40, 0.82), rgba(3, 12, 22, 0.82));
}

.mobile-menu-search input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 0, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: var(--ink-strong);
  padding: 0 14px;
  font-size: 0.95rem;
}

.mobile-menu-search input:focus {
  outline: none;
  border-color: rgba(255, 204, 0, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.16);
}

.mobile-menu-search-hint {
  display: block;
  margin-top: 7px;
  color: #d8ebff;
  font-size: 0.76rem;
}

.mobile-menu-search-results {
  margin-top: 10px;
}

.mobile-menu-search-meta {
  color: var(--ink-soft);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.mobile-links-results a {
  border-color: rgba(255, 204, 0, 0.28);
  background: rgba(255, 204, 0, 0.08);
}

.mobile-links-results a strong {
  display: block;
  color: #fff6cb;
}

.mobile-links-results a small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.mobile-menu-body {
  display: grid;
  gap: 12px;
}

.mobile-menu-section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 18, 31, 0.86);
  padding: 10px;
}

.mobile-menu-section h3 {
  margin: 0 0 8px;
  color: #fff6c3;
  font-size: 0.95rem;
}

.mobile-links {
  display: grid;
  gap: 6px;
}

.mobile-links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(166, 208, 255, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.84rem;
}

.mobile-links a .nav-icon {
  flex-shrink: 0;
}

.mobile-links a.active {
  border-color: rgba(255, 204, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 204, 0, 0.12), rgba(0, 179, 255, 0.1));
  color: #fff8d0;
}

.mobile-links a small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.mobile-links-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-links-grid a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-links-grid a span:last-child {
  min-width: 0;
}

.mobile-links-categories a {
  justify-content: flex-start;
}

.mobile-info-links a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-info-links a .nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.95;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.82rem;
  line-height: 1;
  transition: all .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffd6;
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(255, 204, 0, 0.14), rgba(0, 179, 255, 0.13));
  transform: translateY(-1px);
}

.nav-link-favorite {
  border-color: rgba(92, 220, 255, 0.28);
  background: linear-gradient(145deg, rgba(12, 45, 66, 0.44), rgba(7, 24, 40, 0.34));
  color: #dff6ff;
}

.nav-link-favorite .nav-icon {
  color: #7fdfff;
}

.nav-link-favorite:hover,
.nav-link-favorite.active {
  border-color: rgba(92, 220, 255, 0.55);
  background: linear-gradient(145deg, rgba(20, 73, 104, 0.56), rgba(12, 38, 62, 0.5));
  color: #f2fbff;
  box-shadow: 0 8px 20px rgba(0, 179, 255, 0.12);
}

.mobile-favorite-link {
  border-color: rgba(92, 220, 255, 0.3) !important;
  background: linear-gradient(145deg, rgba(12, 43, 64, 0.5), rgba(8, 28, 45, 0.4)) !important;
  color: #e4f8ff !important;
}

.mobile-favorite-link .nav-icon {
  color: #8ce4ff;
}

.mobile-favorite-link.active {
  border-color: rgba(92, 220, 255, 0.58) !important;
  background: linear-gradient(145deg, rgba(22, 81, 112, 0.55), rgba(10, 44, 70, 0.52)) !important;
  color: #f4fcff !important;
}

.nav-more {
  position: relative;
}

.nav-more summary {
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.82rem;
  line-height: 1;
  transition: all .18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-more summary:hover,
.nav-more[open] summary,
.nav-more.is-active summary {
  color: #ffffd6;
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(255, 204, 0, 0.14), rgba(0, 179, 255, 0.13));
}

.nav-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 12, 22, 0.95);
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  z-index: 40;
}

.nav-more-menu a {
  border-radius: 8px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-more-menu a .nav-icon {
  opacity: 0.95;
  flex: 0 0 16px;
}

@media (max-width: 1200px) {
  .nav-shell {
    gap: 10px;
  }

  .brand-radio-pill {
    display: none;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a,
  .nav-more summary {
    padding-inline: 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .mobile-menu {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }

  .nav-links {
    display: none;
  }

  .brand-live {
    display: none;
  }

  .brand-radio {
    padding: 6px 9px;
  }

  .brand-radio-label {
    font-size: 0.8rem;
  }
}

.page-main {
  padding: 20px 0 26px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
  background:
    linear-gradient(120deg, rgba(255, 204, 0, 0.12), transparent 40%),
    linear-gradient(170deg, rgba(0, 179, 255, 0.15), rgba(4, 16, 28, 0.82));
}

.hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.38), rgba(255, 204, 0, 0));
  pointer-events: none;
}

.kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--accent);
  border: 1px solid rgba(255, 204, 0, 0.42);
  background: rgba(255, 204, 0, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.73rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  line-height: 1.15;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
}

.hero p {
  margin: 0 0 14px;
  color: #d2e8ff;
}

.hero-channel-logo-wrap {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.hero-channel-logo {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.hero-channel {
  padding: 10px 12px;
}

.hero-channel-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 10px;
  align-items: center;
}

.hero-channel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-channel-heading {
  min-width: 0;
}

.hero-channel-heading .kicker {
  margin-bottom: 3px;
}

.hero-channel-heading h1 {
  margin-bottom: 0;
  font-size: clamp(1.18rem, 1.6vw, 1.55rem);
}

.hero-channel .hero-channel-logo-wrap {
  width: 58px;
  height: 58px;
  margin-bottom: 0;
}

.hero-channel p {
  margin: 8px 0 6px;
  font-size: 0.9rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.now-next-panel--hero {
  border: 1px solid rgba(166, 208, 255, 0.28);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(5, 18, 31, 0.74), rgba(2, 8, 16, 0.78));
  padding: 7px 8px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.now-next-ticker-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(166, 208, 255, 0.28);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  min-width: 0;
  max-width: min(100%, 420px);
}

.ticker-item-now {
  border-color: rgba(46, 228, 111, 0.55);
}

.ticker-item-next {
  border-color: rgba(255, 204, 0, 0.55);
}

.ticker-label {
  font-size: 0.64rem;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 2px 6px;
  letter-spacing: 0.03em;
  color: #d8fce7;
  border: 1px solid rgba(46, 228, 111, 0.5);
  background: rgba(46, 228, 111, 0.14);
}

.ticker-item-next .ticker-label {
  color: #fff2bb;
  border-color: rgba(255, 204, 0, 0.6);
  background: rgba(255, 204, 0, 0.14);
}

.ticker-time {
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  color: #fff5c0;
  white-space: nowrap;
}

.ticker-title {
  font-size: 0.76rem;
  color: #e8f5ff;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-next-link {
  color: #fff0ae;
  text-decoration: none;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 204, 0, 0.45);
  background: rgba(255, 204, 0, 0.14);
  border-radius: 999px;
  padding: 3px 7px;
}

.now-next-link:hover {
  border-color: rgba(255, 204, 0, 0.72);
  color: #fff8d3;
}

.notice-compact {
  padding: 7px 9px;
  font-size: 0.78rem;
  border-radius: 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 12px;
  align-items: stretch;
}

.search-input {
  width: 100%;
  height: 49px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.52);
  color: var(--ink-strong);
  padding: 0 14px;
  font-size: 1rem;
}

.search-input::placeholder {
  color: #7ea6ce;
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 204, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 204, 0, 0.12), rgba(0, 179, 255, 0.12));
  padding: 8px 10px;
  min-height: 48px;
}

.stat-card small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.stat-card b {
  color: var(--accent);
  font-size: 1.06rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass-2);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.panel h2,
.panel h3 {
  color: var(--ink-strong);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.panel p {
  margin-top: 0;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

body.pwa-app-mode {
  --pwa-app-nav-offset: calc(76px + env(safe-area-inset-bottom, 0px));
  padding-bottom: var(--pwa-app-nav-offset);
}

.pwa-app-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9997;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(2, 7, 13, 0.92);
  border-top: 1px solid rgba(166, 208, 255, 0.22);
  box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.pwa-app-nav__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: min(620px, 100%);
  margin-inline: auto;
}

.pwa-app-nav a {
  display: inline-flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border: 1px solid rgba(166, 208, 255, 0.16);
  border-radius: 8px;
  color: rgba(238, 246, 255, 0.84);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.045);
}

.pwa-app-nav a.is-active {
  color: #04121c;
  border-color: rgba(88, 239, 197, 0.7);
  background: linear-gradient(135deg, #38c8ff, #58efc5);
}

.pwa-app-nav__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

.pwa-app-nav a.is-active .pwa-app-nav__icon {
  background: rgba(4, 18, 28, 0.12);
}

.pwa-recent-panel {
  padding: 14px;
}

.pwa-recent-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pwa-recent-panel__head h2 {
  margin: 0;
  font-size: 1rem;
}

.pwa-recent-panel__head a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
}

.pwa-recent-panel__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.pwa-recent-panel__list a {
  flex: 0 0 auto;
  max-width: 190px;
  padding: 8px 11px;
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offline-hero,
.offline-panel {
  border-color: rgba(88, 239, 197, 0.24);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  background: linear-gradient(160deg, rgba(255, 204, 0, 0.1), rgba(0, 179, 255, 0.11));
  color: var(--ink);
}

.quick-card:hover {
  border-color: rgba(255, 204, 0, 0.6);
}

.quick-title {
  display: block;
  color: #ffffd5;
  margin-bottom: 4px;
  font-weight: 700;
}

.quick-card strong {
  color: var(--accent);
  font-size: 0.86rem;
}

#favorites-panel {
  display: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  border: 1px solid rgba(255, 204, 0, 0.48);
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  color: #1f1a00;
  font-weight: 700;
  background: linear-gradient(180deg, #ffdb68, #ffcc00);
  font-size: 0.83rem;
  transition: filter .16s ease;
}

.btn:hover {
  filter: brightness(1.07);
}

.btn-soft {
  background: rgba(255, 204, 0, 0.1);
  color: #ffe8a8;
  border-color: rgba(255, 204, 0, 0.42);
  font-weight: 600;
}

.btn-soft:hover {
  background: rgba(255, 204, 0, 0.2);
}

.live-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.live-tile {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  color: var(--ink);
}

.live-tile strong {
  display: block;
  color: #fff7ca;
  margin-bottom: 4px;
}

.live-tile small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.load-more-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.load-more-btn {
  cursor: pointer;
}

.load-more-text {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

#load-more-sentinel {
  width: 100%;
  height: 1px;
}

.search-results-panel {
  margin-top: 0;
}

.search-results-count {
  color: var(--ink-soft);
  font-size: 0.83rem;
  margin-bottom: 10px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.channel-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(4, 17, 30, 0.92), rgba(2, 10, 19, 0.92));
  box-shadow: var(--shadow);
  padding: 14px;
  transition: all .18s ease;
}

.enhanced .channel-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: calc(var(--stagger, 0) * 30ms);
}

.enhanced .channel-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 204, 0, 0.52);
}

.channel-card-top {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.channel-logo-link {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.36);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
}

.channel-logo {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.channel-logo-fallback {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff5bd;
}

.channel-card-headline {
  min-width: 0;
}

.channel-name {
  color: #ffffd5;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  display: inline-block;
  margin-right: 8px;
}

.channel-name:hover {
  color: #ffe277;
}

.channel-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  color: #c3ffd3;
  border: 1px solid rgba(46, 228, 111, 0.58);
  background: rgba(46, 228, 111, 0.18);
  border-radius: 999px;
  font-size: 0.66rem;
  padding: 3px 8px;
  text-transform: uppercase;
}

.live-pill.is-unavailable {
  color: #f5d8a8;
  border-color: rgba(234, 179, 94, 0.58);
  background: rgba(125, 82, 18, 0.24);
}

.fav-btn {
  border: 1px solid rgba(255, 204, 0, 0.46);
  background: rgba(255, 204, 0, 0.08);
  color: #ffe28a;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.fav-btn.active {
  background: rgba(255, 204, 0, 0.24);
  color: #ffcc00;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  color: #dcedff;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(166, 208, 255, 0.08);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.71rem;
}

.tag:hover {
  border-color: rgba(255, 204, 0, 0.55);
  color: #fff5ba;
}

.epg-line {
  color: #cae2ff;
  font-size: 0.81rem;
  line-height: 1.4;
}

.epg-line strong {
  color: var(--accent);
}

.epg-line-evening {
  border-color: rgba(255, 204, 0, 0.28);
  background: rgba(255, 204, 0, 0.06);
}

.epg-line-evening strong {
  color: #ffe58a;
}

.player-shell {
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.ad-slot {
  display: block;
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.24);
  padding: 10px;
  margin: 0 0 16px;
  min-height: 120px;
  overflow: hidden;
}

.ad-slot-label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ad-slot-channel .adsbygoogle {
  min-height: 90px;
}

@media (max-width: 860px) {
  .ad-slot-channel {
    min-height: 280px;
  }

  .ad-slot-channel .adsbygoogle {
    min-height: 250px;
  }
}

.channel-frame {
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 0;
  max-height: none;
  background: #000;
}

.channel-video {
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 0;
  max-height: none;
  background: #000;
  display: block;
}

.player-stage {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
}

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

.channel-player-unavailable {
  display: grid;
  gap: 8px;
  max-width: 520px;
  padding: 24px;
  text-align: center;
  color: var(--text);
}

.channel-player-unavailable strong {
  font-size: 1.05rem;
}

.channel-player-unavailable span {
  color: var(--muted);
}

.native-player-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.native-control-btn {
  pointer-events: auto;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.82rem;
  border-color: rgba(166, 208, 255, 0.48);
  background: rgba(7, 14, 28, 0.82);
  color: #dff1ff;
  backdrop-filter: blur(5px);
}

.native-control-btn:hover {
  border-color: rgba(255, 204, 0, 0.68);
  color: #fff0bf;
}

.cast-glyph {
  display: inline-block;
  width: 0.9rem;
  height: 0.66rem;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-radius: 2px;
  position: relative;
  top: 1px;
}

.cast-glyph::before,
.cast-glyph::after {
  content: '';
  position: absolute;
  left: -5px;
  bottom: -5px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-left-color: currentColor;
  border-radius: 4px 0 0 0;
}

.cast-glyph::after {
  left: -9px;
  bottom: -9px;
}

.player-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.78));
}

.player-gate-btn {
  min-width: 220px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #e9f3ff;
  background: rgba(0, 0, 0, 0.62);
}

.player-loading.is-error {
  color: #ffe3e3;
  background: rgba(120, 11, 11, 0.72);
}

.channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.channel-meta-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.34);
  padding: 7px 10px;
  font-size: 0.8rem;
}

.home-app-layout {
  display: block;
}

.home-main-col,
.home-side-col {
  min-width: 0;
}

.channel-app-layout {
  display: block;
}

.channel-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -2px 0 12px;
  font-size: 0.83rem;
  color: #c9dbff;
}

.channel-breadcrumb a {
  color: #ffe59a;
  text-decoration: none;
}

.channel-breadcrumb a:hover {
  color: #fff4c6;
  text-decoration: underline;
}

.channel-main-col,
.channel-side-col {
  min-width: 0;
}

.channel-side-col .channel-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.channel-side-col .channel-card {
  padding: 12px;
}

.channel-side-col .channel-card-top {
  grid-template-columns: 42px 1fr;
}

.channel-side-col .channel-logo-link {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.panel-player {
  padding: 14px;
}

.player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.player-head h2 {
  margin: 0;
}

.player-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-source-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.player-source-switch-bottom {
  justify-content: center;
  margin: 14px auto 0;
  padding: 7px;
  border: 1px solid rgba(166, 208, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(7, 20, 35, 0.78), rgba(2, 10, 20, 0.86));
  max-width: 420px;
}

.player-source-btn {
  min-width: 124px;
  flex: 1 1 0;
  border-radius: 999px;
  font-weight: 700;
}

.player-source-btn.is-active {
  border-color: rgba(57, 232, 122, 0.72);
  background: rgba(57, 232, 122, 0.2);
  color: #d8ffe8;
}

.panel-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-head-inline h2 {
  margin: 0;
}

.panel-head-inline small {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.epg-panel {
  overflow: hidden;
}

.epg-days-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.epg-day-panel {
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(5, 20, 34, 0.62), rgba(2, 9, 17, 0.66));
  padding: 10px;
  min-width: 0;
}

.epg-day-title {
  margin: 2px 0 8px;
  color: #fff7ca;
  font-size: 0.95rem;
}

.epg-timeline {
  display: grid;
  gap: 8px;
}

.epg-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
  padding: 9px 10px;
}

.epg-row.is-now {
  border-color: rgba(46, 228, 111, 0.52);
  background: linear-gradient(145deg, rgba(46, 228, 111, 0.18), rgba(0, 0, 0, 0.2));
}

.epg-row.is-next {
  border-color: rgba(255, 204, 0, 0.55);
}

.epg-time {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.86rem;
}

.epg-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.epg-title {
  color: #dff0ff;
  font-size: 0.84rem;
}

.epg-state {
  display: inline-block;
  color: #c2ffd5;
  border: 1px solid rgba(46, 228, 111, 0.65);
  background: rgba(46, 228, 111, 0.18);
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
}

.epg-state-next {
  color: #fff2ba;
  border-color: rgba(255, 204, 0, 0.65);
  background: rgba(255, 204, 0, 0.18);
}

.epg-loadmore-wrap {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.epg-loadmore-btn {
  cursor: pointer;
}

.show-library-panel p {
  margin: 0 0 8px;
}

.show-library-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.show-library-item {
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(5, 18, 31, 0.6), rgba(2, 10, 19, 0.62));
  padding: 10px;
}

.show-library-item h3 {
  margin: 0 0 6px;
  color: #fff7cc;
  font-size: 0.9rem;
  line-height: 1.32;
}

.show-library-item p {
  margin: 0 0 6px;
  color: #dcefff;
  font-size: 0.79rem;
  line-height: 1.45;
}

.show-library-item small {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.now-next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.now-next-head h2 {
  margin: 0;
}

.now-next-sync {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(46, 228, 111, 0.45);
  background: rgba(46, 228, 111, 0.14);
  color: #c9ffdc;
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 8px;
}

.now-next-stack {
  display: grid;
  gap: 10px;
}

.now-next-item {
  border: 1px solid rgba(166, 208, 255, 0.24);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(6, 21, 36, 0.72), rgba(3, 11, 20, 0.78));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.now-next-item.is-now {
  border-color: rgba(46, 228, 111, 0.5);
}

.now-next-item.is-next {
  border-color: rgba(255, 204, 0, 0.5);
}

.now-next-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.now-next-chip {
  display: inline-flex;
  align-items: center;
  color: #c9ffdc;
  border: 1px solid rgba(46, 228, 111, 0.58);
  background: rgba(46, 228, 111, 0.16);
  border-radius: 999px;
  font-size: 0.68rem;
  line-height: 1;
  text-transform: uppercase;
  padding: 4px 8px;
}

.now-next-chip-next {
  color: #fff2ba;
  border-color: rgba(255, 204, 0, 0.65);
  background: rgba(255, 204, 0, 0.16);
}

.now-next-time {
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  color: #fff5c0;
}

.now-next-title {
  margin: 0 0 4px;
  font-size: 0.93rem;
  line-height: 1.35;
  color: #eef7ff;
}

.now-next-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.45;
}

.now-next-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
}

.faq-item + .faq-item {
  margin-top: 8px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.info-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.info-highlight-card {
  border: 1px solid rgba(166, 208, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(5, 18, 31, 0.75), rgba(2, 10, 19, 0.75));
  padding: 10px;
}

.info-highlight-card strong {
  display: block;
  color: #fff6c3;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.info-highlight-card p {
  margin: 0;
  color: #dceeff;
  font-size: 0.79rem;
  line-height: 1.45;
}

.info-layout {
  display: grid;
  gap: 10px;
}

.info-block {
  border: 1px solid rgba(166, 208, 255, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
}

.info-block h2 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.info-block p {
  margin: 0;
}

.info-list {
  margin: 8px 0 0;
  padding: 0 0 0 20px;
  display: grid;
  gap: 6px;
}

.info-list li {
  color: #dceeff;
  font-size: 0.84rem;
}

.info-cta-panel p {
  margin: 0 0 10px;
}

.favorites-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.favorites-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.favorites-toolbar select,
.favorites-toolbar input {
  width: 100%;
  border: 1px solid rgba(166, 208, 255, 0.26);
  border-radius: 10px;
  background: #081a2d;
  color: #f3f8ff;
  min-height: 38px;
  padding: 8px 10px;
}

.favorites-toolbar select:focus,
.favorites-toolbar input:focus {
  outline: none;
  border-color: rgba(255, 204, 0, 0.62);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.16);
}

.favorites-toolbar select option {
  background: #0a2036;
  color: #f6fbff;
}

.favorites-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-soft.danger {
  border-color: rgba(255, 97, 97, 0.55);
  color: #ffd1d1;
  background: rgba(255, 86, 86, 0.14);
}

.btn-soft.danger:hover {
  background: rgba(255, 86, 86, 0.24);
}

.favorites-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.favorites-page-item {
  border: 1px solid rgba(166, 208, 255, 0.24);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(5, 18, 31, 0.72), rgba(2, 10, 19, 0.72));
  position: relative;
  overflow: hidden;
}

.favorites-page-item:hover {
  border-color: rgba(255, 204, 0, 0.55);
}

.favorites-page-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  text-decoration: none;
  color: var(--ink);
}

.favorites-page-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(166, 208, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.favorites-page-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.favorites-page-logo-fallback {
  font-size: 1rem;
  color: #fff1bf;
  font-weight: 700;
}

.favorites-page-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.favorites-page-content strong {
  color: #fff7ca;
}

.favorites-page-content small {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.favorites-radio-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 94, 0.34);
  color: #ffd39c;
  background: rgba(54, 29, 0, 0.34);
  font-size: 0.72rem;
  line-height: 1;
}

.favorites-radio-status.is-online {
  border-color: rgba(76, 229, 129, 0.5);
  color: #b9ffd7;
  background: rgba(6, 52, 20, 0.42);
}

.favorites-page-epg {
  display: block;
  font-size: 0.74rem;
  color: #c7e6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.favorites-page-epg strong {
  color: #ffe9a1;
  font-size: 0.74rem;
}

.favorites-page-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid rgba(255, 136, 136, 0.5);
  background: rgba(50, 2, 2, 0.6);
  color: #ffd8d8;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 1;
  line-height: 1;
}

.favorites-page-item-remove:hover {
  background: rgba(95, 9, 9, 0.7);
}

.hero-pulse {
  padding: 10px 12px;
}

.pulse-hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-pulse h1 {
  margin: 0;
}

.pulse-live-dot {
  border: 1px solid rgba(110, 255, 157, 0.65);
  color: #bcffd0;
  background: rgba(7, 79, 28, 0.45);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  animation: pulse-live 1.6s ease-in-out infinite;
}

.pulse-ticker-panel {
  margin-top: 10px;
}

.pulse-ticker {
  border: 1px solid rgba(255, 204, 0, 0.38);
  border-radius: 10px;
  background: rgba(255, 204, 0, 0.08);
  color: #ffe9ab;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.pulse-heat-panel {
  margin-top: 10px;
}

.pulse-heat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pulse-heat-chip {
  text-decoration: none;
  border: 1px solid rgba(255, 204, 0, 0.38);
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.1);
  color: #fff2c0;
  padding: 6px 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
}

.pulse-heat-chip strong {
  color: #fff8d5;
  font-size: 0.78rem;
}

.pulse-heat-chip small {
  color: #d9ecff;
  font-size: 0.73rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-heat-empty {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.pulse-zones {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pulse-zone-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-color: rgba(94, 245, 164, 0.32);
  background: linear-gradient(160deg, rgba(6, 24, 39, 0.86), rgba(2, 11, 21, 0.86));
}

.pulse-zone-card::after {
  content: "";
  position: absolute;
  inset: auto -30% 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(94, 245, 164, 0.9), transparent);
  animation: pulse-zone-scan 2.6s linear infinite;
}

.pulse-zone-card small {
  font-size: 0.72rem;
  color: #c8e5ff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pulse-zone-card strong {
  font-size: 1.45rem;
  line-height: 1;
  color: #e9ffd7;
  white-space: nowrap;
}

.pulse-zone-warn {
  border-color: rgba(255, 204, 0, 0.42);
}

.pulse-zone-warn::after {
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.95), transparent);
}

.pulse-zone-prime {
  border-color: rgba(255, 181, 94, 0.42);
}

.pulse-zone-prime::after {
  background: linear-gradient(90deg, transparent, rgba(255, 181, 94, 0.95), transparent);
}

.pulse-zone-update {
  border-color: rgba(0, 179, 255, 0.42);
}

.pulse-zone-update::after {
  background: linear-gradient(90deg, transparent, rgba(0, 179, 255, 0.95), transparent);
}

.pulse-toolbar-panel {
  margin-top: 10px;
}

.pulse-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.radar-moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-moods .btn.active,
.pulse-tabs .btn.active {
  background: linear-gradient(180deg, #ffdb68, #ffcc00);
  color: #1f1a00;
}

.pulse-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pulse-board {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  position: relative;
}

.pulse-board::before {
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: none;
  border-radius: 18px;
  border: 1px solid rgba(166, 208, 255, 0.08);
}

.pulse-pane {
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.pulse-pane-now {
  grid-column: span 7;
}

.pulse-pane-soon {
  grid-column: span 5;
}

.pulse-pane-prime {
  grid-column: 1 / -1;
}

.pulse-pane::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 54%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.8), transparent);
  animation: pulse-pane-sweep 7.5s linear infinite;
  opacity: 0.45;
}

.pulse-pane-focus {
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.35), 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: box-shadow .25s ease;
}

.pulse-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 9px;
  align-content: start;
}

.pulse-pane-prime .pulse-list {
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
}

.pulse-pane-soon .pulse-list {
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  justify-items: start;
}

.pulse-pane-soon .pulse-card {
  width: min(100%, 360px);
}

.pulse-card {
  border: 1px solid rgba(166, 208, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(170deg, rgba(5, 18, 31, 0.72), rgba(2, 10, 19, 0.72));
  padding: 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  transition: border-color .16s ease, transform .16s ease;
}

.pulse-card:hover {
  border-color: rgba(255, 204, 0, 0.5);
}

.pulse-card.is-hot {
  box-shadow: 0 0 0 1px rgba(255, 196, 82, 0.35), 0 0 12px rgba(255, 196, 82, 0.17);
}

.pulse-card.is-changed {
  animation: pulse-flip .42s ease;
}

.pulse-card-empty {
  grid-template-columns: minmax(0, 1fr);
}

.pulse-board.is-refreshing .pulse-card {
  animation: pulse-lift .55s ease;
}

.pulse-card-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.pulse-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pulse-row-title,
.pulse-row-next {
  border-top: 1px solid rgba(166, 208, 255, 0.18);
  padding-top: 5px;
}

.pulse-row-progress {
  border-top: 1px solid rgba(166, 208, 255, 0.16);
  padding-top: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.pulse-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid rgba(166, 208, 255, 0.36);
  color: #dff0ff;
  background: rgba(166, 208, 255, 0.12);
  line-height: 1.2;
}

.pulse-chip-now {
  border-color: rgba(94, 245, 164, 0.5);
  color: #d8ffe7;
  background: rgba(94, 245, 164, 0.12);
}

.pulse-chip-next {
  border-color: rgba(255, 204, 0, 0.5);
  color: #fff2bb;
  background: rgba(255, 204, 0, 0.12);
}

.pulse-now-title,
.pulse-next-title {
  min-width: 0;
  color: #eaf5ff;
  font-size: 0.84rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pulse-live-badge,
.pulse-delta-badge,
.pulse-prime-badge {
  font-size: 0.67rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 208, 255, 0.32);
  padding: 2px 7px;
  color: #d5edff;
  white-space: nowrap;
}

.pulse-live-badge {
  animation: pulse-live 1.7s ease-in-out infinite;
}

.pulse-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.pulse-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5ef5a4, #ffcc00);
  transition: width .9s linear;
}

.pulse-progress-meta {
  color: var(--ink-soft);
  font-size: 0.72rem;
  white-space: nowrap;
}

.pulse-zap-box {
  margin-top: 10px;
}

.radar-zap-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(166, 208, 255, 0.22);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.24);
  margin-bottom: 8px;
}

.radar-zap-card strong {
  color: #fff7ca;
}

@media (max-width: 1460px) {
  .pulse-zones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pulse-pane-now,
  .pulse-pane-soon {
    grid-column: span 1;
  }

  .pulse-pane-prime {
    grid-column: 1 / -1;
  }

  .pulse-pane-prime .pulse-list {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  }
}

@media (max-width: 1220px) {
  .page-main.main-wide {
    width: min(1240px, 94vw);
  }

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

  .pulse-pane-prime .pulse-list {
    grid-template-columns: 1fr;
  }
}

@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 245, 164, 0.35);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(94, 245, 164, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 245, 164, 0);
  }
}

@keyframes pulse-zone-scan {
  from {
    transform: translateX(-35%);
  }
  to {
    transform: translateX(170%);
  }
}

@keyframes pulse-pane-sweep {
  0% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

@keyframes pulse-flip {
  0% {
    transform: rotateX(0deg);
    filter: brightness(1);
  }
  40% {
    transform: rotateX(-7deg);
    filter: brightness(1.18);
  }
  100% {
    transform: rotateX(0deg);
    filter: brightness(1);
  }
}

@keyframes pulse-lift {
  0% {
    transform: translateY(0);
    filter: brightness(1);
  }
  35% {
    transform: translateY(-2px);
    filter: brightness(1.1);
  }
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 2;
}

.footer-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 20px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-right a {
  color: var(--ink);
  text-decoration: none;
}

.footer-right a:hover {
  color: #ffffcc;
}

.footer-seo {
  border-top: 1px solid rgba(166, 208, 255, 0.2);
  padding: 10px 0 18px;
}

.footer-seo strong {
  display: block;
  color: #fff7ca;
  margin-bottom: 8px;
  font-size: 0.86rem;
}

.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-seo-links a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(166, 208, 255, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.22);
}

.footer-seo-links a:hover {
  color: #fff4b2;
  border-color: rgba(255, 204, 0, 0.5);
}

.notice {
  border: 1px solid rgba(255, 204, 0, 0.52);
  background: rgba(255, 204, 0, 0.13);
  color: #ffe9a0;
  border-radius: 12px;
  padding: 10px 12px;
}

.notice a {
  color: #fff3b8;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 1030px) {
  .live-strip {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-channel-top {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .favorites-toolbar {
    grid-template-columns: 1fr;
  }

  .favorites-page-grid {
    grid-template-columns: 1fr;
  }

  .pulse-board {
    grid-template-columns: 1fr;
  }

  .pulse-zones {
    grid-template-columns: 1fr;
  }

  .pulse-pane {
    display: none;
    min-height: 0;
  }

  .pulse-pane.is-active {
    display: block;
  }
}

@media (min-width: 1100px) {
  .home-app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.9fr);
    gap: 14px;
    align-items: start;
  }

  .home-side-col {
    position: sticky;
    top: 76px;
  }

  .channel-app-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
    gap: 14px;
    align-items: start;
  }

  .channel-side-col {
    position: sticky;
    top: 76px;
  }

  .channel-frame,
  .channel-video { min-height: 0; max-height: none; }

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

  .show-library-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .native-player-controls {
    left: 8px;
    right: 8px;
    bottom: 8px;
    justify-content: stretch;
    gap: 6px;
  }

  .native-control-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .channel-frame,
  .channel-video { min-height: 0; max-height: none; }

  .nav-toggle {
    padding: 8px 10px;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-top: 6px;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-links.open {
    display: flex;
  }

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

  .favorites-page-grid {
    grid-template-columns: 1fr;
  }

  .live-strip {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 18px;
  }

  .page-main {
    padding-top: 14px;
  }

  .channel-card-top {
    grid-template-columns: 46px 1fr;
  }

  .channel-logo-link {
    width: 46px;
    height: 46px;
  }

  .player-head {
    display: grid;
    gap: 8px;
  }

  .epg-row {
    grid-template-columns: 60px 1fr;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .brand-text {
    gap: 5px;
    letter-spacing: 0.06em;
  }

  .brand-cool {
    font-size: 0.95rem;
  }

  .brand-tv {
    font-size: 0.98rem;
  }

  .brand-live {
    display: none;
  }

  .now-next-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .now-next-time {
    font-size: 0.94rem;
  }

  .now-next-ticker-row {
    gap: 5px;
  }

  .ticker-item {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .now-next-link {
    margin-left: 0;
  }
}

/* Radio */
.radio-page .hero.radio-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 340px at 12% -8%, rgba(36, 121, 205, 0.52), transparent 62%),
    radial-gradient(560px 320px at 88% -12%, rgba(0, 236, 149, 0.22), transparent 66%),
    linear-gradient(140deg, rgba(7, 20, 42, 0.86), rgba(2, 8, 16, 0.92));
  border: 1px solid rgba(123, 210, 255, 0.28);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.radio-page .hero.radio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 22px
    );
  opacity: 0.17;
  pointer-events: none;
}

.radio-page .hero.radio-hero > * {
  position: relative;
  z-index: 1;
}

.radio-page .hero.radio-hero.compact {
  padding-top: 16px;
  padding-bottom: 16px;
}

.radio-top-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.05fr);
  grid-template-areas:
    "hero player"
    "controls controls";
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  min-width: 0;
}

.radio-top-main {
  display: grid;
  gap: 12px;
  align-content: start;
  grid-area: hero;
  min-width: 0;
}

.radio-top-grid > .radio-top-main > .hero,
.radio-top-grid > .radio-top-main > .panel,
.radio-top-grid > .radio-top-aside > .panel,
.radio-top-grid > .radio-top-controls {
  margin-bottom: 0;
}

.radio-top-aside {
  grid-area: player;
  min-width: 0;
}

.radio-top-controls {
  grid-area: controls;
  min-width: 0;
}

.radio-detail-top-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.94fr) minmax(420px, 1.06fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
  min-width: 0;
}

.radio-detail-top-main,
.radio-detail-top-aside {
  min-width: 0;
}

.radio-detail-top-main > .hero,
.radio-detail-top-aside > .panel {
  margin-bottom: 0;
}

.radio-page:not(.radio-detail-page) .radio-top-main .hero.radio-hero {
  padding: 18px;
}

.radio-page:not(.radio-detail-page) .radio-top-main .hero.radio-hero p {
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radio-page:not(.radio-detail-page) .radio-top-main .hero .hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.radio-page:not(.radio-detail-page) .radio-top-main .hero .stat-card {
  min-height: 0;
  padding: 8px 10px;
}

.radio-page:not(.radio-detail-page) .radio-top-main .hero .stat-card b {
  font-size: 1rem;
}

.radio-page:not(.radio-detail-page) .radio-controls-panel {
  padding: 12px;
  min-width: 0;
}

.radio-page:not(.radio-detail-page) .radio-controls-panel .radio-toolbar {
  gap: 10px;
}

.radio-page:not(.radio-detail-page) .radio-top-controls .radio-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.radio-page:not(.radio-detail-page) .radio-top-controls .radio-toolbar #radio-search-form {
  min-width: 0;
  width: 100%;
}

.radio-page:not(.radio-detail-page) .radio-top-controls .radio-toolbar .radio-toolbar-meta {
  white-space: nowrap;
}

.radio-page:not(.radio-detail-page) .radio-controls-panel .radio-filters {
  margin-top: 10px;
  max-width: 100%;
  min-width: 0;
}

.radio-detail-hero .hero-stats {
  margin-top: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.radio-detail-hero-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.radio-detail-hero-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid rgba(123, 210, 255, 0.34);
  background: rgba(8, 16, 28, 0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.radio-detail-hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.15);
}

.radio-detail-hero-logo-fallback {
  font-size: 1.45rem;
  font-weight: 800;
  color: #eef7ff;
}

.radio-detail-hero-copy {
  min-width: 0;
}

.radio-detail-hero-copy .kicker {
  margin-bottom: 5px;
}

.radio-detail-hero-copy h1 {
  margin-bottom: 6px;
}

.radio-detail-hero-copy p {
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radio-detail-meta-row {
  margin-top: 8px;
  gap: 6px;
}

.radio-detail-tag {
  background: rgba(9, 25, 44, 0.62);
  border-color: rgba(123, 210, 255, 0.22);
}

.radio-detail-top-grid .radio-player-panel {
  min-width: 0;
}

.radio-detail-top-grid .radio-player-head > div,
.radio-detail-top-grid .radio-player-live,
.radio-detail-top-grid .radio-source-label {
  min-width: 0;
}

.radio-detail-top-grid .radio-source-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-controls-panel,
.radio-player-panel {
  border: 1px solid rgba(123, 210, 255, 0.22);
  background: linear-gradient(170deg, rgba(11, 22, 40, 0.86), rgba(6, 12, 24, 0.92));
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.24);
}

.radio-page:not(.radio-detail-page) .radio-player-panel {
  position: sticky;
  top: 84px;
  z-index: 14;
}

.radio-player-shell {
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.radio-player-shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(74, 214, 255, 0.9), rgba(98, 255, 183, 0.5), rgba(74, 214, 255, 0));
  pointer-events: none;
}

.radio-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-toolbar #radio-search-form {
  flex: 1 1 340px;
}

.radio-toolbar .search-input {
  width: 100%;
}

.radio-toolbar-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.radio-btn-main {
  min-width: 148px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-color: rgba(95, 210, 255, 0.64);
  color: #ecfbff;
  background: linear-gradient(145deg, #1f9eff, #0e6fd4);
  box-shadow: 0 14px 26px rgba(12, 112, 207, 0.42);
}

.radio-btn-main:hover {
  filter: brightness(1.08);
}

.radio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.radio-filter {
  text-decoration: none;
}

.radio-filter.is-active {
  background: linear-gradient(135deg, rgba(58, 180, 255, 0.34), rgba(24, 124, 207, 0.26));
  border-color: rgba(90, 194, 255, 0.58);
  color: #fff;
}

.radio-favorite-strip {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(126, 197, 255, 0.25);
}

.radio-favorite-strip strong {
  display: inline-block;
  margin-bottom: 8px;
}

.radio-player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-player-head > div {
  min-width: 0;
}

.radio-player-head h2 {
  margin: 0 0 4px;
}

#radio-now-meta {
  margin-top: 3px;
}

.radio-player-live {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(123, 210, 255, 0.24);
  background: linear-gradient(135deg, rgba(19, 40, 74, 0.52), rgba(7, 14, 25, 0.68));
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.radio-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4bf08f;
  box-shadow: 0 0 0 0 rgba(75, 240, 143, 0.75);
}

.radio-player-panel.is-playing .radio-live-dot {
  animation: radioPulse 1.3s infinite;
}

.radio-source-label {
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 0;
  flex: 1 1 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-eq {
  margin-left: auto;
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 16px;
}

.radio-eq i {
  width: 3px;
  height: 5px;
  border-radius: 999px;
  background: #8ed2ff;
  opacity: 0.45;
}

.radio-player-panel.is-playing .radio-eq i {
  animation: radioEq 1s ease-in-out infinite;
  opacity: 0.95;
}

.radio-player-panel.is-playing .radio-eq i:nth-child(2) {
  animation-delay: 0.1s;
}

.radio-player-panel.is-playing .radio-eq i:nth-child(3) {
  animation-delay: 0.18s;
}

.radio-player-panel.is-playing .radio-eq i:nth-child(4) {
  animation-delay: 0.26s;
}

.radio-player-panel.is-loading .radio-player-live {
  border-color: rgba(255, 193, 81, 0.5);
}

.radio-player-panel.is-error .radio-player-live {
  border-color: rgba(255, 96, 96, 0.58);
  background: linear-gradient(135deg, rgba(72, 20, 20, 0.48), rgba(23, 9, 9, 0.7));
}

#radio-audio {
  position: absolute;
  opacity: 0.001;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.radio-player-controls {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.radio-player-controls .btn {
  min-height: 36px;
}

.radio-player-controls .radio-toggle-inline-btn {
  border-color: rgba(95, 210, 255, 0.38);
  background: rgba(9, 30, 53, 0.7);
  color: #e8f7ff;
}

.radio-player-controls .btn-soft {
  border-color: rgba(120, 197, 255, 0.32);
  background: rgba(7, 18, 34, 0.68);
}

.radio-volume-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(123, 210, 255, 0.28);
  background: rgba(5, 11, 20, 0.56);
  font-size: 0.82rem;
  color: #dfefff;
}

#radio-volume {
  width: 116px;
  accent-color: #41c6ff;
}

.radio-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.radio-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.radio-list-surface {
  margin-top: 12px;
}

.radio-list-surface #radio-empty {
  margin-top: 12px;
}

.radio-card {
  border: 1px solid rgba(122, 192, 255, 0.28);
  border-radius: 16px;
  padding: 11px;
  background:
    radial-gradient(220px 80px at 16% 0%, rgba(46, 151, 255, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(9, 16, 28, 0.86), rgba(5, 9, 17, 0.95));
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 214px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.radio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 206, 255, 0.56);
  box-shadow: 0 14px 24px rgba(2, 12, 25, 0.4);
}

.radio-card.is-playing {
  border-color: rgba(70, 214, 119, 0.72);
  box-shadow: 0 0 0 1px rgba(70, 214, 119, 0.35), 0 0 28px rgba(70, 214, 119, 0.25);
}

.radio-card-top {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 9px;
  align-items: start;
}

.radio-logo-link {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(122, 192, 255, 0.36);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.radio-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.22);
}

.radio-logo-fallback {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ecf5ff;
}

.radio-card-headline h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.15;
}

.radio-card-headline h3 a {
  color: inherit;
  text-decoration: none;
}

.radio-card-headline h3 a:hover {
  text-decoration: underline;
}

.radio-card-headline small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-card-side {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
}

.radio-state {
  font-size: 0.72rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 94, 0.38);
  color: #ffcf93;
  background: rgba(56, 30, 0, 0.45);
  white-space: nowrap;
}

.radio-state.is-online {
  color: #a8ffd0;
  border-color: rgba(76, 229, 129, 0.55);
  background: rgba(5, 56, 21, 0.54);
}

.radio-card-description {
  margin: 0;
  color: #dce8f7;
  font-size: 0.82rem;
  line-height: 1.34;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.radio-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  border: 1px solid rgba(139, 209, 255, 0.3);
  background: rgba(12, 24, 44, 0.55);
  color: #d7ecff;
  font-size: 0.7rem;
  line-height: 1;
}

.radio-card-actions {
  margin-top: auto;
  gap: 7px;
}

.radio-play-btn {
  border-color: rgba(80, 202, 255, 0.58);
  color: #f3fcff;
  background: linear-gradient(150deg, rgba(20, 123, 204, 0.94), rgba(28, 89, 179, 0.94));
}

.radio-play-btn:hover {
  filter: brightness(1.1);
}

.radio-fav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(130, 189, 255, 0.34);
  background: rgba(6, 10, 16, 0.65);
  color: #e7efff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.radio-fav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(157, 214, 255, 0.5);
}

.radio-fav-btn.is-active {
  color: #ffd766;
  border-color: rgba(255, 208, 80, 0.62);
  background: rgba(71, 53, 1, 0.58);
}

.radio-load-more-row {
  justify-content: center;
  margin-top: 12px;
}

.radio-list-surface .radio-scroll-sentinel {
  margin-top: 4px;
}

.radio-grid.is-fetching {
  opacity: 0.94;
  transition: opacity .15s ease;
}

.radio-scroll-sentinel {
  height: 18px;
}

.radio-info-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-detail-profile-tags {
  margin: 8px 0 10px;
}

.radio-detail-editorial {
  color: #dbe9fa;
}

.radio-mini-player {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 28;
  border: 1px solid rgba(120, 210, 255, 0.44);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(7, 22, 40, 0.96), rgba(4, 13, 24, 0.97));
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.42);
  display: none;
  align-items: stretch;
  gap: 8px;
  flex-direction: column;
  padding: 9px 10px;
}

body.pwa-app-mode .radio-mini-player {
  bottom: calc(10px + var(--pwa-app-nav-offset, 0px));
}

.radio-mini-player-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.radio-mini-search {
  display: none;
  gap: 6px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.radio-mini-search input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(120, 210, 255, 0.28);
  background: rgba(4, 13, 24, 0.82);
  color: #e8f7ff;
  padding: 0 10px;
  font-size: 0.86rem;
}

.radio-mini-search input:focus {
  outline: none;
  border-color: rgba(120, 210, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(65, 198, 255, 0.12);
}

.radio-mini-search .btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.radio-mini-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 1px;
}

.radio-mini-meta strong {
  font-size: 0.86rem;
  line-height: 1.15;
  color: #e8f7ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-mini-meta small {
  font-size: 0.74rem;
  color: #98c7ea;
}

.radio-mini-player.is-idle .radio-mini-meta small {
  color: #b6d6ec;
}

.radio-mini-player.is-idle #radio-mini-stop {
  opacity: 0.7;
}

.radio-list-tv-link {
  white-space: nowrap;
}

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

.radio-tech-details {
  margin-top: 10px;
  border: 1px solid rgba(120, 197, 255, 0.2);
  border-radius: 10px;
  background: rgba(6, 13, 23, 0.42);
  padding: 8px 10px;
}

.radio-tech-details summary {
  cursor: pointer;
  color: #dff2ff;
  font-size: 0.84rem;
}

.radio-tech-details[open] summary {
  margin-bottom: 8px;
}

.radio-tech-stream {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.8rem;
}

.radio-tech-stream code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(120, 197, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #bde7ff;
}

@keyframes radioPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(75, 240, 143, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(75, 240, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(75, 240, 143, 0);
  }
}

@keyframes radioEq {
  0%, 100% {
    height: 5px;
  }
  50% {
    height: 14px;
  }
}

@media (max-width: 1280px) {
  .radio-top-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 980px) {
  .radio-top-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "controls"
      "player";
    gap: 12px;
  }

  .radio-page:not(.radio-detail-page) .radio-top-main .hero .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .radio-page:not(.radio-detail-page) .radio-top-controls .radio-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .radio-page:not(.radio-detail-page) .radio-top-controls .radio-toolbar .radio-toolbar-meta {
    white-space: normal;
  }

  .radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .radio-page:not(.radio-detail-page) .radio-player-panel {
    position: static;
  }

  .radio-detail-top-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .radio-detail-hero .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .radio-page {
    padding-bottom: 128px;
  }

  body.pwa-app-mode .radio-page {
    padding-bottom: calc(128px + var(--pwa-app-nav-offset, 0px));
  }

  .radio-top-grid {
    margin-bottom: 10px;
  }

  .radio-top-main {
    gap: 10px;
  }

  .radio-top-grid > * {
    min-width: 0;
  }

  .radio-detail-top-grid,
  .radio-detail-top-grid > * {
    min-width: 0;
  }

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

  .radio-page:not(.radio-detail-page) .radio-toolbar {
    display: none;
  }

  .radio-page:not(.radio-detail-page) .radio-player-panel {
    display: none;
  }

  .radio-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .radio-toolbar .search-input {
    flex-basis: auto;
  }

  .radio-btn-main {
    min-width: 0;
    width: 100%;
  }

  .radio-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    max-width: 100%;
  }

  .radio-filter {
    white-space: nowrap;
  }

  .radio-player-controls {
    gap: 6px;
  }

  .radio-player-controls .btn-soft {
    flex: 1 1 calc(50% - 6px);
  }

  .radio-volume-wrap {
    width: 100%;
    justify-content: space-between;
  }

  #radio-volume {
    width: 65%;
  }

  .radio-card {
    min-height: 0;
  }

  .radio-card-top {
    grid-template-columns: 46px 1fr auto;
  }

  .radio-logo-link {
    width: 46px;
    height: 46px;
  }

  .radio-card-headline small {
    max-width: 180px;
  }

  .radio-card-side {
    gap: 5px;
  }

  .radio-state {
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .radio-detail-hero-head {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .radio-detail-hero-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .radio-detail-hero .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .radio-detail-hero .hero-stats .stat-card {
    min-width: 0;
    padding: 8px 9px;
  }

  .radio-detail-hero .hero-stats .stat-card b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .radio-detail-meta-row {
    margin-top: 7px;
  }

  .radio-player-controls .radio-toggle-inline-btn {
    flex: 1 1 calc(50% - 6px);
  }

  .radio-mini-player {
    display: flex;
    padding: 8px 9px;
    gap: 7px;
  }

  .radio-mini-player-main {
    gap: 8px;
    min-width: 0;
  }

  .radio-mini-player-main > .btn {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.8rem;
    flex: 0 0 auto;
  }

  .radio-mini-search {
    display: flex;
    min-width: 0;
  }

  .radio-mini-meta {
    min-width: 0;
    flex: 1 1 auto;
  }

  .radio-mini-player.is-idle .radio-mini-meta strong {
    font-size: 0.82rem;
  }

  .radio-mini-player.is-idle .radio-mini-meta small {
    font-size: 0.71rem;
  }

  .radio-source-label {
    flex-basis: 100%;
  }

  .radio-eq {
    margin-left: 0;
  }
}

/* Program TV guide final overrides (kept at end to beat generic channel card/grid rules) */
.channel-grid.program-guide-group-root {
  display: block;
  margin-bottom: 0;
}

.program-guide-sections {
  display: grid;
  gap: 12px;
}

.program-guide-group {
  padding: 12px;
}

.program-guide-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.program-guide-group-title h3 {
  margin: 0;
  font-size: 0.98rem;
}

.program-guide-group-title p {
  margin: 3px 0 0;
  font-size: 0.8rem;
  color: #9eb7d9;
}

.program-guide-group-count {
  align-self: flex-start;
  min-width: 34px;
  text-align: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(122, 212, 255, 0.26);
  background: rgba(9, 22, 37, 0.9);
  color: #eef7ff;
  font-weight: 700;
  font-size: 0.78rem;
}

.program-guide-group .channel-grid.program-guide-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 0;
}

.program-guide-group-grid .channel-card {
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: none;
  background: rgba(5, 16, 28, 0.88);
}

.program-guide-group-grid .channel-card:hover {
  transform: none;
  border-color: rgba(122, 212, 255, 0.3);
}

.program-guide-group-grid .channel-card-top {
  margin-bottom: 6px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.program-guide-group-grid .channel-logo-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.program-guide-group-grid .channel-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.program-guide-group-grid .channel-actions {
  flex: 0 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.program-guide-group-grid .live-pill {
  font-size: 0.62rem;
  padding: 2px 7px;
}

.program-guide-group-grid .fav-btn {
  padding: 3px 8px;
  font-size: 0.72rem;
}

.program-guide-group-grid .epg-line {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(122, 212, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.79rem;
  line-height: 1.35;
}

.program-guide-group-grid .epg-line:first-of-type {
  margin-top: 0;
}

.program-guide-group-grid .epg-line strong {
  color: #ffd55f;
}

.program-guide-group-grid .tags {
  display: none;
}

.program-guide-empty {
  margin-top: 12px;
}

@media (min-width: 981px) {
  .program-guide-group .channel-grid.program-guide-group-grid {
    gap: 7px;
  }

  .program-guide-group-grid .channel-card {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    grid-auto-rows: minmax(0, auto);
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
  }

  .program-guide-group-grid .channel-card > .channel-card-top {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .program-guide-group-grid .channel-card > .epg-line {
    grid-column: 2;
    margin-top: 0;
  }

  .program-guide-group-grid .channel-card > .epg-line + .epg-line {
    margin-top: 4px;
  }
}

@media (max-width: 980px) {
  .program-guide-group-head {
    flex-direction: column;
    gap: 7px;
  }

  .program-guide-group-grid .channel-card-headline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .program-guide-group-grid .channel-actions {
    justify-content: flex-start;
  }
}

/* Program TV guide list mode (single list, all channels) */
.program-guide-page-layout .home-main-col > .channel-grid#channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 0;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card {
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: none;
  background: rgba(5, 16, 28, 0.88);
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card:hover {
  transform: none;
  border-color: rgba(122, 212, 255, 0.3);
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card-top {
  margin-bottom: 6px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-logo-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card-title-stack {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-items: start;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-actions {
  flex: 0 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .live-pill {
  font-size: 0.62rem;
  padding: 2px 7px;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .fav-btn {
  padding: 3px 8px;
  font-size: 0.72rem;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .epg-line {
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(122, 212, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
  font-size: 0.79rem;
  line-height: 1.35;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .epg-line:first-of-type {
  margin-top: 0;
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .epg-line.epg-line-evening {
  border-color: rgba(255, 204, 0, 0.28);
  background: rgba(255, 204, 0, 0.07);
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .epg-line.epg-line-evening strong {
  color: #ffe58a;
}

.program-guide-page-layout .guide-epg-toggle {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.program-guide-page-layout .guide-epg-toggle-inline {
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 7px;
  border-color: rgba(122, 212, 255, 0.25);
  background: rgba(7, 18, 31, 0.82);
}

.program-guide-page-layout .guide-epg-toggle-inline:hover {
  border-color: rgba(255, 204, 0, 0.32);
}

.program-guide-page-layout .guide-epg-toggle-inline.is-open {
  border-color: rgba(255, 86, 86, 0.38);
  background: rgba(58, 12, 12, 0.72);
  color: #ffdede;
}

.program-guide-page-layout .guide-epg-toggle-icon {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  color: #9fd6ff;
  line-height: 1;
  font-weight: 700;
  font-size: 12px;
}

.program-guide-page-layout .guide-epg-toggle-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.program-guide-page-layout .guide-epg-toggle-icon.is-close {
  color: #ff7b7b;
}

.program-guide-page-layout .guide-epg-panel {
  margin-top: 6px;
  border: 1px solid rgba(122, 212, 255, 0.14);
  background: rgba(4, 12, 22, 0.8);
  border-radius: 12px;
  padding: 10px;
}

.program-guide-page-layout .guide-epg-panel-status {
  color: #b7cdea;
  font-size: 0.8rem;
}

.program-guide-page-layout .guide-epg-panel-status.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6ecff;
}

.program-guide-page-layout .guide-epg-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7ad4ff;
  box-shadow: 0 0 0 0 rgba(122, 212, 255, 0.55);
  animation: guideEpgPulse 1.4s ease-out infinite;
}

.program-guide-page-layout .guide-epg-skeleton {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.program-guide-page-layout .guide-epg-skeleton > span {
  display: block;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(122,212,255,0.08), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: guideEpgShimmer 1.2s linear infinite;
}

.program-guide-page-layout .guide-epg-panel-status.is-error {
  color: #ffd2b8;
}

.program-guide-page-layout .guide-epg-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.program-guide-page-layout .guide-epg-head strong {
  color: #eef7ff;
  font-size: 0.86rem;
}

.program-guide-page-layout .guide-epg-head span {
  color: #9fb8d9;
  font-size: 0.76rem;
}

.program-guide-page-layout .guide-epg-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.program-guide-page-layout .guide-epg-tab-btn {
  border: 1px solid rgba(122, 212, 255, 0.2);
  background: rgba(6, 16, 29, 0.8);
  color: #dfefff;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
}

.program-guide-page-layout .guide-epg-tab-btn.is-active {
  border-color: rgba(255, 204, 0, 0.35);
  background: rgba(255, 204, 0, 0.09);
  color: #fff1b7;
}

.program-guide-page-layout .guide-epg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.program-guide-page-layout .guide-epg-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-radius: 8px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.02);
}

.program-guide-page-layout .guide-epg-time {
  color: #ffe58a;
  font-weight: 700;
  font-size: 0.77rem;
}

.program-guide-page-layout .guide-epg-title {
  color: #cfe4ff;
  font-size: 0.78rem;
  line-height: 1.35;
}

.program-guide-page-layout .guide-epg-more {
  margin-top: 8px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.77rem;
  border-color: rgba(122, 212, 255, 0.22);
}

.program-guide-page-layout .guide-epg-empty-list {
  color: #a9c0df;
  font-size: 0.78rem;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px dashed rgba(122, 212, 255, 0.16);
  background: rgba(255, 255, 255, 0.012);
}

.program-guide-page-layout .home-main-col > .channel-grid#channel-grid .tags {
  display: none;
}

@media (min-width: 981px) {
  .program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    grid-auto-rows: minmax(0, auto);
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
  }

  .program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card > .channel-card-top {
    grid-column: 1;
    grid-row: 1 / span 5;
    margin-bottom: 0;
  }

  .program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card > .epg-line {
    grid-column: 2;
    margin-top: 0;
  }

  .program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card > .epg-line + .epg-line {
    margin-top: 4px;
  }

  .program-guide-page-layout .home-main-col > .channel-grid#channel-grid .guide-epg-panel {
    grid-column: 2;
  }
}

@media (max-width: 980px) {
  .program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-card-headline {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .program-guide-page-layout .home-main-col > .channel-grid#channel-grid .channel-actions {
    justify-content: flex-start;
  }

  .program-guide-page-layout .guide-epg-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .program-guide-page-layout .guide-epg-tab-btn {
    min-height: 38px;
    justify-content: center;
    text-align: center;
  }

  .program-guide-page-layout .guide-epg-item {
    grid-template-columns: 60px minmax(0, 1fr);
    padding: 6px 7px;
  }

  .program-guide-page-layout .guide-epg-more {
    width: 100%;
  }
}

@keyframes guideEpgPulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 212, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(122, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 212, 255, 0); }
}

@keyframes guideEpgShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.install-ux-root {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 88;
  width: min(380px, calc(100vw - 28px));
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.install-ux-root.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.install-ux-card {
  position: relative;
  border: 1px solid rgba(122, 212, 255, 0.2);
  background: rgba(4, 14, 25, 0.92);
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
  padding: 12px;
  backdrop-filter: blur(12px);
}

.install-ux-close {
  appearance: none;
  border: 1px solid rgba(166, 208, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #d7eafc;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.install-ux-close svg {
  width: 14px;
  height: 14px;
  display: block;
}

.install-ux-card > .install-ux-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.install-ux-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-right: 38px;
}

.install-ux-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(122, 212, 255, 0.22);
  background: rgba(122, 212, 255, 0.08);
  color: #bde7ff;
  display: inline-grid;
  place-items: center;
}

.install-ux-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.install-ux-head strong {
  display: block;
  color: #eef7ff;
  font-size: 0.9rem;
  line-height: 1.25;
}

.install-ux-head p {
  margin: 4px 0 0;
  color: #a8c2e1;
  font-size: 0.8rem;
  line-height: 1.35;
}

.install-ux-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.install-ux-btn-primary {
  border: 1px solid rgba(122, 212, 255, 0.34);
  background: linear-gradient(180deg, rgba(24, 72, 111, 0.95), rgba(11, 43, 75, 0.95));
  color: #eff8ff;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

.install-ux-btn-primary:hover {
  border-color: rgba(122, 212, 255, 0.55);
}

.install-ux-btn-secondary {
  min-height: 38px;
  border-radius: 12px;
}

.install-ux-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(2, 6, 10, 0.62);
  backdrop-filter: blur(4px);
}

.install-ux-guide {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.install-ux-guide-card {
  width: min(540px, 100%);
  border: 1px solid rgba(122, 212, 255, 0.2);
  background: rgba(5, 14, 25, 0.96);
  border-radius: 16px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.5);
  padding: 14px;
}

.install-ux-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.install-ux-guide-title {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.install-ux-guide-title strong {
  display: block;
  color: #eef7ff;
  font-size: 0.92rem;
}

.install-ux-guide-title p {
  margin: 4px 0 0;
  color: #a9c0df;
  font-size: 0.81rem;
  line-height: 1.35;
}

.install-ux-guide-steps {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #d7e9fb;
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.35;
}

.install-ux-guide-steps li::marker {
  color: #7ad4ff;
  font-weight: 700;
}

.install-ux-guide-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.install-ux-modal-open {
  overflow: hidden;
}

.install-ux-btn-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
}

.install-ux-btn-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.install-ux-btn-primary,
.install-ux-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.install-home-banner {
  position: relative;
  border: 1px solid rgba(122, 212, 255, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 212, 255, 0.12), transparent 58%),
    linear-gradient(165deg, rgba(5, 16, 28, 0.95), rgba(3, 11, 21, 0.95));
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 14px;
}

.install-home-banner:hover {
  border-color: rgba(122, 212, 255, 0.36);
}

.install-home-card {
  position: relative;
  border-color: rgba(122, 212, 255, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 212, 255, 0.14), transparent 58%),
    linear-gradient(165deg, rgba(6, 20, 34, 0.96), rgba(4, 13, 24, 0.96));
}

.install-home-card:hover {
  border-color: rgba(122, 212, 255, 0.42);
  transform: translateY(-2px);
}

.install-home-card > .install-home-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  z-index: 1;
}

.install-home-banner > .install-home-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  z-index: 2;
}

.install-home-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
  padding-right: 34px;
}

.install-home-banner .install-home-card-head {
  margin-bottom: 8px;
}

.install-home-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(122, 212, 255, 0.24);
  background: rgba(122, 212, 255, 0.08);
  color: #bfe9ff;
  display: grid;
  place-items: center;
}

.install-home-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.install-home-card-copy {
  min-width: 0;
}

.install-home-card-kicker {
  display: inline-block;
  color: #9cc8ec;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}

.install-home-card-copy h3 {
  margin: 0;
  color: #f2f9ff;
  font-size: 0.94rem;
  line-height: 1.25;
}

.install-home-card-copy p {
  margin: 5px 0 0;
  color: #a7c2df;
  font-size: 0.79rem;
  line-height: 1.35;
}

.install-home-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.install-home-banner .install-home-card-actions {
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  align-items: center;
  gap: 8px;
}

.install-home-card-actions > .install-ux-btn-primary {
  grid-column: 1 / -1;
  justify-content: center;
}

.install-home-banner .install-home-card-actions > .install-ux-btn-primary {
  grid-column: auto;
  justify-content: center;
}

.install-home-card-actions > .install-ux-btn-secondary {
  justify-content: center;
  min-height: 36px;
  font-size: 0.8rem;
  white-space: nowrap;
  min-width: 0;
}

.install-home-banner .install-home-card-actions > [data-install-ux-never] {
  background: transparent;
  border-style: dashed;
  opacity: 0.92;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-install-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: none;
  text-decoration: none;
  color: #d9ecff;
  border: 1px solid rgba(122, 212, 255, 0.28);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  background: rgba(122, 212, 255, 0.10);
  box-shadow: 0 0 0 1px rgba(122, 212, 255, 0.08), 0 0 16px rgba(122, 212, 255, 0.06);
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.hero-install-status-btn:hover {
  border-color: rgba(122, 212, 255, 0.38);
  background: rgba(122, 212, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(122, 212, 255, 0.12), 0 0 18px rgba(122, 212, 255, 0.12);
}

.hero-install-cta-static {
  border-color: rgba(98, 255, 171, 0.42);
  background: rgba(98, 255, 171, 0.10);
  color: #d9fff0;
  box-shadow:
    0 0 0 1px rgba(98, 255, 171, 0.14),
    0 0 18px rgba(98, 255, 171, 0.18),
    0 0 30px rgba(98, 255, 171, 0.08);
  animation: installHeroPulseSuccess 2.15s ease-in-out infinite;
}

.hero-install-cta-static:hover {
  border-color: rgba(126, 255, 186, 0.56);
  background: rgba(98, 255, 171, 0.14);
  color: #f1fff9;
  box-shadow:
    0 0 0 1px rgba(98, 255, 171, 0.18),
    0 0 22px rgba(98, 255, 171, 0.24),
    0 0 36px rgba(98, 255, 171, 0.12);
}

.hero-install-cta-static .hero-install-status-icon {
  color: #baffdc;
}

.hero-install-cta-static .hero-install-status-copy strong {
  letter-spacing: 0.03em;
}

.hero-install-status-btn[data-state="success"] {
  border-color: rgba(102, 222, 156, 0.38);
  background: rgba(102, 222, 156, 0.10);
  color: #dbffee;
  box-shadow: 0 0 0 1px rgba(102, 222, 156, 0.12), 0 0 16px rgba(102, 222, 156, 0.14);
  animation: installHeroPulseSuccess 2.4s ease-in-out infinite;
}

.hero-install-status-btn[data-state="action"] {
  border-color: rgba(255, 99, 99, 0.42);
  background: rgba(255, 99, 99, 0.10);
  color: #ffd7d7;
  box-shadow: 0 0 0 1px rgba(255, 99, 99, 0.12), 0 0 18px rgba(255, 99, 99, 0.16);
  animation: installHeroPulse 2.2s ease-in-out infinite;
}

.hero-install-status-btn[data-state="attention"] {
  border-color: rgba(255, 205, 97, 0.35);
  background: rgba(255, 205, 97, 0.10);
  color: #ffeab8;
}

.hero-install-status-btn[data-state="disabled"],
.hero-install-status-btn[data-state="neutral"] {
  border-color: rgba(176, 196, 219, 0.18);
  background: rgba(176, 196, 219, 0.06);
  opacity: 0.95;
}

.hero-install-status-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
}

.hero-install-status-btn[data-state="success"] .hero-install-status-icon {
  border-color: rgba(102, 222, 156, 0.34);
  background: rgba(102, 222, 156, 0.1);
  color: #b8ffd9;
}

.hero-install-status-btn[data-state="attention"] .hero-install-status-icon {
  border-color: rgba(255, 205, 97, 0.34);
  background: rgba(255, 205, 97, 0.08);
  color: #ffe39b;
}

.hero-install-status-btn[data-state="action"] .hero-install-status-icon {
  color: #ffb3b3;
}

.hero-install-status-btn[data-state="disabled"] .hero-install-status-icon {
  border-color: rgba(176, 196, 219, 0.2);
  background: rgba(176, 196, 219, 0.06);
  color: #d6dfeb;
}

.hero-install-status-btn[data-state="neutral"] .hero-install-status-icon {
  color: #d6dfeb;
}

.hero-install-status-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.hero-install-status-copy {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.hero-install-status-copy strong {
  color: inherit;
  font-size: 0.73rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

@keyframes installHeroPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(255, 99, 99, 0.12), 0 0 14px rgba(255, 99, 99, 0.10);
    border-color: rgba(255, 99, 99, 0.42);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(255, 99, 99, 0.14), 0 0 24px rgba(255, 99, 99, 0.22), 0 0 38px rgba(255, 99, 99, 0.10);
    border-color: rgba(255, 124, 124, 0.6);
  }
}

@keyframes installHeroPulseSuccess {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(102, 222, 156, 0.12), 0 0 14px rgba(102, 222, 156, 0.10);
    border-color: rgba(102, 222, 156, 0.38);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(102, 222, 156, 0.12), 0 0 22px rgba(102, 222, 156, 0.18), 0 0 34px rgba(102, 222, 156, 0.08);
    border-color: rgba(125, 235, 176, 0.56);
  }
}

.hero-install-status-copy small {
  display: none;
}

.app-install-hub-panel {
  padding: 14px;
}

.app-install-hub-root {
  display: grid;
  gap: 14px;
}

.install-hub-grid {
  display: grid;
  gap: 14px;
}

.install-hub-col {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.install-hub-card {
  border: 1px solid rgba(122, 212, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 212, 255, 0.06), transparent 60%),
    linear-gradient(165deg, rgba(5, 14, 25, 0.88), rgba(3, 10, 18, 0.88));
  padding: 12px;
}

.install-hub-summary-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.install-hub-summary-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(122, 212, 255, 0.22);
  background: rgba(122, 212, 255, 0.08);
  color: #bfe9ff;
  display: grid;
  place-items: center;
}

.install-hub-summary-head[data-state="success"] .install-hub-summary-icon {
  border-color: rgba(102, 222, 156, 0.34);
  background: rgba(102, 222, 156, 0.1);
  color: #b8ffd9;
}

.install-hub-summary-head[data-state="attention"] .install-hub-summary-icon {
  border-color: rgba(255, 205, 97, 0.34);
  background: rgba(255, 205, 97, 0.08);
  color: #ffe39b;
}

.install-hub-summary-head[data-state="disabled"] .install-hub-summary-icon {
  border-color: rgba(176, 196, 219, 0.2);
  background: rgba(176, 196, 219, 0.06);
  color: #d6dfeb;
}

.install-hub-summary-icon svg {
  width: 20px;
  height: 20px;
}

.install-hub-summary-head h2 {
  margin: 0;
  color: #eef7ff;
  font-size: 1rem;
  line-height: 1.2;
}

.install-hub-summary-head p {
  margin: 4px 0 0;
  color: #a9c0df;
  font-size: 0.83rem;
  line-height: 1.35;
}

.install-hub-summary-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.install-hub-btn-muted {
  opacity: 0.95;
}

.install-hub-summary-actions .btn {
  min-height: 38px;
}

.install-hub-next-step {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(122, 212, 255, 0.14);
  background: rgba(122, 212, 255, 0.04);
}

.install-hub-next-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(122, 212, 255, 0.2);
  background: rgba(122, 212, 255, 0.06);
  color: #bfe9ff;
  display: grid;
  place-items: center;
}

.install-hub-next-step-icon svg {
  width: 16px;
  height: 16px;
}

.install-hub-next-step-copy strong {
  display: block;
  color: #ebf5ff;
  font-size: 0.84rem;
  line-height: 1.2;
}

.install-hub-next-step-copy small {
  display: block;
  margin-top: 3px;
  color: #a8c2e1;
  font-size: 0.75rem;
  line-height: 1.25;
}

.install-hub-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.install-hub-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #eff7ff;
}

.install-hub-card-head small {
  color: #98b6d7;
  font-size: 0.73rem;
  text-align: right;
}

.install-hub-legend-list {
  display: grid;
  gap: 8px;
}

.install-hub-legend-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(166, 208, 255, 0.10);
  background: rgba(255, 255, 255, 0.015);
}

.install-hub-legend-row p {
  margin: 0;
  color: #a8c2e1;
  font-size: 0.77rem;
  line-height: 1.3;
}

.install-hub-legend-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(166, 208, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #eaf5ff;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
}

.install-hub-legend-badge[data-state="success"] {
  border-color: rgba(102, 222, 156, 0.26);
  background: rgba(102, 222, 156, 0.08);
  color: #b8ffd9;
}

.install-hub-legend-badge[data-state="action"] {
  border-color: rgba(255, 124, 124, 0.28);
  background: rgba(255, 124, 124, 0.08);
  color: #ffd2d2;
}

.install-hub-legend-badge[data-state="attention"] {
  border-color: rgba(255, 205, 97, 0.28);
  background: rgba(255, 205, 97, 0.08);
  color: #ffe39b;
}

.install-hub-legend-badge[data-state="neutral"] {
  border-color: rgba(166, 208, 255, 0.18);
  background: rgba(166, 208, 255, 0.04);
  color: #d6e8fb;
}

.install-hub-benefits {
  display: grid;
  gap: 8px;
}

.install-hub-benefit {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 9px;
  border: 1px solid rgba(166, 208, 255, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.install-hub-benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(122, 212, 255, 0.16);
  background: rgba(122, 212, 255, 0.05);
  color: #bfe9ff;
  display: grid;
  place-items: center;
}

.install-hub-benefit-icon svg {
  width: 16px;
  height: 16px;
}

.install-hub-benefit strong {
  display: block;
  color: #ebf5ff;
  font-size: 0.84rem;
  line-height: 1.2;
}

.install-hub-benefit small {
  display: block;
  margin-top: 3px;
  color: #a8c2e1;
  font-size: 0.76rem;
  line-height: 1.28;
}

.install-hub-status-list,
.install-hub-check-list {
  display: grid;
  gap: 8px;
}

.install-hub-status-row,
.install-hub-check-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(166, 208, 255, 0.10);
  background: rgba(255, 255, 255, 0.015);
}

.install-hub-status-row[data-state="success"],
.install-hub-check-row[data-state="success"] {
  border-color: rgba(102, 222, 156, 0.16);
  background: rgba(102, 222, 156, 0.03);
}

.install-hub-status-row[data-state="warning"],
.install-hub-check-row[data-state="warning"] {
  border-color: rgba(255, 205, 97, 0.16);
  background: rgba(255, 205, 97, 0.03);
}

.install-hub-status-row[data-state="muted"],
.install-hub-check-row[data-state="muted"] {
  opacity: 0.9;
}

.install-hub-status-icon,
.install-hub-check-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166, 208, 255, 0.12);
  color: #bfe9ff;
  background: rgba(255, 255, 255, 0.02);
}

.install-hub-status-row[data-state="success"] .install-hub-status-icon,
.install-hub-check-row[data-state="success"] .install-hub-check-icon {
  color: #b8ffd9;
  border-color: rgba(102, 222, 156, 0.2);
  background: rgba(102, 222, 156, 0.06);
}

.install-hub-status-row[data-state="warning"] .install-hub-status-icon,
.install-hub-check-row[data-state="warning"] .install-hub-check-icon {
  color: #ffe39b;
  border-color: rgba(255, 205, 97, 0.2);
  background: rgba(255, 205, 97, 0.05);
}

.install-hub-status-icon svg,
.install-hub-check-icon svg {
  width: 16px;
  height: 16px;
}

.install-hub-status-copy strong,
.install-hub-check-copy strong {
  display: block;
  color: #eaf4ff;
  font-size: 0.84rem;
  line-height: 1.2;
}

.install-hub-row-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 6px;
  min-height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(166, 208, 255, 0.18);
  background: rgba(166, 208, 255, 0.05);
  color: #d6e8fb;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.install-hub-status-row[data-state="success"] .install-hub-row-badge {
  border-color: rgba(102, 222, 156, 0.22);
  background: rgba(102, 222, 156, 0.06);
  color: #b8ffd9;
}

.install-hub-status-row[data-state="warning"] .install-hub-row-badge {
  border-color: rgba(255, 205, 97, 0.22);
  background: rgba(255, 205, 97, 0.06);
  color: #ffe39b;
}

.install-hub-status-copy p {
  margin: 3px 0 0;
  color: #a8c2e1;
  font-size: 0.77rem;
  line-height: 1.3;
}

.install-hub-check-copy small {
  display: block;
  margin-top: 3px;
  color: #a8c2e1;
  font-size: 0.75rem;
  line-height: 1.25;
}

.install-hub-device-note {
  margin: 0 0 8px;
  color: #a9c0df;
  font-size: 0.8rem;
  line-height: 1.35;
}

.install-hub-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #d5e8fa;
  font-size: 0.83rem;
  line-height: 1.35;
}

.install-hub-steps li::marker {
  color: #7ad4ff;
  font-weight: 700;
}

.install-hub-platform-grid {
  display: grid;
  gap: 8px;
}

.install-hub-platform-item {
  border: 1px solid rgba(166, 208, 255, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  padding: 9px 10px;
}

.install-hub-platform-item.is-current {
  border-color: rgba(102, 222, 156, 0.18);
  background: rgba(102, 222, 156, 0.03);
}

.install-hub-platform-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.install-hub-platform-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  border: 1px solid rgba(122, 212, 255, 0.16);
  background: rgba(122, 212, 255, 0.05);
  color: #bfe9ff;
  display: grid;
  place-items: center;
}

.install-hub-platform-item.is-current .install-hub-platform-icon {
  border-color: rgba(102, 222, 156, 0.22);
  background: rgba(102, 222, 156, 0.06);
  color: #b8ffd9;
}

.install-hub-platform-icon svg {
  width: 16px;
  height: 16px;
}

.install-hub-platform-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.install-hub-platform-copy strong {
  color: #eef7ff;
  font-size: 0.84rem;
  line-height: 1.2;
}

.install-hub-platform-note {
  margin: 7px 0 0;
  color: #a9c0df;
  font-size: 0.77rem;
  line-height: 1.3;
}

.install-hub-platform-steps {
  margin: 7px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: #d5e8fa;
  font-size: 0.78rem;
  line-height: 1.3;
}

.install-hub-platform-steps li::marker {
  color: #7ad4ff;
}

.install-hub-inline-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.install-hub-inline-actions-compact {
  margin-top: 10px;
}

.install-hub-details {
  padding: 0;
  overflow: hidden;
}

.install-hub-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 12px;
  color: #d8ebfd;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-hub-details > summary::-webkit-details-marker {
  display: none;
}

.install-hub-details > summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #8ed8ff;
  border-bottom: 2px solid #8ed8ff;
  transform: rotate(-45deg);
  transition: transform .16s ease;
}

.install-hub-details[open] > summary::before {
  transform: rotate(45deg);
}

.install-hub-details-body {
  border-top: 1px solid rgba(166, 208, 255, 0.08);
  padding: 10px 12px 12px;
  display: grid;
  gap: 10px;
}

.install-hub-link-tile {
  display: block;
  border: 1px solid rgba(166, 208, 255, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: inherit;
}

.install-hub-link-tile:hover {
  border-color: rgba(122, 212, 255, 0.28);
}

.install-hub-link-tile strong {
  display: block;
  color: #eff7ff;
  font-size: 0.84rem;
}

.install-hub-link-tile small {
  display: block;
  margin-top: 3px;
  color: #a9c0df;
  font-size: 0.75rem;
  line-height: 1.25;
}

.install-hub-problems {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d6e9fb;
  font-size: 0.82rem;
  line-height: 1.35;
}

.install-hub-problems li::marker {
  color: #7ad4ff;
}

.install-hub-problems em {
  color: #eff7ff;
  font-style: normal;
}

@media (min-width: 980px) {
  .install-hub-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }

  .install-hub-col-side {
    position: relative;
    align-content: start;
  }
}

@media (max-width: 860px) {
  .install-ux-root {
    right: 10px;
    left: 10px;
    bottom: 10px;
    width: auto;
  }

  .install-ux-card {
    border-radius: 14px;
    padding: 12px;
  }

  .install-ux-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .install-ux-actions > *:first-child {
    grid-column: 1 / -1;
  }

  .install-ux-btn-primary,
  .install-ux-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .install-ux-guide {
    align-items: end;
    padding: 10px;
  }

  .install-ux-guide-card {
    border-radius: 14px;
    padding: 12px;
    width: 100%;
  }

  .install-ux-guide-actions > * {
    width: 100%;
    justify-content: center;
  }

  .install-home-card-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    padding-right: 30px;
  }

  .install-home-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .install-home-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .install-home-card-copy h3 {
    font-size: 0.88rem;
  }

  .install-home-card-copy p {
    font-size: 0.75rem;
  }

  .install-home-card-actions {
    grid-template-columns: 1fr;
  }

  .install-home-banner {
    padding: 11px;
    margin-bottom: 12px;
  }

  .install-home-banner .install-home-card-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .install-home-banner .install-home-card-actions > .install-ux-btn-primary {
    grid-column: 1 / -1;
  }

  .install-home-card > .install-home-card-close {
    top: 8px;
    right: 8px;
  }

  .install-home-banner > .install-home-card-close {
    top: 8px;
    right: 8px;
  }

  .hero-top-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .hero-top-row > .kicker {
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
    margin: 0;
  }

  .hero-install-status-btn {
    width: auto;
    max-width: 55%;
    justify-content: flex-start;
    padding: 5px 10px 5px 8px;
    flex: 0 1 auto;
    align-self: center;
    margin: 0;
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(122, 212, 255, 0.10), 0 0 14px rgba(122, 212, 255, 0.10);
  }

  .hero-install-cta-static {
    max-width: 58%;
    box-shadow:
      0 0 0 1px rgba(98, 255, 171, 0.14),
      0 0 14px rgba(98, 255, 171, 0.18),
      0 0 22px rgba(98, 255, 171, 0.08);
  }

  .hero-install-status-icon {
    align-self: center;
  }

  .hero-install-status-copy {
    align-items: center;
    min-height: 18px;
  }

  .hero-install-status-copy strong {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .install-hub-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-hub-card-head small {
    text-align: left;
  }

  .install-hub-legend-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .install-hub-legend-badge {
    justify-self: start;
  }

  .install-hub-summary-actions,
  .install-hub-inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .install-hub-summary-actions .btn,
  .install-hub-inline-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .install-hub-row-badge {
    margin-left: 0;
    margin-top: 4px;
  }
}

/* Accesibilitate: focus vizibil la navigarea cu tastatura */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Player gate and separate Adcash privacy controls. */
.player-stage { position: relative; }
.player-gate { position:absolute; inset:0; z-index:4; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:24px; text-align:center; background:#0d1526; color:#fff; }
.player-gate[hidden],.ad-consent-panel[hidden] { display:none!important; }
.player-gate .btn { font-size:1.1rem; padding:14px 24px; }
.player-gate p { margin:0; max-width:42rem; }
.player-noscript { position:absolute; inset:50% 12px auto; z-index:5; color:#fff; background:#0d1526; padding:12px; }
.ad-consent-panel { position:fixed; inset:auto 12px 64px 12px; z-index:1000; max-width:900px; margin:auto; padding:18px; border:1px solid #53647c; border-radius:12px; background:#101b2c; color:#fff; box-shadow:0 4px 24px #0008; max-height:70vh; overflow:auto; }
.ad-consent-panel a { color:#98cbff; }
.ad-consent-panel p { margin:0 0 12px; }
.ad-consent-settings { position:fixed; right:12px; bottom:12px; z-index:999; background:#101b2c; color:#fff; }
[data-player-unlock]:focus-visible,.ad-consent-panel button:focus-visible { outline:3px solid #8ac8ff; outline-offset:4px; }
