/* Live TV block for the content-library page. Colours and radii follow the
   site's ChannelLibrary styles so it reads as part of the same page. */
.ltv { position: relative; padding: 0 0 28px; scroll-margin-top: 96px; }
.ltv-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .ltv-wrap { padding: 0 28px; } }
@media (min-width: 1024px) { .ltv-wrap { padding: 0 40px; } }

.ltv-shell {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid rgb(255 255 255 / 8%); border-radius: 24px;
  background:
    radial-gradient(70% 50% at 0 0, rgb(255 90 31 / 14%), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgb(255 143 82 / 10%), transparent 60%),
    linear-gradient(180deg, #121214, #08080a);
  color: #fff;
  box-shadow: 0 40px 80px -48px rgb(10 10 10 / 70%), inset 0 1px 0 rgb(255 255 255 / 6%);
}

.ltv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ltv-kicker { color: #ff9a68; font-family: var(--font-mono), ui-monospace, monospace; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.ltv-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5a1f; box-shadow: 0 0 0 0 rgb(255 90 31 / 60%); animation: ltv-pulse 1.8s infinite; }
@keyframes ltv-pulse { 70% { box-shadow: 0 0 0 8px rgb(255 90 31 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(255 90 31 / 0%); } }
.ltv-title { margin: 6px 0 0; font-family: var(--font-display), inherit; font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.ltv-title em { font-style: normal; background: linear-gradient(135deg, #ff8f52, #f4511e 55%, #c22a05); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ltv-sub { margin: 6px 0 0; max-width: 620px; color: rgb(255 255 255 / 62%); font-size: 14px; line-height: 1.5; }

.ltv-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.ltv-countries[hidden] { display: none; }
.ltv-country { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 12px; background: rgb(255 255 255 / 4%); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.ltv-country img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / 15%); }
.ltv-country:hover { border-color: rgb(255 143 82 / 55%); background: rgb(255 106 43 / 10%); }
.ltv-country[aria-pressed="true"] { border-color: rgb(255 255 255 / 30%); background: linear-gradient(135deg, #ff8f52, #f4511e 55%, #c22a05); box-shadow: 0 14px 28px -18px rgb(244 81 30 / 85%); }

.ltv-body { display: grid; gap: 16px; }
@media (min-width: 1024px) { .ltv-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }

.ltv-panel { position: relative; min-width: 0; padding: 14px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 16px; background: rgb(255 255 255 / 3%); }

/* Player */
.ltv-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.ltv-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.ltv-overlay { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center;
  background: radial-gradient(80% 70% at 50% 40%, rgb(255 90 31 / 18%), transparent 70%), rgb(8 8 10 / 92%); }
.ltv-overlay[data-show="true"] { display: flex; }
.ltv-overlay-badge { padding: 3px 9px; border-radius: 6px; background: rgb(255 255 255 / 10%); color: #ff9a68; font-family: var(--font-mono), ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ltv-overlay-title { font-family: var(--font-display), inherit; font-size: clamp(16px, 2.2vw, 22px); font-weight: 750; letter-spacing: -.02em; }
.ltv-overlay-text { max-width: 440px; color: rgb(255 255 255 / 70%); font-size: 13.5px; line-height: 1.5; }
.ltv-overlay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }

.ltv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 999px;
  background: linear-gradient(135deg, #ff8f52, #f4511e 55%, #c22a05); color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 28px -16px rgb(244 81 30 / 85%), inset 0 1px 0 rgb(255 255 255 / 30%); transition: transform .2s ease; }
.ltv-btn:hover { transform: translateY(-1px); }
.ltv-btn--ghost { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 14%); box-shadow: none; }
.ltv-btn--ghost:hover { border-color: rgb(255 143 82 / 55%); background: rgb(255 106 43 / 10%); }

.ltv-unmute { position: absolute; top: 10px; right: 10px; z-index: 2; display: none; padding: 7px 12px; font-size: 12.5px; }
.ltv-unmute[data-show="true"] { display: inline-flex; }

.ltv-now { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ltv-now-meta { min-width: 0; flex: 1; }
.ltv-now-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-display), inherit; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.ltv-now-desc { margin-top: 3px; color: rgb(255 255 255 / 60%); font-size: 13px; line-height: 1.45; }
.ltv-status { margin-top: 8px; color: rgb(255 255 255 / 55%); font-size: 12px; }
.ltv-status[data-kind="error"] { color: #ff9a68; }

.ltv-guide { display: grid; gap: 6px; margin-top: 12px; }
.ltv-guide-head { display: flex; justify-content: space-between; gap: 8px; color: rgb(255 255 255 / 55%); font-family: var(--font-mono), ui-monospace, monospace; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ltv-prog { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 10px; background: rgb(255 255 255 / 3%); font-size: 13px; }
.ltv-prog[data-now="true"] { border-color: rgb(255 143 82 / 45%); background: rgb(255 106 43 / 9%); }
.ltv-prog-time { color: rgb(255 255 255 / 60%); font-family: var(--font-mono), ui-monospace, monospace; font-size: 12px; white-space: nowrap; }
.ltv-prog-title { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ltv-prog-genre { color: rgb(255 255 255 / 50%); font-size: 11.5px; }
.ltv-progress { grid-column: 1 / -1; height: 3px; overflow: hidden; border-radius: 3px; background: rgb(255 255 255 / 10%); }
.ltv-progress span { display: block; height: 100%; background: linear-gradient(90deg, #ff8f52, #f4511e); }

/* Channel list */
.ltv-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 12px; background: rgb(255 255 255 / 4%); }
.ltv-search:focus-within { border-color: rgb(255 143 82 / 55%); }
.ltv-search svg { flex-shrink: 0; color: rgb(255 255 255 / 50%); }
.ltv-search input { width: 100%; min-width: 0; padding: 11px 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; }
.ltv-search input::placeholder { color: rgb(255 255 255 / 45%); }

.ltv-chips { display: flex; gap: 6px; margin: 10px 0 12px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.ltv-chips::-webkit-scrollbar { display: none; }
.ltv-chip { flex-shrink: 0; padding: 7px 12px; border: 1px solid rgb(255 255 255 / 9%); border-radius: 999px; background: rgb(255 255 255 / 3%); color: rgb(255 255 255 / 80%); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.ltv-chip:hover { border-color: rgb(255 143 82 / 45%); background: rgb(255 106 43 / 10%); color: #fff; }
.ltv-chip[aria-pressed="true"] { border-color: rgb(255 255 255 / 28%); background: linear-gradient(135deg, #ff8f52, #f4511e 55%, #c22a05); color: #fff; }
.ltv-chip-count { margin-left: 6px; opacity: .7; font-family: var(--font-mono), ui-monospace, monospace; font-size: 11px; }

.ltv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 20%) transparent; }
.ltv-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid rgb(255 255 255 / 7%); border-radius: 12px; background: rgb(255 255 255 / 3%); color: #fff; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.ltv-card:hover { transform: translateY(-1px); border-color: rgb(255 143 82 / 45%); background: rgb(255 106 43 / 8%); }
.ltv-card[data-active="true"] { border-color: rgb(255 255 255 / 30%); background: linear-gradient(135deg, rgb(255 143 82 / 30%), rgb(244 81 30 / 22%) 55%, rgb(194 42 5 / 18%)); box-shadow: 0 12px 26px -18px rgb(244 81 30 / 85%); }
.ltv-card-top { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 18px; }
.ltv-logo { display: grid; flex-shrink: 0; width: 42px; height: 42px; place-items: center; overflow: hidden; border-radius: 10px; background: rgb(255 255 255 / 92%); color: #c22a05; font-family: var(--font-display), inherit; font-size: 13px; font-weight: 800; letter-spacing: -.02em; }
.ltv-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.ltv-logo[data-fallback="true"] { background: linear-gradient(135deg, #2a2a2e, #161618); color: #ff9a68; border: 1px solid rgb(255 255 255 / 10%); }
.ltv-logo--lg { width: 52px; height: 52px; font-size: 15px; border-radius: 12px; }
.ltv-card-name { overflow: hidden; font-size: 13.5px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ltv-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ltv-tag { padding: 2px 7px; border-radius: 5px; background: rgb(255 255 255 / 8%); color: rgb(255 255 255 / 72%); font-family: var(--font-mono), ui-monospace, monospace; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ltv-tag--free { background: rgb(34 197 94 / 16%); color: #6ee7a0; }
.ltv-tag--sub { background: rgb(255 154 104 / 14%); color: #ff9a68; }
.ltv-tag--geo[data-geo="worldwide"] { background: rgb(96 165 250 / 15%); color: #93c5fd; }
.ltv-tag--geo[data-geo$="-only"] { background: rgb(250 204 21 / 13%); color: #fde68a; }
.ltv-tag--live { display: inline-flex; align-items: center; gap: 5px; background: rgb(255 90 31 / 18%); color: #ffb08a; }
.ltv-fav { position: absolute; top: 6px; right: 6px; display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: rgb(255 255 255 / 40%); cursor: pointer; }
.ltv-fav:hover { color: #fff; background: rgb(255 255 255 / 8%); }
.ltv-fav[aria-pressed="true"] { color: #ffb020; }

.ltv-more { justify-content: center; align-items: flex-start; text-decoration: none; border-style: dashed; border-color: rgb(255 143 82 / 40%); background: rgb(255 106 43 / 6%); }
.ltv-more-count { font-family: var(--font-display), inherit; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #ff9a68; }
.ltv-more-text { color: rgb(255 255 255 / 65%); font-size: 12px; line-height: 1.4; }
.ltv-empty { grid-column: 1 / -1; padding: 28px 10px; color: rgb(255 255 255 / 55%); font-size: 13.5px; text-align: center; }

/* "Watch live" button added to matching rows in the existing library */
.ltv-row-play { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 11px; border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px;
  background: linear-gradient(135deg, #ff8f52, #f4511e 55%, #c22a05); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.ltv-row-play:hover { filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) { .ltv-dot { animation: none; } .ltv-card, .ltv-btn { transition: none; } }
