.live-tv {
  max-width: 1440px;
  margin: auto;
  padding: clamp(28px, 5vw, 64px) 5% 64px;
}
.live-tv-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.live-tv-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.12;
}
.live-tv-count { margin: 0; color: #b8b4c4; font-size: 14px; }
.live-tv-search {
  width: min(100%, 300px);
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #514557;
  border-radius: 9px;
  background: #1c1924;
  color: #f7f2fa;
  font-size: 14px;
}
.live-tv-search::placeholder, .live-tv-empty { color: #c2bacd; }
.live-tv-channels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.live-tv-empty { grid-column: 1 / -1; margin: 0; padding: 24px 0; }
.live-tv-channel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #36313f;
  border-radius: 12px;
  background: #17141e;
  color: #f7f2fa;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.live-tv-channel:hover, .live-tv-channel:focus-visible {
  border-color: #d97393;
  background: #28202d;
}
.live-tv-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #fff;
}
.live-tv-channel:is([data-channel="cnbc"], [data-channel="bantan"]) .live-tv-thumb {
  background: #17151f;
}
.live-tv-thumb img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72%;
  height: 62%;
  object-fit: contain;
}
.live-tv-mark { color: #27212e; font-size: 15px; font-weight: 800; }
.live-tv-channel:is([data-channel="cnbc"], [data-channel="bantan"]) .live-tv-mark { color: #fff; }
.live-tv-variant { position: absolute; top: 8px; right: 9px; color: #662857; font-size: 12px; font-weight: 800; }
.live-tv-play-icon {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #211925;
  color: #fff;
  font-size: 9px;
}
.live-tv-channel:hover .live-tv-play-icon, .live-tv-channel:focus-visible .live-tv-play-icon {
  background: #a71946;
}
.live-tv-label { display: block; padding: 9px 11px 11px; }
.live-tv-label strong, .live-tv-label small { display: block; line-height: 1.35; overflow-wrap: anywhere; }
.live-tv-label strong { font-size: 14px; }
.live-tv-label small { margin-top: 3px; color: #c2bacd; font-size: 11px; }
.live-tv :is(button, a, input):focus-visible { outline: 2px solid #ffb2c4; outline-offset: 3px; }
.live-tv-player {
  width: min(980px, 94vw);
  max-height: 92dvh;
  padding: 16px;
  border-color: #36313f;
  background: #15131c;
}
.live-tv-player-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.live-tv-player-header h2 { margin: 0; }
.live-tv-close {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border: 1px solid #514557;
  border-radius: 50%;
  background: #24202d;
  color: #fff;
  font-size: 24px;
}
.live-tv-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #36313f; border-radius: 12px; background: #09090b; }
.live-tv-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.live-tv-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; text-align: center; background: radial-gradient(ellipse at 55% 8%, #4d2035, transparent 65%), #16131e; }
.live-tv-status { max-width: 35ch; margin: 0; color: #f3edf6; font-size: 14px; line-height: 1.5; }
.live-tv-status:empty { display: none; }
.live-tv-play { min-height: 44px; }
.live-tv-info { display: flex; justify-content: end; padding-top: 4px; }
.live-tv-source { display: inline-flex; align-items: center; min-height: 44px; color: #ffb2c4; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) { .live-tv-channels { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 850px) { .live-tv-channels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 660px) {
  .live-tv-heading { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .live-tv-search { width: 100%; }
  .live-tv-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .live-tv-player { padding: 12px; }
  .live-tv-player-header h2 { font-size: 18px; }
  .live-tv-label { padding: 8px; }
  .live-tv-label strong { font-size: 13px; }
}
@media (max-width: 480px) { .live-tv-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .live-tv-channel { transition: none; } }
