/* ===========================================================
   Civil Liberties in 60 Seconds — brand stylesheet
   Colors sampled from the logo: navy / red / white
   Font: Source Sans Pro
   =========================================================== */

:root {
  --navy: #002676;
  --navy-deep: #001b54;
  --navy-soft: #0a3a9e;
  --red: #ff3131;
  --red-dark: #d81f1f;
  --white: #ffffff;
  --ink: #14213d;
  --paper: #f5f7fb;
  --muted: #5b6680;
  --line: #e3e8f2;
  --shadow: 0 10px 30px rgba(10, 44, 107, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 44, 107, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --font: 'Source Sans Pro', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Ruler motif (the 60-second tape from the logo) ---------- */
.ruler {
  height: 16px;
  background-image:
    repeating-linear-gradient(90deg, var(--white) 0 2px, transparent 2px 11px);
  border-bottom: 4px solid var(--red);
  opacity: .9;
}
.ruler--ink {
  background-image:
    repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 11px);
  border-bottom: 4px solid var(--red);
  opacity: .55;
}

/* ---------------------------- Header ---------------------------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand svg { width: 46px; height: 46px; border-radius: 9px; }
.brand-logo { height: 64px; width: auto; display: block; border-radius: 8px; margin: -6px 0; }
@media (max-width: 640px) { .brand-logo { height: 52px; } }
.brand-text { line-height: 1; }
.brand-text b {
  display: block;
  font-weight: 900;
  letter-spacing: .5px;
  font-size: 1.02rem;
  text-transform: uppercase;
}
.brand-text span {
  display: block;
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: 3px;
  color: #aebbe0;
  text-transform: uppercase;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav a {
  color: #d7e0f5;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: .95rem;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-soft); }

/* ---------------------------- Demo banner ---------------------------- */
.demo-banner {
  background: #fff4e5;
  color: #7a4b00;
  border-bottom: 1px solid #f0d9b0;
  font-size: .9rem;
  text-align: center;
  padding: 9px 16px;
}
.demo-banner b { font-weight: 800; }

/* ---------------------------- Hero ---------------------------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--navy-soft) 0%, transparent 60%),
    var(--navy);
  color: var(--white);
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .74rem;
  color: #fff;
  background: var(--red);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  font-weight: 900;
  margin: 18px 0 12px;
  letter-spacing: -.5px;
}
.hero p.lead { font-size: 1.12rem; color: #cdd8f2; max-width: 36ch; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-video {
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,.1);
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-video .meta { padding: 14px 18px; background: var(--navy-deep); }
.hero-video .meta b { display:block; font-weight: 800; font-size: 1.04rem; }
.hero-video .meta span { color: #9fb0d8; font-size: .85rem; }

/* ---------------------------- Section frame ---------------------------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  margin: 0;
  letter-spacing: -.3px;
  color: var(--navy);
}
.section-head .kicker {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .74rem;
  margin-bottom: 4px;
}
.section-head p { color: var(--muted); margin: 4px 0 0; }

/* ---------------------------- Controls (search + filters) ---------------------------- */
.controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  max-width: 520px;
  box-shadow: var(--shadow);
}
.search:focus-within { border-color: var(--navy); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input {
  border: 0;
  outline: 0;
  font: inherit;
  flex: 1;
  padding: 10px 4px;
  background: transparent;
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: all .12s ease;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------------------- Episode grid ---------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .14s ease, box-shadow .14s ease;
  border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  text-align: center;
  color: #fff;
  font-weight: 800;
  background:
    radial-gradient(600px 200px at 20% 0%, var(--navy-soft), transparent 70%),
    var(--navy);
}
.play-badge {
  position: absolute;
  left: 12px; bottom: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: 1px;
  padding: 5px 9px;
  border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.card-body .snippet { color: var(--muted); font-size: .92rem; margin: 0; }
.card-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.tag {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--navy);
  background: #eaf0fb;
  padding: 4px 9px;
  border-radius: 999px;
}
.tag.trending { background: #fde7e6; color: var(--red); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}
.empty b { color: var(--navy); font-size: 1.15rem; display: block; margin-bottom: 6px; }

/* ---------------------------- Trending strip ---------------------------- */
.trending-band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------------------------- Engage section ---------------------------- */
.engage {
  background: var(--navy);
  color: #fff;
}
.engage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.panel {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.panel h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 900; }
.panel p { color: #aebbe0; margin: 0 0 18px; }
.panel form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#suggest-form { flex-direction: column; align-items: flex-start; }
#suggest-form .btn { align-self: flex-start; }
.panel input[type="email"], .panel textarea {
  flex: 1;
  min-width: 200px;
  border: 0;
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
}
.panel textarea { width: 100%; min-height: 92px; resize: vertical; }
.field-note { font-size: .8rem; color: #8ea0cc; margin-top: 12px; }
.form-success { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 6px 0; }

/* ---------------------------- Footer ---------------------------- */
.site-footer { background: var(--navy-deep); color: #aebbe0; padding: 40px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #d7e0f5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--red); }
.social svg { width: 20px; height: 20px; }
.legal { margin-top: 22px; font-size: .82rem; color: #6f80aa; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* ---------------------------- Episode detail page ---------------------------- */
.detail { padding: 40px 0 60px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.detail h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; line-height: 1.12; margin: 16px 0 10px; color: var(--navy); }
.detail .topics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.detail .player { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background:#000; }
.detail .summary { font-size: 1.12rem; margin: 18px 0; }
.rights-box {
  background: #fde7e6;
  border-left: 6px solid var(--red);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0;
}
.rights-box b { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: .74rem; color: var(--red); margin-bottom: 6px; }
.sidebar-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-card h4 { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.source-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.source-list a { color: var(--navy); font-weight: 700; text-decoration: none; display: flex; gap: 8px; align-items: flex-start; }
.source-list a:hover { text-decoration: underline; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.share-row a { width: 42px; height: 42px; border-radius: 10px; background: var(--paper); display:flex; align-items:center; justify-content:center; border:1px solid var(--line); }
.share-row a:hover { background: var(--navy); color:#fff; }
.share-row svg { width: 20px; height: 20px; }
.related { margin-top: 14px; }

/* ---------------------------- Responsive ---------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero p.lead { max-width: none; }
  .engage-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 36px 0 44px; }
  .section { padding: 40px 0; }
  .brand-text b { font-size: .92rem; }
}
