:root { --primary: #ff9800; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { background: #000; color: #fff; font-family: sans-serif; margin: 0; padding: 10px; direction: rtl; overflow: hidden; }

.main-container { width: 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.input-section { display: flex; gap: 5px; height: 45px; }
.input-section input { flex: 1; padding: 0 10px; border-radius: 8px; border: 1px solid #333; background: #1a1a1a; color: #fff; }
.input-section button { background: var(--primary); border: none; border-radius: 8px; font-weight: bold; padding: 0 15px; }

.player-container { 
    position: relative; width: 100%; aspect-ratio: 16/9; background: #000; 
    border-radius: 12px; overflow: hidden; 
}
video { width: 100%; height: 100%; object-fit: contain; }

.ui-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; z-index: 5; pointer-events: none; }
.ui-overlay button, .ui-overlay input { pointer-events: auto; }

.top-bar { padding: 10px; }
.menu-btn { background: rgba(0,0,0,0.7); color: #fff; border: 1px solid var(--primary); padding: 8px 12px; border-radius: 20px; font-size: 12px; }

.middle-controls { flex: 1; display: flex; justify-content: center; align-items: center; gap: 20px; }
.circle-btn { width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--primary); font-size: 20px; }

.bottom-bar { padding: 10px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
#progress { width: 100%; accent-color: var(--primary); margin-bottom: 5px; }
.status-row { display: flex; justify-content: space-between; font-size: 12px; align-items: center; }
.fs-btn { background: #333; color: #fff; border: none; padding: 4px 10px; border-radius: 4px; }

.side-panel { 
    position: absolute; top: 0; right: 0; width: 280px; height: 100%; 
    background: rgba(10,10,10,0.98); transform: translateX(100%); transition: 0.3s; 
    z-index: 20; border-left: 1px solid #333; 
}
.side-panel.open { transform: translateX(0); }
.panel-header { padding: 15px; background: var(--primary); color: #000; display: flex; justify-content: space-between; font-weight: bold; }
#playlist { list-style: none; padding: 0; margin: 0; overflow-y: auto; height: calc(100% - 50px); }
#playlist li { padding: 15px; border-bottom: 1px solid #222; font-size: 13px; outline: none; }
#playlist li.active { background: var(--primary); color: #000; }

.nav-item:focus { outline: 3px solid #fff; transform: scale(1.05); z-index: 10; }

@media (max-width: 600px) {
    .side-panel { width: 80%; }
    .circle-btn { width: 40px; height: 40px; font-size: 16px; }
}
/* اضافه کردن به انتهای فایل style.css */
.volume-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

#muteBtn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

#volumeBar {
    width: 60px; /* در موبایل کوتاه باشد که فضا نگیرد */
    height: 4px;
    accent-color: #ff9800;
    cursor: pointer;
}

@media (max-width: 480px) {
    #volumeBar { display: none; } /* در موبایل‌های خیلی کوچک فقط دکمه سایلنت بماند */
    .volume-container:focus-within #volumeBar { display: block; } /* با فوکوس ظاهر شود */
}