*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Inter','Vazirmatn',system-ui,sans-serif;background:#0d0407;color:#f5e6d0;line-height:1.6;min-height:100vh;-webkit-font-smoothing:antialiased;overflow-x:hidden}
html[dir="rtl"] body{font-family:'Vazirmatn','Inter',system-ui,sans-serif}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button{cursor:pointer;font-family:inherit}

.container{width:min(92%,960px);margin:0 auto;padding:0 1rem}

.site-header{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(13,4,7,0.85);backdrop-filter:blur(12px);border-bottom:1px solid rgba(212,160,67,0.2)}
.nav{display:flex;align-items:center;gap:1rem;padding:0.7rem 0}
.nav-links{margin-left:auto;display:flex;align-items:center;gap:0.3rem}
.nav-links a{padding:0.5rem 0.9rem;border-radius:8px;font-weight:500;font-size:0.9rem;color:#d4af7a;transition:all 0.2s}
.nav-links a:hover{background:rgba(120,30,55,0.15);color:#e8c47a}
.lang-btn{min-width:42px;height:38px;padding:0 0.6rem;display:grid;place-items:center;border:1px solid rgba(212,160,67,0.2);border-radius:10px;background:rgba(120,30,55,0.15);color:#d4a043;font-size:0.75rem;font-weight:700;transition:all 0.3s;margin-left:0.3rem;letter-spacing:0.5px}
.lang-btn:hover{background:#d4a043;color:#fff}

.songs-page{padding:100px 0 60px;min-height:100vh;background:linear-gradient(135deg,#0d0407 0%,#1a080e 40%,#0d0407 100%)}
.page-header{text-align:center;margin-bottom:2rem;padding-top:1rem}
.page-header h1{font-size:2rem;font-weight:800;color:#f5e6d0;display:flex;align-items:center;justify-content:center;gap:0.7rem}
.page-header h1 i{color:#d4a043}
.page-header p{color:#b8945a;font-size:0.95rem;margin-top:0.3rem}
.back-link{display:inline-flex;align-items:center;gap:0.4rem;color:#b8945a;font-size:0.85rem;margin-bottom:1.5rem;transition:color 0.2s}
.back-link:hover{color:#d4a043}

.empty-state{text-align:center;padding:4rem 2rem;background:linear-gradient(145deg,rgba(60,15,28,0.4),rgba(30,8,14,0.6));backdrop-filter:blur(16px);border:1px solid rgba(212,160,67,0.2);border-radius:16px}
.empty-state i{font-size:3rem;color:#d4a043;margin-bottom:1rem}
.empty-state p{color:#b8945a;font-size:1rem}

.song-list{display:flex;flex-direction:column;gap:1rem}
.song-item{background:linear-gradient(145deg,rgba(60,15,28,0.4),rgba(30,8,14,0.6));backdrop-filter:blur(16px);border:1px solid rgba(212,160,67,0.2);border-radius:16px;overflow:hidden;transition:all 0.3s}
.song-item:hover{border-color:rgba(212,160,67,0.35)}
.song-item.active{border-color:#d4a043}

.song-header{padding:1rem 1.2rem;display:flex;align-items:center;gap:1rem;cursor:pointer;user-select:none}
.song-num{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#6b1d2f,#d4a043);color:#fff;display:grid;place-items:center;font-size:0.85rem;font-weight:700;flex-shrink:0}
.song-photo{width:44px;height:44px;border-radius:8px;overflow:hidden;flex-shrink:0}
.song-photo img{width:100%;height:100%;object-fit:cover}
.song-info{flex:1;min-width:0}
.song-info h3{font-size:1rem;font-weight:600;color:#f5e6d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.song-info .artist{font-size:0.8rem;color:#b8945a}
.song-actions{display:flex;gap:0.5rem;flex-shrink:0}
.song-actions button{width:36px;height:36px;border-radius:50%;border:1px solid rgba(212,160,67,0.2);background:rgba(120,30,55,0.15);color:#d4a043;display:grid;place-items:center;transition:all 0.25s;font-size:0.9rem}
.song-actions button:hover{background:#d4a043;color:#fff}

.song-body{max-height:0;overflow:hidden;transition:max-height 0.35s ease}
.song-body-inner{padding:0 1.2rem 1.2rem;border-top:1px solid rgba(212,160,67,0.1);padding-top:1rem}

.player-wrapper{display:flex;align-items:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}
.player-controls{display:flex;align-items:center;gap:0.5rem}
.player-controls button{width:40px;height:40px;border-radius:50%;border:0;background:linear-gradient(135deg,#6b1d2f,#d4a043);color:#fff;display:grid;place-items:center;font-size:1rem;transition:all 0.2s}
.player-controls button:hover{transform:scale(1.08);box-shadow:0 0 20px rgba(212,160,67,0.3)}
.progress-wrap{flex:1;display:flex;align-items:center;gap:0.5rem;min-width:100px}
.progress-wrap input[type="range"]{-webkit-appearance:none;appearance:none;flex:1;height:4px;border-radius:2px;background:rgba(212,160,67,0.2);outline:none;min-width:40px}
.progress-wrap input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#d4a043;cursor:pointer;border:2px solid #0d0407}
.time-display{font-size:0.75rem;color:#b8945a;font-variant-numeric:tabular-nums;min-width:35px;text-align:center;white-space:nowrap}
.loading-indicator{color:#d4a043;font-size:0.8rem;display:flex;align-items:center;gap:0.4rem;flex-shrink:0}
.loading-indicator .buf-msg{font-size:0.7rem;color:#b8945a;white-space:nowrap}
.volume-wrap{display:flex;align-items:center;gap:0.3rem;flex-shrink:0}
.volume-wrap i{color:#b8945a;font-size:0.8rem}
.volume-wrap input[type="range"]{-webkit-appearance:none;appearance:none;width:50px;height:4px;border-radius:2px;background:rgba(212,160,67,0.2);outline:none}
.volume-wrap input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;border-radius:50%;background:#d4a043;cursor:pointer}
.download-btn{display:inline-flex;align-items:center;gap:0.4rem;padding:0.4rem 1rem;border-radius:8px;border:1px solid rgba(212,160,67,0.2);background:rgba(120,30,55,0.15);color:#d4a043;font-size:0.85rem;transition:all 0.25s;text-decoration:none;white-space:nowrap}
.download-btn:hover{background:#d4a043;color:#fff}
.slow-hint{font-size:0.7rem;color:#6b5a3a;font-style:italic;white-space:nowrap}

.poet-box{background:rgba(255,255,255,0.04);border:1px solid rgba(212,160,67,0.1);border-radius:12px;padding:1rem;margin-top:0.8rem}
.poet-box h4{font-size:0.8rem;color:#b8945a;text-transform:uppercase;letter-spacing:1px;margin-bottom:0.5rem}
.poet-text{font-size:0.92rem;color:#d4af7a;white-space:pre-wrap;line-height:1.8}
html[dir="rtl"] .poet-text{font-family:'Vazirmatn','Inter',sans-serif}

.site-footer{padding:1.5rem 0;border-top:1px solid rgba(212,160,67,0.2);color:#6b5a3a;font-size:0.85rem;text-align:center}

@media(max-width:768px){
  .song-header{flex-wrap:wrap;padding:0.8rem 1rem}
  .song-info{flex:1 1 100%;order:-1;margin-bottom:0.3rem}
  .player-wrapper{flex-direction:column;align-items:stretch;gap:0.6rem}
  .progress-wrap{min-width:unset;gap:0.3rem}
  .progress-wrap input[type="range"]{min-width:unset}
  .time-display{min-width:30px;font-size:0.7rem}
  .volume-wrap{align-self:flex-end}
  .volume-wrap input[type="range"]{width:40px}
  .page-header h1{font-size:1.5rem}
  .song-body-inner{padding:0 1rem 1rem;padding-top:0.8rem}
}
@media(max-width:480px){
  .song-actions button{width:32px;height:32px;font-size:0.8rem}
  .player-controls button{width:36px;height:36px;font-size:0.85rem}
  .download-btn{padding:0.3rem 0.7rem;font-size:0.75rem}
  .slow-hint{font-size:0.65rem;text-align:center;width:100%;display:block}
}
.theme-blue body,.theme-blue{background:#080c1a!important;color:#f0f4ff!important}
.theme-blue .site-header{background:rgba(8,12,26,0.85)!important;border-color:rgba(14,165,233,0.2)!important}
.theme-blue .lang-btn{background:rgba(79,70,229,0.08)!important;border-color:rgba(14,165,233,0.2)!important;color:#7dd3fc!important}
.theme-blue .lang-btn:hover{background:rgba(79,70,229,0.15)!important;color:#06b6d4!important}
.theme-blue .song-item{background:rgba(79,70,229,0.12)!important;border-color:rgba(14,165,233,0.2)!important}
.theme-blue .song-item:hover{border-color:rgba(14,165,233,0.35)!important}
.theme-blue .song-title{color:#f0f4ff!important}
.theme-blue .song-artist{color:#7dd3fc!important}
.theme-blue .empty-state{background:rgba(79,70,229,0.08)!important;color:#64748b!important}
.theme-blue .audio-player{background:rgba(79,70,229,0.12)!important;border-color:rgba(14,165,233,0.2)!important}
.theme-blue .audio-btn{background:linear-gradient(135deg,#4f46e5,#0ea5e9)!important}
.theme-blue .lyrics{color:#c7d2fe!important}
.theme-blue .lyrics-btn{color:#0ea5e9!important}
.theme-blue .section-title{color:#0ea5e9!important}
.theme-blue .song-date{color:#64748b!important}
.theme-blue footer,.theme-blue .footer{color:#64748b!important}
.theme-blue a{color:#7dd3fc!important}
.theme-blue a:hover{color:#06b6d4!important}
.theme-blue .admin-link{background:rgba(79,70,229,0.1)!important;border-color:rgba(14,165,233,0.2)!important;color:#7dd3fc!important}
.theme-blue .admin-link:hover{background:rgba(79,70,229,0.2)!important;color:#06b6d4!important}
.player-error{font-size:0.8rem;color:#ef4444;margin-top:0.5rem;min-height:1.2em}
