/* =========================================================================
   Antena 3 Suceava — foaia de stil a platformei publice
   Structură: variabile → bază → componente → antet → pagini → mobil
   ========================================================================= */

/* ------------------------------------------------------------ variabile */
:root {
  --accent: #d81f26;
  --accent-ink: #ffffff;

  --bg: #ffffff;
  --bg-soft: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --ink: #0f1319;
  --ink-2: #3d4653;
  --muted: #6a7484;
  --line: #e3e7ee;
  --line-2: #d3d9e3;

  --shadow-1: 0 1px 2px rgba(15, 19, 25, .06), 0 1px 3px rgba(15, 19, 25, .04);
  --shadow-2: 0 4px 12px rgba(15, 19, 25, .08), 0 2px 4px rgba(15, 19, 25, .04);
  --shadow-3: 0 18px 48px rgba(15, 19, 25, .18);

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-full: 999px;

  --wrap: 1240px;
  --gap: 24px;
  --hdr-h: 62px;
  --chips-h: 46px;
  --tab-h: 58px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

/* Tema urmează sistemul (data-theme="auto"), dar poate fi fixată din antet. */
:root[data-theme="auto"] { color-scheme: light; }

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { color-scheme: dark; }
}

/* paleta întunecată */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0e1116;
    --bg-soft: #0b0e13;
    --surface: #161b22;
    --surface-2: #1d232c;
    --ink: #e9edf3;
    --ink-2: #c2cad6;
    --muted: #8d97a6;
    --line: #232a34;
    --line-2: #2d3542;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 6px 18px rgba(0, 0, 0, .45);
    --shadow-3: 0 22px 60px rgba(0, 0, 0, .65);
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-soft: #0b0e13;
  --surface: #161b22;
  --surface-2: #1d232c;
  --ink: #e9edf3;
  --ink-2: #c2cad6;
  --muted: #8d97a6;
  --line: #232a34;
  --line-2: #2d3542;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 6px 18px rgba(0, 0, 0, .45);
  --shadow-3: 0 22px 60px rgba(0, 0, 0, .65);
}

html[data-theme="light"] { color-scheme: light; }

/* ----------------------------------------------------------------- bază */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; font-weight: 800; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-s);
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
.wrap--narrow { max-width: 820px; }

.main { min-height: 60vh; padding-bottom: 40px; }

/* ---------------------------------------------------------- componente */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--r-full);
  font-weight: 650; font-size: 14px; letter-spacing: .01em;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #b8151c; color: #fff; }
.btn--outline { border-color: var(--line-2); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: var(--surface-2); color: var(--ink); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: var(--r-full);
  color: inherit; transition: background .15s, color .15s;
}
.icon-btn:hover { background: rgba(127, 137, 153, .16); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ff2d3f;
  display: inline-block; box-shadow: 0 0 0 0 rgba(255, 45, 63, .7);
  animation: pulse 1.9s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(255, 45, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 63, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } html { scroll-behavior: auto; } }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(255, 45, 63, .12); color: #ff4152;
  font-weight: 750; font-size: 11.5px; letter-spacing: .09em;
}
.live-pill:hover { background: rgba(255, 45, 63, .2); color: #ff4152; }

.cat-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase;
  color: var(--cat, var(--accent));
}
.cat-tag::before {
  content: ''; width: 14px; height: 2px; margin-right: 7px;
  background: var(--cat, var(--accent)); border-radius: 2px;
}
.cat-tag--lg { font-size: 12px; }

.flash {
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 4px;
}

/* --------------------------------------------------------------- antet */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: transform .28s ease;
}
.hdr.is-hidden { transform: translateY(calc(-1 * (var(--hdr-h) + 34px))); }

.hdr__strip {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.hdr__strip-in { display: flex; align-items: center; gap: 20px; height: 34px; }
.hdr__date::first-letter { text-transform: uppercase; }
.hdr__strip-nav { display: flex; gap: 16px; margin-left: auto; }
.hdr__strip-nav a:hover { color: var(--accent); }
.hdr__strip-right { display: flex; align-items: center; gap: 10px; }
.hdr__strip-right .icon-btn { width: 30px; height: 30px; }
.hdr__strip-right .icon-btn svg { width: 16px; height: 16px; }

.theme-toggle .i-moon { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .theme-toggle .i-sun { display: none; }
  :root[data-theme="auto"] .theme-toggle .i-moon { display: block; }
}

.hdr__main-in { display: flex; align-items: center; gap: 18px; height: var(--hdr-h); }
.hdr__burger { display: none; margin-left: -8px; }
.hdr__logo { flex: none; }
.hdr__nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; overflow: hidden; }
.hdr__nav a {
  position: relative; padding: 8px 11px; border-radius: var(--r-s);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.hdr__nav a::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px;
  background: var(--cat, var(--accent)); border-radius: 2px; transform: scaleX(0);
  transition: transform .18s;
}
.hdr__nav a:hover { color: var(--ink); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); }
.hdr__nav a.is-active { color: var(--ink); }
.hdr__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr__live-mob { display: none; }

/* siglă */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.logo__name b { color: var(--accent); font-weight: 800; }
.logo__city {
  font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--muted); margin-top: 3px;
}
.logo--mark .logo__mark { width: 100%; height: 100%; }

/* bandă de categorii */
.chips { border-bottom: 1px solid var(--line); background: var(--surface); display: none; }
.chips__in {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 9px 14px; height: var(--chips-h); align-items: center;
}
.chips__in::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 13px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--ink-2);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.chip.is-active { background: var(--cat, var(--accent)); color: #fff; border-color: transparent; }

/* sertar lateral */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 9, 14, .55); backdrop-filter: blur(2px); animation: fade .2s; }
.drawer__panel {
  position: absolute; inset-block: 0; left: 0; width: min(340px, 86vw);
  background: var(--surface); box-shadow: var(--shadow-3);
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto; animation: slideIn .24s cubic-bezier(.2, .8, .3, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__live {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 18px;
  border-radius: var(--r-m); background: rgba(255, 45, 63, .1); color: #ff4152; font-weight: 650; font-size: 14px;
}
.drawer__label {
  font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 8px;
}
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: var(--r-s); font-weight: 600; font-size: 14.5px;
  border-left: 3px solid var(--cat, transparent);
}
.drawer__nav a:hover { background: var(--surface-2); }
.drawer__nav a small { color: var(--muted); font-weight: 500; font-size: 12px; }
.drawer__nav--plain a { border-left-color: transparent; }
.drawer__foot { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }

/* ---------------------------------------------------------- bandă știri */
.ticker {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 0 18px; height: 44px; overflow: hidden;
  max-width: var(--wrap); margin: 0 auto;
}
.ticker__label {
  flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .12em;
  color: #fff; background: var(--accent); padding: 4px 9px; border-radius: 4px;
}
.ticker__mask { flex: 1; min-width: 0; overflow: hidden; }
.ticker__track { display: flex; gap: 34px; white-space: nowrap; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track a { font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.ticker__track a::before { content: '•'; color: var(--accent); margin-right: 12px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 40px; align-items: start; }
.layout__main { min-width: 0; }

.side { position: sticky; top: calc(var(--hdr-h) + 48px); display: flex; flex-direction: column; gap: 18px; }
.side__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.side__title {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.side__box--cta { background: linear-gradient(150deg, rgba(216, 31, 38, .1), transparent 70%); }
.side__box--cta p { font-size: 13.5px; color: var(--muted); }

.toplist { display: flex; flex-direction: column; gap: 14px; }
.toplist li { display: flex; gap: 12px; }
.toplist__n {
  flex: none; width: 26px; font-size: 22px; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px var(--line-2);
}
.toplist li:nth-child(1) .toplist__n { -webkit-text-stroke-color: var(--accent); }
.toplist a { font-size: 14px; font-weight: 650; line-height: 1.35; display: block; }
.toplist__meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tagcloud a {
  padding: 6px 11px; border-radius: var(--r-full); background: var(--surface-2);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.tagcloud a:hover { background: var(--accent); color: #fff; }
.tagcloud--lg a { font-size: 14px; padding: 9px 15px; }
.tagcloud--lg small { color: var(--muted); font-weight: 500; margin-left: 5px; }
.tagcloud--lg a:hover small { color: rgba(255, 255, 255, .75); }

/* --------------------------------------------------------------- carduri */
.card { position: relative; min-width: 0; }
.card__media {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r-m); background: var(--surface-2); aspect-ratio: 16 / 9;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.card:hover .card__media img { transform: scale(1.045); }
.card__noimg { display: grid; place-items: center; width: 100%; height: 100%; opacity: .25; }
.card__media img.is-broken, .qres img.is-broken { object-fit: contain; padding: 12%; opacity: .3; }
.card__noimg .logo__mark { width: 46px; height: 46px; }
.card__play {
  position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10, 12, 16, .68); backdrop-filter: blur(4px);
}
.card__play::after {
  content: ''; position: absolute; left: 13px; top: 10px;
  border-left: 11px solid #fff; border-block: 7px solid transparent;
}
.card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.card__meta time { font-size: 12px; color: var(--muted); }
.card__title { font-size: 16.5px; font-weight: 700; line-height: 1.28; letter-spacing: -.012em; }
.card__title a:hover { color: var(--accent); }
.card__lead { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.card__foot { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.card__foot a:hover { color: var(--accent); }

.card--feature .card__body { padding-top: 12px; }
.card--hero .card__body { padding-top: 16px; }
.card--hero .card__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.15; }
.card--hero .card__lead { font-size: 16px; }

.card--list { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: start; }
.card--list .card__media { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.card--list .card__title { font-size: 15.5px; }
.card--list .card__foot { margin-top: 8px; }

.card--compact { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card--compact:last-child { border-bottom: 0; padding-bottom: 0; }
.card--compact .card__title { font-size: 15px; font-weight: 650; }

/* ---------------------------------------------------------------- hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 34px; padding: 28px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 30px;
}
.hero__side { display: flex; flex-direction: column; gap: 20px; }
.hero__side .card--list { grid-template-columns: 104px minmax(0, 1fr); }

/* -------------------------------------------------------------- blocuri */
.block { margin-bottom: 44px; }
.block__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
  position: relative;
}
.block__head::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 74px; height: 2px;
  background: var(--cat, var(--accent));
}
.block__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.block__more { font-size: 13px; font-weight: 650; color: var(--muted); }
.block__more:hover { color: var(--accent); }

.feed { display: flex; flex-direction: column; gap: 22px; }
.feed .card--list { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.feed .card--list:last-child { border-bottom: 0; padding-bottom: 0; }
.feed__more { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 26px 0 8px; }
.feed__spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--line-2); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--cat { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; }
.grid__stack { display: flex; flex-direction: column; gap: 14px; }

.empty {
  padding: 44px 20px; text-align: center; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-l);
}

/* ------------------------------------------------------- antet de pagină */
.phead { padding: 30px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.phead__kicker {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-size: 11.5px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cat, var(--accent));
}
.phead__title { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.028em; }
.phead__sub { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.phead__count {
  display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: var(--r-full);
  background: var(--surface-2); font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}
.phead--person { display: flex; align-items: center; gap: 20px; }
.phead__av, .byline__av, .person__av {
  display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, var(--accent), #7e1015); color: #fff;
  font-weight: 800; border-radius: 50%;
}
.phead__av { width: 72px; height: 72px; font-size: 24px; }

.crumbs { display: flex; gap: 8px; align-items: center; padding: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ------------------------------------------------------------- articol */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

.article__head { max-width: 820px; margin: 0 auto; padding: 6px 0 22px; text-align: center; }
.article__title {
  font-family: var(--serif); font-size: clamp(27px, 4.2vw, 44px); font-weight: 900;
  line-height: 1.16; letter-spacing: -.02em; margin: 14px 0 0;
}
.article__lead { margin: 16px 0 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.55; }
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
  margin-top: 20px; font-size: 13px; color: var(--muted);
}
.byline { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink-2); }
.byline__av { width: 28px; height: 28px; font-size: 11px; }

.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.share__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.share__btn:hover { border-color: var(--accent); color: var(--accent); }
.share__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.share__btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.share__btn[aria-pressed="true"] svg { fill: currentColor; }

.article__figure { margin: 26px auto 30px; max-width: 1000px; padding-inline: 18px; }
.article__figure img { width: 100%; border-radius: var(--r-l); }
.article__figure figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

.prose { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: var(--ink-2); max-width: 720px; }
.prose p { margin: 0 0 1.25em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose h2, .prose h3 { font-family: var(--font); color: var(--ink); margin: 1.7em 0 .6em; letter-spacing: -.02em; }
.prose h2 { font-size: 23px; }
.prose h3 { font-size: 19px; }
.prose img, .prose iframe { border-radius: var(--r-m); margin: 1.4em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-style: italic; color: var(--ink);
}
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font); font-size: 14.5px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }

.article__tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.article__tags span { font-weight: 700; color: var(--ink); }
.article__tags a {
  padding: 6px 12px; border-radius: var(--r-full); background: var(--surface-2);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.article__tags a:hover { background: var(--accent); color: #fff; }

.tipbox {
  margin: 26px 0 34px; padding: 18px 20px; border-radius: var(--r-l);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
}
.tipbox strong { display: block; margin-bottom: 4px; font-size: 14.5px; }
.tipbox p { margin: 0; font-size: 14px; color: var(--muted); }
.tipbox a { color: var(--accent); font-weight: 650; }

/* -------------------------------------------------------------- diverse */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 34px 0 10px; }
.pager__i, .pager__nav, .pager__gap {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding-inline: 12px;
  border-radius: var(--r-s); font-size: 14px; font-weight: 650; color: var(--ink-2);
  border: 1px solid var(--line);
}
.pager__gap { border-color: transparent; }
.pager__i:hover, .pager__nav:hover { border-color: var(--accent); color: var(--accent); }
.pager__i.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.bigsearch {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-full);
  box-shadow: var(--shadow-1); margin-bottom: 26px;
}
.bigsearch svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.bigsearch input { flex: 1; min-width: 0; border: 0; background: none; font-size: 16px; color: var(--ink); outline: none; }

.person {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 24px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
}
.person:hover { border-color: var(--accent); color: inherit; }
.person__av { width: 62px; height: 62px; font-size: 21px; margin-bottom: 8px; }
.person strong { font-size: 15px; }
.person em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.person small { font-size: 12px; color: var(--accent); font-weight: 650; }

.showcard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
}
.showcard:hover { border-color: var(--accent); color: inherit; }
.showcard__img { aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; }
.showcard__img img { width: 100%; height: 100%; object-fit: cover; }
.showcard__img .logo__mark { width: 54px; height: 54px; opacity: .3; }
.showcard__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.showcard__body strong { font-size: 16px; }
.showcard__body em { font-style: normal; font-size: 13px; color: var(--muted); }

.player { position: relative; aspect-ratio: 16 / 9; background: #05070a; border-radius: var(--r-l); overflow: hidden; margin-bottom: 34px; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; }
.player__ph { display: grid; place-items: center; height: 100%; gap: 8px; color: #8d97a6; text-align: center; padding: 20px; }
.player__ph .logo__mark { width: 74px; height: 74px; opacity: .55; }
.player__ph p { margin: 0; font-weight: 650; color: #c2cad6; }
.player__ph small { font-size: 12.5px; }

.schedule { display: flex; flex-direction: column; }
.schedule__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.schedule__row:hover { color: var(--accent); }
.schedule__row span { font-size: 13px; color: var(--muted); }

.errpage { text-align: center; padding: 60px 0 80px; }
.errpage .logo__mark { width: 76px; height: 76px; margin: 0 auto 18px; opacity: .85; }
.errpage__code { font-size: 15px; font-weight: 800; letter-spacing: .3em; color: var(--accent); margin: 0 0 6px; }
.errpage h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; }
.errpage p { color: var(--muted); }
.errpage__actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ------------------------------------------------------------ suprapuneri */
.overlay { position: fixed; inset: 0; z-index: 140; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(6, 9, 14, .6); backdrop-filter: blur(3px); animation: fade .2s; }
.overlay__panel--top {
  position: absolute; inset-inline: 0; top: 0;
  background: var(--surface); box-shadow: var(--shadow-3);
  border-bottom-left-radius: var(--r-l); border-bottom-right-radius: var(--r-l);
  padding: 14px 16px 16px; max-height: 86vh; overflow-y: auto;
  animation: dropIn .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes dropIn { from { transform: translateY(-16px); opacity: 0; } }
.qsearch {
  display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto;
  background: var(--surface-2); border-radius: var(--r-full); padding: 6px 8px 6px 16px;
}
.qsearch__icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.qsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); padding: 8px 0; }
.qsearch__results { max-width: 760px; margin: 14px auto 0; }
.qsearch__hint { font-size: 13.5px; color: var(--muted); text-align: center; margin: 18px 0; }
.qres { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-m); }
.qres:hover { background: var(--surface-2); }
.qres img { width: 62px; height: 46px; object-fit: cover; border-radius: 6px; flex: none; background: var(--surface-2); }
.qres > span { min-width: 0; }
.qres__t { display: block; font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.qres__m { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.qres__all { display: block; text-align: center; padding: 12px; font-size: 13.5px; font-weight: 650; color: var(--accent); }

.overlay__panel--sheet {
  position: absolute; inset-inline: 0; bottom: 0; max-height: 82vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--shadow-3);
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  animation: sheetIn .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes sheetIn { from { transform: translateY(100%); } }
.sheet__grip { width: 42px; height: 4px; border-radius: 3px; background: var(--line-2); margin: 6px auto 12px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__head h2 { font-size: 17px; }
.saved__list { display: flex; flex-direction: column; gap: 4px; }
.saved__item { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--line); }
.saved__item a { flex: 1; font-size: 14.5px; font-weight: 650; line-height: 1.35; }
.saved__item small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.saved__rm { color: var(--muted); font-size: 12px; }
.saved__rm:hover { color: var(--accent); }
.saved__empty { padding: 30px 10px; text-align: center; color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------- bară de jos */
.tabbar { display: none; }

/* ------------------------------------------------------------- subsol */
.ftr { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 42px 0 0; }
.ftr__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 34px; }
.ftr__brand p { margin: 14px 0; font-size: 13.5px; color: var(--muted); max-width: 320px; }
.ftr__social { display: flex; gap: 8px; }
.ftr__social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.ftr__social a:hover { background: var(--accent); color: #fff; }
.ftr__social svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ftr__col h4 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.ftr__col li { margin-bottom: 9px; }
.ftr__col a { font-size: 13.5px; color: var(--muted); }
.ftr__col a:hover { color: var(--accent); }
.ftr__col--news p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: var(--r-full);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 13.5px; outline: none;
}
.news-form input:focus { border-color: var(--accent); }
.news-form__msg { font-size: 12.5px; color: var(--accent); margin: 8px 0 0; min-height: 1em; }
.ftr__tip { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.ftr__tip a { color: var(--accent); font-weight: 650; }
.ftr__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 18px 0 26px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.ftr__demo { opacity: .8; }

/* ============================================================== TABLETĂ */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .side { position: static; }
  .side__box--cta { display: none; }
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-grid; }
  .chips { display: block; }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ================================================================ MOBIL */
@media (max-width: 760px) {
  body { font-size: 15px; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }

  .wrap { padding-inline: 14px; }
  .hdr__strip { display: none; }
  .hdr__main-in { height: 54px; gap: 10px; }
  .hdr__logo { margin-inline: auto; }
  .hdr__live-mob { display: inline-grid; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__name { font-size: 16.5px; }
  .logo__city { font-size: 8.5px; letter-spacing: .26em; }

  .ticker { display: none; }

  .hero { grid-template-columns: 1fr; gap: 22px; padding: 16px 0 22px; margin-bottom: 22px; }
  .hero__side { gap: 18px; }
  .card--hero .card__title { font-size: 23px; }
  .card--hero .card__lead { font-size: 14.5px; }

  .grid--3, .grid--4, .grid--cat { grid-template-columns: 1fr; gap: 20px; }
  .grid--cat .grid__stack { gap: 14px; }

  /* pe mobil, cardurile mari devin rânduri compacte — flux de aplicație */
  .grid--3 .card--feature,
  .grid--4 .card--feature { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
  .grid--3 .card--feature .card__media { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
  .grid--3 .card--feature .card__body { padding-top: 0; }
  .grid--3 .card--feature .card__title { font-size: 15.5px; }
  .grid--3 .card--feature .card__lead { display: none; }
  .grid--3 .card--feature { padding-bottom: 18px; border-bottom: 1px solid var(--line); }

  .card--list { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
  .card--list .card__foot { display: none; }
  .card__title { font-size: 15.5px; }

  .block { margin-bottom: 32px; }
  .block__title { font-size: 17.5px; }

  .phead { padding: 20px 0 16px; margin-bottom: 20px; }
  .phead--person { gap: 14px; }
  .phead__av { width: 56px; height: 56px; font-size: 19px; }

  .article__head { text-align: left; padding-top: 4px; }
  .article__meta { justify-content: flex-start; }
  .share { justify-content: flex-start; }
  .article__figure { margin: 18px auto 22px; padding-inline: 0; }
  .article__figure img { border-radius: 0; }
  .prose { font-size: 16.5px; line-height: 1.75; }

  .ftr { margin-bottom: 0; padding-top: 30px; }
  .ftr__top { grid-template-columns: 1fr; gap: 26px; }
  .ftr__bottom { padding-bottom: 22px; flex-direction: column; }

  /* bara de jos, tip aplicație */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 10.5px; font-weight: 600; color: var(--muted); height: var(--tab-h);
  }
  .tabbar__item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar__item.is-active { color: var(--accent); }
  .tabbar__item.is-active svg { stroke-width: 2.2; }
  .tabbar__live { display: grid; place-items: center; width: 22px; height: 22px; }
  .tabbar__item--live .live-dot { width: 10px; height: 10px; }

  .overlay__panel--top { padding-top: calc(10px + env(safe-area-inset-top)); }
  .pager { padding-bottom: 4px; }
  .pager__nav { display: none; }
}

@media (max-width: 420px) {
  .card--list, .grid--3 .card--feature { grid-template-columns: 96px minmax(0, 1fr); }
  .card__title { font-size: 15px; }
}

/* modul aplicație instalată: fără antetul dublu */
@media (display-mode: standalone) {
  .hdr__strip { display: none; }
  .ftr__col--news { display: none; }
}

@media print {
  .hdr, .ftr, .tabbar, .share, .side, .chips, .readbar, .overlay, .drawer { display: none !important; }
  .prose { max-width: none; }
}

/* ---------------------------------------------------------- publicitate */
.ads { display: flex; flex-direction: column; gap: 14px; }
.ads--header { margin: 16px 0 0; }
.ads--footer { margin: 24px 0 0; }
.ad {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 10px; text-align: center;
}
.ad img { margin: 0 auto; border-radius: var(--r-s); }
.ad__label {
  position: absolute; top: 8px; left: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 2px 6px; border-radius: 4px;
}
.side .ads { margin-bottom: 4px; }
