/* =============================================================
   /explore — cross-edition talk search.
   Functional, dense, fast. Reuses the main site's tokens.
   ============================================================= */

.explore-content { padding-top: 24px; }

/* ---------- Hero ---------- */
.ex-hero { padding: 12px 0 28px; border-bottom: 1px solid var(--border-light); }
.ex-hero .kicker { color: var(--red); }
.ex-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: .25em 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
.ex-title em { color: var(--red); font-style: normal; }
.ex-title span { color: var(--red); }

/* ---------- Search ---------- */
.ex-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 14px 16px; margin: 16px 0 22px;
  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ex-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(230,43,30,.15); }
.ex-search-icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.ex-search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 1.05rem; font-family: inherit;
}
.ex-search input::placeholder { color: var(--muted); }
.ex-clear {
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 6px;
}
.ex-clear:hover { color: var(--ink); }

/* ---------- Stats row ---------- */
.ex-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  margin-top: 8px;
}
.ex-stats > div {
  background: var(--card); border: 1px solid var(--border-light); border-radius: 10px;
  padding: 14px 16px; display: grid; gap: 4px;
}
.ex-stats > div[title] { cursor: help; }
.ex-stats strong {
  font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ex-stats span {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
@media (max-width: 560px){
  .ex-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Spotlight (Featured talks) ---------- */
.ex-spotlight { padding: 28px 0 12px; }
.ex-spotlight[hidden] { display: none; }
.ex-spotlight-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 18px; flex-wrap: wrap;
}
.ex-spotlight-head .kicker { color: var(--red); margin: 0 0 4px; }
.ex-spotlight-head h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0; font-weight: 700; line-height: 1; letter-spacing: -.01em;
}
.ex-spotlight-sub {
  font-size: .9rem; color: var(--muted); margin: 0; max-width: 50ch;
}
.ex-spotlight-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
@media (max-width: 560px){ .ex-spotlight-grid { grid-template-columns: 1fr; } }
.ex-card-featured { position: relative; }
.ex-card-featured .ex-thumb { aspect-ratio: 16/9; }
.ex-star {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 800;
  z-index: 2; box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.ex-views {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px;
  z-index: 2; cursor: help;
}

/* ---------- Filters ---------- */
.ex-filters {
  position: sticky; top: 49px; z-index: 9;
  background: var(--bg);
  padding: 18px 0 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 981px){ .ex-filters { top: 0; } }
.ex-filter-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: start;
  padding: 6px 0;
}
.ex-filter-label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 800; padding-top: 8px;
}
.ex-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--border-light); border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
}
.ex-pill:hover { background: var(--card); }
.ex-pill.is-active {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.dark .ex-pill.is-active { background: var(--red); color: #fff; border-color: var(--red); }
.ex-pill .count {
  font-size: .7rem; opacity: .7; font-weight: 700;
  padding: 1px 6px; border-radius: 99px;
  background: rgba(0,0,0,.06);
}
.dark .ex-pill .count { background: rgba(255,255,255,.1); }
.ex-pill.is-active .count { background: rgba(255,255,255,.18); opacity: .9; }
@media (max-width: 700px){
  .ex-filter-row { grid-template-columns: 1fr; gap: 6px; }
  .ex-filter-label { padding-top: 0; }
}

/* ---------- Results ---------- */
.ex-meta-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; gap: 12px;
}
.ex-meta-bar #ex-count {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 800;
}
.ex-link-btn {
  background: transparent; border: 0; color: var(--red);
  font-weight: 700; font-size: .85rem; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  font-family: inherit; padding: 0;
}
.ex-link-btn:hover { color: var(--ink); }

/* ---------- Grid ---------- */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.ex-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border-light); border-radius: 14px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.ex-card[hidden] { display: none !important; }
.ex-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
  border-color: var(--ink);
}
.dark .ex-card:hover { box-shadow: 0 18px 36px rgba(0,0,0,.45); }

.ex-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: #000;
}
.ex-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.ex-card:hover .ex-thumb img { transform: scale(1.04); }
.ex-thumb::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.ex-year {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 700;
  font-size: .8rem; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 4px;
  z-index: 2;
}
.ex-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: .75rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  z-index: 2; font-variant-numeric: tabular-nums;
}
.ex-play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(230,43,30,.92);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.85);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 2; pointer-events: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.ex-play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.ex-card:hover .ex-play, .ex-card:focus-visible .ex-play { opacity: 1; transform: scale(1); }

.ex-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ex-card-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800;
  color: var(--muted);
}
.ex-theme { color: var(--red); }
.ex-lang::before { content: "·"; margin-right: 8px; opacity: .5; }
.ex-card-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; line-height: 1.25; margin: 2px 0 0;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ex-card:hover .ex-card-title { color: var(--red); }
.ex-speaker {
  margin: 0; font-size: .9rem; color: var(--muted); font-weight: 600;
}
.ex-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ex-card-tag {
  font-size: .7rem; padding: 2px 8px; border-radius: 99px;
  background: rgba(0,0,0,.06); color: var(--muted); font-weight: 600;
}
.dark .ex-card-tag { background: rgba(255,255,255,.08); }

/* ---------- Empty state ---------- */
.ex-empty {
  text-align: center; padding: 60px 20px;
  border: 1px dashed var(--border-light); border-radius: 14px;
  color: var(--muted);
}
.ex-empty p { margin: 0 0 14px; font-size: 1.05rem; }

/* ---------- Mobile ---------- */
@media (max-width: 560px){
  .ex-hero { padding: 6px 0 18px; }
  .ex-search { padding: 12px 14px; }
  .ex-grid { grid-template-columns: 1fr; gap: 16px; }
  .ex-filters { padding: 14px 0 10px; }
}
