/* Lecturers' video medailonky – see src/Lecturers/VideoBio.php. The pages reset
   everything inside their #id blocks, hence the !important. */
.tdv-play { position: relative; display: block; width: 100%; height: 100%; padding: 0 !important; margin: 0; border: 0; background: none; cursor: pointer; overflow: hidden; border-radius: inherit; }
.tdv-play img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 22% !important; display: block; transition: transform .4s ease; }
.tdv-play:hover img { transform: scale(1.04); }
.tdv-play:focus-visible { outline: 3px solid #f6d36a; outline-offset: -3px; }
.tdv-badge { position: absolute; left: 50%; bottom: 7%; width: 30px; height: 30px; transform: translateX(-50%); border-radius: 50%; background: rgba(107, 144, 128, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.tdv-badge::after { content: ''; position: absolute; left: 11px; top: 8px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tdv-play.is-tile .tdv-badge { width: 52px; height: 52px; }
.tdv-play.is-tile .tdv-badge::after { left: 20px; top: 15px; border-left-width: 17px; border-top-width: 11px; border-bottom-width: 11px; }
.tdv-play.mvk-team-photo, .tdv-play.twd-speaker-photo { flex-shrink: 0; }
.lk-me-photo.tdv-holder { border-radius: 50%; overflow: hidden; }

/* O nás: every card the same – a picture, the name, the text on demand. */
#tehoduse-tym-2025 .tdv-card .tty-card-top { align-items: center; gap: 22px; margin-bottom: 0; }
#tehoduse-tym-2025 .tdv-card .tty-avatar { width: 150px; height: 200px; border-radius: 18px; border-width: 0; }
#tehoduse-tym-2025 .tdv-card .tty-avatar > img { object-position: 50% 25%; }
#tehoduse-tym-2025 .tdv-card .tty-bio { margin-top: 18px; }
#tehoduse-tym-2025 .tdv-card .tty-bio[hidden] { display: none; }
#tehoduse-tym-2025 .tty-track { align-items: flex-start; }
#tehoduse-tym-2025 .tdv-more { margin-top: 16px; padding: 10px 18px; border: 0; border-radius: 999px; background: #6b9080; color: #fff; font: 600 13px/1.2 'Source Sans 3', sans-serif; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; }
#tehoduse-tym-2025 .tdv-more:hover { background: #5a7d6d; }
#tehoduse-tym-2025 .tdv-more:focus-visible { outline: 3px solid #f6d36a; outline-offset: 2px; }

.tdv-dialog { padding: 0; border: 0; background: none; max-width: none; max-height: none; overflow: visible; margin: auto; }
.tdv-dialog::backdrop { background: rgba(32, 48, 40, .78); }
.tdv-dialog video { display: block; height: min(86vh, 800px); height: min(86dvh, 800px); max-width: 92vw; aspect-ratio: 9 / 16; border-radius: 20px; background: #203028; }
.tdv-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 252, 244, .92); color: #2d3e34; font: 400 28px/1 'Source Sans 3', sans-serif; cursor: pointer; }

@media (max-width: 680px) {
  #tehoduse-tym-2025 .tdv-card .tty-card-top { flex-direction: column; gap: 16px; text-align: center; }
  #tehoduse-tym-2025 .tdv-card .tty-avatar { width: 180px; height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .tdv-play img { transition: none; } .tdv-play:hover img { transform: none; } }
