/* ─── Linear TV Studio — Public Player & Guide Styles ──────────────── */

/* ── Player ─────────────────────────────────────────────────────────── */
.ltv-player-root { display: block; }

.ltvp-wrap       { background: #0a0a0f; border-radius: 10px; overflow: hidden;
                   font-family: 'DM Mono','Courier New',monospace; color: #e0e0f0; }

.ltvp-screen     { position: relative; width: 100%; aspect-ratio: 16/9;
                   background: #000; overflow: hidden; }

.ltvp-embed      { width: 100%; height: 100%; border: none; display: block; }
.ltvp-video      { width: 100%; height: 100%; object-fit: contain; display: block; }

.ltvp-loading,
.ltvp-offline    { position: absolute; inset: 0; display: flex; flex-direction: column;
                   align-items: center; justify-content: center; gap: 12px;
                   background: linear-gradient(135deg, #0a0a1a, #101020); color: #666; font-size: 14px; }
.ltvp-offline    { font-size: 16px; text-align: center; gap: 8px; }
.ltvp-tv-icon    { font-size: 48px; }
.ltvp-offline-sub { font-size: 12px; color: #444; }

.ltvp-spinner    { width: 36px; height: 36px; border: 3px solid #222; border-top-color: #e63946;
                   border-radius: 50%; animation: ltvp-spin 0.8s linear infinite; }
@keyframes ltvp-spin { to { transform: rotate(360deg); } }

.ltvp-info       { display: flex; align-items: center; justify-content: space-between;
                   padding: 10px 14px; background: #111120; border-top: 1px solid #1e1e30; }
.ltvp-channel-name { font-size: 12px; font-weight: 700; color: #e63946; letter-spacing: 0.1em;
                     text-transform: uppercase; }
.ltvp-now-playing { font-size: 12px; color: #aaa; }
.ltvp-live-dot   { color: #e63946; animation: ltvp-blink 1.2s infinite; }
@keyframes ltvp-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.ltvp-upcoming   { padding: 6px 14px; background: #0d0d18; font-size: 11px; color: #555;
                   border-top: 1px solid #1a1a28; min-height: 28px; }
.ltvp-upcoming strong { color: #e0e0f0; }

/* ── TV Guide ───────────────────────────────────────────────────────── */
.ltv-guide-root  { display: block; }
.ltvg-wrap       { background: #111120; border-radius: 10px; overflow: hidden;
                   font-family: 'DM Mono','Courier New',monospace; }
.ltvg-loading    { padding: 24px; text-align: center; color: #666; font-family: inherit; }
.ltvg-error      { color: #e63946; padding: 14px; background: rgba(230,57,70,.08);
                   border-left: 4px solid #e63946; border-radius: 4px; }

.ltvg-tabs       { display: flex; gap: 0; background: #0d0d16; border-bottom: 1px solid #1e1e30; overflow-x: auto; }
.ltvg-tab        { flex: 1; min-width: 60px; padding: 10px 6px; background: transparent; border: none;
                   border-bottom: 2px solid transparent; color: #555; cursor: pointer;
                   font-size: 12px; font-family: inherit; font-weight: 700; letter-spacing: 0.08em;
                   text-align: center; transition: all 0.15s; }
.ltvg-tab.active,
.ltvg-tab:hover  { color: #fff; border-bottom-color: #e63946; }

.ltvg-days       { }
.ltvg-day        { display: none; padding: 8px; max-height: 500px; overflow-y: auto; }
.ltvg-day.active { display: block; }
.ltvg-empty      { text-align: center; color: #444; padding: 24px; font-size: 13px; }

.ltvg-block      { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
                   background: #0d0d18; border-radius: 6px; margin-bottom: 5px;
                   border-left: 3px solid transparent; transition: background 0.15s; }
.ltvg-block:hover { background: #1a1a28; }
.ltvg-block.ltvg-current { border-left-color: #e63946; background: #1a0d0d; }
.ltvg-time       { width: 52px; flex-shrink: 0; font-size: 12px; color: #777; font-weight: 600; }
.ltvg-icon       { font-size: 16px; flex-shrink: 0; }
.ltvg-title      { flex: 1; font-size: 13px; color: #e0e0f0; }
.ltvg-live       { padding: 2px 7px; background: #e63946; color: #fff; font-size: 10px;
                   font-weight: 700; border-radius: 3px; text-transform: uppercase; flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .ltvp-info       { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ltvg-tab        { padding: 8px 4px; font-size: 11px; }
  .ltvg-time       { width: 44px; font-size: 11px; }
  .ltvg-title      { font-size: 12px; }
}
