/* ==========================================================================
   RADIOTV10 — Design system (loaded after style.css)
   One set of fonts, sizes, corners, spacing and buttons for every section,
   so the homepage and category pages read as one product.
   ========================================================================== */

:root {
  --rtv-orange: #fe8100;
  --rtv-orange-dark: #c25e00;
  --rtv-ink: #141414;
  --rtv-text: #2b2b2b;
  --rtv-muted: #6b6b6b;
  --rtv-line: #e8e8e8;
  --rtv-soft: #f6f6f4;

  --rtv-font-ui: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --rtv-font-head: 'Source Serif 4', Georgia, serif;

  /* type scale */
  --rtv-t-hero: clamp(22px, 2.2vw, 32px);
  --rtv-t-lead: clamp(20px, 1.7vw, 26px);
  --rtv-t-card: 17px;
  --rtv-t-row: 15px;
  --rtv-t-small: 13px;
  --rtv-t-meta: 12px;

  /* shape + space */
  --rtv-r-sm: 4px;
  --rtv-r-md: 8px;
  --rtv-r-pill: 999px;
  --rtv-gap: 24px;
  --rtv-gap-sm: 16px;
  --rtv-section: 56px;
  --rtv-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.05);
  --rtv-shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 10px 24px rgba(0,0,0,.08);
}
@media (max-width: 768px) {
  :root { --rtv-gap: 16px; --rtv-section: 36px; --rtv-t-card: 16px; --rtv-t-row: 14px; }
}

/* ── One font family for UI text (the parent theme leaked Roboto/Poppins) ── */
.rtv-homepage, .rtv-archive-page, .rtv-homepage button, .rtv-archive-page button,
.rtv-homepage input, .rtv-archive-page input { font-family: var(--rtv-font-ui); }

/* ── Badge: one style everywhere ── */
.rtv-badge, .rtv-cat-badge, .rtv-slide__cat, .rtv-breaking-box__cat, .rtv-hot-card__cat,
.rtv-arch-card__overlay-badge, .rtv-arch-lead__badge {
  display: inline-block;
  font: 700 10px/1.5 var(--rtv-font-ui) !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff !important;
  background: var(--rtv-orange) !important;
  padding: 3px 8px !important;
  border-radius: var(--rtv-r-sm) !important;
  text-decoration: none !important;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Buttons: one pill system ── */
.rtv-btn, .rtv-section-title__more, .rtv-breaking-box__btn, .rtv-sidebar-related__viewall {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 12px/1 var(--rtv-font-ui) !important;
  letter-spacing: .02em;
  padding: 8px 14px !important;
  border-radius: var(--rtv-r-pill) !important;
  border: 1px solid var(--rtv-orange) !important;
  text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.rtv-btn--ghost, .rtv-section-title__more { background: #fff !important; color: var(--rtv-orange-dark) !important; }
.rtv-btn--ghost:hover, .rtv-section-title__more:hover { background: var(--rtv-orange) !important; color: #fff !important; }
.rtv-btn--solid, .rtv-breaking-box__btn { background: var(--rtv-orange) !important; color: #fff !important; }
.rtv-btn--solid:hover, .rtv-breaking-box__btn:hover { background: var(--rtv-orange-dark) !important; border-color: var(--rtv-orange-dark) !important; }
.rtv-btn--sm { padding: 6px 12px !important; }
.rtv-btn:focus-visible, .rtv-c a:focus-visible { outline: 2px solid var(--rtv-orange); outline-offset: 2px; }

/* ── Section header (new + legacy markup look identical) ── */
.rtv-shead, .rtv-section-title {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 var(--rtv-gap-sm) !important; padding: 0 0 10px !important;
  border-bottom: 1px solid var(--rtv-line) !important;
}
.rtv-shead__title, .rtv-section-title__text {
  position: relative; margin: 0 !important; padding: 0 0 0 12px !important;
  font: 800 18px/1.2 var(--rtv-font-ui) !important;
  letter-spacing: .03em; text-transform: uppercase; color: var(--rtv-ink) !important;
  border: 0 !important;
}
.rtv-shead__title::before, .rtv-section-title__text::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px;
  border-radius: 2px; background: var(--rtv-orange);
}
.rtv-section-gap, .rtv-sec { margin-top: var(--rtv-section) !important; }

/* ==========================================================================
   Story card
   ========================================================================== */
.rtv-c { position: relative; min-width: 0; color: var(--rtv-text); }
.rtv-c__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--rtv-r-md); background: var(--rtv-soft);
}
.rtv-c__img {
  display: block; width: 100% !important; height: 100% !important; max-width: none;
  object-fit: cover; transition: transform .35s ease;
}
.rtv-c__img--none { background: linear-gradient(135deg, #f1f1ef, #e7e7e4); }
.rtv-c:hover .rtv-c__img { transform: scale(1.035); }
.rtv-c__badge { position: absolute; left: 10px; top: 10px; z-index: 1; }
.rtv-c__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rtv-c__title { margin: 0; font-family: var(--rtv-font-head); font-weight: 700; color: var(--rtv-ink); }
.rtv-c__title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .25s, color .15s; }
.rtv-c__title a:hover { color: var(--rtv-orange-dark); }
.rtv-c__excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: var(--rtv-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rtv-c__meta { font-size: var(--rtv-t-meta); color: #8a8a8a; letter-spacing: .01em; }
.rtv-c__kicker { font: 700 11px/1.3 var(--rtv-font-ui); letter-spacing: .05em; text-transform: uppercase; color: var(--rtv-orange-dark); text-decoration: none; }
.rtv-c__kicker:hover { text-decoration: underline; }

/* lead */
.rtv-c--lead .rtv-c__body { padding-top: 14px; gap: 8px; }
.rtv-c--lead .rtv-c__title { font-size: var(--rtv-t-lead); line-height: 1.22; }
.rtv-c--lead .rtv-c__excerpt { font-size: 15px; -webkit-line-clamp: 3; }

/* card */
.rtv-c--card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rtv-line); border-radius: var(--rtv-r-md); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.rtv-c--card:hover { box-shadow: var(--rtv-shadow-hover); transform: translateY(-2px); }
.rtv-c--card .rtv-c__media { border-radius: 0; }
.rtv-c--card .rtv-c__body { flex: 1; padding: 14px 16px 16px; }
.rtv-c--card .rtv-c__title { font-size: var(--rtv-t-card); line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rtv-c--card .rtv-c__meta { margin-top: auto; padding-top: 6px; }

/* row */
.rtv-c--row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.rtv-c--row .rtv-c__media { aspect-ratio: 4 / 3; border-radius: var(--rtv-r-sm); }
.rtv-c--row .rtv-c__body { gap: 4px; }
.rtv-c--row .rtv-c__title { font-size: var(--rtv-t-row); line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* text */
.rtv-c--text .rtv-c__body { gap: 4px; }
.rtv-c--text .rtv-c__title { font-size: var(--rtv-t-row); line-height: 1.35; }

/* lists of rows: even spacing + hairlines, never an inner scrollbar */
.rtv-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rtv-list > * + * { border-top: 1px solid var(--rtv-line); }
.rtv-list > .rtv-c, .rtv-list > li { padding: 14px 0; }
.rtv-list > :first-child { padding-top: 0; }
.rtv-list--numbered { counter-reset: rtv-n; }
.rtv-list--numbered > li { position: relative; padding-left: 38px; counter-increment: rtv-n; }
.rtv-list--numbered > li::before {
  content: counter(rtv-n); position: absolute; left: 0; top: 14px;
  font: 800 26px/1 var(--rtv-font-head); color: var(--rtv-orange);
}
.rtv-list--numbered > li:first-child::before { top: 0; }
.rtv-list--numbered .rtv-c--row { grid-template-columns: 1fr; }
.rtv-list--numbered .rtv-c--row .rtv-c__media { display: none; }

/* ==========================================================================
   Section layouts
   ========================================================================== */
.rtv-sec__grid { display: grid; gap: var(--rtv-gap); align-items: start; }
.rtv-sec--hero .rtv-sec__grid,
.rtv-sec--stream .rtv-sec__grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.rtv-sec--editorial .rtv-sec__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); }
.rtv-sec--editorial .rtv-sec__left { display: flex; flex-direction: column; gap: var(--rtv-gap-sm); }
.rtv-sec--editorial .rtv-sec__left .rtv-c--text { padding-top: var(--rtv-gap-sm); border-top: 1px solid var(--rtv-line); }
.rtv-sec__sidehead {
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rtv-orange);
  font: 800 12px/1.2 var(--rtv-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--rtv-ink);
}

.rtv-sec--mosaic .rtv-sec__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.rtv-sec--paper .rtv-sec__grid  { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.rtv-sec__below { margin-top: var(--rtv-gap) !important; }
.rtv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.rtv-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--rtv-gap); }
.rtv-feed > .rtv-c { padding-bottom: 18px; border-bottom: 1px solid var(--rtv-line); }

/* Lead with the headline over the photo (Breaking / Featured layouts) */
.rtv-c--overlay { position: relative; }
.rtv-c--overlay .rtv-c__media { aspect-ratio: 21 / 9; }
.rtv-c--overlay .rtv-c__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 50%, transparent 75%); pointer-events: none; }
.rtv-c--overlay .rtv-c__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 28px; z-index: 1; pointer-events: none; }
.rtv-c--overlay .rtv-c__body a { pointer-events: auto; }
.rtv-c--overlay .rtv-c__title { color: #fff; font-size: var(--rtv-t-hero); max-width: 900px; }
.rtv-c--overlay .rtv-c__title a:hover { color: #ffd2a6; }
.rtv-c--overlay .rtv-c__excerpt { color: rgba(255,255,255,.85); max-width: 760px; }
.rtv-c--overlay .rtv-c__meta { color: rgba(255,255,255,.75); }

/* Grids of cards */
.rtv-grid { display: grid !important; gap: var(--rtv-gap) !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; margin: 0 !important; }
.rtv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.rtv-grid--top.rtv-arch-grid--n6  { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.rtv-grid--top.rtv-arch-grid--n10,
.rtv-grid--top.rtv-arch-grid--n20 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.rtv-grid--top.rtv-arch-grid--n12 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.rtv-grid--top.rtv-arch-grid--n14 { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
.rtv-grid--top.rtv-arch-grid--n10 .rtv-c__excerpt,
.rtv-grid--top.rtv-arch-grid--n12 .rtv-c__excerpt,
.rtv-grid--top.rtv-arch-grid--n14 .rtv-c__excerpt,
.rtv-grid--top.rtv-arch-grid--n20 .rtv-c__excerpt { display: none; }
.rtv-grid--top.rtv-arch-grid--n10 .rtv-c__title,
.rtv-grid--top.rtv-arch-grid--n12 .rtv-c__title,
.rtv-grid--top.rtv-arch-grid--n14 .rtv-c__title,
.rtv-grid--top.rtv-arch-grid--n20 .rtv-c__title { font-size: 15px; }
.rtv-secondary { margin-top: var(--rtv-gap) !important; padding: 0 !important; border: 0 !important; }

/* In-feed ad card: same shell as a story card, clearly labelled */
.rtv-c--ad { display: flex; flex-direction: column; justify-content: center; border: 1px dashed #dcdcdc; border-radius: var(--rtv-r-md); background: var(--rtv-soft); padding: 10px; min-height: 260px; }
.rtv-c--ad .rtv-ad-slot { margin: 0; }
.rtv-c--ad:has(.rtv-ad-slot.is-empty) { display: none; }
.rtv-c--spare { display: none; }
.rtv-grid:has(.rtv-c--ad .rtv-ad-slot.is-empty) .rtv-c--spare { display: flex; }

/* ==========================================================================
   Hero (slider + lead + hot news) — align to the system
   ========================================================================== */
.rtv-hero-v2 { border-radius: var(--rtv-r-md); }
.rtv-slide__title { font-family: var(--rtv-font-head) !important; font-size: var(--rtv-t-hero) !important; line-height: 1.18 !important; }
.rtv-slider__prev, .rtv-slider__next {
  width: 42px !important; height: 42px !important; padding: 0 !important; border-radius: 50% !important;
  background: rgba(255,255,255,.92) !important; color: var(--rtv-ink) !important; border: 0 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); font: 400 24px/42px var(--rtv-font-ui) !important;
}
.rtv-slider__prev:hover, .rtv-slider__next:hover { background: #fff !important; color: var(--rtv-orange-dark) !important; }
.rtv-slider__dot { width: 8px !important; height: 8px !important; border: 0 !important; background: rgba(255,255,255,.55) !important; transition: width .2s, background .2s; }
.rtv-slider__dot.active { width: 22px !important; border-radius: 4px !important; background: var(--rtv-orange) !important; }
.rtv-breaking-box h3 { font-family: var(--rtv-font-head) !important; font-size: 17px !important; line-height: 1.3 !important; }
.rtv-hot-box__title { font: 800 12px/1.2 var(--rtv-font-ui) !important; letter-spacing: .08em; text-transform: uppercase; }
.rtv-hot-card__img { border-radius: var(--rtv-r-sm) !important; }
.rtv-hot-card h4 { font-family: var(--rtv-font-head) !important; font-size: 13px !important; line-height: 1.32 !important; font-weight: 700 !important; }
.rtv-hot-box__list { scrollbar-width: thin; scrollbar-color: #d6d6d6 transparent; }

/* ── Most read + YouTube: same type as cards ── */
.rtv-mr-col__head { font: 800 12px/1.2 var(--rtv-font-ui) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--rtv-ink) !important; border-bottom: 2px solid var(--rtv-orange) !important; padding-bottom: 8px !important; }
.rtv-mr-item__img { border-radius: var(--rtv-r-sm) !important; }
.rtv-mr-item__title { font: 700 14px/1.35 var(--rtv-font-head) !important; color: var(--rtv-ink) !important; }
.rtv-mr-item__date { font-size: var(--rtv-t-meta) !important; color: #8a8a8a !important; }
.rtv-yt-player-wrap, .rtv-yt-list { border-radius: var(--rtv-r-md) !important; }
.rtv-yt-now-playing { font-size: 17px !important; }
.rtv-yt-item__title { font-family: var(--rtv-font-head) !important; font-size: 13.5px !important; font-weight: 700 !important; }
.rtv-yt-subscribe a { border-radius: var(--rtv-r-pill) !important; font-family: var(--rtv-font-ui) !important; }

/* Ad strips keep the rhythm of the page */
.rtv-homepage .rtv-ad-slot--strip, .rtv-archive-page .rtv-ad-slot--strip { margin: var(--rtv-gap) 0 0 !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .rtv-grid--top.rtv-arch-grid--n12, .rtv-grid--top.rtv-arch-grid--n14 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 1024px) {
  .rtv-grid, .rtv-grid--top.rtv-arch-grid--n10, .rtv-grid--top.rtv-arch-grid--n20 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .rtv-sec--editorial .rtv-sec__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .rtv-sec--editorial .rtv-sec__left { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: 1fr 1fr; }
  .rtv-sec--editorial .rtv-sec__left .rtv-c--text { border-top: 0; padding-top: 0; }
}
@media (max-width: 860px) {
  .rtv-sec--hero .rtv-sec__grid, .rtv-sec--stream .rtv-sec__grid, .rtv-sec--editorial .rtv-sec__grid,
  .rtv-sec--mosaic .rtv-sec__grid, .rtv-sec--paper .rtv-sec__grid { grid-template-columns: 1fr; }
  .rtv-feed { grid-template-columns: 1fr; }
  .rtv-c--overlay .rtv-c__media { aspect-ratio: 16 / 9; }
  .rtv-c--overlay .rtv-c__body { position: static; padding: 14px 0 0; pointer-events: auto; }
  .rtv-c--overlay .rtv-c__media::after { display: none; }
  .rtv-c--overlay .rtv-c__title { color: var(--rtv-ink); font-size: var(--rtv-t-lead); }
  .rtv-c--overlay .rtv-c__excerpt { color: var(--rtv-muted); }
  .rtv-c--overlay .rtv-c__meta { color: #8a8a8a; }
  .rtv-sec--editorial .rtv-sec__main { order: 1; }
  .rtv-sec--editorial .rtv-sec__left { order: 2; }
  .rtv-sec--editorial .rtv-sec__side { order: 3; }
  .rtv-grid, .rtv-grid--3, .rtv-grid--top[class*="rtv-arch-grid--n"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
  .rtv-grid, .rtv-grid--3, .rtv-grid--top[class*="rtv-arch-grid--n"] { grid-template-columns: 1fr !important; }
  .rtv-sec--editorial .rtv-sec__left { grid-template-columns: 1fr; }
  .rtv-c--row { grid-template-columns: 96px minmax(0, 1fr); }
  .rtv-shead__title, .rtv-section-title__text { font-size: 16px !important; }
  /* phones: cards become compact rows so the page is not endless */
  .rtv-grid--top .rtv-c--card, .rtv-archive-page .rtv-grid .rtv-c--card {
    flex-direction: row; border: 0; border-bottom: 1px solid var(--rtv-line); border-radius: 0; padding: 0 0 14px; background: none;
  }
  .rtv-grid--top .rtv-c--card:hover, .rtv-archive-page .rtv-grid .rtv-c--card:hover { box-shadow: none; transform: none; }
  .rtv-grid--top .rtv-c--card .rtv-c__media, .rtv-archive-page .rtv-grid .rtv-c--card .rtv-c__media { flex: 0 0 112px; aspect-ratio: 4 / 3; border-radius: var(--rtv-r-sm); }
  .rtv-grid--top .rtv-c--card .rtv-c__badge, .rtv-archive-page .rtv-grid .rtv-c--card .rtv-c__badge,
  .rtv-grid--top .rtv-c--card .rtv-c__excerpt, .rtv-archive-page .rtv-grid .rtv-c--card .rtv-c__excerpt { display: none; }
  .rtv-grid--top .rtv-c--card .rtv-c__body, .rtv-archive-page .rtv-grid .rtv-c--card .rtv-c__body { padding: 0 0 0 12px; }
  .rtv-grid--top .rtv-c--card .rtv-c__title, .rtv-archive-page .rtv-grid .rtv-c--card .rtv-c__title { font-size: 15px; }
  .rtv-grid--top, .rtv-archive-page .rtv-grid { gap: 14px !important; }
  .rtv-c--ad { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rtv-c__img, .rtv-c--card { transition: none; }
  .rtv-c:hover .rtv-c__img, .rtv-c--card:hover { transform: none; }
}
