:root { --primary-color: #D80404; --live-color: #e62e2e; --not-live-color: rgba(128, 128, 128, 0.8); --menu-bg: rgba(25, 25, 25, 0.95); } body, html { margin: 0; padding: 0; overflow: hidden; background-color: #000; font-family: 'Tajawal', sans-serif !important; -webkit-tap-highlight-color: transparent; } #player-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; display: flex; justify-content: center; align-items: center; } #video-wrapper { position: relative; width: 100%; height: 100%; z-index: 1; } #video { width: 100%; height: 100%; object-fit: contain; } #loading-spinner, #error-overlay { position: absolute; z-index: 100; display: flex; align-items: center; justify-content: center; } #loading-spinner { width: 50px; height: 50px; border: 5px solid rgba(255, 255, 255, 0.2); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; display: none; /* Hidden by default */ } @keyframes spin { to { transform: rotate(360deg); } } #error-overlay { inset: 0; background-color: rgba(0,0,0,0.9); color: #fff; flex-direction: column; text-align: center; padding: 20px; display: none; } #error-overlay i { width: 48px; height: 48px; margin-bottom: 20px; } #error-overlay h3 { margin-bottom: 10px; } .controls-overlay { transition: opacity 0.3s, visibility 0.3s; opacity: 0; visibility: hidden; pointer-events: none; position: absolute; z-index: 10; } .controls-overlay.visible { opacity: 1; visibility: visible; pointer-events: auto; } #bottom-controls-container { bottom: 0; left: 0; right: 0; padding: 5px 15px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); } #center-controls { top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 30px; } .control-button, .center-control-button { background: none; border: none; color: #fff; cursor: pointer; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; display: inline-flex; /* Added for alignment */ align-items: center; /* Added for alignment */ } .control-button:hover { color: var(--primary-color); } .control-button i, .control-button svg { width: 22px; height: 22px; } .center-control-button { width: 70px; height: 70px; display: flex; justify-content: center; align-items: center; } .center-control-button i { width: 48px; height: 48px; filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, 0.8)); } #seek-backward-center-btn i { transform: scaleX(-1); } #seek-forward-center-btn i { transform: scaleX(-1); } .progress-bar-container { width: 100%; padding: 10px 0; cursor: pointer; } .progress-bar { width: 100%; height: 4px; background-color: rgba(255, 255, 255, 0.3); border-radius: 2px; } .progress-played { width: 0; height: 100%; background-color: var(--primary-color); border-radius: 2px; } .bottom-controls { display: flex; justify-content: space-between; align-items: center; padding: 0 5px; } .controls-left, .controls-right { display: flex; align-items: center; gap: 15px; } #live-indicator { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 50px; color: #fff; transition: background-color 0.3s ease; white-space: nowrap; } #live-indicator.is-live { background-color: var(--live-color); } #live-indicator.is-not-live { background-color: var(--not-live-color); cursor: pointer; } .popup-menu { position: absolute; bottom: 60px; width: 200px; background-color: var(--menu-bg); backdrop-filter: blur(8px); border-radius: 8px; z-index: 20; max-height: 200px; overflow-y: auto; display: none; } .popup-menu-list { list-style:none; padding: 5px; margin:0; } .menu-item { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 5px; cursor: pointer; font-weight: 500; color: #fff; } .menu-item:hover { background-color: rgba(255, 255, 255, 0.1); } .menu-item.active { color: var(--primary-color); font-weight: 700; } /* CSS الخاص بالديالوج */ #telegram-dialog-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; } #telegram-dialog-overlay.visible { opacity: 1; visibility: visible; } .dialog-box { background-color: rgba(30, 30, 30, 0.9); color: #fff; padding: 30px; border-radius: 12px; text-align: center; max-width: 320px; width: calc(100% - 40px); position: relative; border: 1px solid rgba(255, 255, 255, 0.1); transform: scale(0.9); transition: transform 0.3s; } #telegram-dialog-overlay.visible .dialog-box { transform: scale(1); } .dialog-box .dialog-icon { width: 48px; height: 48px; margin-bottom: 15px; color: var(--primary-color); } .dialog-box h3 { margin: 0 0 10px 0; font-size: 1.3rem; } .dialog-box p { margin: 0 0 25px 0; font-size: 0.95rem; opacity: 0.8; line-height: 1.6; } .dialog-join-btn { display: block; width: 100%; padding: 12px; background-color: var(--primary-color); color: #000; text-decoration: none; border-radius: 8px; font-weight: 700; transition: transform 0.2s, background-color 0.2s; border: none; font-family: 'Tajawal', sans-serif; font-size: 1rem; cursor: pointer; } .dialog-join-btn:hover { background-color: #ffca2c; transform: scale(1.03); } /* ★★★ CSS للزر الجديد ★★★ */ .dialog-secondary-btn { background: none; border: none; color: rgba(255, 255, 255, 0.7); cursor: pointer; font-family: 'Tajawal', sans-serif; font-size: 0.9rem; font-weight: 400; /* خط رفيع */ margin-top: 15px; padding: 5px; transition: color 0.2s; width: 100%; } .dialog-secondary-btn:hover { color: #fff; }