/* Kontener sekcji */
.wcag-video-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
}

.wcag-video-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #111111;
}

/* Responsywny kontener 16:9 zgodny z WCAG (brak sztywnych wysokości) */
.wcag-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #333333;
}

/* Wsparcie dla starszych przeglądarek bez obsługi aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .wcag-video-container {
    height: 0;
    padding-bottom: 56.25%;
  }
}

.wcag-video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Wyraźny fokus dla nawigacji klawiaturą (WCAG 2.4.7 / 2.4.11) */
.wcag-video-container:focus-within {
  outline: 3px solid #005fcc;
  outline-offset: 4px;
}

/* Link zewnętrzny z wysokim kontrastem (min. 4.5:1) */
.wcag-video-meta {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
}

.wcag-video-meta a {
  color: #004494;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wcag-video-meta a:hover,
.wcag-video-meta a:focus-visible {
  color: #002752;
  background-color: #e6f0fa;
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* Rozwijana sekcja z alternatywą tekstową */
.wcag-transcript {
  margin-top: 1rem;
  border: 1px solid #595959;
  border-radius: 6px;
  background-color: #f8f9fa;
}

.wcag-transcript summary {
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #111111;
  list-style-position: inside;
}

.wcag-transcript summary:hover {
  background-color: #eceff1;
}

.wcag-transcript summary:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: -3px;
}

.wcag-transcript-content {
  padding: 0 1rem 1rem 1rem;
  border-top: 1px solid #d0d7de;
  font-size: 0.95rem;
}

.wcag-transcript-content ul {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
}

.wcag-transcript-content li {
  margin-bottom: 0.4rem;
}