.tangotv-feed {
  --tangotv-indigo: #263a93;
  --tangotv-blue: #12a8ff;
  --tangotv-ink: #02050d;
}

.tangotv-shorts {
  width: min(100%, 1600px);
  margin: 0 auto;
}

/*
 * The old hand-curated Shorts grid remains a safe fallback. Once YouTube
 * returns at least one video, only the automatic grid is shown.
 */
.tangotv-shorts + .tango-grid--6,
.tangotv-shorts + p + .tango-grid--6 {
  display: none;
}

.tango-video-page .tangotv-static-report-block {
  display: none !important;
}

.tangotv-shorts__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.25vw, 22px);
}

.tangotv-short,
.tangotv-report {
  min-width: 0;
  margin: 0;
  background: var(--tangotv-ink);
  border: 1px solid rgba(54, 86, 190, 0.55);
  border-radius: 10px;
  overflow: hidden;
}

.tangotv-short__link,
.tangotv-report__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.tangotv-short__media,
.tangotv-report__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #050918;
}

.tangotv-short__media {
  aspect-ratio: 9 / 16;
}

.tangotv-report__media {
  aspect-ratio: 16 / 9;
}

.tangotv-short__media img,
.tangotv-report__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease;
}

.tangotv-short__shade,
.tangotv-report__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.56), transparent 48%);
}

.tangotv-short__play,
.tangotv-report__play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding-left: 2px;
  color: #fff;
  background: var(--tangotv-indigo);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  font-size: 15px;
}

.tangotv-short__title {
  display: -webkit-box;
  min-height: 4.2em;
  padding: 13px 14px 15px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font: 600 14px/1.4 Montserrat, Arial, sans-serif;
  letter-spacing: 0.015em;
}

.tangotv-short__link:hover,
.tangotv-short__link:focus-visible,
.tangotv-report__link:hover,
.tangotv-report__link:focus-visible {
  color: #fff;
}

.tangotv-short__link:hover img,
.tangotv-short__link:focus-visible img,
.tangotv-report__link:hover img,
.tangotv-report__link:focus-visible img {
  transform: scale(1.025);
}

.tangotv-short__link:focus-visible,
.tangotv-report__link:focus-visible {
  outline: 2px solid var(--tangotv-blue);
  outline-offset: -2px;
}

.tangotv-reports {
  width: min(100%, 1600px);
  margin: 0 auto 42px;
}

.tangotv-reports__cycle + .tangotv-reports__cycle {
  margin-top: clamp(42px, 5vw, 76px);
}

.tangotv-reports__block + .tangotv-reports__block {
  margin-top: clamp(30px, 4vw, 56px);
}

.tangotv-reports__block h2 {
  margin: 0 0 clamp(16px, 2vw, 28px);
  color: #fff;
  font: 500 clamp(24px, 2.5vw, 38px)/1.15 Cinzel, Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
}

.tangotv-reports__grid {
  display: grid;
  gap: clamp(14px, 1.6vw, 26px);
}

.tangotv-reports__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tangotv-reports__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tangotv-report__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(14px, 1.4vw, 20px);
}

.tangotv-report__meta {
  margin-bottom: 8px;
  color: #8fa7dd;
  font: 600 12px/1.35 Montserrat, Arial, sans-serif;
  letter-spacing: 0.055em;
  text-transform: none;
}

.tangotv-report__title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font: 600 clamp(16px, 1.35vw, 21px)/1.35 Montserrat, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

.tangotv-reports__grid--4 .tangotv-report__title {
  font-size: clamp(15px, 1.15vw, 18px);
}

.tangotv-report__description {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: #aeb8d5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font: 400 14px/1.5 Montserrat, Arial, sans-serif;
  text-transform: none;
}

.tangotv-short-player[hidden] {
  display: none;
}

.tangotv-short-player {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.tangotv-short-player__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.tangotv-short-player__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 440px);
  max-height: 94vh;
  color: #fff;
  background: #02050d;
  border: 1px solid rgba(54, 86, 190, 0.8);
  border-radius: 14px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.tangotv-short-player__frame {
  width: 100%;
  max-height: calc(94vh - 60px);
  aspect-ratio: 9 / 16;
  background: #000;
}

.tangotv-short-player--wide .tangotv-short-player__dialog {
  width: min(94vw, 1120px);
}

.tangotv-short-player--wide .tangotv-short-player__frame {
  max-height: calc(94vh - 60px);
  aspect-ratio: 16 / 9;
}

.tangotv-short-player__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tangotv-short-player__close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  color: #fff;
  background: rgba(2, 5, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font: 400 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.tangotv-short-player__close:hover,
.tangotv-short-player__close:focus-visible {
  color: #fff;
  background: var(--tangotv-indigo);
  outline: 2px solid var(--tangotv-blue);
  outline-offset: 2px;
}

.tangotv-short-player__title {
  margin: 0;
  padding: 12px 16px 14px;
  color: #fff;
  font: 600 14px/1.35 Montserrat, Arial, sans-serif;
  text-transform: none;
}

html.tangotv-player-open,
html.tangotv-player-open body {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .tangotv-shorts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tangotv-reports__grid--3,
  .tangotv-reports__grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .tangotv-shorts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tangotv-short__title {
    min-height: 3.9em;
    padding: 11px 11px 13px;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .tangotv-reports__grid--3,
  .tangotv-reports__grid--4 {
    grid-template-columns: 1fr;
  }

  .tangotv-report__description {
    -webkit-line-clamp: 2;
  }

  .tangotv-short-player {
    padding: 8px;
  }

  .tangotv-short-player__dialog,
  .tangotv-short-player--wide .tangotv-short-player__dialog {
    width: min(96vw, 980px);
    max-height: 96vh;
  }

  .tangotv-short-player__frame,
  .tangotv-short-player--wide .tangotv-short-player__frame {
    max-height: calc(96vh - 58px);
  }
}
