/* FWD Live TV Channels — Guide v13.1.0 */

@media (min-width: 769px) {
    .ltv-desktop-no-overlay { display: none !important; }
}

/* ── Skip-to-content link (WCAG 2.4.1) ──
   All styles applied via JS focus/blur handlers (inline script in wp_head).
   CSS kept minimal as fallback only. */

/* ── Mini mode overlay hide (set via JS class on mainScreen) ── */
.ltv-mini-overlay-hidden .ltv-overlay,
.ltv-mini-overlay-hidden .ltv-overlay-now,
.ltv-mini-overlay-hidden .ltv-overlay-next {
    display: none !important;
    pointer-events: none !important;
}
/* Now-playing bar is hidden via JS in activate(), not CSS siblings,
   because setMinimized() moves mainScreen out of the original DOM tree. */

/* ── Hide FWD UVP tooltips in mini mode ──
   Tooltip text ("fullscreen / normalscreen") expands button offsetWidth,
   causing positionButtons() to recalculate and squeeze the scrubber. */
.ltv-mini-active .UVP-tooltip-bk {
    display: none !important;
}

/* Prevent Zox News .mvp-logo-title from becoming visible after PJAX.
   The theme hides it with font-size:0px but PJAX style sync can break this. */
h1.mvp-logo-title,
h2.mvp-logo-title {
    font-size: 0px !important;
}

/* Give the controller bar a small right inset so the fullscreen button
   isn't clipped at the edge of the 480px miniplayer. */
.ltv-mini-active [class*="UVP"][class*="controller"] {
    padding-right: 6px !important;
}

/* ── Controller bar "Channels" button ── */
.ltv-ctrl-channels-btn {
    padding: 0 2px;
}

.ltv-ctrl-channels-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-channels-btn:hover .ltv-ctrl-channels-label {
    color: #fff;
}

/* ── Controller bar "Home" button ── */
.ltv-ctrl-home-btn {
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ltv-ctrl-home-icon {
    display: inline-flex;
    align-items: center;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-home-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-home-btn:hover .ltv-ctrl-home-icon,
.ltv-ctrl-home-btn:hover .ltv-ctrl-home-label {
    color: #fff;
}

/* ── Controller bar "Ticker Toggle" button ── */
.ltv-ctrl-ticker-btn {
    padding: 0 2px;
}

.ltv-ctrl-ticker-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s, opacity 0.2s;
    pointer-events: none;
    border-bottom: 2px solid #4285f4;
    padding-bottom: 1px;
}

.ltv-ctrl-ticker-btn:hover .ltv-ctrl-ticker-label {
    color: #fff;
}

.ltv-ctrl-ticker-btn.ltv-ticker-btn-off .ltv-ctrl-ticker-label {
    color: #666;
    border-bottom-color: transparent;
    text-decoration: line-through;
    text-decoration-color: #666;
}

.ltv-ctrl-ticker-btn.ltv-ticker-btn-off:hover .ltv-ctrl-ticker-label {
    color: #999;
}

/* ── Controller bar "Article" button ── */
.ltv-ctrl-article-btn {
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ltv-ctrl-article-icon {
    display: inline-flex;
    align-items: center;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-article-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-article-btn:hover .ltv-ctrl-article-icon,
.ltv-ctrl-article-btn:hover .ltv-ctrl-article-label {
    color: #fff;
}

.ltv-ctrl-article-btn.ltv-article-disabled {
    opacity: 0.35;
    cursor: default;
}

.ltv-ctrl-article-btn.ltv-article-disabled:hover .ltv-ctrl-article-icon,
.ltv-ctrl-article-btn.ltv-article-disabled:hover .ltv-ctrl-article-label {
    color: #999;
}

/* ── Controller bar "Search" button ── */
.ltv-ctrl-search-btn {
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
}

.ltv-ctrl-search-icon {
    display: inline-flex;
    align-items: center;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-search-btn:hover .ltv-ctrl-search-icon {
    color: #fff;
}

/* ══════════════════════════════════════
   NOW-PLAYING BAR
   ══════════════════════════════════════ */
.ltv-now-playing-bar {
    background: #141414;
    padding: 8px 16px;
    border-top: 1px solid #222;
}
.ltv-now-playing-line1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.ltv-now-playing-channel-title {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.ltv-now-playing-time {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ltv-now-playing-desc {
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 560px) {
    .ltv-now-playing-bar { padding: 6px 10px; }
    .ltv-now-playing-channel-title { font-size: 12px; }
    .ltv-now-playing-desc { font-size: 11px; }
}

/* ══════════════════════════════════════
   SEARCH OVERLAY
   ══════════════════════════════════════ */
.ltv-search-overlay {
    position: absolute;
    inset: 0;
    z-index: 2147483646;
    background: rgba(10, 10, 10, 0.97);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ddd;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

.ltv-search-overlay.ltv-search-open {
    opacity: 1;
    pointer-events: auto;
}

.ltv-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.ltv-search-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #eee;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ltv-search-input:focus {
    border-color: #4285f4;
}

.ltv-search-input::placeholder {
    color: #666;
}

.ltv-search-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #999;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.ltv-search-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ltv-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.ltv-search-results::-webkit-scrollbar {
    width: 5px;
}

.ltv-search-results::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.ltv-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.ltv-search-result:hover {
    background: rgba(255, 255, 255, 0.06);
}

.ltv-search-thumb {
    width: 80px;
    height: 45px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    background: #1a1a1a;
}

.ltv-search-info {
    flex: 1;
    min-width: 0;
}

.ltv-search-title {
    font-size: 13px;
    font-weight: 500;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.ltv-search-meta {
    font-size: 11px;
    color: #777;
}
.ltv-search-desc {
    color: #999;
    font-size: 11px;
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ltv-search-empty {
    padding: 24px 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

@media (max-width: 560px) {
    .ltv-search-header {
        padding: 12px;
    }
    .ltv-search-input {
        font-size: 13px;
        padding: 8px 10px;
    }
    .ltv-search-result {
        padding: 6px 12px;
    }
    .ltv-search-thumb {
        width: 60px;
        height: 34px;
    }
    .ltv-search-title {
        font-size: 12px;
    }
}

/* ── Channels Button Style: Pill Gold ── */
.ltv-btn-pill-gold {
    background: #FFDE2B;
    border-radius: 12px;
    padding: 3px 12px !important;
}
.ltv-btn-pill-gold .ltv-ctrl-channels-label,
.ltv-btn-pill-gold .ltv-ctrl-home-label,
.ltv-btn-pill-gold .ltv-ctrl-home-icon,
.ltv-btn-pill-gold .ltv-ctrl-article-label,
.ltv-btn-pill-gold .ltv-ctrl-article-icon,
.ltv-btn-pill-gold .ltv-ctrl-search-icon {
    color: #111;
    font-weight: 700;
}
.ltv-btn-pill-gold:hover .ltv-ctrl-channels-label,
.ltv-btn-pill-gold:hover .ltv-ctrl-home-label,
.ltv-btn-pill-gold:hover .ltv-ctrl-home-icon,
.ltv-btn-pill-gold:hover .ltv-ctrl-article-label,
.ltv-btn-pill-gold:hover .ltv-ctrl-article-icon,
.ltv-btn-pill-gold:hover .ltv-ctrl-search-icon {
    color: #333;
}

/* ── Channels Button Style: Pill Blue ── */
/* ── Accessibility Blue — standard a11y icon color ── */
.ltv-btn-pill-a11y {
    background: #0065bd;
    border: 1px solid #4a9eed;
    border-radius: 12px;
    padding: 3px 12px !important;
}
.ltv-btn-pill-a11y .ltv-ctrl-access-label,
.ltv-btn-pill-a11y .ltv-ctrl-access-icon {
    color: #fff;
}
.ltv-btn-pill-a11y:hover {
    background: #0078d4;
}
.ltv-btn-pill-a11y .ltv-ctrl-access-icon svg path {
    fill: #fff;
}

.ltv-btn-pill-blue {
    background: #1e3a5f;
    border: 1px solid #4285f4;
    border-radius: 12px;
    padding: 3px 12px !important;
}
.ltv-btn-pill-blue .ltv-ctrl-channels-label,
.ltv-btn-pill-blue .ltv-ctrl-home-label,
.ltv-btn-pill-blue .ltv-ctrl-home-icon,
.ltv-btn-pill-blue .ltv-ctrl-article-label,
.ltv-btn-pill-blue .ltv-ctrl-article-icon,
.ltv-btn-pill-blue .ltv-ctrl-search-icon {
    color: #fff;
}
.ltv-btn-pill-blue:hover {
    background: #2a4a70;
}

/* ── Channels Button Style: Glow Pulse ── */
.ltv-btn-glow-pulse .ltv-ctrl-channels-label,
.ltv-btn-glow-pulse .ltv-ctrl-home-label,
.ltv-btn-glow-pulse .ltv-ctrl-home-icon,
.ltv-btn-glow-pulse .ltv-ctrl-article-label,
.ltv-btn-glow-pulse .ltv-ctrl-article-icon,
.ltv-btn-glow-pulse .ltv-ctrl-search-icon {
    color: #FFDE2B;
    text-shadow: 0 0 8px #FFDE2B, 0 0 16px rgba(255, 222, 43, 0.4);
    animation: ltv-glow-pulse 2s ease-in-out infinite;
}
@keyframes ltv-glow-pulse {
    0%, 100% { text-shadow: 0 0 8px #FFDE2B, 0 0 16px rgba(255, 222, 43, 0.4); }
    50% { text-shadow: 0 0 12px #FFDE2B, 0 0 24px rgba(255, 222, 43, 0.6); }
}

/* ── Channels Button Style: Neon Outline ── */
.ltv-btn-neon-outline {
    border: 1px solid #0ff;
    border-radius: 12px;
    padding: 3px 12px !important;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.4), inset 0 0 6px rgba(0, 255, 255, 0.1);
}
.ltv-btn-neon-outline .ltv-ctrl-channels-label,
.ltv-btn-neon-outline .ltv-ctrl-home-label,
.ltv-btn-neon-outline .ltv-ctrl-home-icon,
.ltv-btn-neon-outline .ltv-ctrl-article-label,
.ltv-btn-neon-outline .ltv-ctrl-article-icon,
.ltv-btn-neon-outline .ltv-ctrl-search-icon {
    color: #0ff;
}
.ltv-btn-neon-outline:hover {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6), inset 0 0 8px rgba(0, 255, 255, 0.15);
}

/* ── Channels Button Style: Live Badge ── */
.ltv-btn-live-badge {
    background: #c00;
    border-radius: 4px;
    padding: 3px 10px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.ltv-btn-live-badge .ltv-ctrl-channels-label,
.ltv-btn-live-badge .ltv-ctrl-home-label,
.ltv-btn-live-badge .ltv-ctrl-home-icon,
.ltv-btn-live-badge .ltv-ctrl-article-label,
.ltv-btn-live-badge .ltv-ctrl-article-icon,
.ltv-btn-live-badge .ltv-ctrl-search-icon {
    color: #fff;
    font-weight: 700;
}
.ltv-btn-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: ltv-badge-pulse 1.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ltv-badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.ltv-btn-live-badge:hover {
    background: #e00;
}

/* ── Channels Button Style: Gradient ── */
.ltv-btn-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    padding: 3px 12px !important;
}
.ltv-btn-gradient .ltv-ctrl-channels-label,
.ltv-btn-gradient .ltv-ctrl-home-label,
.ltv-btn-gradient .ltv-ctrl-home-icon,
.ltv-btn-gradient .ltv-ctrl-article-label,
.ltv-btn-gradient .ltv-ctrl-article-icon,
.ltv-btn-gradient .ltv-ctrl-search-icon {
    color: #fff;
    font-weight: 600;
}
.ltv-btn-gradient:hover {
    background: linear-gradient(135deg, #7b93f5, #8b5fbf);
}

/* ── EPG Guide overlay ── */
.ltv-guide {
    position: absolute;
    inset: 0;
    z-index: 2147483647;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ddd;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

.ltv-guide.ltv-guide-open {
    opacity: 1;
    pointer-events: auto;
}


/* ── Main layout: sidebar + content ── */
.ltv-guide-layout {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ── Left sidebar (categories) ── */
.ltv-guide-sidebar {
    width: 160px;
    min-width: 160px;
    background: #0a0a0a;
    border-right: 1px solid #1a1a1a;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 12px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.ltv-guide-sidebar::-webkit-scrollbar {
    width: 4px;
}

.ltv-guide-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

/* ── Player logo in sidebar ── */
.ltv-guide-sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 4px;
}

.ltv-guide-sidebar-logo img {
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.ltv-guide-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
}

.ltv-guide-cat:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ltv-guide-cat-active {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: #FFDE2B;
}

.ltv-guide-cat-active:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ltv-guide-cat-label {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ltv-guide-cat-active .ltv-guide-cat-label {
    color: #fff;
    font-weight: 600;
}

/* ── Right content area ── */
.ltv-guide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ── Close button ── */
.ltv-guide-close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.ltv-guide-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ── Category title bar ── */
.ltv-guide-cat-title-bar {
    padding: 10px 16px 6px;
    flex-shrink: 0;
}

.ltv-guide-cat-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

/* ── Time header row ── */
.ltv-guide-header {
    display: flex;
    align-items: center;
    padding: 0 0 6px;
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.ltv-guide-header-ch {
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;
}

.ltv-guide-header-col {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    padding: 6px 12px;
    text-align: center;
}

.ltv-guide-header-now {
    color: #FFDE2B;
    font-weight: 700;
}

/* ── Scrollable rows area ── */
.ltv-guide-rows {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.ltv-guide-rows::-webkit-scrollbar {
    width: 5px;
}

.ltv-guide-rows::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* ── Channel row ── */
.ltv-guide-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #141414;
    cursor: pointer;
    transition: background 0.15s;
    min-height: 68px;
}

.ltv-guide-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Keyboard focus outlines for guide navigation (WCAG 2.1.1).
   Use :focus-visible so outlines only appear for keyboard nav,
   not mouse clicks (prevents blue flash on channel switch). */
.ltv-guide-row:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: -2px;
    background: rgba(66, 133, 244, 0.08);
}
.ltv-guide-row:focus:not(:focus-visible):not(.ltv-guide-row-active) {
    outline: none;
    background: none;
}
.ltv-guide-cell:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: -2px;
    background: rgba(66, 133, 244, 0.1);
}
.ltv-guide-cell:focus:not(:focus-visible) {
    outline: none;
    background: none;
}

.ltv-guide-row-active {
    background: rgba(255, 222, 43, 0.04);
    outline: 2px solid #FFDE2B;
    outline-offset: -2px;
}

.ltv-guide-row-active:hover {
    background: rgba(255, 222, 43, 0.07);
}

/* ── Channel info column ── */
.ltv-guide-ch {
    width: 110px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-right: 1px solid #141414;
    flex-shrink: 0;
    position: relative;
}

.ltv-guide-ch-num {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 10px;
    font-weight: 500;
    color: #555;
}

.ltv-guide-ch-logo-wrap {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.ltv-guide-ch-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ltv-guide-ch-letter {
    font-size: 20px;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ltv-guide-ch-name {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* ── Program cells (Now / Next / Later) ── */
.ltv-guide-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 12px;
    border-right: 1px solid #111;
    min-width: 0;
}

.ltv-guide-cell:last-child {
    border-right: none;
}

/* Cells with thumbnails: horizontal layout */
.ltv-guide-cell-now,
.ltv-guide-cell-upcoming {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.ltv-guide-cell-now {
    background: rgba(255, 255, 255, 0.02);
}

.ltv-guide-row-active .ltv-guide-cell-now {
    background: rgba(255, 222, 43, 0.05);
}

.ltv-guide-cell-thumb {
    width: 80px;
    height: 52px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    background: #1a1a1a;
}

.ltv-guide-cell-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ltv-guide-cell-title {
    font-size: 13px;
    font-weight: 500;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.ltv-guide-cell-meta {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.ltv-guide-row-active .ltv-guide-cell-meta {
    color: #a89050;
}

/* ── Progress bar ── */
.ltv-guide-progress {
    height: 3px;
    background: #2a2a2a;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    max-width: 180px;
}

.ltv-guide-progress-fill {
    height: 100%;
    background: #FFDE2B;
    border-radius: 2px;
    transition: width 1s linear;
}

/* ── Multi-channel wrapper ── */
.fwduvp-live-tv-multi {
    overflow: visible !important;
}

/* ── Loading state ── */
.ltv-channel-loading .fwduvp-live-tv-wrap {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ══════════════════════════════════════
   TAB BAR (Guide / Timeline)
   ══════════════════════════════════════ */
.ltv-guide-tabs {
    display: flex;
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
    padding: 0 40px 0 0;
}

.ltv-guide-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.ltv-guide-tab:hover {
    color: #aaa;
}

.ltv-guide-tab-active {
    color: #FFDE2B;
    border-bottom-color: #FFDE2B;
}

/* ── Guide View wrapper ── */
.ltv-guide-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ══════════════════════════════════════
   TIMELINE VIEW (horizontal EPG grid)
   ══════════════════════════════════════ */
.ltv-guide-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Shared time header (universal stretched axis) ── */
.ltv-guide-tl-header {
    display: flex;
    height: 32px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.ltv-guide-tl-ch-spacer {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    background: #0e0e0e;
    border-right: 1px solid #222;
}

.ltv-guide-tl-time-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    background: #0a0a0a;
}

.ltv-guide-tl-time-scroll::-webkit-scrollbar {
    display: none;
}

.ltv-guide-tl-time-inner {
    position: relative;
    height: 100%;
}

/* Each tick spans the slot region it labels on the universal axis. */
.ltv-guide-tl-time-tick {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #bbb;
    white-space: nowrap;
    border-left: 2px solid #2a2a2a;
    box-sizing: border-box;
    overflow: hidden;
}

.ltv-guide-tl-time-tick.ltv-guide-tl-time-tick-now {
    color: #FFDE2B;
    border-left-color: #FFDE2B;
}

.ltv-guide-tl-now-marker {
    position: absolute;
    top: 22px;
    transform: translateX(-5px);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #FFDE2B;
    z-index: 5;
    pointer-events: none;
}

/* Per-row scrollable slots area (synced with shared header). */
.ltv-guide-tl-slots-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #333 #111;
}

.ltv-guide-tl-slots-scroll::-webkit-scrollbar {
    height: 3px;
}

.ltv-guide-tl-slots-scroll::-webkit-scrollbar-track {
    background: #111;
}

.ltv-guide-tl-slots-scroll::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

/* ── Timeline body (scrollable vertically) ── */
.ltv-guide-tl-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.ltv-guide-tl-body::-webkit-scrollbar {
    width: 5px;
}

.ltv-guide-tl-body::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

/* ── Timeline channel rows ── */
.ltv-guide-tl-row {
    display: flex;
    border-bottom: 1px solid #1a1a1a;
    min-height: 72px;
}

.ltv-guide-tl-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Timeline channel info column (sticky, holds NOW-PLAYING title) ── */
.ltv-guide-tl-ch {
    width: 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    background: #0e0e0e;
    border-right: 1px solid #222;
    flex-shrink: 0;
    overflow: hidden;
}

.ltv-guide-tl-ch-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ltv-guide-tl-ch-live {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(200, 168, 56, 0.08);
    border-left: 2px solid #c8a838;
    border-radius: 2px;
    min-width: 0;
}

.ltv-guide-tl-ch-live-label {
    font-size: 9px;
    font-weight: 700;
    color: #c8a838;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ltv-guide-tl-ch-live-title {
    font-size: 11px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-width: 0;
}

.ltv-guide-tl-ch-num {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    min-width: 18px;
    text-align: right;
    flex-shrink: 0;
}

.ltv-guide-tl-ch-logo {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    object-fit: contain;
    background: #1a1a1a;
    flex-shrink: 0;
}

.ltv-guide-tl-ch-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background: #1a1a1a;
    color: #eee;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
    padding: 2px;
}

.ltv-guide-tl-ch-name {
    font-size: 11px;
    font-weight: 600;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ltv-guide-tl-slots-area {
    position: relative;
    min-width: 100%;
    height: 100%;
    min-height: 56px;
}

/* ── Timeline slot blocks ── */
.ltv-guide-tl-slot {
    position: absolute;
    top: 4px;
    bottom: 4px;
    background: #1a1a1a;
    border-radius: 3px;
    padding: 4px 10px;
    overflow: hidden;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, z-index 0s;
    box-sizing: border-box;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
}

.ltv-guide-tl-slot:hover {
    background: #222;
    border-color: #3a3a3a;
    z-index: 50;
}

.ltv-guide-tl-slot.ltv-guide-tl-now {
    border-color: #c8a838;
    color: #fff;
    z-index: 5;
}

.ltv-guide-tl-slot.ltv-guide-tl-now:hover {
    background: #222;
    z-index: 50;
}

.ltv-guide-tl-slot.ltv-guide-tl-past {
    opacity: 0.35;
}

/* Start time label — always visible at the top, clipped to slot box */
.ltv-guide-tl-slot-time {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1;
    margin-bottom: 2px;
}

/* Video title — slot box is stretched in JS to fit the full title width. */
.ltv-guide-tl-slot-title {
    font-size: 12px;
    font-weight: 500;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 1),
        -1px -1px 3px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 0.9);
}

/* ── Now-slot title style variants (data-title-style on .fwduvp-live-tv-wrap) ── */

/* Gold tint (default) */
[data-title-style="gold"] .ltv-guide-tl-now .ltv-guide-tl-slot-title {
    color: #a89050;
    font-weight: 400;
    text-shadow: none;
}

/* Subtle gray */
[data-title-style="gray"] .ltv-guide-tl-now .ltv-guide-tl-slot-title {
    color: #555;
    font-weight: 400;
    text-shadow: none;
}

/* Italic dimmed */
[data-title-style="italic"] .ltv-guide-tl-now .ltv-guide-tl-slot-title {
    color: #4a4a4a;
    font-weight: 400;
    font-style: italic;
    text-shadow: none;
}

/* Gradient reveal */
@keyframes ltv-tl-gradient-reveal {
    0%   { background-position: -200% center; }
    100% { background-position: 0% center; }
}

[data-title-style="gradient"] .ltv-guide-tl-now .ltv-guide-tl-slot-title {
    font-weight: 400;
    color: transparent;
    text-shadow: none;
    background: linear-gradient(90deg, #a89050 0%, #a89050 40%, transparent 100%);
    background-size: 200% 100%;
    background-position: 0% center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ltv-tl-gradient-reveal 1.2s ease-out forwards;
}


.ltv-guide-tl-slot-desc {
    color: #999;
    font-size: 10px;
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Timeline progress bar ── */
.ltv-guide-tl-progress {
    margin-top: 4px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    overflow: hidden;
}

.ltv-guide-tl-progress-fill {
    height: 100%;
    background: #c8a838;
    border-radius: 1px;
}

.ltv-guide-tl-time-left {
    font-size: 9px;
    color: #c8a838;
    display: inline;
    margin-left: 8px;
    white-space: nowrap;
}

/* ── Timeline now line ── */
.ltv-guide-tl-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #c8a838;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(200, 168, 56, 0.4);
}

/* ── Responsive ── */
@media (max-width: 800px) {
    .ltv-guide-sidebar {
        width: 120px;
        min-width: 120px;
    }

    .ltv-guide-cat {
        padding: 10px 12px;
    }

    .ltv-guide-cat-label {
        font-size: 12px;
    }

    .ltv-guide-ch {
        width: 90px;
        min-width: 90px;
        padding: 6px 4px;
    }

    .ltv-guide-header-ch {
        width: 90px;
        min-width: 90px;
    }

    .ltv-guide-ch-logo-wrap {
        width: 40px;
        height: 40px;
    }

    .ltv-guide-ch-num {
        font-size: 11px;
        min-width: 18px;
    }

    .ltv-guide-cell-thumb {
        width: 60px;
        height: 40px;
    }

    .ltv-guide-cell-title {
        font-size: 12px;
    }

    .ltv-guide-cell-meta {
        font-size: 10px;
    }

    /* Timeline responsive (tablet) */
    .ltv-guide-tl-ch-spacer,
    .ltv-guide-tl-ch {
        width: 200px;
        min-width: 200px;
    }
    .ltv-guide-tl-ch-live-title { font-size: 10px; }

    .ltv-guide-tl-ch-logo {
        width: 28px;
        height: 28px;
    }

    .ltv-guide-tl-ch-letter {
        width: 28px;
        height: 28px;
        font-size: 8px;
    }
}

/* ── Responsive: Mobile ── */
@media (max-width: 560px) {
    /* Hide sidebar entirely on mobile */
    .ltv-guide-sidebar {
        display: none;
    }

    /* Category title serves as the only category indicator */
    .ltv-guide-cat-title-bar {
        padding: 8px 12px 4px;
    }

    .ltv-guide-cat-title {
        font-size: 13px;
    }

    /* Hide Next/Later columns — show only Now */
    .ltv-guide-header-col:not(.ltv-guide-header-now) {
        display: none;
    }

    .ltv-guide-cell:not(.ltv-guide-cell-now) {
        display: none !important;
    }

    /* Now header takes full width */
    .ltv-guide-header-now {
        text-align: left;
        padding-left: 8px;
    }

    .ltv-guide-header {
        padding: 0 0 4px;
    }

    /* Channel column: compact */
    .ltv-guide-ch {
        width: 56px;
        min-width: 56px;
        padding: 6px;
        gap: 0;
        flex-direction: column;
        align-items: center;
    }

    .ltv-guide-header-ch {
        width: 56px;
        min-width: 56px;
    }

    .ltv-guide-ch-num {
        display: none;
    }

    .ltv-guide-ch-logo-wrap {
        width: 40px;
        height: 40px;
    }

    /* Now cell: full width, horizontal with thumbnail */
    .ltv-guide-cell-now {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        border-right: none;
    }

    .ltv-guide-cell-thumb {
        width: 64px;
        height: 42px;
    }

    .ltv-guide-cell-title {
        font-size: 12px;
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .ltv-guide-cell-meta {
        font-size: 10px;
    }

    .ltv-guide-progress {
        max-width: none;
    }

    /* Row height */
    .ltv-guide-row {
        min-height: 56px;
    }

    /* Close button */
    .ltv-guide-close {
        top: 6px;
        right: 8px;
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .ltv-ctrl-channels-label {
        font-size: 10px;
    }

    /* Timeline responsive (mobile) — NOW PLAYING line hidden, narrow column */
    .ltv-guide-tl-ch-spacer,
    .ltv-guide-tl-ch {
        width: 56px;
        min-width: 56px;
        padding: 4px;
    }

    .ltv-guide-tl-ch-num,
    .ltv-guide-tl-ch-name,
    .ltv-guide-tl-ch-live {
        display: none;
    }

    .ltv-guide-tl-ch-logo {
        width: 28px;
        height: 28px;
    }

    .ltv-guide-tl-ch-letter {
        width: 28px;
        height: 28px;
    }

    .ltv-guide-tl-slot {
        padding: 4px 6px;
    }

    .ltv-guide-tl-slot-title {
        font-size: 10px;
    }

    .ltv-guide-tab {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════
   NEWS TICKER — overlays bottom of video player
   ══════════════════════════════════════ */
/* ── Base ticker ── */
.ltv-ticker {
    background: rgba(0, 0, 0, 0.75);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 36px;
    line-height: 36px;
    font-family: "Helvetica Neue Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* Ticker overlay — sits inside videoHolder_do at the bottom of the player.
   Hidden when controls are visible, fades in when controls auto-hide. */
.ltv-ticker.ltv-ticker-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: auto;
    transition: opacity 0.8s ease;
    /* Keep ticker below the volume scrubber popup so users can adjust volume. */
    z-index: 0;
}

/* Hidden while volume scrubber popup is open — composes with other hide classes. */
.ltv-ticker-vol-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

.ltv-ticker.ltv-ticker-hidden {
    opacity: 0;
    pointer-events: none;
}

/* User-dismissed ticker (via close button). */
.ltv-ticker.ltv-ticker-user-hidden,
.ltv-controls-ticker.ltv-ticker-user-hidden {
    display: none !important;
}

/* Ticker dismiss button. */
.ltv-ticker-dismiss {
    position: absolute;
    top: 2px;
    right: 4px;
    z-index: 10;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 5px;
    transition: color 0.2s;
}
.ltv-ticker-dismiss:hover {
    color: #fff;
}

/* Controls ticker — clone above control bar, fades WITH controls.
   Visible when controls are shown, hidden when they auto-hide. */
.ltv-controls-ticker {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 9998;
    pointer-events: auto;
    transition: opacity 0.4s ease;
}

.ltv-controls-ticker.ltv-controls-ticker-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Badge — sits on top of the scrolling area, text scrolls behind it */
.ltv-ticker-badge {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: none;
    white-space: nowrap;
}

.ltv-ticker-track {
    display: inline-flex;
    animation: ltv-ticker-scroll var(--ltv-ticker-dur, 30s) linear infinite;
}

.ltv-ticker-track:hover {
    animation-play-state: paused;
}

.ltv-ticker-item {
    color: #fff;
    padding: 0 6px;
    flex-shrink: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.5);
}

.ltv-ticker-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.5);
}

.ltv-ticker-link:hover {
    color: #ffe066;
    text-decoration: underline;
}

.ltv-ticker-sep {
    color: rgba(255, 255, 255, 0.35);
    padding: 0 16px;
    flex-shrink: 0;
    font-size: 8px;
}

@keyframes ltv-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   TICKER DESIGN PRESETS
   ══════════════════════════════════════════════ */

/* ── Classic: opaque dark bar, yellow links — the original ticker ── */
.ltv-ticker.ltv-ticker-classic {
    background: rgba(0, 0, 0, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    height: 32px;
    line-height: 32px;
}
/* Badge hidden by default for classic — JS shows it when custom badge is set */
.ltv-ticker.ltv-ticker-classic .ltv-ticker-badge {
    display: none;
    background: #333;
    border-right: 1px solid #555;
}
.ltv-ticker.ltv-ticker-classic .ltv-ticker-item {
    color: #ddd;
    text-shadow: none;
}
.ltv-ticker.ltv-ticker-classic .ltv-ticker-link {
    color: #FFDE2B;
    text-shadow: none;
}
.ltv-ticker.ltv-ticker-classic .ltv-ticker-sep { color: #555; }

/* ── Broadcast (default): semi-transparent dark glass.
       Video bleeds through. No badge — clean crawl. ── */
.ltv-ticker.ltv-ticker-broadcast {
    background: rgba(15, 15, 15, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
}
/* Badge hidden by default for broadcast — JS shows it when custom badge is set */
.ltv-ticker.ltv-ticker-broadcast .ltv-ticker-badge {
    display: none;
    background: rgba(15, 15, 15, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── CNN style: dark bar, red top line, red BREAKING NEWS badge ── */
.ltv-ticker.ltv-ticker-news {
    background: rgba(12, 12, 12, 0.92);
    border-top: 3px solid #cc0000;
    padding-left: 150px;
}
.ltv-ticker.ltv-ticker-news .ltv-ticker-badge {
    width: 150px;
    background: #cc0000;
    border-right: 2px solid rgba(255, 255, 255, 0.15);
    font-size: 11px;
    letter-spacing: 1.5px;
}
.ltv-ticker.ltv-ticker-news .ltv-ticker-link { color: #ff6666; }

/* ── Fox style: dark bar, blue top line, blue ALERT badge ── */
.ltv-ticker.ltv-ticker-breaking {
    background: rgba(10, 10, 18, 0.93);
    border-top: 3px solid #003580;
    padding-left: 90px;
}
.ltv-ticker.ltv-ticker-breaking .ltv-ticker-badge {
    width: 90px;
    background: linear-gradient(to bottom, #004ecb, #003580);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    letter-spacing: 2px;
}
.ltv-ticker.ltv-ticker-breaking .ltv-ticker-link { color: #80b3ff; }

/* ── Minimal: barely-there transparent strip, no badge, normal case ── */
.ltv-ticker.ltv-ticker-minimal {
    background: rgba(0, 0, 0, 0.45);
    border-top: none;
    height: 30px;
    line-height: 30px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
/* Badge hidden by default for minimal — JS shows it when custom badge is set */
.ltv-ticker.ltv-ticker-minimal .ltv-ticker-badge {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.ltv-ticker.ltv-ticker-minimal .ltv-ticker-item {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}
.ltv-ticker.ltv-ticker-minimal .ltv-ticker-link {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}
.ltv-ticker.ltv-ticker-minimal .ltv-ticker-sep { color: rgba(255, 255, 255, 0.2); }

/* ── Gold: dark bar, gold top line, gold LIVE badge ── */
.ltv-ticker.ltv-ticker-gold {
    background: rgba(10, 8, 2, 0.9);
    border-top: 2px solid #c8a838;
    padding-left: 72px;
}
.ltv-ticker.ltv-ticker-gold .ltv-ticker-badge {
    width: 72px;
    background: linear-gradient(to bottom, #dab840, #a08020);
    color: #1a1400;
    font-size: 12px;
    letter-spacing: 2px;
    border-right: 1px solid rgba(200, 168, 56, 0.3);
}
.ltv-ticker.ltv-ticker-gold .ltv-ticker-item { color: #e0e0e0; }
.ltv-ticker.ltv-ticker-gold .ltv-ticker-link { color: #c8a838; }
.ltv-ticker.ltv-ticker-gold .ltv-ticker-sep { color: #c8a838; font-size: 8px; }

/* ── Deals: dark bar, green top line, green HOT DEALS badge ── */
.ltv-ticker.ltv-ticker-deals {
    background: rgba(8, 16, 8, 0.9);
    border-top: 2px solid #4caf50;
    padding-left: 105px;
}
.ltv-ticker.ltv-ticker-deals .ltv-ticker-badge {
    width: 105px;
    background: linear-gradient(to bottom, #43a047, #2e7d32);
    font-size: 10px;
    letter-spacing: 1.5px;
    border-right: 1px solid rgba(76, 175, 80, 0.3);
}
.ltv-ticker.ltv-ticker-deals .ltv-ticker-item { color: #e0e0e0; }
.ltv-ticker.ltv-ticker-deals .ltv-ticker-link { color: #81c784; }
.ltv-ticker.ltv-ticker-deals .ltv-ticker-sep { color: #4caf50; font-size: 8px; }

/* ── Channel 9: Professional broadcast lower-third — blue/red two-tone ── */
.ltv-ticker.ltv-ticker-channel9 {
    background: linear-gradient(to right, #0d1b3e 0%, #162d5a 100%);
    border-top: 3px solid #c0392b;
    height: 38px;
    line-height: 38px;
    padding-left: 140px;
    font-family: "Helvetica Neue Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
}
.ltv-ticker.ltv-ticker-channel9 .ltv-ticker-badge {
    width: 140px;
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.ltv-ticker.ltv-ticker-channel9 .ltv-ticker-item {
    color: #e8eaf6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.ltv-ticker.ltv-ticker-channel9 .ltv-ticker-link {
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.ltv-ticker.ltv-ticker-channel9 .ltv-ticker-link:hover {
    color: #ffd54f;
}
.ltv-ticker.ltv-ticker-channel9 .ltv-ticker-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* ══════════════════════════════════════
   EPG PAGING ARROWS
   ══════════════════════════════════════ */
.ltv-guide-cells-wrap {
    display: flex;
    flex: 1;
    min-width: 0;
}

.ltv-guide-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-width: 28px;
    flex-shrink: 0;
    cursor: pointer;
    color: #FFDE2B;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.ltv-guide-arrow:hover {
    background: rgba(255, 222, 43, 0.1);
    color: #fff;
}

.ltv-guide-arrow-fwd {
    border-left: 1px solid #1a1a1a;
}

.ltv-guide-arrow-back {
    border-right: 1px solid #1a1a1a;
}

@media (max-width: 560px) {
    .ltv-guide-arrow {
        width: 22px;
        min-width: 22px;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════
   OVERLAY TOGGLE BUTTON (NOW/UP NEXT)
   ══════════════════════════════════════════ */
.ltv-ctrl-overlay-btn {
    padding: 0 2px;
}

.ltv-ctrl-overlay-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-overlay-btn:hover .ltv-ctrl-overlay-label {
    color: #fff;
}

.ltv-ctrl-overlay-btn.ltv-overlay-btn-off .ltv-ctrl-overlay-label {
    color: #555;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.ltv-ctrl-overlay-btn.ltv-overlay-btn-off:hover .ltv-ctrl-overlay-label {
    color: #999;
}

/* Hide the NOW/UP NEXT overlay when user toggles it off */
.ltv-overlay.ltv-overlay-user-hidden {
    display: none !important;
}

/* ══════════════════════════════════════════
   INFO BUTTON — base styles
   ══════════════════════════════════════════ */
.ltv-ctrl-info-btn {
    padding: 0 2px;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}

.ltv-ctrl-info-icon {
    display: inline-flex;
    align-items: center;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-info-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #999;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-info-btn:hover .ltv-ctrl-info-icon,
.ltv-ctrl-info-btn:hover .ltv-ctrl-info-label {
    color: #fff;
}

/* ══════════════════════════════════════════
   INFO OVERLAY — "What's On" schedule
   ══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   INFO OVERLAY — Pluto TV-style bottom panel
   Video stays visible above, info slides up.
   ═══════════════════════════════════════════ */
.ltv-info-overlay {
    position: absolute;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ddd;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overflow: hidden;
}

.ltv-info-overlay.ltv-info-open {
    opacity: 1;
    pointer-events: auto;
}

/* Inner panel — anchored to bottom with gradient fade */
.ltv-info-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 70%;
    padding: 20px 24px 16px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.7) 8%,
        rgba(0, 0, 0, 0.92) 25%,
        rgba(0, 0, 0, 0.97) 100%
    );
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.ltv-info-open .ltv-info-panel {
    transform: translateY(0);
}

/* Header: tabs left, close right */
.ltv-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.ltv-info-close {
    font-size: 16px;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
    flex-shrink: 0;
}
.ltv-info-close:hover {
    color: #fff;
}

/* Tab bar */
.ltv-info-tabs {
    display: flex;
    gap: 0;
}
.ltv-info-tab {
    background: none;
    border: none;
    color: #999;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 14px 4px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}
.ltv-info-tab:hover {
    color: #ccc;
}
.ltv-info-tab-active {
    color: #fff;
    border-bottom-color: #e50914;
}

/* ── Now Playing card ── */
.ltv-info-now-panel {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.ltv-info-now-panel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Channel name badge */
.ltv-info-card-channel {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #aaa;
    margin-bottom: 6px;
}

/* LIVE badge + title row */
.ltv-info-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.ltv-info-card-live-badge {
    display: inline-block;
    background: #e50914;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 3px;
    flex-shrink: 0;
    line-height: 1;
}
.ltv-info-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Time + duration meta */
.ltv-info-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* "Read Article" link — right side of the time/duration line */
.ltv-info-card-article-link {
    font-size: 11px;
    font-weight: 600;
    color: #e53935;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
    cursor: pointer;
}

.ltv-info-card-article-link:hover {
    color: #ff6659;
    text-decoration: underline;
}

/* Progress bar — wider and more visible */
.ltv-info-card-progress {
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}
.ltv-info-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e50914 0%, #ff6b3d 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Elapsed / remaining */
.ltv-info-card-progress-label {
    font-size: 11px;
    color: #777;
    margin-bottom: 10px;
}

/* Description */
.ltv-info-card-desc {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Up Next preview */
.ltv-info-card-next {
    font-size: 11px;
    color: #888;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Empty state */
.ltv-info-card-empty {
    color: #666;
    font-size: 14px;
    padding: 30px 0;
    text-align: center;
}

/* ── What's On schedule list ── */
.ltv-info-list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ltv-info-list::-webkit-scrollbar {
    display: none;
}

.ltv-info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}
.ltv-info-row:hover {
    background: rgba(255, 255, 255, 0.06);
}
.ltv-info-row.ltv-info-now {
    background: rgba(229, 9, 20, 0.12);
    border-left: 3px solid #e50914;
}
.ltv-info-row.ltv-info-past {
    opacity: 0.35;
}

/* "Earlier" divider in What's On list */
.ltv-info-row-divider {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
}

.ltv-info-time {
    min-width: 68px;
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    white-space: nowrap;
}
.ltv-info-details {
    flex: 1;
    min-width: 0;
}
.ltv-info-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.ltv-info-desc {
    font-size: 11px;
    color: #888;
    margin-bottom: 3px;
    line-height: 1.3;
}
.ltv-info-duration {
    font-size: 10px;
    color: #666;
}

.ltv-info-badge {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 3px;
}
.ltv-info-badge-now {
    background: #e50914;
    color: #fff;
}
.ltv-info-badge-next {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ltv-info-panel {
        max-height: 65%;
        padding: 14px 16px 12px;
    }
    .ltv-info-tab {
        font-size: 10px;
        padding: 3px 10px 3px 0;
    }
    .ltv-info-card-title {
        font-size: 16px;
    }
    .ltv-info-card-desc {
        font-size: 12px;
    }
    .ltv-info-time {
        min-width: 52px;
        font-size: 11px;
    }
    .ltv-info-title {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════
   MINIPLAYER — ESPN/CNN-style floating player
   ═══════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   MINI MODE — compact button layout at 480px
   Scoped via body.ltv-mini-active (set by JS).
   Hides text labels, keeps icons, tightens spacing.
   ══════════════════════════════════════════════ */

/* Hide all text labels — icons only in mini mode */
.ltv-mini-active .ltv-ctrl-channels-label,
.ltv-mini-active .ltv-ctrl-home-label,
.ltv-mini-active .ltv-ctrl-article-label,
.ltv-mini-active .ltv-ctrl-info-label,
.ltv-mini-active .ltv-ctrl-access-label,
.ltv-mini-active .ltv-ctrl-search-label,
.ltv-mini-active .ltv-ctrl-mini-label,
.ltv-mini-active .ltv-ctrl-overlay-label,
.ltv-mini-active .ltv-ctrl-ticker-label {
    display: none !important;
}

/* Compact icon-only buttons */
.ltv-mini-active .ltv-ctrl-channels-btn,
.ltv-mini-active .ltv-ctrl-home-btn,
.ltv-mini-active .ltv-ctrl-article-btn,
.ltv-mini-active .ltv-ctrl-info-btn,
.ltv-mini-active .ltv-ctrl-access-btn,
.ltv-mini-active .ltv-ctrl-search-btn,
.ltv-mini-active .ltv-ctrl-mini-btn,
.ltv-mini-active .ltv-ctrl-overlay-btn,
.ltv-mini-active .ltv-ctrl-ticker-btn {
    padding: 0 1px !important;
    gap: 0 !important;
}

/* Scale down icons slightly */
.ltv-mini-active .ltv-ctrl-home-icon,
.ltv-mini-active .ltv-ctrl-article-icon,
.ltv-mini-active .ltv-ctrl-info-icon,
.ltv-mini-active .ltv-ctrl-access-icon,
.ltv-mini-active .ltv-ctrl-search-icon,
.ltv-mini-active .ltv-ctrl-mini-icon {
    font-size: 12px !important;
}
.ltv-mini-active .ltv-ctrl-home-icon svg,
.ltv-mini-active .ltv-ctrl-article-icon svg,
.ltv-mini-active .ltv-ctrl-info-icon svg,
.ltv-mini-active .ltv-ctrl-access-icon svg,
.ltv-mini-active .ltv-ctrl-search-icon svg,
.ltv-mini-active .ltv-ctrl-mini-icon svg {
    width: 12px !important;
    height: 12px !important;
}

/* Channels button — icon only in mini, no label override */

/* Ticker toggle — hidden in mini, no label override */

/* Compact the NOW bar for mini mode */
.ltv-mini-active .ltv-now-playing-bar {
    padding: 4px 8px !important;
    font-size: 10px !important;
}

/* Close button — hidden until miniplayer activates.
   Lives inside main_do.screen (the .fwduvp div). */
.ltv-mini-close {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    cursor: pointer;
    z-index: 2147483647;
    transition: color 0.15s, background 0.15s;
}
.ltv-mini-close:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.9);
}

/* Mobile close button — 44px WCAG tap target */
@media (max-width: 640px) {
    .ltv-mini-close {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 18px;
        top: 4px;
        right: 4px;
    }
}

/* ══════════════════════════════════════════════
   MINI BUTTON
   ══════════════════════════════════════════════ */
.ltv-ctrl-mini-icon {
    display: inline-flex;
    align-items: center;
    color: #ccc;
    margin-right: 4px;
}
.ltv-ctrl-mini-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
    text-transform: uppercase;
}
.ltv-ctrl-mini-btn:hover .ltv-ctrl-mini-label,
.ltv-ctrl-mini-btn:hover .ltv-ctrl-mini-icon {
    color: #fff;
}

/* ══════════════════════════════════════════════
   READABLER INTEGRATION
   Responds to CSS classes that Readabler adds to <body>.
   No custom a11y panel needed — Readabler handles the toggling.
   ══════════════════════════════════════════════ */

/* ── LIGHT CONTRAST ── */
.mdp-readabler-light-contrast .ltv-overlay,
.mdp-readabler-light-contrast .ltv-guide,
.mdp-readabler-light-contrast .ltv-search-overlay,
.mdp-readabler-light-contrast .ltv-info-panel,
.mdp-readabler-light-contrast .ltv-ticker,
.mdp-readabler-light-contrast .ltv-now-playing-bar,
.mdp-readabler-light-contrast .ltv-compact-guide,
.mdp-readabler-light-contrast .ltv-access-panel {
    background: #fff !important;
    color: #111 !important;
    border-color: #ccc !important;
}
.mdp-readabler-light-contrast .ltv-overlay-title,
.mdp-readabler-light-contrast .ltv-overlay-now-label,
.mdp-readabler-light-contrast .ltv-overlay-next-label,
.mdp-readabler-light-contrast .ltv-guide-row-title,
.mdp-readabler-light-contrast .ltv-guide-row-time,
.mdp-readabler-light-contrast .ltv-guide-row-subtitle,
.mdp-readabler-light-contrast .ltv-info-title,
.mdp-readabler-light-contrast .ltv-info-time,
.mdp-readabler-light-contrast .ltv-info-desc,
.mdp-readabler-light-contrast .ltv-info-card-title,
.mdp-readabler-light-contrast .ltv-info-card-meta,
.mdp-readabler-light-contrast .ltv-info-card-desc,
.mdp-readabler-light-contrast .ltv-info-tab,
.mdp-readabler-light-contrast .ltv-ticker-item,
.mdp-readabler-light-contrast .ltv-now-playing-title,
.mdp-readabler-light-contrast .ltv-now-playing-time,
.mdp-readabler-light-contrast .ltv-search-title,
.mdp-readabler-light-contrast .ltv-search-input,
.mdp-readabler-light-contrast .ltv-cg-title,
.mdp-readabler-light-contrast .ltv-cg-ch-name,
.mdp-readabler-light-contrast .ltv-cg-ch-show,
.mdp-readabler-light-contrast .ltv-cg-ch-time,
.mdp-readabler-light-contrast .ltv-access-panel-title,
.mdp-readabler-light-contrast .ltv-access-label,
.mdp-readabler-light-contrast .ltv-access-icon,
.mdp-readabler-light-contrast .ltv-access-reset {
    color: #111 !important;
}
.mdp-readabler-light-contrast .ltv-guide-row {
    border-color: #ddd !important;
}
.mdp-readabler-light-contrast .ltv-guide-row-active {
    background: rgba(66, 133, 244, 0.15) !important;
}
.mdp-readabler-light-contrast .ltv-mini-close {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #ccc !important;
}

/* ── HIGH CONTRAST (yellow-on-black) ── */
.mdp-readabler-high-contrast .ltv-overlay,
.mdp-readabler-high-contrast .ltv-guide,
.mdp-readabler-high-contrast .ltv-search-overlay,
.mdp-readabler-high-contrast .ltv-info-panel,
.mdp-readabler-high-contrast .ltv-ticker,
.mdp-readabler-high-contrast .ltv-now-playing-bar,
.mdp-readabler-high-contrast .ltv-compact-guide,
.mdp-readabler-high-contrast .ltv-access-panel {
    background: #000 !important;
    color: #ff0 !important;
    border: 2px solid #ff0 !important;
}
.mdp-readabler-high-contrast .ltv-overlay-title,
.mdp-readabler-high-contrast .ltv-overlay-now-label,
.mdp-readabler-high-contrast .ltv-overlay-next-label,
.mdp-readabler-high-contrast .ltv-guide-row-title,
.mdp-readabler-high-contrast .ltv-guide-row-time,
.mdp-readabler-high-contrast .ltv-guide-row-subtitle,
.mdp-readabler-high-contrast .ltv-info-title,
.mdp-readabler-high-contrast .ltv-info-time,
.mdp-readabler-high-contrast .ltv-info-desc,
.mdp-readabler-high-contrast .ltv-info-card-title,
.mdp-readabler-high-contrast .ltv-info-card-meta,
.mdp-readabler-high-contrast .ltv-info-card-desc,
.mdp-readabler-high-contrast .ltv-info-tab,
.mdp-readabler-high-contrast .ltv-ticker-item,
.mdp-readabler-high-contrast .ltv-now-playing-title,
.mdp-readabler-high-contrast .ltv-now-playing-time,
.mdp-readabler-high-contrast .ltv-search-title,
.mdp-readabler-high-contrast .ltv-search-input,
.mdp-readabler-high-contrast .ltv-cg-title,
.mdp-readabler-high-contrast .ltv-cg-ch-name,
.mdp-readabler-high-contrast .ltv-cg-ch-show,
.mdp-readabler-high-contrast .ltv-cg-ch-time,
.mdp-readabler-high-contrast .ltv-access-panel-title,
.mdp-readabler-high-contrast .ltv-access-label,
.mdp-readabler-high-contrast .ltv-access-icon,
.mdp-readabler-high-contrast .ltv-access-reset {
    color: #ff0 !important;
}
.mdp-readabler-high-contrast .ltv-guide-row {
    border-color: #ff0 !important;
}
.mdp-readabler-high-contrast .ltv-guide-row-active {
    background: rgba(255, 255, 0, 0.15) !important;
    outline: 2px solid #ff0 !important;
}
.mdp-readabler-high-contrast .ltv-info-tab {
    border-color: #ff0 !important;
}
.mdp-readabler-high-contrast .ltv-mini-close {
    background: #000 !important;
    color: #ff0 !important;
    border: 2px solid #ff0 !important;
}

/* ── DARK CONTRAST ── */
.mdp-readabler-dark-contrast .ltv-overlay,
.mdp-readabler-dark-contrast .ltv-guide,
.mdp-readabler-dark-contrast .ltv-search-overlay,
.mdp-readabler-dark-contrast .ltv-info-panel,
.mdp-readabler-dark-contrast .ltv-ticker,
.mdp-readabler-dark-contrast .ltv-now-playing-bar,
.mdp-readabler-dark-contrast .ltv-compact-guide,
.mdp-readabler-dark-contrast .ltv-access-panel {
    background: #000 !important;
}

/* ── MONOCHROME ── */
.mdp-readabler-monochrome .ltv-overlay,
.mdp-readabler-monochrome .ltv-guide,
.mdp-readabler-monochrome .ltv-search-overlay,
.mdp-readabler-monochrome .ltv-info-panel,
.mdp-readabler-monochrome .ltv-ticker,
.mdp-readabler-monochrome .ltv-now-playing-bar,
.mdp-readabler-monochrome .ltv-compact-guide,
.mdp-readabler-monochrome .ltv-access-panel {
    filter: grayscale(1) !important;
}

/* ── HIGH SATURATION ── */
.mdp-readabler-high-saturation .ltv-overlay,
.mdp-readabler-high-saturation .ltv-guide,
.mdp-readabler-high-saturation .ltv-search-overlay,
.mdp-readabler-high-saturation .ltv-info-panel,
.mdp-readabler-high-saturation .ltv-ticker,
.mdp-readabler-high-saturation .ltv-now-playing-bar,
.mdp-readabler-high-saturation .ltv-compact-guide,
.mdp-readabler-high-saturation .ltv-access-panel {
    filter: saturate(2) !important;
}

/* ── LOW SATURATION ── */
.mdp-readabler-low-saturation .ltv-overlay,
.mdp-readabler-low-saturation .ltv-guide,
.mdp-readabler-low-saturation .ltv-search-overlay,
.mdp-readabler-low-saturation .ltv-info-panel,
.mdp-readabler-low-saturation .ltv-ticker,
.mdp-readabler-low-saturation .ltv-now-playing-bar,
.mdp-readabler-low-saturation .ltv-compact-guide,
.mdp-readabler-low-saturation .ltv-access-panel {
    filter: saturate(0.3) !important;
}

/* ── READABLE FONT ── */
.mdp-readabler-readable-font .ltv-overlay,
.mdp-readabler-readable-font .ltv-overlay-title,
.mdp-readabler-readable-font .ltv-overlay-now-label,
.mdp-readabler-readable-font .ltv-overlay-next-label,
.mdp-readabler-readable-font .ltv-guide,
.mdp-readabler-readable-font .ltv-guide-row-title,
.mdp-readabler-readable-font .ltv-guide-row-time,
.mdp-readabler-readable-font .ltv-guide-row-subtitle,
.mdp-readabler-readable-font .ltv-search-overlay,
.mdp-readabler-readable-font .ltv-search-input,
.mdp-readabler-readable-font .ltv-search-title,
.mdp-readabler-readable-font .ltv-info-panel,
.mdp-readabler-readable-font .ltv-info-title,
.mdp-readabler-readable-font .ltv-info-time,
.mdp-readabler-readable-font .ltv-info-desc,
.mdp-readabler-readable-font .ltv-info-card-title,
.mdp-readabler-readable-font .ltv-info-card-meta,
.mdp-readabler-readable-font .ltv-info-card-desc,
.mdp-readabler-readable-font .ltv-info-tab,
.mdp-readabler-readable-font .ltv-ticker,
.mdp-readabler-readable-font .ltv-ticker-item,
.mdp-readabler-readable-font .ltv-now-playing-bar,
.mdp-readabler-readable-font .ltv-now-playing-title,
.mdp-readabler-readable-font .ltv-now-playing-time,
.mdp-readabler-readable-font .ltv-compact-guide,
.mdp-readabler-readable-font .ltv-cg-title,
.mdp-readabler-readable-font .ltv-cg-ch-name,
.mdp-readabler-readable-font .ltv-cg-ch-show,
.mdp-readabler-readable-font .ltv-cg-ch-time,
.mdp-readabler-readable-font .ltv-access-panel,
.mdp-readabler-readable-font .ltv-access-panel-title,
.mdp-readabler-readable-font .ltv-access-label,
.mdp-readabler-readable-font .ltv-access-reset {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* ── DYSLEXIA FONT ── */
.mdp-readabler-dyslexia-font .ltv-overlay,
.mdp-readabler-dyslexia-font .ltv-overlay-title,
.mdp-readabler-dyslexia-font .ltv-overlay-now-label,
.mdp-readabler-dyslexia-font .ltv-overlay-next-label,
.mdp-readabler-dyslexia-font .ltv-guide,
.mdp-readabler-dyslexia-font .ltv-guide-row-title,
.mdp-readabler-dyslexia-font .ltv-guide-row-time,
.mdp-readabler-dyslexia-font .ltv-guide-row-subtitle,
.mdp-readabler-dyslexia-font .ltv-search-overlay,
.mdp-readabler-dyslexia-font .ltv-search-input,
.mdp-readabler-dyslexia-font .ltv-search-title,
.mdp-readabler-dyslexia-font .ltv-info-panel,
.mdp-readabler-dyslexia-font .ltv-info-title,
.mdp-readabler-dyslexia-font .ltv-info-time,
.mdp-readabler-dyslexia-font .ltv-info-desc,
.mdp-readabler-dyslexia-font .ltv-info-card-title,
.mdp-readabler-dyslexia-font .ltv-info-card-meta,
.mdp-readabler-dyslexia-font .ltv-info-card-desc,
.mdp-readabler-dyslexia-font .ltv-info-tab,
.mdp-readabler-dyslexia-font .ltv-ticker,
.mdp-readabler-dyslexia-font .ltv-ticker-item,
.mdp-readabler-dyslexia-font .ltv-now-playing-bar,
.mdp-readabler-dyslexia-font .ltv-now-playing-title,
.mdp-readabler-dyslexia-font .ltv-now-playing-time,
.mdp-readabler-dyslexia-font .ltv-compact-guide,
.mdp-readabler-dyslexia-font .ltv-cg-title,
.mdp-readabler-dyslexia-font .ltv-cg-ch-name,
.mdp-readabler-dyslexia-font .ltv-cg-ch-show,
.mdp-readabler-dyslexia-font .ltv-cg-ch-time,
.mdp-readabler-dyslexia-font .ltv-access-panel,
.mdp-readabler-dyslexia-font .ltv-access-panel-title,
.mdp-readabler-dyslexia-font .ltv-access-label,
.mdp-readabler-dyslexia-font .ltv-access-reset {
    font-family: OpenDyslexic, Verdana, sans-serif !important;
    letter-spacing: 0.08em !important;
    word-spacing: 0.16em !important;
}

/* ── STOP ANIMATIONS ── */
.mdp-readabler-stop-animations .ltv-ticker-track {
    animation-play-state: paused !important;
}
.mdp-readabler-stop-animations .ltv-btn-live-dot {
    animation: none !important;
}
.mdp-readabler-stop-animations .ltv-overlay,
.mdp-readabler-stop-animations .ltv-guide,
.mdp-readabler-stop-animations .ltv-search-overlay,
.mdp-readabler-stop-animations .ltv-info-panel,
.mdp-readabler-stop-animations .ltv-info-overlay,
.mdp-readabler-stop-animations .ltv-compact-guide,
.mdp-readabler-stop-animations .ltv-trans-card,
.mdp-readabler-stop-animations .ltv-access-panel,
.mdp-readabler-stop-animations .ltv-access-toggle,
.mdp-readabler-stop-animations .ltv-access-toggle-knob {
    transition: none !important;
}

/* ── HIDE IMAGES ── */
.mdp-readabler-hide-images .ltv-guide-row-thumb,
.mdp-readabler-hide-images .ltv-cg-ch-thumb,
.mdp-readabler-hide-images .ltv-info-card img {
    display: none !important;
}

/* ── HIGHLIGHT LINKS ── */
.mdp-readabler-highlight-links .ltv-guide-row,
.mdp-readabler-highlight-links .ltv-ticker-item a,
.mdp-readabler-highlight-links .ltv-cg-channel,
.mdp-readabler-highlight-links .ltv-search-result {
    outline: 2px solid #FFDE2B !important;
    outline-offset: -1px !important;
}

/* ── HIGHLIGHT TITLES ── */
.mdp-readabler-highlight-titles .ltv-overlay-title,
.mdp-readabler-highlight-titles .ltv-guide-row-title,
.mdp-readabler-highlight-titles .ltv-info-card-title,
.mdp-readabler-highlight-titles .ltv-cg-title,
.mdp-readabler-highlight-titles .ltv-now-playing-title {
    outline: 2px solid #FFDE2B !important;
    outline-offset: 1px !important;
}

/* ── HIGHLIGHT HOVER ── */
.mdp-readabler-highlight-hover .ltv-guide-row:hover,
.mdp-readabler-highlight-hover .ltv-cg-channel:hover,
.mdp-readabler-highlight-hover .ltv-ticker-item:hover,
.mdp-readabler-highlight-hover .ltv-search-result:hover,
.mdp-readabler-highlight-hover .ltv-info-card:hover {
    outline: 2px solid #FFDE2B !important;
    outline-offset: -1px !important;
}

/* ── HIGHLIGHT FOCUS ── */
.mdp-readabler-highlight-focus .ltv-guide-row:focus,
.mdp-readabler-highlight-focus .ltv-guide-row:focus-visible,
.mdp-readabler-highlight-focus button:focus,
.mdp-readabler-highlight-focus button:focus-visible,
.mdp-readabler-highlight-focus [tabindex]:focus,
.mdp-readabler-highlight-focus [tabindex]:focus-visible,
.mdp-readabler-highlight-focus .ltv-ctrl-channels-btn:focus,
.mdp-readabler-highlight-focus .ltv-ctrl-home-btn:focus,
.mdp-readabler-highlight-focus .ltv-ctrl-search-btn:focus,
.mdp-readabler-highlight-focus .ltv-ctrl-info-btn:focus,
.mdp-readabler-highlight-focus .ltv-ctrl-mini-btn:focus,
.mdp-readabler-highlight-focus .ltv-ctrl-access-btn:focus,
.mdp-readabler-highlight-focus .ltv-access-toggle:focus,
.mdp-readabler-highlight-focus .ltv-access-reset:focus {
    outline: 3px solid #FFDE2B !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(255, 222, 43, 0.3) !important;
}

/* ── LETTER SPACING ── */
.mdp-readabler-letter-spacing .ltv-overlay,
.mdp-readabler-letter-spacing .ltv-overlay-title,
.mdp-readabler-letter-spacing .ltv-overlay-now-label,
.mdp-readabler-letter-spacing .ltv-overlay-next-label,
.mdp-readabler-letter-spacing .ltv-guide,
.mdp-readabler-letter-spacing .ltv-guide-row-title,
.mdp-readabler-letter-spacing .ltv-guide-row-time,
.mdp-readabler-letter-spacing .ltv-guide-row-subtitle,
.mdp-readabler-letter-spacing .ltv-search-overlay,
.mdp-readabler-letter-spacing .ltv-search-input,
.mdp-readabler-letter-spacing .ltv-search-title,
.mdp-readabler-letter-spacing .ltv-info-panel,
.mdp-readabler-letter-spacing .ltv-info-title,
.mdp-readabler-letter-spacing .ltv-info-time,
.mdp-readabler-letter-spacing .ltv-info-desc,
.mdp-readabler-letter-spacing .ltv-info-card-title,
.mdp-readabler-letter-spacing .ltv-info-card-meta,
.mdp-readabler-letter-spacing .ltv-info-card-desc,
.mdp-readabler-letter-spacing .ltv-info-tab,
.mdp-readabler-letter-spacing .ltv-ticker,
.mdp-readabler-letter-spacing .ltv-ticker-item,
.mdp-readabler-letter-spacing .ltv-now-playing-bar,
.mdp-readabler-letter-spacing .ltv-now-playing-title,
.mdp-readabler-letter-spacing .ltv-now-playing-time,
.mdp-readabler-letter-spacing .ltv-compact-guide,
.mdp-readabler-letter-spacing .ltv-cg-title,
.mdp-readabler-letter-spacing .ltv-cg-ch-name,
.mdp-readabler-letter-spacing .ltv-cg-ch-show,
.mdp-readabler-letter-spacing .ltv-cg-ch-time {
    letter-spacing: var(--readabler-letter-spacing, 0.12em) !important;
}

/* ── LINE HEIGHT ── */
.mdp-readabler-line-height .ltv-overlay,
.mdp-readabler-line-height .ltv-overlay-title,
.mdp-readabler-line-height .ltv-overlay-now-label,
.mdp-readabler-line-height .ltv-overlay-next-label,
.mdp-readabler-line-height .ltv-guide,
.mdp-readabler-line-height .ltv-guide-row-title,
.mdp-readabler-line-height .ltv-guide-row-time,
.mdp-readabler-line-height .ltv-guide-row-subtitle,
.mdp-readabler-line-height .ltv-search-overlay,
.mdp-readabler-line-height .ltv-search-input,
.mdp-readabler-line-height .ltv-search-title,
.mdp-readabler-line-height .ltv-info-panel,
.mdp-readabler-line-height .ltv-info-title,
.mdp-readabler-line-height .ltv-info-time,
.mdp-readabler-line-height .ltv-info-desc,
.mdp-readabler-line-height .ltv-info-card-title,
.mdp-readabler-line-height .ltv-info-card-meta,
.mdp-readabler-line-height .ltv-info-card-desc,
.mdp-readabler-line-height .ltv-info-tab,
.mdp-readabler-line-height .ltv-ticker,
.mdp-readabler-line-height .ltv-ticker-item,
.mdp-readabler-line-height .ltv-now-playing-bar,
.mdp-readabler-line-height .ltv-now-playing-title,
.mdp-readabler-line-height .ltv-now-playing-time,
.mdp-readabler-line-height .ltv-compact-guide,
.mdp-readabler-line-height .ltv-cg-title,
.mdp-readabler-line-height .ltv-cg-ch-name,
.mdp-readabler-line-height .ltv-cg-ch-show,
.mdp-readabler-line-height .ltv-cg-ch-time {
    line-height: var(--readabler-line-height, 1.8) !important;
}

/* ── ALIGN LEFT ── */
.mdp-readabler-align-left .ltv-overlay,
.mdp-readabler-align-left .ltv-guide,
.mdp-readabler-align-left .ltv-search-overlay,
.mdp-readabler-align-left .ltv-info-panel,
.mdp-readabler-align-left .ltv-ticker,
.mdp-readabler-align-left .ltv-now-playing-bar,
.mdp-readabler-align-left .ltv-compact-guide {
    text-align: left !important;
}

/* ── ALIGN CENTER ── */
.mdp-readabler-align-center .ltv-overlay,
.mdp-readabler-align-center .ltv-guide,
.mdp-readabler-align-center .ltv-search-overlay,
.mdp-readabler-align-center .ltv-info-panel,
.mdp-readabler-align-center .ltv-ticker,
.mdp-readabler-align-center .ltv-now-playing-bar,
.mdp-readabler-align-center .ltv-compact-guide {
    text-align: center !important;
}

/* ── ALIGN RIGHT ── */
.mdp-readabler-align-right .ltv-overlay,
.mdp-readabler-align-right .ltv-guide,
.mdp-readabler-align-right .ltv-search-overlay,
.mdp-readabler-align-right .ltv-info-panel,
.mdp-readabler-align-right .ltv-ticker,
.mdp-readabler-align-right .ltv-now-playing-bar,
.mdp-readabler-align-right .ltv-compact-guide {
    text-align: right !important;
}

/* ══════════════════════════════════════════════
   FWD UVP PLAYER CONTROLS — Readabler integration
   Targets actual player controls (play, scrub bar, volume, time).
   FWD UVP uses inline styles — all overrides need !important.
   ══════════════════════════════════════════════ */

/* ── High Contrast — yellow text, yellow-tinted canvas/SVG icons ── */
.mdp-readabler-high-contrast .fwduvp span,
.mdp-readabler-high-contrast .fwduvp div[style*="font-size"] {
    color: #ff0 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,1) !important;
}
.mdp-readabler-high-contrast .fwduvp canvas {
    filter: brightness(3) contrast(2) sepia(1) saturate(5) hue-rotate(10deg) !important;
}
.mdp-readabler-high-contrast .fwduvp svg,
.mdp-readabler-high-contrast .ltv-ctrl-channels-btn svg,
.mdp-readabler-high-contrast .ltv-ctrl-info-btn svg,
.mdp-readabler-high-contrast .ltv-ctrl-search-btn svg,
.mdp-readabler-high-contrast .ltv-ctrl-home-btn svg,
.mdp-readabler-high-contrast .ltv-ctrl-mini-btn svg {
    filter: brightness(3) !important;
    stroke: #ff0 !important;
    fill: #ff0 !important;
}
.mdp-readabler-high-contrast .ltv-ctrl-channels-label,
.mdp-readabler-high-contrast .ltv-ctrl-info-label,
.mdp-readabler-high-contrast .ltv-ctrl-ticker-label,
.mdp-readabler-high-contrast .ltv-ctrl-mini-label {
    color: #ff0 !important;
}
.mdp-readabler-high-contrast .fwduvp div[style*="background"] {
    opacity: 1 !important;
}

/* ── Light Contrast — dark text on player controls ── */
.mdp-readabler-light-contrast .fwduvp span,
.mdp-readabler-light-contrast .fwduvp div[style*="font-size"] {
    color: #111 !important;
}
.mdp-readabler-light-contrast .fwduvp canvas {
    filter: invert(1) !important;
}
.mdp-readabler-light-contrast .fwduvp svg,
.mdp-readabler-light-contrast .ltv-ctrl-channels-btn svg,
.mdp-readabler-light-contrast .ltv-ctrl-info-btn svg,
.mdp-readabler-light-contrast .ltv-ctrl-search-btn svg,
.mdp-readabler-light-contrast .ltv-ctrl-home-btn svg,
.mdp-readabler-light-contrast .ltv-ctrl-mini-btn svg {
    stroke: #111 !important;
    fill: #111 !important;
}
.mdp-readabler-light-contrast .ltv-ctrl-channels-label,
.mdp-readabler-light-contrast .ltv-ctrl-info-label,
.mdp-readabler-light-contrast .ltv-ctrl-ticker-label,
.mdp-readabler-light-contrast .ltv-ctrl-mini-label {
    color: #111 !important;
}

/* ── Readable Font — player controls ── */
.mdp-readabler-readable-font .fwduvp span,
.mdp-readabler-readable-font .fwduvp div[style*="font-size"] {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* ── Dyslexia Font — player controls ── */
.mdp-readabler-dyslexia-font .fwduvp span,
.mdp-readabler-dyslexia-font .fwduvp div[style*="font-size"] {
    font-family: OpenDyslexic, Verdana, sans-serif !important;
    letter-spacing: 0.08em !important;
}

/* ── Stop Animations — player controls ── */
.mdp-readabler-stop-animations .fwduvp,
.mdp-readabler-stop-animations .fwduvp * {
    transition: none !important;
    animation: none !important;
}

/* ── Highlight Focus — player controls ── */
.mdp-readabler-highlight-focus .fwduvp div[tabindex]:focus,
.mdp-readabler-highlight-focus .fwduvp div[tabindex]:focus-visible,
.mdp-readabler-highlight-focus .fwduvp canvas:focus,
.mdp-readabler-highlight-focus .fwduvp canvas:focus-visible {
    outline: 3px solid #FFDE2B !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(255, 222, 43, 0.3) !important;
}
.mdp-readabler-highlight-focus .fwduvp div[style*="cursor: pointer"]:hover,
.mdp-readabler-highlight-focus .fwduvp div[style*="cursor:pointer"]:hover {
    outline: 2px solid rgba(255, 222, 43, 0.6) !important;
    outline-offset: 1px !important;
}

/* ══════════════════════════════════════════
   Info + Ticker button — shared style integration
   ══════════════════════════════════════════ */
.ltv-btn-pill-gold .ltv-ctrl-info-label,
.ltv-btn-pill-gold .ltv-ctrl-info-icon,
.ltv-btn-pill-gold .ltv-ctrl-ticker-label { color: #111; font-weight: 700; }
.ltv-btn-pill-gold:hover .ltv-ctrl-info-label,
.ltv-btn-pill-gold:hover .ltv-ctrl-info-icon,
.ltv-btn-pill-gold:hover .ltv-ctrl-ticker-label { color: #333; }

.ltv-btn-pill-blue .ltv-ctrl-info-label,
.ltv-btn-pill-blue .ltv-ctrl-info-icon,
.ltv-btn-pill-blue .ltv-ctrl-ticker-label { color: #fff; }

.ltv-btn-glow-pulse .ltv-ctrl-info-label,
.ltv-btn-glow-pulse .ltv-ctrl-info-icon,
.ltv-btn-glow-pulse .ltv-ctrl-ticker-label {
    color: #FFDE2B;
    text-shadow: 0 0 8px #FFDE2B, 0 0 16px rgba(255, 222, 43, 0.4);
    animation: ltv-glow-pulse 2s ease-in-out infinite;
}

.ltv-btn-neon-outline .ltv-ctrl-info-label,
.ltv-btn-neon-outline .ltv-ctrl-info-icon,
.ltv-btn-neon-outline .ltv-ctrl-ticker-label { color: #0ff; }

.ltv-btn-live-badge .ltv-ctrl-info-label,
.ltv-btn-live-badge .ltv-ctrl-info-icon,
.ltv-btn-live-badge .ltv-ctrl-ticker-label { color: #fff; font-weight: 700; }

.ltv-btn-gradient .ltv-ctrl-info-label,
.ltv-btn-gradient .ltv-ctrl-info-icon,
.ltv-btn-gradient .ltv-ctrl-ticker-label { color: #fff; font-weight: 600; }

/* ══════════════════════════════════════════
   NEW BUTTON STYLES — Minimal / Glass / Retro Green / Sunset
   ══════════════════════════════════════════ */

/* ── Minimal: thin bottom accent, no background ── */
.ltv-btn-minimal {
    border-bottom: 2px solid #4285f4;
    padding: 3px 10px 4px !important;
}
.ltv-btn-minimal .ltv-ctrl-channels-label,
.ltv-btn-minimal .ltv-ctrl-home-label,
.ltv-btn-minimal .ltv-ctrl-home-icon,
.ltv-btn-minimal .ltv-ctrl-article-label,
.ltv-btn-minimal .ltv-ctrl-article-icon,
.ltv-btn-minimal .ltv-ctrl-search-icon,
.ltv-btn-minimal .ltv-ctrl-info-label,
.ltv-btn-minimal .ltv-ctrl-info-icon,
.ltv-btn-minimal .ltv-ctrl-ticker-label {
    color: #ccc;
}
.ltv-btn-minimal:hover .ltv-ctrl-channels-label,
.ltv-btn-minimal:hover .ltv-ctrl-home-label,
.ltv-btn-minimal:hover .ltv-ctrl-home-icon,
.ltv-btn-minimal:hover .ltv-ctrl-article-label,
.ltv-btn-minimal:hover .ltv-ctrl-article-icon,
.ltv-btn-minimal:hover .ltv-ctrl-search-icon,
.ltv-btn-minimal:hover .ltv-ctrl-info-label,
.ltv-btn-minimal:hover .ltv-ctrl-info-icon,
.ltv-btn-minimal:hover .ltv-ctrl-ticker-label {
    color: #fff;
}

/* ── Glass: frosted glassmorphism ── */
.ltv-btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 3px 12px !important;
}
.ltv-btn-glass .ltv-ctrl-channels-label,
.ltv-btn-glass .ltv-ctrl-home-label,
.ltv-btn-glass .ltv-ctrl-home-icon,
.ltv-btn-glass .ltv-ctrl-article-label,
.ltv-btn-glass .ltv-ctrl-article-icon,
.ltv-btn-glass .ltv-ctrl-search-icon,
.ltv-btn-glass .ltv-ctrl-info-label,
.ltv-btn-glass .ltv-ctrl-info-icon,
.ltv-btn-glass .ltv-ctrl-ticker-label {
    color: rgba(255, 255, 255, 0.85);
}
.ltv-btn-glass:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Retro Green: terminal / matrix aesthetic ── */
.ltv-btn-retro-green {
    background: #0a1a0a;
    border: 1px solid #0f0;
    border-radius: 4px;
    padding: 3px 12px !important;
}
.ltv-btn-retro-green .ltv-ctrl-channels-label,
.ltv-btn-retro-green .ltv-ctrl-home-label,
.ltv-btn-retro-green .ltv-ctrl-home-icon,
.ltv-btn-retro-green .ltv-ctrl-article-label,
.ltv-btn-retro-green .ltv-ctrl-article-icon,
.ltv-btn-retro-green .ltv-ctrl-search-icon,
.ltv-btn-retro-green .ltv-ctrl-info-label,
.ltv-btn-retro-green .ltv-ctrl-info-icon,
.ltv-btn-retro-green .ltv-ctrl-ticker-label {
    color: #0f0;
    font-family: "Courier New", Courier, monospace;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.4);
}
.ltv-btn-retro-green:hover {
    background: #0d2a0d;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

/* ── Sunset: warm orange-pink gradient ── */
.ltv-btn-sunset {
    background: linear-gradient(135deg, #f97316, #ec4899);
    border-radius: 12px;
    padding: 3px 12px !important;
}
.ltv-btn-sunset .ltv-ctrl-channels-label,
.ltv-btn-sunset .ltv-ctrl-home-label,
.ltv-btn-sunset .ltv-ctrl-home-icon,
.ltv-btn-sunset .ltv-ctrl-article-label,
.ltv-btn-sunset .ltv-ctrl-article-icon,
.ltv-btn-sunset .ltv-ctrl-search-icon,
.ltv-btn-sunset .ltv-ctrl-info-label,
.ltv-btn-sunset .ltv-ctrl-info-icon,
.ltv-btn-sunset .ltv-ctrl-ticker-label {
    color: #fff;
    font-weight: 600;
}
.ltv-btn-sunset:hover {
    background: linear-gradient(135deg, #fb923c, #f472b6);
}

/* ── Pill Gold Dark: gold text on dark background ── */
.ltv-btn-pill-gold-dark {
    background: #1a1600;
    border: 1px solid #FFDE2B;
    border-radius: 12px;
    padding: 3px 12px !important;
}
.ltv-btn-pill-gold-dark .ltv-ctrl-channels-label,
.ltv-btn-pill-gold-dark .ltv-ctrl-home-label,
.ltv-btn-pill-gold-dark .ltv-ctrl-home-icon,
.ltv-btn-pill-gold-dark .ltv-ctrl-article-label,
.ltv-btn-pill-gold-dark .ltv-ctrl-article-icon,
.ltv-btn-pill-gold-dark .ltv-ctrl-search-icon,
.ltv-btn-pill-gold-dark .ltv-ctrl-info-label,
.ltv-btn-pill-gold-dark .ltv-ctrl-info-icon,
.ltv-btn-pill-gold-dark .ltv-ctrl-ticker-label {
    color: #FFDE2B;
    font-weight: 700;
}
.ltv-btn-pill-gold-dark:hover {
    background: #2a2500;
    border-color: #ffe866;
}

/* ── Pill Gold Gradient: gold-to-amber gradient ── */
.ltv-btn-pill-gold-gradient {
    background: linear-gradient(135deg, #FFDE2B, #f59e0b);
    border-radius: 12px;
    padding: 3px 12px !important;
}
.ltv-btn-pill-gold-gradient .ltv-ctrl-channels-label,
.ltv-btn-pill-gold-gradient .ltv-ctrl-home-label,
.ltv-btn-pill-gold-gradient .ltv-ctrl-home-icon,
.ltv-btn-pill-gold-gradient .ltv-ctrl-article-label,
.ltv-btn-pill-gold-gradient .ltv-ctrl-article-icon,
.ltv-btn-pill-gold-gradient .ltv-ctrl-search-icon,
.ltv-btn-pill-gold-gradient .ltv-ctrl-info-label,
.ltv-btn-pill-gold-gradient .ltv-ctrl-info-icon,
.ltv-btn-pill-gold-gradient .ltv-ctrl-ticker-label {
    color: #111;
    font-weight: 700;
}
.ltv-btn-pill-gold-gradient:hover {
    background: linear-gradient(135deg, #ffe866, #fbbf24);
}

/* ── Pill Gold Glow: gold pill with outer glow ── */
.ltv-btn-pill-gold-glow {
    background: #FFDE2B;
    border-radius: 12px;
    padding: 3px 12px !important;
    box-shadow: 0 0 8px rgba(255, 222, 43, 0.5), 0 0 16px rgba(255, 222, 43, 0.2);
}
.ltv-btn-pill-gold-glow .ltv-ctrl-channels-label,
.ltv-btn-pill-gold-glow .ltv-ctrl-home-label,
.ltv-btn-pill-gold-glow .ltv-ctrl-home-icon,
.ltv-btn-pill-gold-glow .ltv-ctrl-article-label,
.ltv-btn-pill-gold-glow .ltv-ctrl-article-icon,
.ltv-btn-pill-gold-glow .ltv-ctrl-search-icon,
.ltv-btn-pill-gold-glow .ltv-ctrl-info-label,
.ltv-btn-pill-gold-glow .ltv-ctrl-info-icon,
.ltv-btn-pill-gold-glow .ltv-ctrl-ticker-label {
    color: #111;
    font-weight: 700;
}
.ltv-btn-pill-gold-glow:hover {
    box-shadow: 0 0 12px rgba(255, 222, 43, 0.7), 0 0 24px rgba(255, 222, 43, 0.3);
}

/* Respect prefers-reduced-motion system setting automatically */
@media (prefers-reduced-motion: reduce) {
    .ltv-ticker-track {
        animation-play-state: paused !important;
    }
    .ltv-btn-live-dot {
        animation: none !important;
    }
    .ltv-overlay,
    .ltv-guide,
    .ltv-search-overlay,
    .ltv-a11y-panel,
    .ltv-info-overlay,
    .ltv-info-panel,
    .ltv-trans-card {
        transition: none !important;
    }
}

/* ── Mini mode floating element backdrop ── */
.ltv-mini-float-backdrop {
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 6px;
    border-radius: 4px;
}

/* ── Mini mode overflow prevention ── */
.ltv-mini-active .fwduvp [class*="ltv-ctrl-"] {
    max-width: 60px;
    overflow: hidden;
}

/* ══════════════════════════════════════════════
   COMPACT MINI GUIDE — miniplayer only
   Scoped to body.ltv-mini-active.
   ══════════════════════════════════════════════ */
.ltv-mini-active .ltv-guide{background:rgba(8,8,12,.97)!important}
.ltv-mini-active .ltv-guide-layout{flex-direction:column!important}
.ltv-mini-active .ltv-guide-sidebar{width:100%!important;max-height:none!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;border-right:none!important;border-bottom:1px solid rgba(255,255,255,.04)!important;padding:8px 14px!important;gap:6px!important;scrollbar-width:none!important;flex-shrink:0!important}
.ltv-mini-active .ltv-guide-sidebar::-webkit-scrollbar{display:none}
.ltv-mini-active .ltv-guide-sidebar-logo{display:none!important}
.ltv-mini-active .ltv-guide-cat{padding:3px 10px!important;border-radius:10px!important;white-space:nowrap!important;flex-shrink:0!important;background:rgba(255,255,255,.06)!important}
.ltv-mini-active .ltv-guide-cat-label{font-size:10px!important;font-weight:600!important;color:#999!important}
.ltv-mini-active .ltv-guide-cat:hover .ltv-guide-cat-label{color:#ccc!important}
.ltv-mini-active .ltv-guide-cat-active{background:#fff!important}
.ltv-mini-active .ltv-guide-cat-active .ltv-guide-cat-label{color:#000!important}
.ltv-mini-active .ltv-guide-content{flex:1!important;overflow:hidden!important;min-height:0!important;display:flex!important;flex-direction:column!important}
.ltv-mini-active .ltv-guide-close{position:absolute!important;top:7px!important;right:10px!important;left:auto!important;width:24px!important;height:24px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;background:rgba(255,255,255,.06)!important;color:#888!important;font-size:13px!important;border:none!important;padding:0!important;z-index:10!important}
.ltv-mini-active .ltv-guide-close:hover{background:rgba(255,255,255,.12)!important;color:#fff!important}
.ltv-mini-active .ltv-guide-tabs{display:flex!important;align-items:center!important;padding:10px 14px!important;padding-right:44px!important;border-bottom:1px solid rgba(255,255,255,.06)!important;gap:2px!important;background:transparent!important;flex-shrink:0!important}
.ltv-mini-active .ltv-guide-tabs::before{content:'Channels';font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:#e8e8e8;flex:1}
.ltv-mini-active .ltv-guide-tab{font-size:10px!important;font-weight:600!important;padding:4px 10px!important;border-radius:4px!important;color:#888!important;background:transparent!important}
.ltv-mini-active .ltv-guide-tab:hover{color:#ccc!important}
.ltv-mini-active .ltv-guide-tab-active{background:rgba(255,255,255,.1)!important;color:#fff!important}
.ltv-mini-active .ltv-guide-header{display:none!important}
.ltv-mini-active .ltv-guide-cat-title-bar{display:none!important}
.ltv-mini-active .ltv-guide-arrow{display:none!important}
.ltv-mini-active .ltv-guide-cell-thumb{display:none!important}
.ltv-mini-active .ltv-guide-view{flex:1!important;overflow-y:auto!important;scrollbar-width:thin!important;scrollbar-color:#333 transparent!important}
.ltv-mini-active .ltv-guide-view::-webkit-scrollbar{width:3px}
.ltv-mini-active .ltv-guide-view::-webkit-scrollbar-thumb{background:#333;border-radius:3px}
.ltv-mini-active .ltv-guide-rows{gap:0!important}
.ltv-mini-active .ltv-guide-row{display:flex!important;align-items:center!important;gap:8px!important;padding:8px 14px!important;cursor:pointer!important;border-bottom:1px solid rgba(255,255,255,.03)!important}
.ltv-mini-active .ltv-guide-row:hover{background:rgba(255,255,255,.04)!important}
.ltv-mini-active .ltv-guide-row-active{background:rgba(229,57,53,.08)!important;border-left:2px solid #e53935!important;padding-left:12px!important}
.ltv-mini-active .ltv-guide-ch{display:flex!important;align-items:center!important;flex-direction:row!important;gap:8px!important;min-width:0!important;max-width:none!important;width:auto!important;border-right:none!important;padding:0!important}
.ltv-mini-active .ltv-guide-ch-num{font-size:10px!important;font-weight:600!important;color:#555!important;width:16px!important;text-align:center!important;flex-shrink:0!important;position:static!important}
.ltv-mini-active .ltv-guide-ch-logo-wrap{width:32px!important;height:32px!important;border-radius:4px!important;background:rgba(255,255,255,.06)!important;flex-shrink:0!important}
.ltv-mini-active .ltv-guide-ch-letter{font-size:8px!important;font-weight:700!important;color:#666!important}
.ltv-mini-active .ltv-guide-ch-name{font-size:12px!important;font-weight:600!important;color:#e8e8e8!important;text-align:left!important;line-height:1.3!important}
.ltv-mini-active .ltv-guide-cells-wrap{flex:1!important;min-width:0!important;gap:0!important}
.ltv-mini-active .ltv-guide-cell{padding:0 4px!important;min-width:0!important}
.ltv-mini-active .ltv-guide-cell:nth-child(n+2){display:none!important}
.ltv-mini-active .ltv-guide-cell-title{font-size:10px!important;color:#777!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.ltv-mini-active .ltv-guide-cell-meta{font-size:9px!important;color:rgba(255,255,255,.5)!important}
.ltv-mini-active .ltv-guide-cell-info{gap:1px!important}
.ltv-mini-active .ltv-guide-progress{height:2px!important}
.ltv-mini-active .ltv-guide-tl-header{display:none!important}
.ltv-mini-active .ltv-guide-tl-row{padding:4px 0!important}
.ltv-mini-active .ltv-guide-tl-ch{min-width:70px!important;max-width:80px!important;gap:3px!important}
.ltv-mini-active .ltv-guide-tl-ch-num{font-size:9px!important;color:#fff!important}
.ltv-mini-active .ltv-guide-tl-ch-name{font-size:9px!important;color:#fff!important}
.ltv-mini-active .ltv-guide-tl-ch-logo{width:24px!important;height:24px!important}
.ltv-mini-active .ltv-guide-tl-ch-letter{font-size:9px!important;color:#fff!important}
.ltv-mini-active .ltv-guide-tl-slot{min-height:40px!important;padding:4px 6px!important}
.ltv-mini-active .ltv-guide-tl-slot-title{font-size:9px!important;color:#fff!important}
.ltv-mini-active .ltv-guide-tl-slot-desc{display:none!important}
.ltv-mini-active .ltv-guide-tl-slot-time{font-size:8px!important;color:rgba(255,255,255,.7)!important}
.ltv-mini-active .ltv-guide-tl-time-tick{font-size:9px!important;color:#fff!important}
.ltv-mini-active .ltv-guide-tl-now-marker{border-color:#e53935!important}
.ltv-mini-active .ltv-guide-tl-time-left{font-size:8px!important;color:#fff!important}

/* ── Mini mode auto-hide controller ── */
body.ltv-mini-active .fwduvp [class*="mainHld"] {
    transition: opacity 0.3s ease;
}
.ltv-mini-active .ltv-mini-ctrl-hidden {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
}
.ltv-mini-active .ltv-mini-float {
    transition: opacity 0.3s ease;
}

/* ── Guide PPV/Premium badges ── */
.ltv-guide-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.ltv-guide-badge-ppv {
    background: #e65100;
    color: #fff;
}

.ltv-guide-badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #111;
}

.ltv-guide-badge-free {
    background: rgba(46, 125, 50, 0.2);
    color: #4caf50;
}

/* ── Controller bar "ACCESS" button ── */
.ltv-ctrl-access-btn {
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ltv-ctrl-access-icon {
    display: inline-flex;
    align-items: center;
    color: #888;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-access-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #888;
    transition: color 0.2s;
    pointer-events: none;
}

.ltv-ctrl-access-btn:hover .ltv-ctrl-access-icon,
.ltv-ctrl-access-btn:hover .ltv-ctrl-access-label {
    color: #fff;
}

/* ── Accessibility Panel ── */
.ltv-access-panel {
    position: absolute;
    top: 5%;
    right: 4px;
    bottom: 5%;
    width: 260px;
    overflow-y: auto;
    background: rgba(17, 17, 17, 0.97);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2147483645;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.ltv-access-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ltv-access-panel-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #fff;
}

.ltv-access-panel-close {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #888;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    border: none;
}

.ltv-access-panel-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ltv-access-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    transition: background 0.15s;
}

.ltv-access-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ltv-access-icon {
    width: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #888;
    flex-shrink: 0;
}

.ltv-access-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #ccc;
}

/* Toggle switch */
.ltv-access-toggle {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #333;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ltv-access-toggle.ltv-access-on {
    background: #4285f4;
}

.ltv-access-toggle-knob {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: left 0.2s;
}

.ltv-access-toggle.ltv-access-on .ltv-access-toggle-knob {
    left: 18px;
}

.ltv-access-reset {
    padding: 10px 14px;
    text-align: center;
    font-size: 12px;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: color 0.15s;
}

.ltv-access-reset:hover {
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════════════
   Mobile layout — merged from live-tv-mobile.css in v9.67.0.
   Keeps all channels/ticker/overlay mobile rules alongside their
   desktop definitions instead of in a separate HTTP request.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 560px) {

    /* ── Mobile Nav — overlays video area above FWD UVP controller ── */
    .ltv-mobile-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        padding: 6px 0;
        background: rgba(0, 0, 0, 0.85);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        position: absolute;
        bottom: 0; /* JS sets exact position based on controller height */
        left: 0;
        right: 0;
        z-index: 1;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .ltv-mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 4px 8px;
        cursor: pointer;
        color: #999;
        -webkit-tap-highlight-color: transparent;
        min-width: 40px;
    }

    .ltv-mobile-nav-item:active {
        opacity: 0.7;
    }

    .ltv-mobile-nav-item.active {
        color: #e53935;
    }

    .ltv-mobile-nav-item svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .ltv-mobile-nav-label {
        font-size: 8px;
        font-weight: 500;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        color: inherit;
    }

    /* Ticker above mobile nav — bottom set by JS positionMobileStack. */
    .ltv-ticker,
    .ltv-ticker.ltv-ticker-overlay {
        z-index: 2 !important;
    }

    /* Now/Up Next overlay: flush at top, slides below logo on play. */
    .ltv-overlay {
        bottom: auto !important;
        top: 0 !important;
        background: rgba(0, 0, 0, 0.75) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 0 !important;
        padding: 8px 10px !important;
        transition: top 0.5s ease !important;
    }

    .ltv-overlay.ltv-overlay-playing {
        top: 70px !important;
    }

    .ltv-overlay-title {
        font-size: 12px !important;
    }
    .ltv-overlay-now-label,
    .ltv-overlay-next-label {
        font-size: 10px !important;
    }

    /* Hide frosted clock overlay on mobile. */
    .ltv-overlay-clock,
    .ltv-overlay-time {
        display: none !important;
    }

    /* Hide FWD UVP's native info button — mobile nav provides info. */
    .fwduvp [class*="info-button"],
    .ltv-ctrl-info-btn {
        display: none !important;
    }
}

@media (min-width: 561px) {
    .ltv-mobile-nav {
        display: none;
    }
}
