/* LYNT – pás „Na pódiu“ na homepage. Data: Přednášky (Meta Box), šablona Bricks „Na pódiu – pás“. */

.talks {
  background: var(--navy);
  color: var(--white);
  padding: 0 !important;
  overflow: hidden;
}
.talks[hidden] { display: none !important; }

.talks__inner {
  display: flex;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  width: 100%;
  height: 64px;
}
.talks__label,
.talks__viewport,
.talks__track,
.talks__item {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}
.talks__track { width: max-content !important; max-width: none !important; }

/* Levý štítek „Na pódiu“ + pauza */
.talks__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding-inline: var(--gutter) 20px;
  background: var(--navy);
  box-shadow: 16px 0 24px var(--navy);
  position: relative;
  z-index: 1;
}
.talks__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: talks-pulse 1.8s ease-out infinite;
}
.talks__label-text {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--peri-light);
  white-space: nowrap;
}

.talks__pause {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(194, 205, 250, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}
.talks__pause::before,
.talks__pause::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--peri-light);
}
.talks__pause::before { left: 11px; }
.talks__pause::after { left: 16px; }
.talks.is-paused .talks__pause::before {
  left: 12px;
  top: 9px;
  width: 0;
  height: 0;
  border-radius: 0;
  background: none;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--peri-light);
}
.talks.is-paused .talks__pause::after { display: none; }
.talks__pause:hover { border-color: var(--peri-light); }
.talks__pause:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.talks:not(.is-animated) .talks__pause { display: none; }

/* Běžící část */
.talks__viewport {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.talks__track {
  display: flex;
  align-items: center;
  width: max-content;
}
.talks.is-animated .talks__track {
  animation: talks-move var(--talks-duration, 40s) linear infinite;
}
.talks__viewport:hover .talks__track,
.talks__viewport:focus-within .talks__track,
.talks.is-paused .talks__track {
  animation-play-state: paused;
}

.talks__item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 20px;
  color: var(--white) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.talks__item::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-left: 20px;
  background: var(--peri);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 63 63'%3E%3Cpath d='M31.421,0A31.422,31.422,0,0,1,0,31.423,31.421,31.421,0,0,1,31.421,62.844,31.421,31.421,0,0,1,62.845,31.423,31.423,31.423,0,0,1,31.421,0'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 63 63'%3E%3Cpath d='M31.421,0A31.422,31.422,0,0,1,0,31.423,31.421,31.421,0,0,1,31.421,62.844,31.421,31.421,0,0,1,62.845,31.423,31.423,31.423,0,0,1,31.421,0'/%3E%3C/svg%3E") center / contain no-repeat;
}
.talks__item:hover .talks__title,
.talks__item:focus-visible .talks__title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.talks__item:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }

.talks__content { display: contents; }
.talks__avatars { display: flex; flex: 0 0 auto; }
.talks__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 6%;
  background: var(--peri-light);
  border: 2px solid var(--navy);
  margin-left: -10px;
}
.talks__avatar:first-child { margin-left: 0; }
.talks__avatar--logo { object-fit: contain; background: var(--white); padding: 4px; box-sizing: border-box; }

.talks__chip,
.talks__award {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-pill, 64px);
  color: var(--navy);
  background: var(--teal-light);
}
.talks__chip:empty { display: none; }
.talks__chip--today { background: var(--coral-light); }
.talks__chip--video { background: var(--amber); }
.talks__chip--past { background: var(--peri-light); }
.talks__award { background: var(--amber-light); }

.talks__text { font-size: 17px; }
.talks__event { color: var(--peri-light); }

@media (max-width: 767px) {
  .talks__inner, .talks__item { height: 56px; }
  .talks__label { gap: 8px; padding-inline: 16px 12px; }
  .talks__label-text { font-size: 12px; letter-spacing: 1.5px; }
  .talks__item { padding: 0 14px; gap: 10px; }
  .talks__item::after { margin-left: 14px; }
  .talks__avatar { width: 30px; height: 30px; }
  .talks__text { font-size: 15px; }
  .talks__chip, .talks__award { font-size: 11px; padding: 5px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .talks__dot { animation: none; }
  .talks__viewport { overflow-x: auto; }
}

@keyframes talks-move { to { transform: translateX(-50%); } }
@keyframes talks-pulse {
  0% { box-shadow: 0 0 0 0 rgba(122, 230, 217, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(122, 230, 217, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 230, 217, 0); }
}
