.tlvlc-matches {
  --tlvlc-schedule-bg: #141516;
  --tlvlc-schedule-gold: #f0b30c;
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: var(--tlvlc-schedule-bg);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

/* v1.4.0 portable isolation */
.tlvlc-matches,
.tlvlc-matches *,
.tlvlc-matches *::before,
.tlvlc-matches *::after {
  box-sizing: border-box;
}

.tlvlc-matches button,
.tlvlc-matches input,
.tlvlc-matches select {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.tlvlc-matches img {
  max-width: 100%;
}

.tlvlc-matches [hidden] {
  display: none !important;
}

.tlvlc-matches *,
.tlvlc-matches *::before,
.tlvlc-matches *::after {
  box-sizing: border-box;
}

.tlvlc-matches__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.tlvlc-matches__tabs {
  display: flex;
  width: 100%;
  height: 60.5px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 15px;
  padding: 15px;
  overflow-x: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  scrollbar-width: none;
}

.tlvlc-matches__tabs::-webkit-scrollbar,
.tlvlc-match-card__presenter-list::-webkit-scrollbar {
  display: none;
}

.tlvlc-matches__tab {
  display: flex;
  height: 30.5px;
  min-height: 0;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 6px 16px;
  color: #fff;
  border: 0;
  border-radius: 5px;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-transform: none;
  cursor: pointer;
}

.tlvlc-matches__tab:hover,
.tlvlc-matches__tab:focus-visible,
.tlvlc-matches__tab.is-active {
  color: var(--tlvlc-schedule-gold);
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.tlvlc-matches__tab:focus-visible {
  outline: 1px solid var(--tlvlc-schedule-gold);
  outline-offset: 2px;
}

.tlvlc-matches__tab-icon {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0;
  flex: 0 0 15px;
  object-fit: contain;
}

.tlvlc-matches__tab-icon--live {
  width: 50px;
  height: 18px;
  flex-basis: 50px;
}

.tlvlc-matches__tab-count {
  display: inline-flex;
  min-width: 0;
  height: auto;
  align-items: center;
  margin: 0 0 0 4px;
  padding: 0;
  color: inherit;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.tlvlc-matches__tab-count::before { content: "("; }
.tlvlc-matches__tab-count::after { content: ")"; }

.tlvlc-matches__grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--tlvlc-match-columns, 3), minmax(0, 1fr));
  gap: 20px;
}

.tlvlc-match-card {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 255px;
  min-height: 255px;
  overflow: hidden;
  flex-direction: column;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: #000 url("../images/matches/bg-match.png") center center / cover no-repeat;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  transition: filter 150ms ease;
}

.tlvlc-match-card.is-live {
  border: 2px solid #ffd707;
}

.tlvlc-match-card:hover {
  border-color: #ffd707;
  box-shadow: none;
  filter: brightness(1.04);
  transform: none;
}

.tlvlc-match-card[hidden] { display: none !important; }

.tlvlc-match-card__top {
  display: flex;
  width: 100%;
  height: 26px;
  min-height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 15px;
}

.tlvlc-match-card__ball {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  object-fit: contain;
}

.tlvlc-match-card__competition {
  min-width: 0;
  max-width: calc(100% - 21px);
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlvlc-match-card__teams {
  display: grid;
  width: 100%;
  height: 104px;
  min-height: 104px;
  flex: 0 0 104px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 91.57px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 15px 0;
}

.tlvlc-match-team {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.tlvlc-match-team__logo {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  overflow: hidden;
}

.tlvlc-match-team__logo img {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0;
  object-fit: contain;
}

.tlvlc-match-team__logo--placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  font-size: 18px;
  font-weight: 700;
}

.tlvlc-match-team strong {
  display: block;
  width: auto;
  max-width: 100px;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlvlc-match-card__center {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 5px;
}

.tlvlc-match-card__phase {
  display: flex;
  width: 100%;
  height: 21.5px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 0, 0.4);
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
  white-space: nowrap;
}

.tlvlc-match-card__half { color: #f00; }
.tlvlc-match-card__minute { color: #facc15; }

.tlvlc-match-card__phase.is-finished {
  padding-inline: 4px;
  color: #d1d5db;
  border-color: rgba(209, 213, 219, 0.35);
  background: rgba(17, 24, 39, 0.92);
  font-size: 10px;
}

.tlvlc-match-card__phase.is-finished .tlvlc-match-card__half {
  color: inherit;
}

.tlvlc-match-card__score {
  display: block;
  min-width: 0;
  padding: 3px 12px;
  color: #fff;
  border: 0;
  border-radius: 36px;
  background: transparent;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  white-space: nowrap;
}

.tlvlc-match-card__score.is-upcoming {
  padding: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.tlvlc-match-card__time {
  display: block;
  min-width: 0;
  height: 24px;
  padding: 4px 10px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 30px;
  background: linear-gradient(#1a1e23, #1a1e23) padding-box, linear-gradient(#1a1e23, #ff9e00) border-box;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.tlvlc-match-card__watch {
  position: absolute;
  z-index: 2;
  inset: 0 0 65px;
  display: block;
  margin: 0;
  padding: 0;
  color: transparent;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  text-decoration: none;
}

.tlvlc-match-card__watch:hover,
.tlvlc-match-card__watch:focus-visible {
  color: transparent;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 7, 0.7);
  transform: none;
}

.tlvlc-match-card__summary {
  display: flex;
  width: auto;
  height: 31px;
  min-height: 31px;
  flex: 0 0 31px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 15px 15px;
  padding: 8px 12px;
  overflow: hidden;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: normal;
  white-space: nowrap;
}

.tlvlc-match-card__summary.is-empty {
  visibility: hidden;
  border-top-color: transparent;
}

.tlvlc-quick-stat {
  display: flex;
  height: 14px;
  align-items: center;
  gap: 5px;
}

.tlvlc-quick-stat__text-icon {
  color: #22c55e;
  font-size: 12px;
  font-weight: 700;
}

.tlvlc-quick-stat__icon {
  display: flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  color: #84a62a;
  flex: 0 0 14px;
}

.tlvlc-quick-stat__icon svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.tlvlc-quick-stat__icon--card {
  width: 9px;
  height: 13px;
  flex-basis: 9px;
  border-radius: 1px;
  background: #facc15;
}

.tlvlc-quick-stat__values {
  display: flex;
  height: 14px;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
}

.tlvlc-quick-stat__home { color: #ff6b35; }
.tlvlc-quick-stat__separator { color: #666; }
.tlvlc-quick-stat__away { color: #764ba2; }

.tlvlc-match-card__presenters {
  position: relative;
  z-index: 4;
  display: flex;
  width: 100%;
  height: 65px;
  min-height: 65px;
  flex: 0 0 65px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  margin-top: auto;
  padding: 10px 15px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.tlvlc-match-card__presenter-list {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tlvlc-presenter-pill {
  display: flex;
  width: auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  color: #fff;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
}

.tlvlc-presenter-pill:hover,
.tlvlc-presenter-pill:focus-visible {
  color: #fff;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
}

.tlvlc-presenter-pill__avatar {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  overflow: hidden;
  border: 2px solid #22c55e;
  border-radius: 50%;
  background: transparent;
}

.tlvlc-presenter-pill__avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.tlvlc-presenter-pill__avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.tlvlc-presenter-pill__avatar--placeholder {
  color: #fff;
}

.tlvlc-presenter-pill span:last-child {
  max-width: 90px;
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlvlc-match-card__no-presenter {
  display: block;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 24px;
}

.tlvlc-matches__empty {
  padding: 64px 20px;
  color: rgba(255, 255, 255, 0.62);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: transparent;
  font-size: 14px;
  text-align: center;
}

.tlvlc-matches__empty[hidden] { display: none !important; }

@media (max-width: 1024px) {
  .tlvlc-matches--columns-2 .tlvlc-matches__grid,
  .tlvlc-matches--columns-3 .tlvlc-matches__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tlvlc-matches {
    padding: 0 10px 10px;
  }

  .tlvlc-matches__tabs {
    width: calc(100% + 20px);
    max-width: none;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 28px;
    margin: 0 -10px 15px;
    padding: 15px 20px;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-padding-inline: 20px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .tlvlc-matches__tab {
    min-width: max-content;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .tlvlc-matches__grid,
  .tlvlc-matches--columns-2 .tlvlc-matches__grid,
  .tlvlc-matches--columns-3 .tlvlc-matches__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tlvlc-match-card__teams {
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
    gap: 7px;
    padding-inline: 10px;
  }

  .tlvlc-match-card__summary {
    gap: 8px;
    margin-inline: 10px;
    padding-inline: 7px;
  }
}

@media (max-width: 390px) {
  .tlvlc-match-card__teams {
    grid-template-columns: minmax(0, 1fr) 78px minmax(0, 1fr);
    padding-inline: 8px;
  }

  .tlvlc-quick-stat {
    gap: 3px;
  }

  .tlvlc-match-card__summary {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlvlc-match-card { transition: none; }
}

/* v1.3.6: mobile filter rail stays on one row and exposes horizontal navigation. */
@media (max-width: 680px) {
  .gavang33live .tlvlc-matches__tabs {
    width: 100%;
    max-width: 100%;
    margin: 0 0 15px;
    padding: 12px 10px 8px;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 10px;
    scrollbar-width: thin;
    scrollbar-color: #d5aa28 #242424;
    box-sizing: border-box;
  }

  .gavang33live .tlvlc-matches__tabs::-webkit-scrollbar {
    display: block;
    height: 4px;
  }

  .gavang33live .tlvlc-matches__tabs::-webkit-scrollbar-track {
    background: #242424;
    border-radius: 999px;
  }

  .gavang33live .tlvlc-matches__tabs::-webkit-scrollbar-thumb {
    background: #d5aa28;
    border-radius: 999px;
  }

  .gavang33live .tlvlc-matches__tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    padding: 8px 0 10px;
    scroll-snap-align: start;
  }
}
