/* ========================================
   otv.today
   Brand, the live hero, the square on the homepage and the TV ads demo.
======================================== */

:root {
  --otv-yellow: #f4d046;
  --otv-red: #e11d2e;
  --otv-ink: #0f172a;
  --otv-ad-screen: linear-gradient(135deg, #1e293b, #334155 60%, #b45309);
  --otv-ad-band: rgba(15, 23, 42, 0.85);
  --otv-ad-slot: rgba(255, 255, 255, 0.18);
}

/* Feature-switched links stay hidden even where their class sets display. */
[data-feature][hidden] {
  display: none !important;
}

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

/* ---------- Brand ---------- */
.top-header .logo {
  align-items: center;
}

/* The OTV logo, redrawn as SVG from assets/otv/otv-logo.png. */
.otv-brand-logo {
  display: block;
  width: auto;
  height: 34px;
}

.nav-live-icon { position: relative; isolation: isolate; }
.nav-live-icon::before { position: relative; z-index: 1; }

/* The fill overlaps the inside edge of the TV frame to avoid a light seam. */
html.otv-is-live .nav-live-icon::after {
  content: "";
  position: absolute;
  top: 0.105em;
  left: 50%;
  width: 1.04em;
  height: 0.6em;
  transform: translateX(-50%);
  background: var(--secondary);
  opacity: 0.64;
  pointer-events: none;
}
html.dark.otv-is-live .nav-live-icon::after { background: #60a5fa; }

@media (prefers-reduced-motion: no-preference) {
  html.otv-is-live .nav-live-icon::after { animation: nav-live-screen-pulse 2.6s ease-in-out infinite; }
}

@keyframes nav-live-screen-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.84; }
}

.nav-item .nav-badge-new {
  background: rgba(168, 85, 247, 0.12);
  color: #9333ea;
  letter-spacing: 0.04em;
}

.nav-item[data-route="reclame"] i { color: #a855f7; }
/* Font Awesome glyphs differ in width; each sidebar icon is sized so they
   read as one set next to Comunitatea OTV and Chat, without stretching any. */
.sidebar .nav-item[data-route="home"] i { font-size: .82em; }
.sidebar .nav-item[data-route="voteaza"] i { font-size: 1.14em; }
.sidebar .nav-item[data-route="stiri"] i,
.sidebar .nav-item[data-route="setari"] i,
.sidebar .nav-item[data-route="glasul-poporului"] i { font-size: 1.08em; }
.sidebar .nav-item[data-route="lideri-comunitate"] i,
.sidebar .nav-item[data-route="reclame"] i { font-size: 1.04em; }

/* ---------- Live hero ---------- */
.home-page .otv-live-hero {
  margin: 0 0 1.75rem;
  container: home-live / inline-size;
}

.otv-live-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.otv-live-hero-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

/* The live status sits at the far right, above the channel picker. */
.otv-live-hero-title .nova-live-badge {
  margin-left: auto;
}

/* On the dark card the 10% tints vanished; lighter fills keep each state readable. */
html.dark .otv-live-hero .nova-live-badge { background: rgba(148, 163, 184, 0.22); color: #e2e8f0; }
html.dark .otv-live-hero .nova-live-badge.is-live { background: rgba(248, 113, 113, 0.24); color: #fecaca; }
html.dark .otv-live-hero .nova-live-badge.is-upcoming { background: rgba(96, 165, 250, 0.24); color: #dbeafe; }
html.dark .otv-live-hero .nova-live-badge.is-archive { background: rgba(167, 139, 250, 0.24); color: #ede9fe; }
html.dark .otv-live-hero .nova-live-badge.is-offline { background: rgba(251, 191, 36, 0.22); color: #fef3c7; }
html.dark .otv-live-hero .nova-live-badge.is-live i { color: #f87171; }

#page-content > .home-page .otv-live-hero h1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-primary);
  /* Same type as every other section title on the homepage. */
  font-family: inherit;
  font-size: var(--dd-type-section, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
}

.otv-live-pulse {
  display: none;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--otv-red);
  box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.55);
  animation: otv-ring 1.8s ease-out infinite;
}

.otv-live-hero .nova-live-panel {
  grid-template-columns: minmax(0, 1fr);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

@container home-live (min-width: 620px) {
  .otv-live-hero .nova-live-panel {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 46%, 440px);
  }
}

.otv-live-hero .nova-live-content {
  padding: 0 1.25rem 1.15rem;
}

.otv-feed-tabs.nova-live-controls {
  position: relative;
  z-index: auto;
  flex-shrink: 0;
  margin-bottom: .65rem;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.otv-feed-tabs.nova-live-controls [data-live-source],
.otv-feed-tabs.nova-live-controls [data-measure-tab] {
  display: grid;
  justify-content: center;
  padding: 0;
}

.nova-live-controls [data-live-source] span,
.nova-live-controls [data-measure-tab] span {
  position: relative;
  display: grid;
  place-items: center;
}

.nova-live-controls [aria-selected="true"] span::after,
.nova-live-controls [data-measure-tab][aria-current="page"] span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--otv-gold);
}

.nova-live-controls button:focus-visible,
.nova-live-controls [data-measure-tab]:focus-visible {
  outline: 2px solid var(--otv-gold);
  outline-offset: -2px;
}

.nova-live-controls .otv-feed-refresh:hover:not(:disabled) { color: var(--text-primary); }
.nova-live-controls .otv-feed-refresh:disabled { cursor: default; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .nova-live-controls .otv-feed-refresh[aria-busy="true"] svg { animation: none; }
}

.otv-live-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
}

.otv-live-comment {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

#page-content > .home-page .otv-live-actions .otv-live-comment {
  font-size: var(--fs-sm);
}

.otv-live-comment {
  border: 0;
  background: var(--otv-yellow);
  color: var(--otv-ink);
}

.otv-live-comment:hover {
  background: #eec52c;
}

/* ---------- Square on the homepage ---------- */
.home-square .home-voices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* A plain link beside the title, without the pill. */
.home-square .home-voices-header .section-link,
.home-square .home-voices-header .section-link:hover {
  padding: 0;
  border: 0;
  background: none;
}
.home-square .home-voices-header .section-link:hover { text-decoration: underline; }

/* Room between the post box and the feed so they read as two blocks. */
.civic-community--square .civic-community-main > .square-composer {
  margin-bottom: 1.75rem;
}

/* Televot sits between the post box and the posts on the homepage. */
.civic-community-insert .televot-section {
  margin: 0 0 1.75rem;
}
.civic-community-main > .civic-community-insert:last-child .televot-section {
  margin-bottom: 0;
}

/* ---------- Ad promo ---------- */
.home-ad-promo {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.08), rgba(244, 208, 70, 0.12));
  color: var(--text-primary);
  text-decoration: none;
}

html:not(.dark) .home-ad-promo {
  border-color: #d9ceef;
  background: linear-gradient(120deg, #f3edff, var(--bg-card) 72%);
}

.home-ad-promo-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 4px solid #111827;
  border-radius: 8px;
  background: var(--otv-ad-screen);
}

.home-ad-promo-logo { position: absolute; top: 6px; left: 6px; width: 30px; height: auto; }

.home-ad-promo-live {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--otv-red);
  color: #fff;
  font-size: 0.55rem !important;
  font-weight: 800;
}

.home-ad-promo-band {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 2px;
  background: var(--otv-ad-band);
}

.home-ad-promo-band i,
.tv-ads-preview-slot {
  border-radius: 2px;
  background: var(--otv-ad-slot);
}

:is(.home-ad-promo-band i, .tv-ads-preview-slot):nth-child(2) { background: var(--otv-yellow); }
.home-ad-promo-band i:nth-child(2) { animation: otv-blink 2.4s ease-in-out infinite; }
:is(.home-ad-promo-band i, .tv-ads-preview-slot):nth-child(1) { background: #dc2626; }
:is(.home-ad-promo-band i, .tv-ads-preview-slot):nth-child(4) { background: #1d4ed8; }

.home-ad-promo-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

#page-content > .home-page .home-ad-promo-kicker {
  color: #9333ea;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
}

#page-content > .home-page .home-ad-promo-copy strong {
  font-size: var(--fs-md);
}

#page-content > .home-page .home-ad-promo-copy small {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.home-ad-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--otv-ink);
  color: #fff;
  font-weight: 650;
  white-space: nowrap;
}

html.dark .home-ad-promo-cta {
  background: var(--otv-yellow);
  color: var(--otv-ink);
}

.home-page .home-mission {
  margin-top: 2.5rem;
}

/* ========================================
   Reclamă la TV (demo)
======================================== */
.tv-ads-page {
  max-width: 1240px;
  margin: 0 auto;
}

.tv-ads-head,
.otv-soon-head {
  margin-bottom: 1.25rem;
}

.tv-ads-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #9333ea;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tv-ads-head h1,
.otv-soon-head h1 {
  /* Same type as the homepage section titles. */
  margin: 0.35rem 0 0.4rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.2;
}

.tv-ads-head p,
.otv-soon-head p {
  max-width: 60ch;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tv-ads-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 1.5rem;
}

/* The set: a dark bezel around a 16:9 broadcast frame. */
.tv-ads-tv {
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1f2937, #0b1120);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tv-ads-screen {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tv-ads-frame, var(--otv-ad-screen)) center / cover no-repeat;
  color: #fff;
}

.tv-ads-bug {
  position: absolute;
  top: 4cqw;
  left: 3.5cqw;
  width: 11cqw;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.tv-ads-onair {
  position: absolute;
  top: 4cqw;
  right: 3.5cqw;
  display: flex;
  align-items: center;
  gap: 1cqw;
  font-weight: 800;
  font-size: max(9px, 1.9cqw);
}

.tv-ads-onair-live {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 0.4cqw 1cqw;
  border-radius: 0.6cqw;
  background: var(--otv-red);
}

.tv-ads-onair-live i {
  font-size: 0.75em;
  animation: otv-blink 1.4s ease-in-out infinite;
}

.tv-ads-onair time {
  padding: 0.4cqw 1cqw;
  border-radius: 0.6cqw;
  background: rgba(15, 23, 42, 0.75);
  font-variant-numeric: tabular-nums;
}

.tv-ads-lower-third {
  position: absolute;
  left: 3.5cqw;
  bottom: 15cqw;
  display: grid;
  max-width: 60%;
  overflow: hidden;
  border-left: 0.8cqw solid var(--otv-yellow);
  background: rgba(15, 23, 42, 0.85);
}

.tv-ads-lower-third span {
  padding: 0.5cqw 1.4cqw 0;
  color: var(--otv-yellow);
  font-size: max(8px, 1.5cqw);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tv-ads-lower-third strong {
  padding: 0 1.4cqw 0.7cqw;
  font-size: max(11px, 2.6cqw);
  white-space: nowrap;
}

/* The six advertising slots along the bottom of the wide screen. */
.tv-ads-band {
  position: absolute;
  inset: auto 0 0;
  height: 12cqw;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5cqw;
  padding: 0.6cqw;
  background: var(--otv-ad-band);
  border-top: 0.35cqw solid var(--otv-yellow);
}

.tv-ads-slot {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0 1cqw;
  overflow: hidden;
  border: 0;
  border-radius: 0.6cqw;
  background: var(--slot-color, rgba(255, 255, 255, 0.08));
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tv-ads-slot.is-free {
  border: 0.25cqw dashed rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  justify-content: center;
  text-align: center;
}

.tv-ads-slot.is-free:hover {
  background: rgba(244, 208, 70, 0.18);
}

.tv-ads-slot.is-selected {
  box-shadow: 0 0 0 0.45cqw var(--otv-yellow), 0 0 2cqw rgba(244, 208, 70, 0.55);
  animation: otv-glow 1.6s ease-in-out infinite;
}

.tv-ads-slot.is-sold,
.tv-ads-slot.is-booked {
  cursor: default;
}

.tv-ads-slot-logo {
  width: 7cqw;
  height: 7cqw;
  flex: none;
  overflow: hidden;
  border-radius: 0.5cqw;
  background: #fff;
}

.tv-ads-slot-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tv-ads-slot-copy {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.tv-ads-slot-copy strong,
.tv-ads-slot-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-ads-slot-copy strong {
  font-size: max(7px, 1.65cqw);
  font-weight: 800;
}

.tv-ads-slot-copy small {
  font-size: max(6px, 1.25cqw);
  opacity: 0.85;
}

/* Light ad colours need dark text. */
.tv-ads-slot[style*="#f4d046"] {
  color: var(--otv-ink);
}

.tv-ads-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.85rem 0 0.6rem;
  color: var(--text-secondary);
  font-size: var(--fs-xs);
}

.tv-ads-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tv-ads-legend i {
  width: 14px;
  height: 10px;
  border-radius: 3px;
}

.tv-ads-legend .is-free { border: 1px dashed var(--text-muted); }
.tv-ads-legend .is-sold { background: #64748b; }
.tv-ads-legend .is-selected { background: var(--otv-yellow); }

.tv-ads-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.tv-ads-pick {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tv-ads-pick:hover:not(.is-taken) {
  border-color: var(--otv-yellow);
}

.tv-ads-pick.is-selected {
  border-color: #d4a90f;
  background: rgba(244, 208, 70, 0.16);
}

.tv-ads-pick.is-taken {
  cursor: default;
  opacity: 0.6;
}

.tv-ads-pick-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 8px;
  background: var(--bg-hover);
  font-weight: 800;
  font-size: var(--fs-xs);
}

.tv-ads-pick.is-selected .tv-ads-pick-number {
  background: var(--otv-yellow);
  color: var(--otv-ink);
}

.tv-ads-pick-copy {
  min-width: 0;
  display: grid;
  line-height: 1.2;
}

.tv-ads-pick-copy strong,
.tv-ads-pick-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-ads-pick-copy strong { font-size: var(--fs-xs); }
.tv-ads-pick-copy small { color: var(--text-secondary); font-size: var(--fs-xs); }

/* Booking form */
.tv-ads-form {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-card);
}

.tv-ads-form-head {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.tv-ads-form-head span {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tv-ads-form-head strong {
  color: var(--text-primary);
  font-size: var(--fs-md);
}

.tv-ads-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tv-ads-field > span,
.tv-ads-field > legend {
  padding: 0;
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 650;
}

.tv-ads-field small {
  color: var(--text-muted);
  font-weight: 500;
}

.tv-ads-field select,
.tv-ads-field input[type="text"],
.tv-ads-field input[type="date"] {
  width: 100%;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 9px;
  background: var(--bg-main);
  color: var(--text-primary);
  font: inherit;
  font-size: var(--fs-md);
}

.tv-ads-field input[type="file"] {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.tv-ads-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tv-ads-chips label {
  position: relative;
}

.tv-ads-chips input,
.tv-ads-swatches input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tv-ads-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.tv-ads-chips input:checked + span {
  border-color: var(--otv-ink);
  background: var(--otv-ink);
  color: #fff;
}

html.dark .tv-ads-chips input:checked + span {
  border-color: var(--otv-yellow);
  background: var(--otv-yellow);
  color: var(--otv-ink);
}

.tv-ads-chips input:focus-visible + span,
.tv-ads-swatches label:has(input:focus-visible) {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.tv-ads-swatches {
  display: flex;
  gap: 0.5rem;
}

.tv-ads-swatches label {
  position: relative;
  width: 32px;
  height: 32px;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--border-medium);
  cursor: pointer;
}

.tv-ads-swatches label:has(input:checked) {
  box-shadow: 0 0 0 2px var(--text-primary);
}

.tv-ads-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: var(--bg-hover);
}

.tv-ads-total div {
  display: grid;
}

.tv-ads-total span {
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 650;
}

.tv-ads-total small {
  color: var(--text-secondary);
  font-size: var(--fs-xs);
}

.tv-ads-total strong {
  color: var(--text-primary);
  font-size: var(--fs-md);
  white-space: nowrap;
}

.tv-ads-book {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--otv-yellow);
  color: var(--otv-ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.tv-ads-book:disabled {
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: not-allowed;
}

.tv-ads-note {
  display: flex;
  gap: 0.45rem;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.tv-ads-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.tv-ads-steps div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-card);
}

.tv-ads-steps span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: var(--otv-yellow);
  color: var(--otv-ink);
  font-weight: 800;
}

.tv-ads-steps strong {
  display: block;
  color: var(--text-primary);
}

.tv-ads-steps p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .tv-ads-layout {
    grid-template-columns: 1fr;
  }

  .tv-ads-form {
    position: static;
  }
}

@media (max-width: 768px) {
  .home-page .otv-live-hero {
    margin-bottom: 0;
  }

  .otv-live-hero-head {
    margin-bottom: 0.65rem;
  }

  /* Full-bleed player on phones: the picture is the point. */
  .otv-live-hero .nova-live-panel {
    margin: 0 -1rem;
    border-width: 1px 0;
    border-radius: 0;
  }

  .otv-live-hero .otv-live-actions {
    display: none;
  }

  .home-square .home-voices-header .section-link {
    display: none;
  }

  .home-ad-promo {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .home-ad-promo-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }

  #page-content > .home-page .home-ad-promo-copy strong {
    font-size: var(--fs-md);
  }

  .tv-ads-tv {
    margin: 0 -0.25rem;
    padding: 5px;
    border-radius: 10px;
  }

  .tv-ads-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .otv-live-hero .nova-live-panel {
    margin: 0 -0.75rem;
  }

  .tv-ads-pick {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
}

@keyframes otv-pulse {
  50% { opacity: 0.35; }
}

@keyframes otv-ring {
  0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.55); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(225, 29, 46, 0); }
}

@keyframes otv-blink {
  50% { opacity: 0.45; }
}

@keyframes otv-glow {
  50% { box-shadow: 0 0 0 0.45cqw var(--otv-yellow), 0 0 0.6cqw rgba(244, 208, 70, 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .otv-live-pulse,
  .home-ad-promo-band i,
  .tv-ads-onair-live i,
  .tv-ads-slot.is-selected {
    animation: none;
  }
}

/* ---------- Player loading ---------- */
/* A soft OTV-tinted backdrop and a spinner until YouTube has painted. */
.nova-live-player:not(.is-floating) {
  background:
    radial-gradient(120% 90% at 25% 15%, rgba(244, 182, 42, .12), transparent 60%),
    radial-gradient(100% 80% at 85% 90%, rgba(37, 99, 235, .16), transparent 60%),
    #0f172a;
}
.nova-live-loader {
  display: grid;
  justify-items: center;
  gap: .85rem;
  color: rgba(226, 232, 240, .72);
  font-size: var(--fs-sm);
  font-weight: 500;
  animation: nova-live-loader-in .4s ease .15s both;
}
.nova-live-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, .14);
  border-top-color: #f4b62a;
  border-radius: 50%;
  animation: nova-live-spin .9s linear infinite;
}
.nova-live-player iframe { transition: opacity .45s ease; }
.nova-live-player iframe.is-pending { opacity: 0; pointer-events: none; }
@keyframes nova-live-spin { to { transform: rotate(360deg); } }
@keyframes nova-live-loader-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .nova-live-spinner { animation-duration: 2.4s; }
  .nova-live-player iframe { transition: none; }
}

/* ---------- Sidebar ---------- */
.sidebar-nav .nav-item { font-size: var(--fs-md); }
.sidebar-nav .nav-item > i { font-size: var(--fs-md); }
.sidebar-nav .nav-item .badge { font-size: var(--fs-xs); }

/* ---------- Homepage news ---------- */
/* No hover motion: the cards stay put under the pointer. */
.news-section .news-card.featured:hover,
.news-section .news-item:hover {
  border-color: var(--border-light);
  box-shadow: none;
  transform: none;
}
.news-section .news-card.featured:hover .news-image img { transform: none; }

/* Leaderboard points match the teal star of Top Contribuitori. */
html.dark .leader-points { color: #3cc7b5; }

/* The mission banner on top of Toate reformele (moved off the homepage). */
.reforms-mission .home-mission {
  margin: 0 0 2rem;
}

html:not(.dark) body:has(#page-content > .home-page) {
  background-color: #dce2ea;
}

/* ---------- Homepage section titles ---------- */
/* Titles sit close to the block they introduce. */
#page-content > .home-page .section-header,
#page-content > .home-page .home-voices-header {
  margin-bottom: 0.875rem;
}
#page-content > .home-page :is(.section-header, .home-voices-header) > .section-link {
  align-self: flex-end;
}
/* Section titles on the homepage read a step larger than on inner pages. */
#page-content > .home-page {
  --dd-type-section: 1.625rem;
}

/* With the reforms column switched off, Top Contribuitori takes the full row. */
.focus-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

/* Text / Imagine / Video plus Publică fit one row on a 375px phone. */
@media (max-width: 420px) {
  .square-composer-footer .square-composer-tools { gap: 4px; }
  .square-composer-footer .square-composer-tools button { gap: 4px; padding-inline: 5px; }
}

/* ---------- Coming soon ---------- */
.nav-item .nav-badge-soon {
  margin-left: auto;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(244, 182, 42, 0.16);
  color: #b7791f;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
html.dark .nav-item .nav-badge-soon { color: var(--otv-yellow); }
.nav-section-soon .nav-item > span:first-of-type { white-space: nowrap; }

.otv-soon-page .otv-soon-head { opacity: 0.55; }
.tv-ads-preview-screen .tv-ads-band { border: 0; }
.tv-ads-preview-slot { border-radius: 0.6cqw; }
.tv-ads-preview-slot:is(:nth-child(1), :nth-child(2), :nth-child(4)) { animation: tv-ads-slot-pulse 2.4s ease-in-out infinite; }
.tv-ads-preview-slot:nth-child(2) { animation-delay: 0.8s; }
.tv-ads-preview-slot:nth-child(4) { animation-delay: 1.6s; }
@keyframes tv-ads-slot-pulse { 50% { opacity: 0.68; } }
@media (prefers-reduced-motion: reduce) {
  .tv-ads-preview-slot:is(:nth-child(1), :nth-child(2), :nth-child(4)) { animation: none; }
}

.otv-soon {
  /* Pinned to the middle of the visible content area, whatever the scroll. */
  position: fixed;
  z-index: 10;
  top: calc(var(--header-height) + (100dvh - var(--header-height)) / 2);
  left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2);
  width: min(420px, calc(100% - 2rem));
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  text-align: center;
  transform: translate(-50%, -50%);
}
.otv-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--otv-yellow);
  color: var(--otv-ink, #111827);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.otv-soon strong { color: var(--text-primary); font-size: var(--fs-lg); }
.otv-soon p { margin: 0; color: var(--text-secondary); line-height: 1.5; }
.otv-soon.tv-ads-soon {
  position: static;
  align-self: center;
  width: 100%;
  transform: none;
  /* The tint sits on the card colour, not on the grey page behind it. */
  background: linear-gradient(120deg, rgba(168, 85, 247, .06), rgba(244, 208, 70, .1)), var(--bg-card);
}

@media (max-width: 768px) {
  /* No sidebar on phones; the tab bar takes the bottom of the screen. */
  .otv-soon {
    top: calc(var(--header-height) + (100dvh - var(--header-height) - var(--mobile-bottom-space, 0px)) / 2);
    left: 50%;
  }
}

.nav-item[data-route="glasul-poporului"] i { color: #10b981; }

/* Măsuri economice before it opens: domain cards, then a list of measures. */
.econ-preview-grid,
.econ-preview-list {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.econ-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.econ-preview-card,
.econ-preview-row {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: var(--bg-card);
}
.econ-preview-icon { width: 40px; height: 40px; border-radius: 10px; }
.econ-preview-title { width: 60%; height: 16px; }
.econ-preview-line { width: 92%; height: 11px; }
.econ-preview-line.is-short { width: 55%; }
.econ-preview-list { display: grid; gap: 0.85rem; margin-top: 1.5rem; }
.econ-preview-row { grid-template-columns: minmax(0, 1fr) 140px; align-items: center; gap: 1.25rem; }
.econ-preview-row > div { display: grid; gap: 0.55rem; }
.econ-preview-bar { height: 10px; border-radius: 999px; }
@media (max-width: 1100px) { .econ-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .econ-preview-grid { grid-template-columns: minmax(0, 1fr); }
  .econ-preview-row { grid-template-columns: minmax(0, 1fr); }
}

.otv-soon-page { max-width: 1240px; margin: 0 auto; }

.has-economic-preview .otv-soon {
  position: static;
  width: 100%;
  transform: none;
  box-shadow: none;
  justify-items: start;
  text-align: left;
}
.has-economic-preview .otv-soon h1 { margin: 0; color: var(--text-primary); font-size: var(--fs-lg); }
.econ-preview-feature { margin-top: 2rem; }

@media (min-width: 1224px) {
  .econ-preview-feature.measures-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.econ-upcoming-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 13rem;
  padding: 1.5rem;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}
.econ-upcoming-card .community-skeleton-block { display: block; animation: none; border-radius: 999px; }
.econ-upcoming-head { display: flex; align-items: flex-start; gap: 0.875rem; }
.econ-upcoming-lock {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-hover);
  color: var(--text-muted);
}
.econ-upcoming-title { flex: 1; display: grid; gap: 0.55rem; padding-top: 0.2rem; }
.econ-upcoming-title .community-skeleton-block { width: 85%; height: 16px; }
.econ-upcoming-title .community-skeleton-block.is-short { width: 50%; }
.econ-upcoming-lines { display: grid; align-content: start; gap: 0.65rem; min-height: 0; overflow: hidden; flex: 0 1 auto; }
.econ-upcoming-lines .community-skeleton-block { width: 100%; height: 11px; }
.econ-upcoming-lines .community-skeleton-block:nth-child(2) { width: 92%; }
.econ-upcoming-lines .community-skeleton-block:nth-child(3) { width: 96%; }
.econ-upcoming-lines .community-skeleton-block.is-short { width: 58%; }
.econ-upcoming-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.econ-upcoming-card .community-skeleton-block.is-tag { width: 5.5rem; height: 30px; border-radius: 8px; }
.econ-upcoming-card .community-skeleton-block.is-tag.is-wide { width: 8.5rem; }
.econ-upcoming-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.econ-upcoming-card .community-skeleton-block.econ-upcoming-arrow { width: 40px; height: 40px; border-radius: 50%; }

/* Side by side, the real measure card sets the row's height and the locked
   card fills it: its text lines give way rather than stretching the measure
   card and leaving an empty band under its footer. */
@media (min-width: 1224px) {
  .econ-preview-feature .econ-upcoming-card { contain: size; min-height: 0; }
}

/* ---------- Community leaders ---------- */
.leaderboard-avatar { overflow: hidden; }
.leaderboard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leaderboard-post-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--otv-yellow);
  color: var(--otv-ink, #111827);
  font-weight: 700;
  text-decoration: none;
}

/* The player's cover before play: the video's picture and one play button. */
.nova-live-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; opacity: 1; transition: opacity .35s ease; }
.nova-live-cover.is-entering { opacity: 0; }
.nova-live-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nova-live-cover-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .2); color: #fff; font-size: var(--fs-xl); transform: translate(-50%, -50%); transition: transform .15s ease, background-color .15s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.nova-live-cover .nova-live-cover-play i { margin-left: 5px; font-size: var(--fs-xl); }
.nova-live-cover:hover .nova-live-cover-play { background: rgba(0, 0, 0, .35); transform: translate(-50%, -50%) scale(1.06); }
.nova-live-cover:focus-visible { outline: 3px solid var(--otv-yellow, #f5c518); outline-offset: -3px; }

/* Home Televot row: a Da/Nu card next to a wide one gets 50px more width,
   taken evenly from the wide card. Still three tracks, which is what the
   script that picks the questions measures. */
@media (min-width: 1101px) {
  #home-televot.televot-grid:has(> .pulse-card-wide:first-child) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) calc((100% - 2.5rem) / 3 + 50px);
  }
  #home-televot.televot-grid:has(> .pulse-card:not(.pulse-card-wide):first-child + .pulse-card-wide) {
    grid-template-columns: calc((100% - 2.5rem) / 3 + 50px) minmax(0, 1fr) minmax(0, 1fr);
  }
}

/*
 * Every page reads as one centred column of at most 1060px on wide windows.
 * The two- and three-column pages (community, post, settings, profile, leaders)
 * set their own layout in otv-post.css, which wins over this.
 */
.content-area { max-width: calc(1060px + 4rem); margin-inline: auto; }

/* ---------- Cele mai apreciate ale săptămânii + Top Contribuitori (home) ---------- */
@media (min-width: 1101px) {
  /* The week's posts take two thirds, with the creator list beside them. */
  .focus-grid.has-week-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 1100px) {
  /* One column, never wider than the screen: the swipe row scrolls inside it. */
  .focus-grid.has-week-top { grid-template-columns: minmax(0, 1fr); }
  .focus-grid.has-week-top .leaderboard-column { order: 0; }
}
.home-week-column { min-width: 0; }

.home-week-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-week-grid > .loading-state,
.home-week-grid > .otv-detail-empty { grid-column: 1 / -1; }

.home-week-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--border-light); border-radius: var(--radius-xl); background: var(--bg-card); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.home-week-card:hover,
.home-week-card:focus-visible { border-color: color-mix(in srgb, var(--secondary) 50%, var(--border-light)); box-shadow: var(--shadow-sm); outline: none; }

/* Every card has the same 4:5 frame. The whole picture shows inside it, at its
   own shape, over a blurred, darkened copy of itself instead of black bars. */
.home-week-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0f141c; }
.home-week-youtube { position: absolute; inset: 0; }
.home-week-youtube > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-week-backdrop { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.2); transform: translateZ(0); pointer-events: none; }
.home-week-media .otv-post-media,
.home-week-media .otv-post-media.is-video.is-portrait { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; aspect-ratio: auto !important; }
.home-week-media .otv-post-media.is-image img { width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: contain; }
.home-week-media .otv-video video,
.home-week-media .otv-video .otv-video-cover img { object-fit: contain; background: transparent; }
.home-week-media .otv-video .otv-video-cover { background: transparent; }
.home-week-media .otv-video-time { display: none; }

.home-week-quote { display: flex; align-items: center; aspect-ratio: 4 / 3; padding: 1rem 1.1rem; background: color-mix(in srgb, var(--secondary) 9%, var(--bg-card)); }
.home-week-quote p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--text-primary); font-size: var(--fs-md); font-weight: 500; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; }

.home-week-body { display: flex; flex: 1; flex-direction: column; padding: 14px 10px; }
.home-week-author { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 10px; }
.home-week-author .otv-avatar { width: 32px; height: 32px; flex-shrink: 0; font-size: var(--fs-xs); }
.home-week-author > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; line-height: 1.25; }
.home-week-author strong { overflow: hidden; color: var(--text-primary); font-size: var(--fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.home-week-author small { color: var(--text-muted); font-size: var(--fs-xs); }
.home-week-text { display: -webkit-box; margin: 0 0 12px; overflow: hidden; color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
/* The counts sit at the foot of the card, under a hairline, apart from the text. */
.home-week-stats { display: flex; gap: 18px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: var(--fs-xs); font-weight: 600; }
.home-week-stats span { display: inline-flex; align-items: center; gap: .35rem; }
.home-week-stats .is-ok { color: var(--otv-gold-text); }
.home-week-stats .otv-ok { font-size: var(--fs-xs); }

/* The creator list sits beside the week's top posts. */
.focus-grid.has-week-top .leader-name { overflow: hidden; font-size: var(--fs-sm); text-overflow: ellipsis; white-space: nowrap; }
.focus-grid.has-week-top .leader-points { font-size: var(--fs-sm); }
.leaderboard-column > .section-header > .section-title { margin-bottom: 0; }
.leaderboard-column .leaderboard-section-link { display: none; }
.focus-grid.has-week-top .leaderboard-column { container: home-creators / inline-size; }

@container home-creators (min-width: 540px) {
  .focus-grid.has-week-top .leaderboard-section-link { display: inline-flex; }
  .focus-grid.has-week-top .leaderboard-link { display: none; }

  .focus-grid.has-week-top .leaderboard-list:has(> .leader-item) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-grid.has-week-top .leaderboard-list > .leader-item:nth-child(n + 5) {
    display: none;
  }
}

/* Loading: the card's own shape, pulsing (router.js homeWeekSkeletonCard). */
.home-week-card.is-skeleton { cursor: default; pointer-events: none; }
.home-week-card.is-skeleton .home-week-media { border-radius: 0; animation-duration: 1.35s; }
.home-week-skel-avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; }
.home-week-skel-line { display: block; height: 12px; margin-bottom: 8px; border-radius: 6px; }
.home-week-skel-line.is-small { height: 10px; margin-bottom: 0; }
.home-week-author .home-week-skel-line { margin-bottom: 6px; }
.home-week-stats .home-week-skel-line { margin: 0; }

/* Phones: the week's posts become a row to swipe through, two cards wide with
   a peek of the next one. */
@media (max-width: 700px) {
  .home-week-grid { grid-auto-columns: 46%; grid-auto-flow: column; grid-template-columns: none; gap: .65rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
  .home-week-grid::-webkit-scrollbar { display: none; }
  .home-week-card { scroll-snap-align: start; border-radius: var(--radius-lg); }
  .home-week-body { padding: 10px 8px; }
  .home-week-author { gap: 7px; margin-bottom: 6px; }
  .home-week-author .otv-avatar,
  .home-week-skel-avatar { width: 24px; height: 24px; }
  .home-week-author strong { font-size: var(--fs-xs); }
  .home-week-text { margin-bottom: 8px; font-size: var(--fs-xs); }
  .home-week-quote { padding: .75rem; }
  .home-week-quote p { font-size: var(--fs-sm); -webkit-line-clamp: 5; line-clamp: 5; }
  .home-week-stats { gap: 12px; padding-top: 8px; }
  .home-week-media .otv-video-play { width: 40px; height: 40px; }
  .home-week-media .otv-video-play svg { width: 16px; height: 16px; }
}

/* The home title's red dot pulses while a channel is live. */
html.otv-is-live .otv-live-pulse { display: block; }


/* "Creatori populari" on the home page: photo, name, @handle and reactions. */
.creator-item .creator-avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; overflow: hidden;
  border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: var(--text-primary); font-size: var(--fs-sm); font-weight: 700;
}
.creator-item .creator-avatar:not(:has(img)) { background: var(--avatar-fallback-bg); }
.creator-item .creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-item .leader-info { min-width: 0; }
.creator-item .leader-name, .creator-item .leader-role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-ok {
  display: inline-flex; align-items: center; gap: .35rem;
  flex: none; margin-left: auto;
  color: var(--otv-gold-text, #a15c07); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.creator-ok .otv-ok { font-size: 1em; }
html:not(.dark) :is(.home-week-stats .is-ok, .creator-ok) { color: #115e59; }

/* Once stacked below the weekly posts, keep the creators in their own card. */
@media (max-width: 1100px) {
  .leaderboard-card {
    padding: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
  }
  .leaderboard-list { gap: 0.5rem; }
  .leader-item {
    padding: 0.6rem 0.7rem;
    background: var(--bg-hover);
    border-bottom: 0;
    border-radius: var(--radius-lg);
  }
  .leaderboard-link {
    display: block;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
  }
  .creator-ok {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(250, 204, 21, .12);
  }
  html:not(.dark) .creator-ok { background: #d5f3ed; }
}

/* Știri columns, as on Drudge: each photo keeps its own shape, smaller than the
   column and left-aligned, never taller than the old full-width 16:9 crop. */
.rd-news-item { container-type: inline-size; }
.rd-news-item img {
  width: auto;
  height: auto;
  max-width: 75%;
  max-height: 56.25cqw;
  aspect-ratio: auto;
  object-fit: contain;
  background: none;
}
@media (max-width: 768px) {
  .rd-news-item img { max-width: 100%; }
}

/* Broadcast identity: full artwork on large surfaces, compact gold type in the header. */
@media (min-width: 769px) {
  .sidebar .sidebar-brand {
    padding: 0;
    margin: 16px 16px 8px;
    border: 1px solid rgba(255, 215, 88, .18);
    border-radius: 12px;
    overflow: hidden;
  }
  .sidebar .sidebar-brand img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 628;
    object-fit: cover;
  }
  .sidebar .sidebar-brand:focus-visible { outline: 2px solid var(--otv-yellow); outline-offset: 3px; }
}
