/* Közvetítések: lejátszó + menetrend felül, alatta évek, azon belül sorozatok videórácsa */
.hv-bc {
  --hv-red: #e10600;
  --hv-card: #1c1c1c;
  --hv-line: rgba(255, 255, 255, 0.09);
}

.hv-bc [hidden] {
  display: none !important;
}

/* Felső sáv: a lejátszó és a menetrend egyforma magas (a Bootstrap sor nyújtja a hasábokat) */
.hv-bc-top {
  margin-bottom: 8px;
}

.hv-bc-top > [class*="col-"] {
  display: flex;
}

.hv-bc-top .hv-bc-player,
.hv-bc-top .hv-bc-schedule {
  width: 100%;
}

.hv-bc-player {
  display: flex;
  flex-direction: column;
  background: var(--hv-card);
  border: 1px solid var(--hv-line);
  border-radius: 8px;
  overflow: hidden;
}

.hv-bc-player__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.hv-bc-player__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hv-bc-player__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: #a8a8a8;
}

.hv-bc-player__empty i {
  font-size: 3rem;
  color: #5a5a5a;
}

.hv-bc-player__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex: 1;
  padding: 14px 18px;
}

.hv-bc-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d0d0d0;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
}

.hv-bc-state--live {
  color: #fff;
  background: var(--hv-red);
}

.hv-bc-state--live::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: hv-bc-pulse 1.6s ease-in-out infinite;
}

@keyframes hv-bc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hv-bc-player__text {
  margin: 6px 0 0;
  font-size: 0.93rem;
  color: #a8a8a8;
}

.hv-bc-player__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hv-bc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hv-bc-btn:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hv-bc-btn--primary {
  background: var(--hv-red);
  border-color: var(--hv-red);
}

.hv-bc-btn--primary:hover {
  background: #ff1a14;
  border-color: #ff1a14;
}

/* Menetrend */
.hv-bc-schedule {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--hv-card);
  border: 1px solid var(--hv-line);
  border-radius: 8px;
}

.hv-bc-schedule__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.hv-bc-schedule__title i {
  color: var(--hv-red);
}

.hv-bc-schedule__list {
  /* Ha a doboz magasabb a listánál, a sorok egyenletesen oszlanak el benne */
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.hv-bc-slot {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  color: inherit;
  text-decoration: none;
}

.hv-bc-schedule__list li + li .hv-bc-slot {
  border-top: 1px solid var(--hv-line);
}

.hv-bc-slot:hover .hv-bc-slot__title {
  color: #ff5a55;
}

.hv-bc-slot .hv-race__date {
  padding: 4px 2px;
}

.hv-bc-slot .hv-race__day {
  margin: 1px 0 0;
  font-size: 1.2rem;
}

/* Tömör dátumblokk: a hét napja a sor szövegébe kerül */
.hv-bc-slot .hv-race__weekday {
  display: none;
}

.hv-bc-slot .hv-race__month,
.hv-bc-slot .hv-race__weekday {
  font-size: 0.66rem;
}

.hv-bc-slot__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  transition: color 0.2s ease;
}

.hv-bc-slot__meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  color: #a8a8a8;
}

.hv-bc-slot__meta strong {
  font-weight: 700;
  color: #e6e6e6;
}

.hv-bc-schedule__empty {
  margin: 0 0 12px;
  font-size: 0.93rem;
  color: #a8a8a8;
}

.hv-bc-schedule .hv-more {
  width: 100%;
  padding: 9px 16px;
  font-size: 0.95rem;
}

/* Archívum szűrők */
.hv-bc-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-bottom: 26px;
}

.hv-bc-filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hv-bc-filter {
  margin: 0;
  padding: 7px 14px;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #cfcfcf;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hv-bc-filter:hover {
  color: #fff;
  border-color: #fff;
}

.hv-bc-filter[aria-pressed="true"] {
  color: #fff;
  background: var(--hv-red);
  border-color: var(--hv-red);
}

.hv-bc-filter:focus-visible,
.hv-vcard:focus-visible,
.hv-bc-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Év: nagy évszám, alatta a sorozatok */
.hv-bc-year + .hv-bc-year {
  margin-top: 56px;
}

.hv-bc-year__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hv-line);
}

.hv-bc-year__head h3 {
  margin: 0;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hv-bc-year__head span {
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f8f8f;
}

/* Sorozat az éven belül: csukott sor, kattintásra helyben nyílik ki a videórács */
.hv-bc-series {
  background: var(--hv-card);
  border: 1px solid var(--hv-line);
  border-radius: 8px;
  overflow: hidden;
}

.hv-bc-series + .hv-bc-series {
  margin-top: 10px;
}

.hv-bc-series[open] {
  border-color: rgba(225, 6, 0, 0.45);
}

.hv-bc-series__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.2s ease;
}

.hv-bc-series__head::-webkit-details-marker {
  display: none;
}

.hv-bc-series__head:hover {
  background: #242424;
}

.hv-bc-series__head:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.hv-bc-series__cover {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.hv-bc-series__cover--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8f8f8f;
  background: #111;
}

.hv-bc-series__text {
  flex: 1;
  min-width: 0;
}

.hv-bc-series__type {
  display: block;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff5a55;
}

.hv-bc-series__name {
  display: block;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

.hv-bc-series__count {
  flex: 0 0 auto;
  font-family: 'Rajdhani', 'Arial Narrow', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8f8f8f;
}

.hv-bc-series__chevron {
  flex: 0 0 auto;
  color: #8f8f8f;
  transition: transform 0.2s ease;
}

.hv-bc-series[open] .hv-bc-series__chevron {
  transform: rotate(180deg);
}

.hv-bc-series .hv-vgrid {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--hv-line);
}

/* Videórács */
.hv-vgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hv-vcard {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.hv-vcard__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.hv-vcard__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hv-vcard:hover .hv-vcard__thumb img {
  transform: scale(1.04);
}

.hv-vcard__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(225, 6, 0, 0.92);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.hv-vcard:hover .hv-vcard__play,
.hv-vcard:focus-visible .hv-vcard__play {
  opacity: 1;
}

.hv-vcard__body {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.hv-vcard__avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: #2a2a2a;
}

.hv-vcard__avatar--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8f8f8f;
}

.hv-vcard__text {
  min-width: 0;
}

.hv-vcard__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f0f0f0;
}

.hv-vcard:hover .hv-vcard__title {
  color: #fff;
}

.hv-vcard__meta {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: #9a9a9a;
}

.hv-vgrid__empty {
  margin: 24px 0 0;
  color: #a8a8a8;
}

.hv-vgrid__more {
  margin-top: 32px;
  text-align: center;
}

button.hv-more {
  cursor: pointer;
}

/* Az oldalsáv melletti keskenyebb hasábban három videó fér egy sorba */
@media (min-width: 992px) {
  .hv-bc-archive .hv-vgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .hv-vgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {

  .hv-vgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .hv-vcard__title {
    font-size: 0.86rem;
  }

  .hv-bc-series__count {
    display: none;
  }

  .hv-bc-series__cover {
    flex-basis: 72px;
    width: 72px;
  }

  .hv-bc-series__name {
    font-size: 1.08rem;
  }

  .hv-bc-series .hv-vgrid {
    padding: 12px;
  }

  .hv-vcard__play {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hv-bc-state--live::before {
    animation: none;
  }

  .hv-vcard__thumb img,
  .hv-bc-btn,
  .hv-bc-filter {
    transition: none;
  }

  .hv-vcard:hover .hv-vcard__thumb img {
    transform: none;
  }
}
