/* assets/css/live-styles.css */

.iframe-mask iframe { position: absolute; border: 0; overflow: hidden; }
.iframe-mask iframe.youtube-frame { top: -45px; left: -290px; width: 1600px; height: 900px; }
.iframe-mask iframe.standard-frame {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.5) translateY(50px); 
}
.tv-frame-container { position: relative; max-width: 970px; margin: 2rem auto; padding: 50px 80px 100px 80px; background: linear-gradient(145deg, #2a2a2a, #1a1a1a); border-radius: 25px; box-shadow: 0 0 0 10px #0d0d0d, 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 5px 15px rgba(255, 255, 255, 0.05), inset 0 -5px 15px rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease-in-out; }
.tv-frame-container:before { content: ''; position: absolute; top: 20px; left: 20px; right: 20px; bottom: 20px; border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 15px; pointer-events: none; }
.tv-speakers { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 60%; height: 15px; background: #0d0d0d; border-radius: 10px; display: flex; justify-content: space-around; align-items: center; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }
.tv-speakers:before { content: ''; position: absolute; width: 100%; height: 100%; background: repeating-linear-gradient( to right, rgba(0,0,0,0), rgba(0,0,0,0) 4px, rgba(255,255,255,0.03) 4px, rgba(255,255,255,0.03) 6px ); border-radius: 10px; }
.stand-wrapper { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.stand-link { color: var(--subtle-text-color); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease; white-space: nowrap; transform: translateY(0); }
.stand-link:hover { color: var(--primary-color); transform: translateY(-3px); }
.stand-link i { font-size: 1.5rem; }
.tv-stand { position: relative; width: 220px; height: 40px; background: linear-gradient(to bottom, #1e1e1e, #111); border-radius: 0 0 10px 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7); flex-shrink: 0; margin-top: -20px; }
.tv-stand:after { content: ''; position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 100px; height: 50px; background: linear-gradient(to top, #1e1e1e, #2a2a2a); border-radius: 5px 5px 0 0; }
.tv-logo { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); font-family: var(--font-headings); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; z-index: 5; background: linear-gradient(180deg, #f0f0f0, #c0c0c0); -webkit-background-clip: text; -moz-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -moz-text-fill-color: transparent; text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6), 0px -1px 1px rgba(255, 255, 255, 0.2); }
.tv-power-indicator { position: absolute; bottom: 40px; right: 80px; width: 10px; height: 10px; border-radius: 50%; background: #00b454; box-shadow: 0 0 15px #00b454, 0 0 20px #00b454; animation: powerGlow 2.5s infinite ease-in-out; }
@keyframes powerGlow { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
.iframe-mask { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; position: relative; background-color: #000; box-shadow: inset 0 0 25px rgba(0, 0, 0, 1); }
.offline-screen-content { padding: 40px; text-align: center; color: #aab; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.offline-screen-content .status-badge { background: #b40000; color: #fff; padding: 5px 15px; border-radius: 20px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 25px; box-shadow: 0 0 10px #b40000; }
.offline-screen-content h5 { color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.offline-screen-content p { max-width: 400px; line-height: 1.7; margin-bottom: 20px; }
.offline-screen-content .scheduled-time { font-weight: bold; color: var(--primary-color, #00aaff); }
.tv-frame-container.fullscreen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; max-width: none; z-index: 9999; border-radius: 0; padding: 0; background: #000; border: none; box-shadow: none; }
.tv-frame-container.fullscreen .iframe-mask, .tv-frame-container.fullscreen iframe { width: 100%; height: 100%; border-radius: 0; box-shadow: none; top: 0; left: 0; }
.tv-frame-container.fullscreen .tv-logo, .tv-frame-container.fullscreen .tv-power-indicator, .tv-frame-container.fullscreen .tv-speakers, .tv-frame-container.fullscreen:before { display: none; }
.live-actions { max-width: 1200px; margin: 2rem auto 0 auto; }
.player-logo-overlay { position: absolute; top: 20px; left: 20px; z-index: 20; width: 120px; height: auto; opacity: 0.8; transition: all 0.3s ease; pointer-events: none; }
.tv-frame-container:hover .player-logo-overlay { opacity: 0.5; }
.tv-frame-container.fullscreen .player-logo-overlay { top: 30px; left: 30px; width: 150px; opacity: 0.7; }
.channel-selector { max-width: 1200px; margin: 0 auto 2rem auto; padding: 15px; background: rgba(0,0,0,0.1); border-radius: 10px; }
.channel-selector label { font-weight: 600; margin-right: 10px; color: var(--text-color); }
.channel-selector select { background: var(--card-bg); color: var(--text-color); border: 1px solid var(--border-color); border-radius: 5px; padding: 8px 15px; cursor: pointer; transition: all 0.3s ease; }
.channel-selector select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1); }
.channel-selector select:hover { border-color: var(--primary-color); }
.current-channel { text-align: center; margin-bottom: 1rem; }
.current-channel h3 { color: var(--primary-color); font-weight: 600; margin: 0; }
.recordings-section { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.recording-card { transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.recording-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.recording-card .card-img-top { height: 180px; object-fit: cover; }
.recording-card .card-footer { background: transparent; border-top: 1px solid rgba(0,0,0,0.05); }

/* --- START: Mobile Responsiveness Fix for Player --- */
@media (max-width: 767.98px) {
    /* 1. ტელევიზორის ჩარჩოს შიდა დაშორებების შემცირება, რათა ეკრანმა მეტი ადგილი დაიკავოს */
    .tv-frame-container {
        padding: 25px 20px 70px 20px;
    }

    /* 2. iframe-ის გადიდების (scale) გაუქმება, რაც მთავარი პრობლემაა.
       ეს სტილი აჩენს ვიდეოს მართვის ყველა ღილაკს. */
    .iframe-mask iframe.standard-frame {
        transform: none; /* ვაუქმებთ scale(1.5) და translateY(50px)-ს */
    }

    /* 3. YouTube-ის iframe-ის ფიქსირებული ზომების და პოზიციის გასწორება */
    .iframe-mask iframe.youtube-frame {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* 4. ჩარჩოს ელემენტების მცირედი კორექცია */
    .tv-logo {
        font-size: 0.8rem;
        bottom: 40px;
        letter-spacing: 2px;
    }

    .tv-power-indicator {
        bottom: 25px;
        right: 30px;
        transform: scale(0.9);
    }
    
    .tv-speakers {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    /* 5. დამატებითი კორექცია ძალიან პატარა ეკრანებისთვის */
    .tv-frame-container {
        padding: 20px 15px 60px 15px;
    }

    .tv-logo {
        bottom: 35px;
        font-size: 0.7rem;
    }
}
/* --- END: Mobile Responsiveness Fix for Player --- */

@media (max-width: 767.98px) { .stand-wrapper { flex-wrap: nowrap; justify-content: space-around; } .stand-link span { display: inline-block; } }
@media (max-width: 575.98px) { .stand-link span { display: none; } }