/* TV mode styles — applied via .tv-mode on <html> when window.tizen is present */

/* Virtual cursor (login page) */
.tv-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.92);
    border: 2px solid rgba(0,0,0,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: width 0.12s, height 0.12s, background 0.12s;
}

.tv-cursor.tv-cursor-hover {
    width: 26px;
    height: 26px;
    background: var(--accent, #aa5cc3);
    border-color: rgba(255,255,255,0.8);
}



/* Suppress browser default focus outline — ring is drawn by tvFocusRing overlay */
.tv-mode *:focus {
    outline: none !important;
}

/* Card focus: scale up so it pops */
.tv-mode .media-card:focus {
    transform: scale(1.06) !important;
    z-index: 10;
    position: relative;
    outline: 4px solid var(--accent, #aa5cc3) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 8px var(--accent-glow, rgba(170,92,195,0.35)),
                0 12px 40px rgba(0,0,0,0.6) !important;
}

/* Nav item focus */
.tv-mode .nav-item:focus {
    background: var(--accent-subtle, rgba(170,92,195,0.18)) !important;
    outline: 4px solid var(--accent, #aa5cc3) !important;
    border-radius: 8px;
}

/* Hide the collapse button in TV mode — sidebar stays expanded (JS handles uncollapsing) */
.tv-mode .sidebar-collapse-btn {
    display: none !important;
}

/* Bigger player buttons on TV */
.tv-mode .player-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
}

.tv-mode .player-btn:focus {
    background: var(--accent-subtle, rgba(170,92,195,0.25)) !important;
    outline: 4px solid var(--accent, #aa5cc3) !important;
}

/* Volume toast — shows when pressing up/down during playback */
.tv-volume-toast {
    position: fixed;
    bottom: 140px;
    right: 48px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    border: 2px solid var(--accent, #aa5cc3);
}

.tv-volume-toast.visible {
    opacity: 1;
}

/* Login page: center and focus the first field */
.tv-mode .login-card input:focus,
.tv-mode .login-card button:focus {
    outline: 4px solid var(--accent, #aa5cc3) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 8px var(--accent-glow, rgba(170,92,195,0.35)) !important;
}

/* Hero carousel buttons on TV */
.tv-mode .hero-play-btn:focus,
.tv-mode .hero-detail-btn:focus {
    outline: 4px solid var(--accent, #aa5cc3) !important;
    box-shadow: 0 0 0 8px var(--accent-glow, rgba(170,92,195,0.35)) !important;
}

/* Detail overlay buttons */
.tv-mode .detail-play-btn:focus,
.tv-mode .detail-more-btn:focus,
.tv-mode .episode-play-btn:focus {
    outline: 4px solid var(--accent, #aa5cc3) !important;
    box-shadow: 0 0 0 8px var(--accent-glow, rgba(170,92,195,0.35)) !important;
    transform: scale(1.04) !important;
}
