/* Hagere Hamasien TV — PWA styles
   Deep charcoal-navy + gold, crimson reserved for the LIVE dot.
   Mobile-first, system fonts only (no downloads), big tap targets. */

:root {
  --bg: #0d1522;
  --bg-2: #111c2e;
  --card: #16233a;
  --card-2: #1a2a45;
  --line: #263550;
  --gold: #e8c766;
  --gold-dark: #c9a63f;
  --crimson: #e5484d;
  --text: #f2f0e9;
  --muted: #a7b0c0;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
    "Noto Sans Ethiopic", "Abyssinica SIL", sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: var(--gold); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 21, 34, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand-mark { border-radius: 10px; flex: none; }
.brand-names { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-ti { font-size: 1.02rem; font-weight: 700; white-space: nowrap; }
.brand-en { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.04em; text-transform: uppercase; }

.header-right { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-2);
}
.badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #5b6a80; flex: none;
}
.badge-live { color: #fff; border-color: rgba(229, 72, 77, 0.55); }
.badge-live .dot {
  background: var(--crimson);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.lang-btn.active { background: var(--gold); color: #141b29; }

/* ---------- layout / sections ---------- */
main { max-width: 960px; margin: 0 auto; padding: 0.5rem 1rem 2rem; }

.section { margin-top: 1.6rem; }

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  margin: 0 0 0.9rem;
}
.title-bar { width: 5px; height: 1.35em; background: var(--gold); border-radius: 3px; flex: none; }

.section-action { margin-top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: #141b29; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline[aria-pressed="true"] { background: var(--gold); color: #141b29; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- player ---------- */
.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05080e;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.player-wrap video {
  width: 100%; height: 100%;
  display: block;
  background: #000;
}

.poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  padding: 1rem;
  background:
    radial-gradient(120% 120% at 50% 0%, #1c2c47 0%, var(--bg-2) 55%, #0a111d 100%);
}
.poster[hidden] { display: none; }
.poster-mark { border-radius: 16px; }
.poster-title { margin: 0.2rem 0 0; font-size: 1.15rem; font-weight: 700; }
.poster-text { margin: 0 0 0.6rem; color: var(--muted); font-size: 1rem; }

#audio-player { width: 100%; margin-top: 0.8rem; }

.listen-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.note { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- video cards ---------- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.vcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.vcard a { display: block; text-decoration: none; color: inherit; }
.vcard img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.vcard-body { padding: 0.7rem 0.85rem 0.9rem; }
.vcard-title { margin: 0; font-size: 0.98rem; font-weight: 600; line-height: 1.4; }
.vcard-date { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.82rem; }

/* ---------- documentary card ---------- */
.doc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--gold-dark);
  padding: 1.6rem 1.3rem 1.4rem;
  background:
    linear-gradient(115deg, rgba(232, 199, 102, 0.14) 0%, rgba(232, 199, 102, 0) 45%),
    radial-gradient(130% 160% at 85% -10%, #2a3d5f 0%, var(--card-2) 55%, var(--card) 100%);
}
.ribbon {
  position: absolute;
  top: 0.9rem;
  inset-inline-end: -2.4rem;
  transform: rotate(38deg);
  background: var(--crimson);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 3rem;
}
.doc-kicker { margin: 0; color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; }
.doc-title { margin: 0.35rem 0 0.5rem; font-size: 1.9rem; line-height: 1.15; }
.doc-text { margin: 0; color: var(--muted); max-width: 34rem; }

/* ---------- about / follow ---------- */
.about-text { color: #d8dce4; max-width: 44rem; margin: 0; font-size: 1.02rem; }

.follow-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.follow-btn { min-width: 150px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  padding: 1.4rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0.25rem 0; }
.footer-name { color: var(--text); font-weight: 600; }
.footer-sat { color: var(--gold); }
