.talks-page {
  background: #090b0f;
  color: #f1f1f1;
  overflow-x: hidden;
  overflow-x: clip;
}

.talks-page main {
  overflow-x: hidden;
  overflow-x: clip;
}

.talks-page .main-nav {
  overflow: visible;
  max-height: none;
}

.talks-page .main-nav-block {
  transform: none;
  opacity: 1;
}

.talks-hub {
  --talk-bg-image: url("../img/palestras/temas/palestras-tema-alta-performance-medalhas-pan-duplas.webp");
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  background: #080a0f;
}

@supports (height: 100dvh) {
  .talks-hub {
    min-height: 100dvh;
  }
}

.talks-hub-video-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--talk-bg-image) center 24% / cover no-repeat;
  transition: background-image 0.44s ease;
}

.talks-hub-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118vw;
  height: 66.375vw;
  min-width: 210vh;
  min-height: 118%;
  transform: translate(-50%, -50%) scale(1.08);
  border: 0;
  pointer-events: none;
  background: #06070a;
  opacity: 0;
  transition: opacity 0.36s ease;
  object-fit: cover;
}

.talks-hub-video-stage .talks-hub-video-frame {
  filter: blur(6px) saturate(0.88) brightness(0.52);
}

.talks-hub.is-video-ready .talks-hub-video-frame {
  opacity: 1;
}

.talks-hub.talks-video-fallback .talks-hub-video-frame {
  display: none;
}

.talks-hub-video-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, rgba(6, 7, 10, 0.34) 0%, rgba(6, 7, 10, 0.52) 22%, rgba(6, 7, 10, 0.68) 42%, rgba(6, 7, 10, 0.82) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.78) 0%, rgba(6, 7, 10, 0.2) 16%, rgba(6, 7, 10, 0.1) 36%, rgba(6, 7, 10, 0.22) 68%, rgba(6, 7, 10, 0.78) 100%),
    linear-gradient(90deg, rgba(6, 7, 10, 0.62) 0%, rgba(6, 7, 10, 0.12) 18%, rgba(6, 7, 10, 0.04) 50%, rgba(6, 7, 10, 0.12) 82%, rgba(6, 7, 10, 0.62) 100%);
}

.talks-hub-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 11, 15, 0.9) 0%, rgba(10, 11, 15, 0.8) 23%, rgba(10, 11, 15, 0.56) 42%, rgba(10, 11, 15, 0.25) 62%, rgba(10, 11, 15, 0.06) 82%, rgba(10, 11, 15, 0.02) 100%),
    linear-gradient(0deg, rgba(6, 7, 10, 0.44) 0%, rgba(6, 7, 10, 0.14) 24%, rgba(6, 7, 10, 0) 46%);
}

.talks-hub-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 100%);
  background-size: 4px 4px, 5px 5px;
}

.talks-hub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(0.82rem, 1.05vw, 1rem);
  z-index: 3;
  background: var(--brand-rainbow);
}

.talks-hub-shell {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-top: clamp(6.2rem, 8.2vw, 8.1rem);
  padding-bottom: clamp(0.85rem, 1.2vw, 1.2rem);
  gap: clamp(1rem, 2vw, 1.6rem);
}

@supports (height: 100dvh) {
  .talks-hub-shell {
    min-height: 100dvh;
  }
}

.talks-hub-copy {
  align-self: center;
  max-width: clamp(18.5rem, 31vw, 41rem);
  min-width: 0;
  padding: clamp(2rem, 4.7vw, 4.7rem) clamp(1.2rem, 3vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, rgba(9, 10, 14, .32) 0%, rgba(9, 10, 14, .15) 65%, rgba(9, 10, 14, 0) 100%);
  backdrop-filter: blur(1.5px);
  border-radius: .72rem;
}

@media (min-width: 992px) {
  .talks-hub-copy {
    justify-self: start;
    width: min(100%, clamp(18.5rem, 31vw, 41rem));
    max-width: min(100%, clamp(18.5rem, 31vw, 41rem));
    padding-left: clamp(2rem, 4.2vw, 5.6rem);
  }
}

.talks-hub-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-kicker);
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 500;
}

.talks-hub-copy h1 {
  margin: clamp(0.78rem, 1.3vw, 1rem) 0 0;
  color: #fff;
  font-size: var(--fs-display);
  line-height: 0.92;
  font-weight: 700;
  max-width: 14ch;
}

.talks-hub-subtitle {
  margin: clamp(0.8rem, 1.3vw, 1.15rem) 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-feature-subtitle);
  line-height: 1.25;
  max-width: 48ch;
}

.talks-hub-tags {
  margin-top: clamp(0.62rem, 1vw, 0.92rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.talks-hub-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 10, 15, 0.36);
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--fs-chip);
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
}

.talks-hub-description {
  margin: clamp(0.7rem, 1vw, 0.9rem) 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: var(--fs-body);
  line-height: 1.38;
  max-width: 58ch;
}

.talks-hub-actions {
  margin-top: clamp(1rem, 1.5vw, 1.45rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.talks-hub-actions .btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1.22rem;
  padding-right: 1.22rem;
}

.talks-hub-themes {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(11, 14, 21, 0.88) 0%, rgba(9, 12, 18, 0.78) 100%);
  box-shadow: 0 0.72rem 2rem rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: clamp(0.56rem, 0.9vw, 0.82rem);
}

.talks-hub-themes-title {
  margin: 0 0 clamp(0.42rem, 0.8vw, 0.62rem);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-kicker);
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
}

.talks-hub-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(11rem, 1fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: clamp(0.46rem, 0.72vw, 0.64rem);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.talks-hub-thumbs::-webkit-scrollbar {
  height: 4px;
}

.talks-hub-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.talks-hub-thumbs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.talks-hub-thumb {
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  border-radius: 0.58rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  display: grid;
  grid-template-rows: clamp(5.6rem, 8vw, 7.2rem) auto;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.talks-hub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.talks-hub-thumb span {
  display: block;
  padding: 0.56rem 0.62rem;
  font-size: var(--fs-label);
  line-height: 1.22;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.talks-hub-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0.62rem 1.45rem rgba(0, 0, 0, 0.34);
}

.talks-hub-thumb.is-active {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0.72rem 1.82rem rgba(0, 0, 0, 0.38);
}

.talks-hub-thumb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.74);
  outline-offset: 2px;
}

.talk-video-modal .modal-dialog {
  width: min(96vw, 92rem);
  max-width: none;
}

.talk-video-modal .modal-content {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.94) 0%, rgba(8, 10, 15, 0.86) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 1rem 2.8rem rgba(0, 0, 0, 0.42);
}

.talk-video-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1rem 0.76rem;
}

.talk-video-modal .modal-title {
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 600;
}

.talk-video-modal .modal-body {
  padding: 0.8rem;
}

.talk-video-modal-ratio {
  border-radius: 0.72rem;
  overflow: hidden;
  background: #000;
}

.talk-video-modal-ratio iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.talk-video-modal-ratio::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, 0.16) 100%);
}

@media (max-width: 1199.98px) {
  .talks-hub-copy {
    max-width: min(44rem, 86vw);
  }

  .talks-hub-copy h1 {
    font-size: clamp(2rem, 5vw, 3.55rem);
  }
}

@media (max-width: 991.98px) {
  .talks-hub-shell {
    padding-top: clamp(5.35rem, 13.2vw, 6.2rem);
    padding-bottom: 0.82rem;
    gap: 0.8rem;
  }

  .talks-hub-copy {
    align-self: start;
    max-width: 100%;
  }

  .talks-hub-copy h1 {
    max-width: 18ch;
    font-size: clamp(1.8rem, 7.8vw, 2.7rem);
  }

  .talks-hub-subtitle {
    font-size: clamp(0.98rem, 3.8vw, 1.24rem);
  }

  .talks-hub-tags {
    margin-top: 0.62rem;
  }

  .talks-hub-tag {
    font-size: 0.66rem;
  }

  .talks-hub-description {
    font-size: clamp(0.9rem, 3.6vw, 1.02rem);
    max-width: 100%;
  }

  .talks-hub-actions .btn {
    padding-left: 1.04rem;
    padding-right: 1.04rem;
  }

  .talks-hub-themes {
    padding: 0.52rem;
  }

  .talks-hub-thumbs {
    grid-auto-columns: minmax(10rem, 10rem);
    gap: 0.52rem;
  }

  .talks-hub-thumb {
    grid-template-rows: 5.5rem auto;
  }
}

@media (max-width: 767.98px) {
  .talks-hub {
    min-height: 100svh;
  }

  .talks-hub-shell {
    min-height: 100svh;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: clamp(4.95rem, 13.5vw, 5.6rem);
    padding-bottom: 0.72rem;
    padding-bottom: calc(0.72rem + env(safe-area-inset-bottom));
    grid-template-rows: 1fr auto;
    align-content: end;
    align-items: end;
  }

  .talks-hub-video-stage {
    background-position: center 18%;
  }

  .talks-hub-bg {
    background:
      linear-gradient(180deg, rgba(7, 9, 14, 0.74) 0%, rgba(7, 9, 14, 0.54) 36%, rgba(7, 9, 14, 0.85) 72%, rgba(7, 9, 14, 0.95) 100%),
      radial-gradient(92% 75% at 75% 8%, rgba(28, 113, 223, 0.24) 0%, rgba(28, 113, 223, 0) 62%);
  }

  .talks-hub-shell {
    gap: 0.52rem;
  }

  .talks-hub-kicker {
    font-size: 0.7rem;
  }

  .talks-hub-copy {
    align-self: end;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 0.56rem 0.54rem 0.54rem;
    border-radius: 0.7rem;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.56) 0%, rgba(8, 10, 16, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
  }

  .talks-hub-copy > * {
    min-width: 0;
  }

  .talks-hub-copy h1 {
    max-width: 100%;
    margin-top: 0.5rem;
    font-size: clamp(1.42rem, 7.3vw, 1.82rem);
    line-height: 0.96;
    overflow-wrap: anywhere;
  }

  .talks-hub-subtitle {
    margin-top: 0.5rem;
    font-size: clamp(0.9rem, 3.7vw, 1rem);
    line-height: 1.22;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
  }

  .talks-hub-description {
    display: none;
  }

  .talks-hub-tags {
    margin-top: 0.46rem;
    gap: 0.28rem;
    max-width: 100%;
    overflow: hidden;
  }

  .talks-hub-tag {
    padding: 0.22rem 0.48rem;
    font-size: 0.58rem;
    letter-spacing: 0.045em;
  }

  .talks-hub-actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    margin-top: 0.62rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
  }

  .talks-hub-actions .btn {
    flex: 1 1 calc(50% - 0.19rem);
    min-width: 0;
    min-height: 2.2rem;
    margin-top: 0;
    padding: 0.56rem 0.62rem;
    width: auto;
    max-width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .talks-hub-actions .btn span {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .talks-hub-actions .btn i {
    font-size: 0.8rem;
  }

  .talks-hub-themes {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
    padding: 0.34rem 0.38rem 0.36rem;
    border-radius: 0.68rem;
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.9) 0%, rgba(10, 13, 20, 0.76) 100%);
  }

  .talks-hub-themes-title {
    font-size: 0.64rem;
    margin-bottom: 0.3rem;
    padding-left: 0.18rem;
  }

  .talks-hub-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(9.4rem, 9.4rem);
    width: 100%;
    max-width: 100%;
    gap: 0.46rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.14rem;
    padding-inline: 0.08rem 0.12rem;
  }

  .talks-hub-thumb {
    width: 100%;
    min-width: 0;
    border-radius: 0.58rem;
    display: grid;
    align-items: stretch;
    grid-template-rows: 4.95rem auto;
    padding: 0;
    scroll-snap-align: start;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0.56rem 1.2rem rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.05);
  }

  .talks-hub-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .talks-hub-thumb span {
    padding: 0.44rem 0.46rem 0.48rem;
    font-size: 0.62rem;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .talks-hub-thumb:hover {
    transform: none;
    box-shadow: 0 0.56rem 1.2rem rgba(0, 0, 0, 0.28);
  }

  .talks-hub-thumb.is-active {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  .talk-video-modal .modal-header {
    padding: 0.72rem 0.8rem 0.68rem;
  }

  .talk-video-modal .modal-body {
    padding: 0.62rem;
  }
}

@media (max-width: 399.98px) {
  .talks-hub-copy h1 {
    font-size: clamp(1.28rem, 7.8vw, 1.55rem);
  }

  .talks-hub-actions .btn {
    font-size: 0.69rem;
    padding-inline: 0.48rem;
  }

  .talks-hub-thumb span {
    font-size: 0.58rem;
  }
}
