/* ═══════════════════════════════════════════
   YDUCK MEDIA — Components (JS-generated)
   ═══════════════════════════════════════════ */

/* ─── Visually hidden ─── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── Business cards ─── */
.business-paper-card {
  border: 3px solid var(--cerna);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bila);
  box-shadow: 8px 8px 0 var(--cerna);
}
.business-paper-card:hover {
  transform: translate(-6px, -6px);
  box-shadow: 16px 16px 0 var(--cerna);
  border-color: var(--raspberry);
}
.business-paper-card .card-image-wrapper { margin-bottom: 1rem; }
.business-paper-card .card-image-wrapper img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border: 2px solid var(--cerna); display: block;
}
.business-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.business-paper-card h3 {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card-text-preview { font-size: 0.875rem; line-height: 1.6; opacity: 0.7; flex: 1; }
.card-expand-icon {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  margin-top: 1rem;
  color: var(--raspberry);
  cursor: pointer;
}
.tape-strip { display: none; }

/* ─── Video cards ─── */
.video-card-fusion {
  border: 4px solid var(--cerna);
  transition: 0.2s ease;
  background: var(--bila);
  box-shadow: 6px 6px 0 var(--cerna);
}
.video-card-fusion:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 var(--cerna); border-color: var(--raspberry); }
.video-card-fusion iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; border-bottom: 3px solid var(--cerna); }
.video-skeleton { aspect-ratio: 16/9; background: var(--gray-200); animation: skelShimmer 1.5s infinite; }
@keyframes skelShimmer { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }
.video-title {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
}
.video-card-fusion.loading iframe { opacity: 0; height: 0; }
.video-card-fusion.loaded iframe { opacity: 1; }
.video-card-fusion.loaded .video-skeleton { display: none; }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--gray-200); list-style: none; }
body.dark-mode .faq-item { border-bottom-color: rgba(255,255,255,0.06); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 0; background: none; border: none;
  color: var(--cerna); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-align: left; font-family: var(--font-pro);
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }
.faq-question::after { content: '+'; font-size: 1.3rem; opacity: 0.4; flex-shrink: 0; margin-left: 1rem; }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 0 0 1.25rem 0; }
.faq-answer p { font-size: 0.95rem; line-height: 1.6; opacity: 0.75; }

/* ─── Audio player hooks ─── */
.dictaphone-screen {
  background: #9ea792; color: #000;
  font-family: var(--font-vt);
  padding: 1.25rem; margin-bottom: 1.5rem;
  min-height: 100px; position: relative;
  border: 4px inset #555;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}
body.dark-mode .dictaphone-screen { background: #7a8773; }
.track-status { font-size: 0.85rem; opacity: 0.8; letter-spacing: 1px; margin-bottom: 5px; }
.track-name { font-size: 1.2rem; font-weight: bold; }
.audio-visualizer {
  display: flex; gap: 3px; height: 32px; align-items: flex-end; margin-top: 0.5rem;
}
.audio-visualizer .bar {
  width: 4px; background: var(--cerna); min-height: 3px;
  animation: vizDance 0.6s infinite ease-in-out alternate;
}
.audio-visualizer .bar:nth-child(1) { animation-delay: 0s; height: 15%; }
.audio-visualizer .bar:nth-child(2) { animation-delay: 0.05s; height: 30%; }
.audio-visualizer .bar:nth-child(3) { animation-delay: 0.1s; height: 50%; }
.audio-visualizer .bar:nth-child(4) { animation-delay: 0.15s; height: 20%; }
.audio-visualizer .bar:nth-child(5) { animation-delay: 0.2s; height: 60%; }
.audio-visualizer .bar:nth-child(6) { animation-delay: 0.25s; height: 40%; }
.audio-visualizer .bar:nth-child(7) { animation-delay: 0.3s; height: 80%; }
.audio-visualizer .bar:nth-child(8) { animation-delay: 0.35s; height: 30%; }
@keyframes vizDance { 0% { transform: scaleY(0.3); opacity: 0.6; } 100% { transform: scaleY(1); opacity: 1; } }
.dictaphone-screen.playing { background: #b0b9a7; }
body.dark-mode .dictaphone-screen.playing { background: #8a9a82; }

/* Playlist */
.playlist-list { list-style: none; }
.playlist-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 0.5rem; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-comic);
  font-size: 1rem; font-weight: 700;
  color: #eee;
  transition: 0.15s;
}
.playlist-list li:hover { background: rgba(255,255,255,0.06); color: var(--kachna); }
.playlist-list li.active-track { color: var(--kachna); background: rgba(255,200,66,0.08); }

/* ─── Particles container ─── */
#cursor-trail-container { z-index: 99999; }

/* ─── Old wrappers ─── */
#oracle-wrapper, #yourduck-wrapper { display: none; }
.marquee-banner { display: none; }
.particles-container {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ═══════════════════════════════════════════
   PODKVÁK PODCAST PLAYER — retro kachní dictaphone deck
   ═══════════════════════════════════════════ */
.podcast-player {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  background: linear-gradient(145deg, #2a2a2a, #141414);
  border: 3px solid #000;
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: 10px 10px 0 #000;
  max-width: 920px;
  margin: 0 auto;
}
body.dark-mode .podcast-player {
  background: linear-gradient(145deg, #1c1c1c, #0a0a0a);
}
.podcast-player-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Dictaphone screen (CRT green) ─── */
.dictaphone-screen {
  background: #10231c;
  border: 3px solid #000;
  border-radius: 0;
  padding: 1rem 1.1rem;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.6), inset 0 0 0 2px rgba(80,255,160,0.08);
  color: #7CFFB0;
  text-shadow: 0 0 6px rgba(124,255,176,0.55);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.dark-mode .dictaphone-screen { background: #06140e; }
.track-status {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 0.4rem;
  color: var(--kachna);
  text-shadow: 0 0 5px rgba(255,218,68,0.5);
}
.track-name {
  font-family: var(--font-vt);
  font-size: 1.6rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.podcast-time {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 0.4rem;
}

/* ─── Idle wave ─── */
.podcast-wave {
  display: flex;
  gap: 3px;
  height: 28px;
  align-items: flex-end;
}
.podcast-wave span {
  flex: 1;
  background: #2f5d49;
  border-radius: 0;
  min-height: 4px;
  animation: waveIdle 1.1s infinite ease-in-out alternate;
}
.podcast-wave span:nth-child(odd) { animation-delay: 0.2s; }
.podcast-wave span:nth-child(3n) { animation-delay: 0.4s; }
@keyframes waveIdle { 0% { transform: scaleY(0.4); } 100% { transform: scaleY(1); } }
.dictaphone-screen.playing {
  box-shadow: inset 0 0 30px rgba(124,255,176,0.18), 0 0 18px rgba(124,255,176,0.15);
}
.dictaphone-screen.playing .podcast-wave span { background: #7CFFB0; }

/* ─── Volume ─── */
.podcast-volume {
  display: flex;
  align-items: center;
  justify-content: center;
}
#volumeSlider { accent-color: var(--kachna); }

/* ─── Controls ─── */
.podcast-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.podcast-player .podcast-btn {
  width: 52px; height: 52px;
  border: 3px solid #000;
  border-radius: 0;
  background: #e9e9e9;
  color: #111;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.podcast-player .podcast-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; }
.podcast-player .podcast-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #000; }
.podcast-player .podcast-btn-play {
  width: 64px; height: 64px;
  background: var(--kachna);
  font-size: 1.6rem;
}
body.dark-mode .podcast-player .podcast-btn { background: #2c2c2c; color: #fff; box-shadow: 4px 4px 0 #000; }

/* ─── Progress ─── */
.podcast-progress {
  width: 100%;
  height: 12px;
  background: #000;
  border: 2px solid #000;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06);
}
.podcast-progress-bar {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(45deg, var(--kachna), var(--kachna) 6px, #ffc400 6px, #ffc400 12px);
  transition: width 0.15s linear;
}

/* ─── Playlist ─── */
.podcast-playlist {
  background: rgba(0,0,0,0.25);
  border: 2px solid #000;
  border-radius: 0;
  padding: 1rem;
}
.podcast-playlist-title {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--kachna);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.playlist-list li.active-track {
  border-left: 4px solid var(--kachna);
  padding-left: 0.75rem;
}

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .podcast-player { grid-template-columns: 1fr; }
}
