:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #5d6b7c;
  --line: #d8e0e8;
  --accent: #1f6fbb;
  --accent-dark: #134e86;
  --soft: #eef3f8;
  --ok: #1f8a5b;
  --site-max: 1960px;
  --site-pad: clamp(12px, 2vw, 28px);
  --card-pad: clamp(18px, 2.6vw, 32px);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.ad-slot {
  display: none;
  width: 100%;
  min-height: 90px;
  margin: 18px 0;
  border: 1px dashed var(--line);
  background: #fff;
}

body.ads-enabled .ad-slot {
  display: block;
}

.reception-article .article-body {
  max-width: 1180px;
  padding: clamp(8px, 2vw, 18px) 0 0;
  font-size: 17px;
  line-height: 1.68;
}

.reception-article .article-body img {
  border-radius: 8px;
  cursor: zoom-in;
}

.reception-article {
  padding: clamp(18px, 3vw, 34px);
}

.reception-article h1 {
  max-width: 1180px;
  margin-top: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.reception-article .article-body p,
.reception-article .article-body ul,
.reception-article .article-body ol {
  max-width: 1120px;
}

.technical-details {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.technical-details-visible h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.technical-details-visible ul {
  margin: 0;
  padding-left: 22px;
}

.plain-url {
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: text;
}

.lightbox-open {
  overflow: hidden;
}

.article-lightbox[hidden] {
  display: none;
}

.article-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: minmax(44px, 8vw) 1fr minmax(44px, 8vw);
  align-items: center;
  gap: 8px;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(3, 8, 16, 0.92);
}

.article-lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  min-width: 0;
  max-height: 100%;
  margin: 0;
}

.article-lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  object-fit: contain;
}

.article-lightbox-caption {
  max-width: min(100%, 1100px);
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.article-lightbox-close,
.article-lightbox-nav {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.article-lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.article-lightbox-nav {
  width: clamp(42px, 6vw, 62px);
  height: clamp(52px, 9vw, 82px);
  border-radius: 8px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

.article-lightbox-close:hover,
.article-lightbox-nav:hover,
.article-lightbox-close:focus,
.article-lightbox-nav:focus {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .article-lightbox {
    grid-template-columns: 1fr;
    padding: 56px 12px 18px;
  }

  .article-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 58px;
  }

  .article-lightbox-prev {
    left: 8px;
  }

  .article-lightbox-next {
    right: 8px;
  }

  .article-lightbox-image {
    max-height: calc(100vh - 150px);
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.pagination a,
.pagination strong,
.pagination span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
}

.technical-link {
  display: table;
  margin-top: 7px;
  padding: 5px 9px;
  border: 1px solid #b8d0ea;
  border-radius: 6px;
  background: #eef6ff;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.technical-link:hover {
  border-color: var(--accent);
  background: #dfeeff;
  color: var(--accent-dark);
  text-decoration: none;
}

.channel-cell {
  display: grid;
  gap: 7px;
}

.channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #b8d0ea;
  border-radius: 6px;
  background: #eef6ff;
  color: var(--accent-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.detail-pill:hover,
.detail-pill:focus {
  border-color: var(--accent);
  background: #dfeeff;
  color: var(--accent-dark);
  text-decoration: none;
}

.detail-pill-primary {
  border-color: #b9d9c8;
  background: #eef8f2;
  color: #176342;
}

.detail-pill-primary:hover,
.detail-pill-primary:focus {
  border-color: var(--ok);
  background: #dff2e7;
  color: #176342;
}

.details-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13, 27, 42, 0.48);
}

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

.details-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 27, 42, 0.28);
}

.details-modal h2 {
  margin: 0 42px 14px 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.details-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.channel-presentation {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  color: #223044;
  font-size: 15px;
  line-height: 1.58;
}

.channel-presentation p {
  margin: 0;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(0, 1fr);
  gap: 0;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.details-grid dt,
.details-grid dd {
  margin: 0;
  padding: 9px 10px;
  border-bottom: 1px solid #e8edf2;
}

.details-grid dt {
  background: #f4f7fa;
  color: var(--muted);
  font-weight: 700;
}

.details-grid dd {
  overflow-wrap: anywhere;
  background: #fff;
}

.hbbtv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.hbbtv-help {
  margin-bottom: 14px;
}

.hbbtv-help-links {
  margin: 8px 0 0;
}

.hbbtv-help-links a {
  font-weight: 700;
}

.details-grid dt:last-of-type,
.details-grid dd:last-of-type {
  border-bottom: 0;
}

.article-meta,
.muted {
  color: var(--muted);
  font-size: 14px;
}

.comments-box {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comments-box form {
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.comments-box input,
.comments-box textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.comments-box textarea {
  min-height: 130px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.comments-box button {
  justify-self: start;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.comments-box button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comment-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.comment-status[data-state="ok"] {
  border: 1px solid #b8dfc8;
  background: #eef7f1;
  color: #176342;
}

.comment-status[data-state="error"] {
  border: 1px solid #f0b8b8;
  background: #fff0f0;
  color: #8a1f1f;
}

.pending-comment {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef7f1;
}

.pending-comment p {
  margin: 6px 0;
}

.pending-comment span {
  color: var(--muted);
  font-size: 13px;
}

.public-comments {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.public-comment {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.public-comment p {
  margin: 6px 0 0;
}

.comment-admin-card {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.comment-admin-card.is-focused {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 96, 166, 0.14);
}

.comment-admin-card form {
  display: grid;
  gap: 12px;
}

.comment-admin-card input,
.comment-admin-card textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.danger-button {
  background: #a32626 !important;
}

.verified-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.verified-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.verified-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(20, 37, 56, 0.08);
}

.verified-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dfe8f1;
}

.verified-card-body {
  padding: 16px;
}

.verified-card h2 {
  margin: 6px 0 8px;
  font-size: 21px;
  line-height: 1.18;
}

.verified-card h2 a,
.verified-card > a {
  text-decoration: none;
}

.verified-details {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(280px, 460px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 12px rgba(20, 37, 56, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
  flex: 0 0 auto;
}

.brand-main-logo {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #c6d1dd;
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.mobile-menu-panel {
  display: contents;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.brand strong {
  font-size: 27px;
  line-height: 1;
}

.header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.header-search input,
.header-search button {
  min-height: 38px;
  border: 1px solid #c6d1dd;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.header-search input {
  min-width: 0;
  padding: 8px 10px;
}

.header-search button {
  padding: 0 13px;
  cursor: pointer;
  font-weight: 700;
}

.header-search button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

main {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 28px var(--site-pad) 38px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 22px;
}

.home-hero-copy {
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-hero-copy h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.home-hero-copy p,
.home-band p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  background: var(--accent);
  color: #fff;
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
}

.news-more-actions {
  display: flex;
  justify-content: center;
  padding: 22px 16px 6px;
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.signal-panel div {
  display: grid;
  align-content: center;
  min-height: 130px;
  padding: 18px;
  background: #fff;
}

.signal-panel strong {
  color: var(--accent-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.signal-panel span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.home-band {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-band.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.home-band h2 {
  margin: 0 0 8px;
}

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

.quick-grid a {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbfe;
  text-decoration: none;
}

.quick-grid strong {
  color: var(--accent-dark);
  font-size: 20px;
}

.quick-grid span {
  color: var(--muted);
  font-size: 13px;
}

.section-head.loose {
  padding: 0 0 12px;
  border-bottom: 0;
}

.section-note {
  max-width: 780px;
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.news-home-hero {
  margin-top: 42px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-stats div {
  min-height: 92px;
  padding: 14px 12px;
  background: var(--panel);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
  font-size: 26px;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.catalog-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(20, 37, 56, 0.08);
}

.catalog-shell > .card {
  padding: var(--card-pad);
}

.catalog-shell > h1,
.catalog-shell > h2,
.catalog-shell > p,
.catalog-shell > .filters-grid,
.catalog-shell > .section-head,
.catalog-shell > .section-note {
  margin-left: var(--card-pad);
  margin-right: var(--card-pad);
}

.catalog-shell > h1:first-child,
.catalog-shell > h2:first-child,
.catalog-shell > p:first-child,
.catalog-shell > .section-head:first-child {
  margin-top: var(--card-pad);
}

.catalog-shell > h1:last-child,
.catalog-shell > h2:last-child,
.catalog-shell > p:last-child,
.catalog-shell > .filters-grid:last-child,
.catalog-shell > .section-note:last-child {
  margin-bottom: var(--card-pad);
}

.verified-shell {
  padding: clamp(16px, 3vw, 28px);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.toolbar label {
  display: grid;
  gap: 5px;
  flex: 1 1 190px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.toolbar label:first-child {
  flex-basis: 320px;
  flex-grow: 1.4;
}

.toolbar input,
.toolbar select,
.toolbar button {
  min-height: 40px;
  border: 1px solid #c6d1dd;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  padding: 8px 10px;
}

.toolbar button {
  align-self: end;
  padding: 0 16px;
  cursor: pointer;
}

.toolbar button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

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

.service-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
}

.program-shell {
  width: 100%;
  max-width: none;
}

.program-shell > .card {
  padding: clamp(22px, 2.8vw, 36px);
}

.program-toolbar {
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 260px) minmax(180px, 260px) auto;
}

.program-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.program-channel-tile {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.program-channel-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(31, 111, 187, 0.12);
}

.program-channel-tile strong {
  font-size: 22px;
  line-height: 1.15;
}

.program-channel-tile span {
  color: var(--accent-dark);
  font-weight: 700;
}

.program-channel-tile small {
  color: var(--muted);
  line-height: 1.35;
}

.operator-search-section {
  text-align: center;
}

.operator-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: center;
  gap: 12px;
  margin: 18px auto 12px;
  max-width: 1100px;
}

.operator-search-form label {
  display: grid;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 220px;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
}

.operator-search-form label:first-child {
  flex: 1.8 1 360px;
}

.operator-search-form input,
.operator-search-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.operator-search-form input {
  font-size: 18px;
}

.streaming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: var(--card-pad);
}

.streaming-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.streaming-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.streaming-card p {
  margin: 8px 0 0;
}

.streaming-card .secondary-action {
  display: inline-flex;
  margin-top: 14px;
}

.streaming-package-table,
.streaming-channel-table {
  min-width: 1080px;
  table-layout: fixed;
}

.streaming-package-table th:nth-child(1),
.streaming-package-table td:nth-child(1),
.streaming-channel-table th:nth-child(1),
.streaming-channel-table td:nth-child(1) {
  width: 22%;
}

.streaming-package-table th:nth-child(2),
.streaming-package-table td:nth-child(2),
.streaming-channel-table th:nth-child(2),
.streaming-channel-table td:nth-child(2) {
  width: 20%;
}

.streaming-package-table th:nth-child(3),
.streaming-package-table td:nth-child(3),
.streaming-channel-table th:nth-child(3),
.streaming-channel-table td:nth-child(3) {
  width: 18%;
}

.streaming-package-table th:nth-child(4),
.streaming-package-table td:nth-child(4),
.streaming-channel-table th:nth-child(4),
.streaming-channel-table td:nth-child(4) {
  width: 16%;
}

.streaming-package-table th:nth-child(5),
.streaming-package-table td:nth-child(5),
.streaming-channel-table th:nth-child(5),
.streaming-channel-table td:nth-child(5) {
  width: 24%;
}

.encryption-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.encryption-badge.is-fta {
  color: #146c43;
  background: #e9f8f0;
  border: 1px solid #b9e4cc;
}

.encryption-badge.is-encrypted {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-dark);
}

a.encryption-badge,
a.encryption-badge:visited {
  text-decoration: none;
}

a.encryption-badge:hover,
a.encryption-badge:focus {
  filter: brightness(0.94);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.encrypted-channel-name,
.encrypted-channel-name:visited {
  color: #0f4f7a;
}

.encrypted-channel-name.channel-name-link {
  color: #0f4f7a;
}

.is-encrypted-channel .detail-pill,
.is-encrypted-channel .detail-pill-primary {
  border-color: var(--accent-dark);
  background: var(--accent);
  color: #fff;
}

.is-encrypted-channel .detail-pill:hover,
.is-encrypted-channel .detail-pill:focus,
.is-encrypted-channel .detail-pill-primary:hover,
.is-encrypted-channel .detail-pill-primary:focus {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.program-index-summary a {
  color: var(--accent-dark);
  font-weight: 700;
}

.program-date-jump {
  grid-template-columns: minmax(220px, 360px);
  margin: 18px 0 14px;
}

.program-date-jump select {
  width: 100%;
}

.home-receptions {
  margin-top: 26px;
}

.home-verified-feed {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.program-table {
  min-width: 1780px;
  table-layout: fixed;
}

.program-date-col {
  width: 210px;
}

.program-time-col {
  width: 180px;
}

.program-channel-col {
  width: 280px;
}

.program-title-col {
  width: 520px;
}

.program-details-col {
  width: auto;
}

.program-duration-col {
  width: 110px;
}

.program-channel-table {
  min-width: 1480px;
}

.service-table .program-day-row th {
  padding: 24px 16px 18px;
  background: #f5f7fa;
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.service-table .program-day-row th span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: #e8f1fa;
}

.program-table .program-date-cell,
.program-table .program-time-cell,
.program-table .program-channel-cell {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.program-table .program-title-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.program-table .program-description-cell {
  line-height: 1.45;
}

.program-table .program-current-row td {
  background: #fff7df;
}

.program-table .program-current-row .program-time-cell::after {
  content: "acum";
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #1f6fb2;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  vertical-align: middle;
}

.program-picker-toolbar .button-link {
  align-self: end;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #c6d1dd;
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.program-picker-toolbar .button-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.program-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #1f6fb2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.program-now-urmeaza .program-badge {
  background: #7b8794;
}

.program-now-table {
  min-width: 980px;
}

.epg-grid-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scroll-behavior: smooth;
  outline: none;
}

.epg-grid-day {
  --epg-timeline-width: 2600px;
  min-width: calc(220px + var(--epg-timeline-width));
}

.epg-grid-day h2 {
  margin: 20px 0 12px;
  color: var(--accent-dark);
}

.epg-grid-hours,
.epg-grid-row {
  display: grid;
  grid-template-columns: 220px var(--epg-timeline-width);
}

.epg-grid-hours {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.epg-grid-hours::before {
  content: "Canal";
  padding: 8px 10px;
  font-weight: 700;
}

.epg-grid-hours span {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
}

.epg-grid-hours > span,
.epg-grid-events {
  grid-column: 2;
}

.epg-grid-row {
  min-height: 78px;
  border-bottom: 1px solid #e8edf2;
}

.epg-grid-channel {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  background: #f8fbfe;
  border-right: 1px solid #d8e2ee;
  line-height: 1.25;
}

.epg-grid-events {
  position: relative;
  min-height: 78px;
  background:
    linear-gradient(to right, rgba(31, 111, 178, 0.08) 1px, transparent 1px) 0 0 / 4.1667% 100%,
    #fff;
}

.epg-grid-event {
  position: absolute;
  top: 7px;
  bottom: 7px;
  display: block;
  min-width: 86px;
  overflow: hidden;
  padding: 6px 8px;
  border: 1px solid #b6cce2;
  border-radius: 6px;
  background: #eaf4ff;
  color: #173654;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(31, 111, 178, 0.08);
}

.epg-grid-event:focus,
.epg-grid-event.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.22);
  outline: none;
  z-index: 4;
}

.epg-grid-event span,
.epg-grid-event strong {
  display: block;
  overflow: hidden;
  white-space: normal;
}

.epg-grid-event span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.epg-grid-event strong {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epg-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d9342b;
  box-shadow: 0 0 0 1px rgba(217, 52, 43, 0.2);
  pointer-events: none;
  z-index: 3;
}

.epg-grid-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 10px;
}

.epg-scroll-buttons,
.epg-remote {
  display: flex;
  align-items: center;
  gap: 8px;
}

.epg-grid-controls button {
  border: 1px solid #bfd2e7;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 800;
  min-width: 42px;
  min-height: 36px;
  cursor: pointer;
}

.epg-grid-controls button:hover,
.epg-grid-controls button:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.14);
  outline: none;
}

.epg-scroll-left,
.epg-scroll-right {
  font-size: 26px;
  line-height: 1;
}

.epg-remote [data-epg-ok] {
  min-width: 50px;
  background: var(--accent);
  border-color: var(--accent-dark);
  color: #fff;
}

@media (max-width: 760px) {
  .epg-grid-day {
    --epg-timeline-width: 2200px;
    min-width: calc(150px + var(--epg-timeline-width));
  }

  .epg-grid-hours,
  .epg-grid-row {
    grid-template-columns: 150px var(--epg-timeline-width);
  }

  .epg-grid-channel {
    font-size: 13px;
    padding: 8px;
  }

  .epg-grid-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .epg-remote {
    flex-wrap: wrap;
  }
}

.catalog-table {
  table-layout: fixed;
}

.service-table th,
.service-table td {
  border-bottom: 1px solid #e8edf2;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.catalog-table th:nth-child(1),
.catalog-table td:nth-child(1) {
  width: 24%;
}

.catalog-table th:nth-child(2),
.catalog-table td:nth-child(2) {
  width: 19%;
}

.catalog-table th:nth-child(3),
.catalog-table td:nth-child(3) {
  width: 13%;
}

.catalog-table th:nth-child(4),
.catalog-table td:nth-child(4) {
  width: 19%;
}

.catalog-table th:nth-child(5),
.catalog-table td:nth-child(5) {
  width: 17%;
}

.catalog-table th:nth-child(6),
.catalog-table td:nth-child(6) {
  width: 8%;
}

.operator-summary-table {
  min-width: 1120px;
  table-layout: fixed;
}

.operator-summary-table th:nth-child(1),
.operator-summary-table td:nth-child(1) {
  width: 26%;
}

.operator-summary-table th:nth-child(2),
.operator-summary-table td:nth-child(2) {
  width: 24%;
}

.operator-summary-table th:nth-child(3),
.operator-summary-table td:nth-child(3),
.operator-summary-table th:nth-child(4),
.operator-summary-table td:nth-child(4) {
  width: 10%;
}

.operator-summary-table th:nth-child(5),
.operator-summary-table td:nth-child(5) {
  width: 30%;
}

.operator-exclusivity-table {
  min-width: 1120px;
  table-layout: fixed;
}

.operator-exclusivity-table th:nth-child(1),
.operator-exclusivity-table td:nth-child(1) {
  width: 24%;
}

.operator-exclusivity-table th:nth-child(2),
.operator-exclusivity-table td:nth-child(2) {
  width: 24%;
}

.operator-exclusivity-table th:nth-child(3),
.operator-exclusivity-table td:nth-child(3) {
  width: 14%;
}

.operator-exclusivity-table th:nth-child(4),
.operator-exclusivity-table td:nth-child(4) {
  width: 38%;
}

.operator-search-table {
  min-width: 1560px;
  table-layout: fixed;
}

.operator-search-table th:nth-child(1),
.operator-search-table td:nth-child(1) {
  width: 180px;
}

.operator-search-table th:nth-child(2),
.operator-search-table td:nth-child(2) {
  width: 190px;
}

.operator-search-table th:nth-child(3),
.operator-search-table td:nth-child(3) {
  width: 390px;
}

.operator-search-table th:nth-child(4),
.operator-search-table td:nth-child(4) {
  width: 330px;
}

.operator-search-table th:nth-child(5),
.operator-search-table td:nth-child(5) {
  width: 180px;
}

.operator-search-table th:nth-child(6),
.operator-search-table td:nth-child(6) {
  width: 100px;
}

.operator-search-table th:nth-child(7),
.operator-search-table td:nth-child(7) {
  width: 190px;
}

.operator-search-table th:nth-child(-n+4),
.operator-search-table td:nth-child(-n+4),
.operator-summary-table th,
.operator-summary-table td,
.operator-exclusivity-table th,
.operator-exclusivity-table td {
  overflow-wrap: normal;
  word-break: normal;
}

.operator-search-table td:nth-child(3),
.operator-search-table td:nth-child(4) {
  line-height: 1.42;
}

.service-table[data-operator-channels] {
  min-width: 1720px;
  table-layout: fixed;
}

.service-table[data-operator-channels] th:nth-child(1),
.service-table[data-operator-channels] td:nth-child(1) {
  width: 180px;
}

.service-table[data-operator-channels] th:nth-child(2),
.service-table[data-operator-channels] td:nth-child(2) {
  width: 260px;
}

.service-table[data-operator-channels] th:nth-child(3),
.service-table[data-operator-channels] td:nth-child(3) {
  width: 330px;
}

.service-table[data-operator-channels] th:nth-child(4),
.service-table[data-operator-channels] td:nth-child(4) {
  width: 170px;
}

.service-table[data-operator-channels] th:nth-child(5),
.service-table[data-operator-channels] td:nth-child(5) {
  width: 110px;
}

.service-table[data-operator-channels] th:nth-child(6),
.service-table[data-operator-channels] td:nth-child(6) {
  width: 670px;
}

.service-table[data-operator-channels] th:nth-child(-n+5),
.service-table[data-operator-channels] td:nth-child(-n+5) {
  overflow-wrap: normal;
  word-break: normal;
}

.service-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3f8;
  color: #304053;
  font-size: 12px;
  text-transform: uppercase;
}

.sortable-head {
  cursor: pointer;
  user-select: none;
}

.sortable-head:after {
  content: " \2195";
  color: #7b8998;
  font-weight: 400;
}

.sortable-head.sort-asc:after {
  content: " \2191";
  color: var(--accent-dark);
}

.sortable-head.sort-desc:after {
  content: " \2193";
  color: var(--accent-dark);
}

.sortable-head:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.service-table tr:hover td {
  background: #f7fbff;
}

.clickable-row td {
  padding: 0;
}

.clickable-row td a {
  display: block;
  min-height: 100%;
  padding: 9px 10px;
  color: inherit;
  text-decoration: none;
}

.clickable-row td a:hover,
.satellite-link-cell a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.satellite-link-cell a {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.satellite-link-cell span {
  color: var(--muted);
  font-size: 12px;
}

.channel-name {
  font-weight: 700;
}

.channel-name-link {
  color: inherit;
  display: inline-block;
  text-decoration: none;
}

.channel-name-link:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.tag {
  display: inline-block;
  min-width: 46px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--soft);
  color: #304053;
  font-size: 12px;
  text-align: center;
}

.tag.tv {
  background: #e7f2ff;
  color: #145794;
}

.tag.radio {
  background: #e9f8f1;
  color: var(--ok);
}

.tag.data {
  background: #fff4d8;
  color: #7a4d00;
}

.footer {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-pad) 30px;
  color: var(--muted);
  font-size: 13px;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-page.wide {
  place-items: start center;
}

.auth-box {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 37, 56, 0.08);
}

.auth-box h1 {
  margin: 0 0 6px;
}

.auth-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-box input,
.auth-box textarea {
  width: 100%;
  border: 1px solid #c6d1dd;
  border-radius: 6px;
  padding: 10px;
  color: var(--text);
  font: inherit;
}

.auth-box button,
.inline-form button {
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.form-error,
.form-ok {
  margin: 0;
  padding: 10px;
  border-radius: 6px;
}

.form-error {
  background: #fff0f0;
  color: #9b1c1c;
}

.form-ok {
  background: #ecfdf3;
  color: #166534;
}

.edit-link {
  display: inline-block;
  margin-top: 5px;
  color: var(--accent-dark);
  font-size: 12px;
}

.admin-section {
  margin-top: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
}

.inline-form {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.inline-form input {
  min-height: 34px;
  border: 1px solid #c6d1dd;
  border-radius: 6px;
  padding: 7px 8px;
}

.simple-hero {
  align-items: center;
}

.sat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.sat-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.sat-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(20, 37, 56, 0.08);
}

.sat-card strong {
  font-size: 18px;
}

.sat-card span {
  color: var(--accent-dark);
  font-weight: 700;
}

.sat-card em,
.seo-note,
.breadcrumb,
.detail-table small {
  color: var(--muted);
  font-style: normal;
}

.breadcrumb {
  margin: 0 0 16px;
}

.tp-group {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.sat-summary {
  margin-bottom: 16px;
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.filter-links a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 13px;
  text-decoration: none;
}

.filter-links a:hover {
  border-color: var(--accent);
}

.filter-links a.active {
  border-color: var(--accent);
  background: #e7f2ff;
  color: var(--accent-dark);
  font-weight: 700;
}

.tp-group h2 {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #edf3f8;
  font-size: 18px;
}

.detail-table small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.provider-presentation,
.channel-presentation {
  margin-top: 12px;
}

.provider-presentation p,
.channel-presentation p {
  margin: 0 0 10px;
}

@media (max-width: 860px) {
  .summary-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 10px;
    min-height: 58px;
    padding: 8px 12px;
    position: sticky;
  }

  .brand {
    width: auto;
    min-width: 0;
  }

  .brand-main-logo {
    width: 190px;
  }

  .nav-toggle-button {
    display: inline-flex;
    justify-self: end;
  }

  .mobile-menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 14px 24px rgba(20, 37, 56, 0.14);
  }

  .nav-toggle:checked ~ .mobile-menu-panel {
    display: grid;
    gap: 10px;
  }

  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 4px;
  }

  .nav a {
    padding: 10px 8px;
    background: var(--soft);
    font-size: 14px;
  }

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

  .home-hero,
  .home-band.split {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 700px) {
  .brand-logo {
    width: 124px;
  }

  .brand-main-logo {
    width: min(178px, 62vw);
  }

  .brand strong {
    font-size: 23px;
  }

  main {
    padding: 18px 10px 30px;
  }

  .home-hero-copy,
  .home-band {
    padding: 14px;
  }

  .home-hero-copy h1,
  .hero-copy h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .hero-copy p,
  .home-hero-copy p,
  .home-band p {
    font-size: 15px;
  }

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

  .table-wrap {
    overflow: visible;
  }

  .service-table {
    min-width: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-size: 14px;
  }

  .service-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .service-table tbody,
  .service-table tr,
  .service-table td {
    display: block;
    width: auto;
  }

  .service-table tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .service-table th:nth-child(n),
  .service-table td:nth-child(n) {
    width: auto;
  }

  .service-table td {
    display: grid;
    grid-template-columns: minmax(94px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 9px 12px;
    border-bottom: 1px solid #e8edf2;
  }

  .service-table td:last-child {
    border-bottom: 0;
  }

  .service-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .service-table td:not([data-label]) {
    display: block;
  }

  .service-table td:not([data-label])::before {
    display: none;
  }

  .service-table td[colspan] {
    display: block;
  }

  .program-table {
    min-width: 0;
    border-spacing: 0 12px;
  }

  .program-date-col,
  .program-time-col,
  .program-channel-col,
  .program-title-col,
  .program-details-col,
  .program-duration-col {
    width: auto;
  }

  .service-table .program-day-row th {
    display: block;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    padding: 18px 10px 12px;
  }

  .program-table .program-date-cell,
  .program-table .program-time-cell,
  .program-table .program-channel-cell {
    overflow-wrap: normal;
    word-break: normal;
  }

  .program-table td {
    grid-template-columns: minmax(112px, 35%) minmax(0, 1fr);
    padding: 10px 12px;
  }

  .program-table .program-title-cell strong {
    display: block;
    line-height: 1.28;
  }

  .program-table .program-description-cell {
    line-height: 1.5;
  }

  .channel-actions {
    align-items: stretch;
  }

  .detail-pill {
    flex: 1 1 140px;
  }

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

  .details-grid dt {
    border-bottom: 0;
  }

  .clickable-row td {
    padding: 0;
  }

  .clickable-row td::before {
    padding: 9px 0 9px 12px;
  }

  .clickable-row td a {
    display: block;
    padding: 9px 12px 9px 0;
  }

  .satellite-link-cell a {
    gap: 3px;
  }

  .tag {
    justify-self: start;
  }

  .tp-group {
    border: 0;
    background: transparent;
  }

  .tp-group h2 {
    border: 1px solid var(--line);
    border-radius: 8px;
  }
}
