/* ============================================================
   DIGITÁLIS HANGARCHÍVUM – Stíluslap
   Navy & Arany, serif tipográfia, GitHub Pages kompatibilis
   ============================================================ */

/* --- Változók --- */
:root {
  --navy:         #1B2E5C;
  --navy-dark:    #0F1D3A;
  --navy-light:   #2A4080;
  --navy-pale:    #EEF1F8;

  --gold:         #C9A44A;
  --gold-light:   #E0BC72;
  --gold-pale:    #F8F1E0;
  --gold-border:  rgba(201, 164, 74, 0.35);

  --cream:        #F5F0E8;
  --cream-dark:   #EDE5D5;
  --white:        #FFFFFF;
  --text-invert:  #FFFFFF; /* mindig fehér szöveg navy/arany hátterű elemeken, sötét módban sem sötétedik (--white-tel ellentétben) */

  --text:         #1A1A2E;
  --text-muted:   #4A5A7A;
  --text-light:   #7A8FAF;
  --border:       #C8BFA8;
  --border-light: #DDD7CA;

  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Crimson Text', Georgia, 'Times New Roman', serif;
  --font-ui:      system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius:       4px;
  --radius-lg:    8px;
  --shadow-sm:    0 1px 4px rgba(15, 29, 58, 0.10);
  --shadow:       0 3px 12px rgba(15, 29, 58, 0.14);
  --shadow-lg:    0 8px 28px rgba(15, 29, 58, 0.18);

  --player-h:     90px;
  --header-h:     72px;
  --filters-h:    52px;

  --transition:   0.2s ease;
}

/* --- Sötét mód változók --- */
[data-theme="dark"] {
  --cream:        #111827;
  --cream-dark:   #0E1A2E;
  --white:        #192840;

  --text:         #DDD4C2;
  --text-muted:   #7A96BB;
  --text-light:   #4E6585;

  --border:       rgba(255, 255, 255, 0.10);
  --border-light: rgba(255, 255, 255, 0.06);

  --navy-pale:    #192840;

  --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.45);
  --shadow:    0 3px 14px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.65);
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + 16px);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, select {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 74, 0.18);
}

/* --- Fejléc --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 3px solid var(--gold);
  height: var(--header-h);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header-logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* ===== Hero nyitókép ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,29,58,0.72), rgba(15,29,58,0.85));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: center;
}
.hero-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}
.hero-text {
  text-align: left;
  align-self: center;
}
.hero-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  font-style: italic;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-cite {
  display: block;
  font-family: 'Crimson Text', serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.02em;
}
.hero-cite-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(201,164,74,0.6);
  transition: border-bottom-color .15s;
}
.hero-cite-link:hover, .hero-cite-link:focus { border-bottom-color: var(--gold); }

.header-titles h1 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-invert);
  line-height: 1.2;
  white-space: nowrap;
}

.header-subtitle {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-search {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin-left: auto;
}

.header-search input[type="search"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-invert);
  padding: 0.45rem 1rem;
}
.header-search input::placeholder { color: rgba(255,255,255,0.45); }
.header-search input:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 74, 0.22);
}

.search-btn {
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius);
  padding: 0.45rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}
.search-btn:hover { background: var(--gold-light); }

/* --- Témaváltó gomb (fejlécben, jobbra) --- */
.theme-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.80);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gold-light);
  border-color: var(--gold);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Ikon láthatóság CSS-ből – JS nem nyúl az innerHTML-hez */
.theme-icon { display: none; }

/* Világos mód (alapértelmezett + data-theme="light"): hold ikon */
html:not([data-theme="dark"]) .icon-moon { display: block; }

/* Sötét mód: nap ikon */
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none;  }

/* --- Szűrőpanel --- */
.filters-toggle {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.80);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filters-toggle:hover { background: rgba(255,255,255,0.16); color: var(--gold-light); border-color: var(--gold); }

.filters-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,29,58,0.45);
  z-index: 150;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.filters-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 340px; max-width: 88vw;
  background: var(--white);
  z-index: 160;
  box-shadow: -8px 0 30px rgba(15,29,58,0.25);
  display: flex;
  animation: slideIn 0.25s ease;
  overflow-y: auto;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.filters-panel[hidden],
.filters-backdrop[hidden] {
  display: none !important;
}

.filters-panel-inner { display: flex; flex-direction: column; width: 100%; padding: 1.25rem; gap: 1.25rem; }

.filters-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-light); padding-bottom: 0.875rem;
}
.filters-panel-title {
  font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--navy);
}
[data-theme="dark"] .filters-panel-title { color: var(--gold-light); }
.filters-panel-close {
  font-size: 1.1rem; color: var(--text-muted); width: 32px; height: 32px;
  border-radius: var(--radius); transition: all var(--transition);
}
.filters-panel-close:hover { color: var(--navy); background: var(--cream-dark); }

.panel-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}
.panel-nav-link:hover,
.panel-nav-link:focus {
  background: var(--navy-light, #24386b);
  transform: translateY(-1px);
}
.panel-nav-link svg { flex-shrink: 0; color: var(--gold); }
[data-theme="dark"] .panel-nav-link { background: var(--gold); color: var(--navy); }
[data-theme="dark"] .panel-nav-link svg { color: var(--navy); }

.filters-panel-body { display: flex; flex-direction: column; gap: 1rem; }
.filter-field { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-field-label {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
}
.filter-field select, .filter-field input {
  width: 100%; max-width: none; min-width: 0;
  padding: 0.55rem 0.75rem; font-size: 0.9375rem;
}

.filters-panel-footer {
  display: flex; flex-direction: column; gap: 0.75rem;
  border-top: 1px solid var(--border-light); padding-top: 1rem; margin-top: auto;
}
.filters-panel-footer .fav-toggle,
.filters-panel-footer .filter-reset { width: 100%; justify-content: center; padding: 0.6rem; }
.filters-panel-footer .fav-text { display: inline !important; }
.filters-panel-footer .results-count { text-align: center; }

.filters-panel-done {
  width: 100%;
  padding: 0.75rem;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition);
}
.filters-panel-done:hover { background: var(--gold-light); }
.filters-panel-done:active { transform: scale(0.98); }

.filter-reset {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-reset:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--white);
}

.results-count {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.results-count strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Statisztikasáv --- */
.stats-bar {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.stats-inner {
  display: flex;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  background: var(--border-light);
  align-self: stretch;
}

/* --- Főtartalom --- */
.main-content {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0 1.5rem 2rem;
}

/* --- Kártyarács --- */
.lecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

/* --- Kártya --- */
.lecture-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.lecture-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--gold-border);
}

.lecture-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 74, 0.45), var(--shadow);
  background: linear-gradient(180deg, rgba(201,164,74,0.06), transparent 60%);
}

/* Megosztott linkből érkezéskor rövid figyelemfelhívó pulzálás */
@keyframes sharedPulse {
  0%   { box-shadow: 0 0 0 3px rgba(201,164,74,0.45), var(--shadow); }
  30%  { box-shadow: 0 0 0 7px rgba(201,164,74,0.55), var(--shadow); }
  100% { box-shadow: 0 0 0 3px rgba(201,164,74,0.45), var(--shadow); }
}
.lecture-card.just-shared {
  animation: sharedPulse 1.3s ease-in-out 2;
}
@media (prefers-reduced-motion: reduce) {
  .lecture-card.just-shared { animation: none; }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-category {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
}

.category-eloadas    { background: #EEF1F8; color: #1B2E5C; }
.category-lelkigyakorlat { background: #D1F0E3; color: #1A5C3A; }
.category-predikacio { background: #EDD9FF; color: #5B2D8A; }
.category-konferencia { background: #FFE9D9; color: #7B3A1A; }
.category-interju    { background: #D0F0EE; color: #1A5550; }
.category-szentmise  { background: #FFD9D9; color: #8B1A1A; }

.card-duration {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-dark);
}

.card-speaker {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.card-speaker-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color var(--transition), border-bottom-color var(--transition);
}
.card-speaker-link:hover,
.card-speaker-link:focus {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.card-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.625rem 0.75rem;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.card-date {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-light);
}

.card-format {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
}

.card-play-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  background: var(--navy);
  color: var(--text-invert);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.card-play-btn:hover { background: var(--navy-light); }
.card-play-btn.playing {
  background: var(--gold);
  color: var(--navy-dark);
}
.card-play-btn.playing:hover { background: var(--gold-light); }

.play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Üres állapot --- */
.empty-state,
.loading-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state svg,
.loading-state svg,
.error-state svg {
  opacity: 0.35;
  width: 64px;
  height: 64px;
  color: var(--navy);
}

.empty-state p,
.loading-state p,
.error-state p {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-muted);
}

.error-state p { color: #8B1A1A; }

.hidden { display: none !important; }

/* --- Pörgő ikon --- */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Audio lejátszó (alul rögzített) --- */
.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy-dark);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 20px rgba(15, 29, 58, 0.35);
  height: var(--player-h);
}

.player-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.player-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.player-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--text-invert);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  max-width: 100%;
}

.player-speaker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ctrl-btn {
  color: rgba(255,255,255,0.75);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  min-width: 36px;
  text-align: center;
}
.ctrl-btn:hover { color: var(--text-invert); background: rgba(255,255,255,0.1); }

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
  min-width: 44px;
}
.play-btn:hover { background: var(--gold-light); transform: scale(1.06); }

.player-timeline {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 2;
  min-width: 0;
  max-width: 480px;
}

.time-current,
.time-total {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 40px;
  flex-shrink: 0;
}
.time-total { text-align: right; }

.progress-bar {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
  min-width: 0;
}

.progress-bar::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.progress-bar:hover::-webkit-slider-thumb { opacity: 1; }

.progress-bar::-moz-range-track {
  height: 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
}

.progress-bar::-moz-range-progress {
  background: var(--gold);
  border-radius: 3px;
  height: 5px;
}

.progress-bar::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: var(--gold);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}
.progress-bar:hover::-moz-range-thumb { opacity: 1; }

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.volume-icon {
  font-size: 0.9rem;
  opacity: 0.7;
  cursor: pointer;
  user-select: none;
}

input[type="range"]#volumeSlider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
input[type="range"]#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]#volumeSlider:focus {
  box-shadow: none;
}

.close-btn {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
}
.close-btn:hover { color: var(--text-invert); }

/* --- Hiba banner (lejátszó területén belül) --- */
.player-error {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #FFB3B3;
  text-align: center;
  padding: 0.25rem 0.75rem;
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
}

/* --- Lábléc --- */
.site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border-light);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-main { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
[data-theme="dark"] .footer-brand { color: var(--gold); }
.footer-copyright {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}
.footer-impressum {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-impressum-label { color: var(--text-light); }
.footer-contact {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-email {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--gold);
  transition: border-bottom-style var(--transition);
}
.footer-email:hover, .footer-email:focus {
  border-bottom-style: solid;
  color: var(--gold);
}
[data-theme="dark"] .footer-email { color: var(--gold-light); }

/* === Sötét mód – elem-szintű felülírások === */
[data-theme="dark"] a:not(.card-play-btn) { color: var(--gold-light); }
[data-theme="dark"] a:not(.card-play-btn):hover { color: var(--gold); }

[data-theme="dark"] .card-title  { color: #CEC4B0; }
[data-theme="dark"] .stat-value  { color: var(--gold-light); }

[data-theme="dark"] .card-play-btn          { background: var(--navy-light); }
[data-theme="dark"] .card-play-btn:hover    { background: #3A5498; }

[data-theme="dark"] .filter-reset { color: var(--text-muted); border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .filter-reset:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201, 164, 74, 0.10);
}

[data-theme="dark"] .results-count strong { color: var(--text); }

[data-theme="dark"] input[type="search"],
[data-theme="dark"] select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: var(--text);
}
[data-theme="dark"] .header-search input[type="search"] {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
}

[data-theme="dark"] .lecture-card:hover { border-color: rgba(201,164,74,0.3); }
[data-theme="dark"] .card-footer { border-top-color: rgba(255,255,255,0.07); }

[data-theme="dark"] .spinner { border-color: rgba(255,255,255,0.12); border-top-color: var(--gold); }

/* Kategória badge-ek sötét módban */
[data-theme="dark"] .category-eloadas     { background: rgba(27,46,92,0.6);   color: #90B0E0; }
[data-theme="dark"] .category-lelkigyakorlat { background: rgba(13,45,28,0.6); color: #70C0A0; }
[data-theme="dark"] .category-predikacio  { background: rgba(30,13,53,0.6);   color: #B888E8; }
[data-theme="dark"] .category-konferencia { background: rgba(45,21,6,0.6);    color: #D49060; }
[data-theme="dark"] .category-interju     { background: rgba(13,37,32,0.6);   color: #50C0B8; }
[data-theme="dark"] .category-szentmise   { background: rgba(42,8,8,0.6);     color: #D08080; }

/* === Reszponzív === */
@media (max-width: 768px) {
  :root {
    --header-h: 116px;   /* két sor: brand+gombok, majd keresés */
    --player-h: 128px;
  }

  .site-header { height: auto; }

  .hero { min-height: 40vh; background-attachment: scroll; }
  .hero-content {
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 1rem;
  }
  .hero-logo { width: 100px; height: 100px; }
  .hero-text { text-align: center; }
  .hero-quote { font-size: clamp(1.15rem, 4.5vw, 1.6rem); }

  .header-inner {
    padding: 0.625rem 1rem;
    flex-wrap: wrap;
    height: auto;
    gap: 0.625rem;
  }

  /* Első sor: brand (flex-1), jobbra a gombok (random, szűrők, téma) */
  .header-brand   { flex: 1; min-width: 0; order: 1; }
  .random-btn     { order: 2; min-height: 40px; }
  .filters-toggle { order: 3; width: 40px; height: 40px; }
  .theme-toggle   { order: 4; width: 40px; height: 40px; }

  .header-titles { min-width: 0; }
  .header-titles h1 {
    font-size: clamp(0.78rem, 3.4vw, 0.95rem);
    font-weight: 700;
    white-space: normal;
    line-height: 1.15;
    overflow-wrap: break-word;
  }
  .header-subtitle { display: none; }
  .header-logo     { height: 40px; }

  /* Második sor: keresés teljes szélességben */
  .header-search {
    order: 5;
    width: 100%;
    max-width: none;
    margin-left: 0;
    flex: 1 1 100%;
  }
  .header-search input[type="search"] { min-width: 0; min-height: 40px; }
  .search-btn { min-height: 40px; }

  .stats-bar   { padding: 0 1rem; }
  .stats-inner { gap: 1.25rem; flex-wrap: wrap; row-gap: 0.75rem; }

  .main-content { padding: 0 1rem 2rem; }

  .lecture-grid { grid-template-columns: 1fr; }
  .lecture-card { padding: 1rem; }

  /* Kártya-gombok: kényelmes érintőfelület */
  .card-play-btn, .card-download-btn, .card-share-btn { min-height: 40px; }
  .card-star-btn { width: 40px; height: 40px; }

  /* Szűrőpanel: nagyobb érintőfelületek */
  .filters-panel-close { width: 40px; height: 40px; }
  .filters-panel-footer .fav-toggle,
  .filters-panel-footer .filter-reset,
  .filters-panel-done { min-height: 44px; }

  /* Lejátszó mobilon – Spotify-szerű kétsoros elrendezés */
  .player-inner {
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
    gap: 0.4rem 0.6rem;
    align-content: center;
    height: var(--player-h);
  }
  /* 1. sor: nyíl + cím/előadó (bal) ... play + skip (jobb) ... X */
  .player-expand-btn { display: none; }
  .player-info       { order: 1; flex: 1 1 0; min-width: 0; max-width: 100%; }
  .player-controls   { order: 2; flex: 0 0 auto; gap: 0.35rem; }
  .close-btn         { order: 3; flex: 0 0 auto; }
  /* 2. sor: teljes szélességű idővonal */
  .player-timeline   { order: 4; flex: 1 1 100%; max-width: none; margin-top: 0.15rem; }

  /* Telefonon rejtett: sebesség, hangerő, megosztás (a nagy nézetben elérhető) */
  .player-volume    { display: none; }
  .speed-select     { display: none; }
  .player-share-btn { display: none; }

  .ctrl-btn        { min-height: 40px; }

  /* A cím/előadó legyen koppintható a nagy nézethez (a JS is erre köt) */
  .player-info { cursor: pointer; }

  .footer-inner { flex-direction: column; gap: 1.25rem; text-align: center; }
  .footer-meta { text-align: center; align-items: center; }
}

@media (max-width: 480px) {
  .card-title { font-size: 1rem; }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem 1rem;
    padding: 1rem;
    justify-items: center;
    text-align: center;
  }
  .stat-value   { font-size: 1.25rem; }
  .stat-divider { display: none; }

  .header-icon { width: 32px; height: 32px; }
  .header-logo { height: 34px; }
}

@media (max-width: 380px) {
  .filters-panel { max-width: 92vw; }
}

/* --- Nyomtatás --- */
@media print {
  .site-header, .filters-panel, .filters-backdrop, .audio-player { display: none; }
  body { padding-bottom: 0; background: white; }
  .lecture-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}

/* ============================================================
   ÚJ ELEMEK – háttérkép, szezonális, random, letöltés, igehely
   ============================================================ */

/* --- Háttérkép réteg --- */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#bgImage {
  position: absolute;
  inset: -12px; /* eltakarja a blur éleket */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: none; /* JS mutatja meg, ha a kép betölt */
}

#bgOverlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 232, 0.88);
  transition: background 0.3s;
}

[data-theme="dark"] #bgOverlay {
  background: rgba(14, 26, 46, 0.90);
}

/* --- Véletlen igehirdetés gomb (fejlécben) --- */
.random-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.875rem;
  background: rgba(201, 164, 74, 0.18);
  color: var(--gold-light);
  border: 1.5px solid rgba(201, 164, 74, 0.4);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.random-btn:hover {
  background: rgba(201, 164, 74, 0.3);
  border-color: var(--gold);
  color: var(--text-invert);
}
.random-btn-text { display: inline; }

/* --- Igehely-kereső mező a szűrősávban --- */
.igehely-input {
  min-width: 155px;
  max-width: 175px;
  padding: 0.3rem 0.65rem;
  font-size: 0.875rem;
  background: var(--white);
  flex-shrink: 0;
}

/* --- Kedvencek toggle gomb --- */
.fav-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}
.fav-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-pale);
}
.fav-toggle.is-active {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-pale);
}
[data-theme="dark"] .fav-toggle:hover,
[data-theme="dark"] .fav-toggle.is-active {
  background: rgba(201, 164, 74, 0.12);
}

/* --- Szezonális ajánlás szekció --- */
.seasonal-section {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.seasonal-inner {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.seasonal-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .seasonal-title { color: var(--gold-light); }

.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* --- Kártya – új elemek --- */

/* Igehely sor (lectió / textus) */
.card-igehely {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.igehely-label {
  font-weight: 600;
  color: var(--navy);
  margin-right: 0.25rem;
}
[data-theme="dark"] .igehely-label { color: var(--gold-light); }
.igehely-link { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold); transition: border-bottom-style .15s; }
.igehely-link:hover, .igehely-link:focus { border-bottom-style: solid; }

/* Megjegyzés sor */
.card-megjegyzes {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Évkör badge a kártya alján */
.card-evkor {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
}

/* "Különleges alkalom" extra badge */
.card-badge-special {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
  background: #FFF3CD;
  color: #856404;
}
[data-theme="dark"] .card-badge-special {
  background: rgba(133, 100, 4, 0.25);
  color: #E0B840;
}

/* Különleges kártya jelzése */
.lecture-card.is-special {
  border-color: rgba(201, 164, 74, 0.4);
}
.lecture-card.is-special::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* --- Kategória stílusok (új nevekkel) --- */
.kat-istentisztelet  { background: #EEF1F8; color: #1B2E5C; }
.kat-evangelizacio   { background: #D1F0E3; color: #1A5C3A; }
.kat-kulonleges      { background: #FFF3CD; color: #856404; }
.kat-konfirmacio     { background: #EDD9FF; color: #5B2D8A; }
.kat-bibliakor       { background: #D0F0EE; color: #1A5550; }
.kat-imaheti         { background: #FFE9D9; color: #7B3A1A; }
.kat-alap            { background: #EEF1F8; color: #1B2E5C; }

[data-theme="dark"] .kat-istentisztelet  { background: rgba(27,46,92,0.6);   color: #90B0E0; }
[data-theme="dark"] .kat-evangelizacio   { background: rgba(13,45,28,0.6);   color: #70C0A0; }
[data-theme="dark"] .kat-kulonleges      { background: rgba(100,75,0,0.4);   color: #E0B840; }
[data-theme="dark"] .kat-konfirmacio     { background: rgba(30,13,53,0.6);   color: #B888E8; }
[data-theme="dark"] .kat-bibliakor       { background: rgba(13,37,32,0.6);   color: #50C0B8; }
[data-theme="dark"] .kat-imaheti         { background: rgba(45,21,6,0.6);    color: #D49060; }
[data-theme="dark"] .kat-alap            { background: rgba(27,46,92,0.6);   color: #90B0E0; }

/* --- Kártya akciók (lejátszás + letöltés + megosztás + kedvenc) --- */
.card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Letöltés gomb */
.card-download-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.card-download-btn:hover {
  background: var(--navy);
  color: var(--text-invert);
  border-color: var(--navy);
}
.card-download-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
[data-theme="dark"] .card-download-btn {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}
[data-theme="dark"] .card-download-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* Megosztás gomb */
.card-share-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.card-share-btn:hover {
  background: var(--gold-pale);
  color: var(--navy-dark);
  border-color: var(--gold);
}
[data-theme="dark"] .card-share-btn {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}
[data-theme="dark"] .card-share-btn:hover {
  background: rgba(201,164,74,0.1);
  color: var(--gold-light);
  border-color: var(--gold);
}

/* Player megosztás gomb */
.player-share-btn {
  color: rgba(255,255,255,0.65);
}
.player-share-btn:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.1);
}

/* Kedvenc (csillag) gomb */
.card-star-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.card-star-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-pale);
}
.card-star-btn.is-favorite {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-pale);
}
[data-theme="dark"] .card-star-btn.is-favorite,
[data-theme="dark"] .card-star-btn:hover {
  background: rgba(201,164,74,0.12);
}

/* --- Sebesség szelektor a lejátszóban --- */
.speed-select {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  flex-shrink: 0;
  width: 52px;
  text-align: center;
}
.speed-select:focus {
  outline: none;
  border-color: var(--gold);
}
.speed-select option { background: var(--navy-dark); color: var(--text-invert); }

[data-theme="dark"] .speed-select { color: var(--gold-light); }
[data-theme="dark"] .speed-select option { color: var(--gold-light); }

/* --- Továbbiak gomb --- */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0.5rem;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.load-more-btn:hover {
  background: var(--navy);
  color: var(--text-invert);
  border-color: var(--navy);
  box-shadow: var(--shadow);
}
[data-theme="dark"] .load-more-btn {
  background: var(--navy-pale);
  color: var(--text);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .load-more-btn:hover {
  background: var(--navy-light);
  color: var(--text-invert);
  border-color: var(--navy-light);
}

/* --- Reszponzív: új elemek --- */
@media (max-width: 1100px) {
  .fav-toggle .fav-text { display: none; }
}

@media (max-width: 900px) {
  .random-btn-text { display: none; }
  .random-btn { padding: 0.4rem 0.6rem; font-size: 1rem; }
}

@media (max-width: 768px) {
  .seasonal-section { padding: 0 1rem; }
  .seasonal-grid { grid-template-columns: 1fr; }
  .igehely-input { min-width: 130px; }
  .speed-select { display: none; } /* mobilon elrejtjük */
}

@media (max-width: 480px) {
  .seasonal-inner { padding: 1rem; }
  .seasonal-title { font-size: 1rem; }
  .card-actions { gap: 0.3rem; }
}

/* --- Impresszum / jogi oldal --- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.legal-back { display: inline-block; margin-bottom: 1.5rem; color: var(--gold); text-decoration: none; font-family: var(--font-ui); font-size: 0.9rem; transition: color var(--transition); }
.legal-back:hover { color: var(--navy); }
[data-theme="dark"] .legal-back:hover { color: var(--gold-light); }
.legal-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--navy); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gold); }
[data-theme="dark"] .legal-title { color: var(--gold-light); }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.75rem; }
[data-theme="dark"] .legal-section h2 { color: var(--gold); }
.legal-section p { font-family: var(--font-ui); font-size: 0.95rem; line-height: 1.7; color: var(--text); margin-bottom: 0.6rem; }
.legal-link { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold); transition: border-bottom-style var(--transition); }
.legal-link:hover { border-bottom-style: solid; }
[data-theme="dark"] .legal-link { color: var(--gold-light); border-bottom-color: var(--gold-light); }


/* IGEHIRDETO_GENERATOR_CSS_v1 - ne torold ezt a sort (duplikacio-vedelem) */

/* ===== Igehirdető-oldalak (aloldal navigáció, hero, statisztika, lista) ===== */
.subpage-nav { display: flex; gap: 0.5rem; margin-left: auto; margin-right: 0.75rem; }
.subpage-nav-link {
  font-family: var(--font-ui); font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85); text-decoration: none;
  padding: 0.4rem 0.75rem; border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.subpage-nav-link:hover { background: rgba(255,255,255,0.12); color: var(--gold-light); }

.ig-hero {
  max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem 1rem;
}
.ig-hero-inner { text-align: left; }
.ig-back {
  display: inline-block; margin-bottom: 1.25rem; color: var(--gold);
  text-decoration: none; font-family: var(--font-ui); font-size: 0.9rem;
  transition: color var(--transition);
}
.ig-back:hover { color: var(--navy); }
[data-theme="dark"] .ig-back:hover { color: var(--gold-light); }
.ig-name {
  font-family: var(--font-serif); font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  color: var(--navy); margin: 0 0 0.75rem; line-height: 1.15;
}
[data-theme="dark"] .ig-name { color: var(--gold-light); }
.ig-summary {
  font-family: var(--font-ui); font-size: 1rem; line-height: 1.65;
  color: var(--text-muted); max-width: 720px; margin: 0 0 1.5rem;
}
.ig-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.25rem 0 0.5rem; border-top: 1px solid var(--border-light); }
.ig-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.ig-stat-value { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
[data-theme="dark"] .ig-stat-value { color: var(--gold); }
.ig-stat-label { font-family: var(--font-ui); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }

/* Igehirdetők gyűjtőoldal – lista */
.ig-list {
  max-width: 800px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.6rem;
}
.ig-list-item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1.1rem; background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.ig-list-item:hover {
  border-color: var(--gold); transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,29,58,0.08);
}
.ig-list-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; color: var(--navy); }
[data-theme="dark"] .ig-list-name { color: var(--cream); }
.ig-list-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; flex-shrink: 0; }
.ig-list-count { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--gold); }
.ig-list-years { font-family: var(--font-ui); font-size: 0.75rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .subpage-nav { margin-right: 0.5rem; gap: 0.25rem; }
  .subpage-nav-link { padding: 0.35rem 0.5rem; font-size: 0.8rem; }
  .ig-hero { padding: 1.5rem 1rem 0.5rem; }
  .ig-stats { gap: 1rem; }
  .ig-stat-value { font-size: 1.3rem; }
  .ig-list { grid-template-columns: 1fr; }
}

/* ===== NAGY LEJÁTSZÓ NÉZET (Spotify-szerű, felhúzható) ===== */
.player-expanded {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 100dvh;               /* teljes képernyő (dvh: mobil címsor-barát) */
  z-index: 300;                 /* a mini-sáv (200) fölött */
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
  transform: translateY(100%);  /* alapból lent, kívül a képernyőn */
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.player-expanded.open {
  transform: translateY(0);     /* felnyitva */
}
.pex-inner {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100%;
  padding: 0.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;       /* az egész tartalom függőlegesen középen */
  gap: 0.9rem;
}

/* Fejléc: lehúzó fogantyú */
.pex-top {
  display: flex;
  justify-content: center;
  padding: 0.35rem 0 0.15rem;
  position: sticky; top: 0;
}
.pex-handle {
  background: none; border: none; cursor: pointer;
  color: var(--gold-light);
  padding: 0.5rem 2rem;
  display: flex; justify-content: center;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.pex-handle::before {
  /* a "húzható" jelző csík a nyíl fölött */
  content: ""; position: absolute; top: 0.35rem;
  width: 42px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.25);
}
.pex-handle:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

/* Borító (pecsét-logó) */
.pex-cover {
  display: flex; justify-content: center; align-items: center;
  padding: 0.25rem 0;
}
.pex-cover-img {
  width: min(42vw, 190px);       /* kisebb, elegánsabb */
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  padding: 7px;                  /* a körirat befér */
  object-fit: contain;           /* a pecsét nem vágódik */
  box-shadow: 0 10px 32px rgba(0,0,0,0.38), 0 0 0 5px rgba(201,164,74,0.15);
}

/* Cím + meta */
.pex-meta { text-align: center; }
.pex-category {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--gold-light);
  padding: 0.2rem 0.7rem; border-radius: 999px;
  margin-bottom: 0.6rem;
}
.pex-title {
  font-family: var(--font-serif);
  font-size: 1.35rem; line-height: 1.25; font-weight: 700;
  color: var(--text-invert);
  margin: 0 0 0.35rem;
}
.pex-speaker {
  font-family: var(--font-ui);
  font-size: 1rem; color: var(--gold-light);
  margin: 0 0 0.5rem;
}
.pex-speaker a { color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(224,188,114,0.4); }
.pex-speaker a:hover { color: var(--gold); }
.pex-igehely {
  font-family: var(--font-body);
  font-size: 0.95rem; color: rgba(255,255,255,0.85);
  margin: 0 0 0.3rem;
}
.pex-igehely a { color: var(--gold-light); text-decoration: none; border-bottom: 1px dotted rgba(224,188,114,0.5); }
.pex-igehely a:hover { color: var(--gold); }
.pex-igehely .igehely-label { color: rgba(255,255,255,0.6); font-style: italic; }
.pex-date {
  font-family: var(--font-ui);
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
  margin: 0;
}

/* Idővonal */
.pex-timeline {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%;
}
.pex-time {
  font-family: var(--font-ui); font-size: 0.78rem;
  color: rgba(255,255,255,0.7); min-width: 3ch; text-align: center;
}
.pex-progress {
  flex: 1; height: 6px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.2); border-radius: 999px;
}
.pex-progress::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.pex-progress::-moz-range-thumb {
  width: 16px; height: 16px; border: none; border-radius: 50%;
  background: var(--gold); cursor: pointer;
}

/* Fő vezérlők */
.pex-controls {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
}
.pex-ctrl {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.85);
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  transition: color var(--transition), transform var(--transition);
}
.pex-ctrl:hover { color: #fff; transform: scale(1.05); }
.pex-ctrl-label { font-family: var(--font-ui); font-size: 0.62rem; opacity: 0.7; }
.pex-play {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(201,164,74,0.4);
  transition: transform var(--transition), background var(--transition);
}
.pex-play:hover { transform: scale(1.06); background: var(--gold-light); }
.pex-play svg { margin-left: 2px; }  /* a play-háromszög optikai középre */
.pex-play.is-playing svg { margin-left: 0; }

/* Alsó extra sor */
.pex-extra {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding-top: 0.25rem;
}
.pex-speed select {
  font-family: var(--font-ui); font-size: 0.85rem;
  background: rgba(255,255,255,0.1); color: var(--text-invert);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 6px;
  padding: 0.35rem 0.5rem; cursor: pointer;
}
.pex-extra-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.8);
  padding: 0.4rem; border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.pex-extra-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* A mini-sávon a felfelé-nyíl gomb + a kattintható terület jelzése */
.player-expand-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gold-light); padding: 0.4rem;
  display: flex; align-items: center;
  transition: color var(--transition), transform var(--transition);
}
.player-expand-btn:hover { color: var(--gold); transform: translateY(-2px); }
.player-info.is-expandable { cursor: pointer; }

/* Ne görgessön a háttér, amíg a nagy nézet nyitva van */
body.pex-open { overflow: hidden; }

/* Mozgáscsökkentés */
@media (prefers-reduced-motion: reduce) {
  .player-expanded { transition: none; }
}

/* Kisebb képernyőkre finomítás */
@media (max-width: 420px) {
  .pex-title { font-size: 1.25rem; }
  .pex-cover-img { width: min(62vw, 220px); }
  .pex-controls { gap: 1.5rem; }
}

