/* Preview Pane Premium Redesign (Ultimate Cinematic Glass) */

:root {
    --prev-bg: #0b0d14;
    /* Can be transparent/blended if column has own bg */
    --prev-item-bg: rgba(255, 255, 255, 0.03);
    --prev-border-color: rgba(255, 255, 255, 0.05);
    --prev-accent: #40c4ff;
    --prev-accent-gold: #ffd700;
    --prev-text-main: #e0e6ed;
    --prev-text-muted: #8a94a6;
}

.preview-column {
    background: transparent;
    /* Let the global gradient show through */
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    gap: 25px;
}

/* =========================================
   MINI PLAYER CONTAINER
   ========================================= */
.mini-player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000 !important;
    border-radius: 0; /* Removed rounded corners */
    overflow: hidden;
    position: relative;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6); /* Removed border line */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}

/* Focus State */
/* Focus State */
.mini-player-container:focus,
.mini-player-container.focus-visible {
    transform: none !important;
    animation: none !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(0, 0, 0, 0.5);
    outline: none;
    z-index: 20;
}

/* =========================================
   EPG INFO BOX
   ========================================= */
.epg-info-box {
    background: rgba(20, 25, 40, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

/* Dynamic Glow Border Effect */
.epg-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--prev-accent-gold), transparent);
    opacity: 0.8;
}

/* Program Header */
.program-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.program-header i {
    font-size: 24px;
    /* Play icon size */
    color: var(--prev-accent-gold);
    background: rgba(255, 215, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.program-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Clamp text */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */
#current-program-desc {
    font-size: 0.95rem;
    color: var(--prev-text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress Area */
.progress-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}

.time-start,
.time-end {
    font-size: 0.85rem;
    font-family: 'Roboto Mono', monospace;
    /* or fallback */
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.progress-bar-bg {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #e53935);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
}

/* Shimmer on progress bar */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg) translateX(-150%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

/* Date Row */
.date-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* =========================================
   SUGGESTED CHANNELS OVERLAY
   ========================================= */
.suggested-overlay {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.suggested-header-mini {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #8892b0;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-left: 5px;
    border-left: 3px solid var(--prev-accent);
}

.suggested-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px;
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
}

.suggested-item-mini {
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.suggested-item-mini img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

.suggested-item-mini span {
    font-size: 0.75rem;
    color: #ccc;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

/* Hover/Focus States */
.suggested-item-mini:hover,
.suggested-item-mini:focus {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(64, 196, 255, 0.4) 0%, rgba(30, 30, 40, 0.9) 100%);
    border-color: rgba(64, 196, 255, 0.8);
    box-shadow: 0 10px 25px rgba(64, 196, 255, 0.4);
    outline: none;
}

.suggested-item-mini:hover img,
.suggested-item-mini:focus img {
    transform: scale(1.1);
}

.suggested-item-mini:hover span,
.suggested-item-mini:focus span {
    color: #fff;
}