/* ═══════════════════════════════════════════════════════════
   VARIABLES & BASE
   ═══════════════════════════════════════════════════════════ */
:root{
    --p:#00ffff;
    --bg:#0a0e17;
    --active:#ff00ff;
    --like:#00ff88;
    --dislike:#ff3300;
    --tr:0.3s cubic-bezier(0.4,0,0.2,1);

    --section-px: clamp(10px, 2.5vw, 36px);
    --section-py: clamp(24px, 4vw, 56px);
}
*,*::before,*::after{box-sizing:border-box;}
html,body{margin:0;padding:0;width:100%;overflow-x:hidden;}
body{font-family:'Vazirmatn',sans-serif;background:var(--bg);color:#eee;}

/* ═══════════════════════════════════════════════════════════
   GLOBAL ACTIVE/FOCUS RESET
   ═══════════════════════════════════════════════════════════ */
a, button, [role="button"], .song-card, .fav-singer-btn,
.footer-link-btn, .menu-links a, .search-trigger, .menu-trigger,
.play-btn, .dl-btn, .social-btn {
    -webkit-tap-highlight-color: transparent;
}
a:focus, button:focus, [role="button"]:focus,
.song-card:focus, .fav-singer-btn:focus,
.footer-link-btn:focus, .menu-links a:focus,
.search-trigger:focus, .menu-trigger:focus,
.play-btn:focus, .dl-btn:focus {
    outline: none;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero::before{
    content:'';position:absolute;inset:0;
    background:radial-gradient(circle at center,rgba(0,255,255,0.25),transparent 70%);
}
.singer-main{
    text-align:center;
    padding: 0 clamp(10px, 2.5vw, 14px);
    position:relative;z-index:10;
    width:100%;max-width:1200px;
}
.singer-photo{
    width: clamp(80px, 18vw, 180px);
    height: clamp(80px, 18vw, 180px);
    border-radius:50%;
    object-fit:cover;
    border: clamp(3px, 0.6vw, 6px) solid var(--p);
    box-shadow:0 0 clamp(25px, 6vw, 90px) rgba(0,255,255,0.8);
    margin-bottom: clamp(8px, 1.2vw, 14px);
    transform: none !important;
    transition: none !important;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}
.singer-name{
    font-size: clamp(20px, 5vw, 52px);
    font-weight:900;
    background:linear-gradient(90deg,var(--p),#ff00ff,var(--p));
    background-size:300%;
    -webkit-background-clip:text;background-clip:text;color:transparent;
    animation:neonFlow 8s linear infinite;
    line-height: 1.2;
    margin: 0 0 clamp(4px, 0.8vw, 10px);
    padding: 0 clamp(6px, 2vw, 14px);
    word-break: keep-all;
}
@keyframes neonFlow{0%{background-position:0%}100%{background-position:300%}}
.total-songs{
    font-size: clamp(11px, 2vw, 20px);
    color:var(--p);
    margin-top: clamp(4px, 0.8vw, 8px);
    text-shadow:0 0 clamp(10px, 3vw, 30px) var(--p);
    font-weight: 700;
}
.singer-birth{
    margin: clamp(6px, 1vw, 12px) auto;
    font-size: clamp(11px, 1.6vw, 14px);
    font-weight:bold;
    background:linear-gradient(90deg,#00ffff,#00ff88,#00ffff);
    -webkit-background-clip:text;background-clip:text;color:transparent;
    padding: clamp(4px, 0.6vw, 7px) clamp(10px, 2vw, 22px);
    border-radius:50px;
    display:inline-block;
    border: clamp(1px, 0.2vw, 1.5px) solid rgba(0,255,136,0.4);
    box-shadow:0 0 clamp(10px, 2.5vw, 30px) rgba(0,255,136,0.35);
}
.singer-birth:empty{display:none;}
.singer-bio{
    margin: clamp(8px, 1.2vw, 14px) auto clamp(6px, 1vw, 10px);
    max-width: min(860px, 94vw);
    padding: clamp(8px, 1.2vw, 13px) clamp(10px, 2vw, 18px);
    background:rgba(0,255,255,0.07);
    border: clamp(1px, 0.3vw, 1.5px) solid rgba(0,255,255,0.25);
    border-radius: clamp(8px, 1.2vw, 13px);
    font-size: clamp(11px, 1.5vw, 14px);
    line-height: clamp(1.5, 0.2vw + 1.4, 1.85);
    color:#e0e0e0;
    text-align:justify;
    box-shadow:0 0 clamp(10px, 2.5vw, 28px) rgba(0,255,255,0.1);
    word-break: keep-all;
    overflow-wrap: break-word;
}
.singer-bio:empty{display:none;}
.fav-container{
    margin-top: clamp(8px, 1.5vw, 16px);
    position:relative;z-index:999;
}
.fav-singer-btn{
    padding: clamp(7px, 1.2vw, 10px) clamp(14px, 3vw, 28px);
    border-radius:50px;
    font-size: clamp(12px, 1.6vw, 15px);
    font-weight:900;
    background:rgba(0,255,255,0.15);color:#fff;
    border: clamp(1.5px, 0.3vw, 2px) solid var(--p);
    cursor:pointer;
    transition: background .35s ease, color .35s ease, box-shadow .35s ease, border-color .35s ease;
    box-shadow:0 0 clamp(12px, 3vw, 30px) rgba(0,255,255,0.3);
    display:inline-flex;align-items:center;
    gap: clamp(5px, 1vw, 8px);
}
.fav-singer-btn i{
    font-size: clamp(12px, 2vw, 17px);
    transition: color .35s ease;
}
.fav-singer-btn:hover{
    background:var(--p);color:#000;
    box-shadow:0 0 clamp(20px, 5vw, 50px) rgba(0,255,255,0.6);
}
.fav-singer-btn.active{
    background:#ff00ff;border-color:#ff00ff;color:#fff;
    box-shadow:0 0 clamp(20px, 5vw, 50px) rgba(255,0,255,0.7);
}
.fav-singer-btn.loading{opacity:0.7;pointer-events:none;}
.fav-status{
    margin-top: clamp(4px, 0.7vw, 7px);
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight:bold;
    min-height: clamp(16px, 2vw, 20px);
    transition:all .3s;
}
.fav-status.success{color:#00ff88;}
.fav-status.error{color:#ff4444;}

/* ═══════════════════════════════════════════════════════════
   SONGS SECTION
   ═══════════════════════════════════════════════════════════ */
.songs-section{
    padding: clamp(10px, 1.8vw, 24px) var(--section-px) clamp(20px, 3.5vw, 48px);
}
.section-title{
    text-align:center;
    margin-bottom: clamp(8px, 1.8vw, 20px);
    font-size: clamp(15px, 3.5vw, 36px);
    font-weight:900;
    background:linear-gradient(90deg, #ffd700 0%, #ff00ff 25%, #00ffff 50%, #ff00ff 75%, #ffd700 100%);
    background-size:300%;
    -webkit-background-clip:text;background-clip:text;color:transparent;
    text-shadow:0 0 clamp(14px, 3.5vw, 36px) rgba(255,0,255,0.4);
    animation: titleFlow 10s linear infinite;
    line-height: 1.35;
    padding: 0 clamp(4px, 1.5vw, 12px);
    word-break: keep-all;
    letter-spacing: 0.5px;
}
@keyframes titleFlow{
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
.songs-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(7px, 1.5vw, 18px);
    max-width: 1600px;
    margin:0 auto;
    padding: 0 clamp(2px, 0.8vw, 8px);
}
.song-card{
    background:#111;
    border-radius: clamp(10px, 1.8vw, 16px);
    overflow:hidden;
    border: clamp(1px, 0.3vw, 1.5px) solid rgba(0,255,255,0.15);
    box-shadow:0 8px 24px rgba(0,0,0,0.7);
    transition: border-color .35s ease, box-shadow .35s ease;
    transform: none !important;
}
.song-card:hover{
    border-color:var(--p);
    box-shadow:0 12px 36px rgba(0,255,255,0.22);
}
.song-card:active{
    border-color: rgba(0,255,255,0.15);
    box-shadow:0 8px 24px rgba(0,0,0,0.7);
}
.song-cover{
    width:100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit:cover;
    object-position: center;
    display: block;
    transform: none !important;
    transition: filter .4s ease, opacity .4s ease;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}
.song-card:hover .song-cover{
    transform: none !important;
}
.song-info{
    padding: clamp(6px, 1.2vw, 11px) clamp(5px, 1vw, 9px) clamp(8px, 1.6vw, 13px);
    text-align:center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.song-title{
    font-size: clamp(10px, 1.5vw, 13px);
    font-weight:900;
    line-height:1.4;
    margin: 0 0 clamp(5px, 0.9vw, 8px);
    color: #a78bfa;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}
.play-download{
    display:flex;
    gap: clamp(4px, 0.9vw, 8px);
    justify-content:center;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}
.play-btn,.dl-btn{
    padding: clamp(5px, 1vw, 8px) clamp(6px, 1.4vw, 12px);
    border-radius:40px;
    font-size: clamp(9px, 1.4vw, 12px);
    font-weight:900;
    text-decoration:none;
    transition: filter .4s ease, box-shadow .4s ease, opacity .3s;
    white-space:nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, 0.5vw, 4px);
    cursor: pointer;
    border: none;
    font-family: inherit;
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.play-btn{background:linear-gradient(135deg,var(--p),#0088ff);color:#000;}
.dl-btn{background:linear-gradient(135deg,#00ff88,#00c851);color:#000;}
.play-btn:hover, .dl-btn:hover{
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(0,255,255,0.3);
}
.dl-btn.downloading{
    opacity: 0.7;
    pointer-events: none;
    background: linear-gradient(135deg, #888, #666);
}
.dl-btn .dl-spinner{
    display: none;
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: dlspin 0.8s linear infinite;
}
.dl-btn.downloading .dl-spinner{ display: inline-block; }
@keyframes dlspin{ to{ transform: rotate(360deg); } }

.no-songs{
    text-align:center;
    padding: clamp(40px, 8vw, 90px) clamp(12px, 2.5vw, 20px);
    font-size: clamp(15px, 3.2vw, 28px);
    color:#00ffff99;
    text-shadow:0 0 clamp(18px, 5vw, 55px) #00ffff;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH & MENU TRIGGERS
   ═══════════════════════════════════════════════════════════ */
.search-trigger,.menu-trigger{
    position:fixed;
    top: clamp(10px, 2vw, 20px);
    z-index:9999;
    width: clamp(44px, 6vw, 60px);
    height: clamp(44px, 6vw, 60px);
    background:var(--p);color:#000;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    font-size: clamp(18px, 3vw, 26px);
    cursor:pointer;
    box-shadow:0 0 clamp(30px, 6vw, 60px) rgba(0,255,255,0.7);
    transition: box-shadow .4s ease;
    backdrop-filter: blur(12px);
}
.search-trigger{left: clamp(8px, 2vw, 20px);}
.menu-trigger{right: clamp(8px, 2vw, 20px);}
.search-trigger:hover,.menu-trigger:hover{
    box-shadow:0 0 clamp(45px, 9vw, 90px) rgba(0,255,255,1);
}
/* ردیف دکمه‌های سمت چپِ بالا: «جستجو» (چپ‌ترین) سپس «ورود/ثبت‌نام» */
.top-left-controls{
    position:fixed;
    top: clamp(10px, 2vw, 20px);
    left: clamp(8px, 2vw, 20px);
    z-index:9999;
    display:flex; align-items:center;
    gap: clamp(8px, 1.5vw, 12px);
}
/* داخل این ردیف، دکمه جستجو دیگر به‌صورت مطلق جای‌گذاری نمی‌شود */
.top-left-controls .search-trigger{ position:static; top:auto; left:auto; }
/* دکمه ورود / ثبت‌نام — رنگ بنفش→مجنتا، متمایز و چشم‌نواز نسبت به دکمه‌های فیروزه‌ای */
.login-trigger{
    height: clamp(44px, 6vw, 60px);
    width: clamp(44px, 6vw, 60px);   /* پیش‌فرض دستگاه کوچک: فقط آیکون، دایره‌ای */
    padding: 0;
    background: linear-gradient(135deg, #9d4edd 0%, #ff2d95 55%, #ff00ff 100%);
    color:#fff; border:none; border-radius:50px;
    display:flex; align-items:center; justify-content:center; gap:8px;
    font-family:inherit; font-weight:900; white-space:nowrap; cursor:pointer;
    font-size: clamp(18px, 3vw, 24px);
    box-shadow:0 0 clamp(28px, 6vw, 55px) rgba(199,77,221,0.65);
    transition: box-shadow .4s ease, transform .2s ease;
    backdrop-filter: blur(12px);
}
.login-trigger .login-text{ display:none; }
.login-trigger i{ font-size: clamp(17px, 3vw, 22px); }
.login-trigger:hover{ box-shadow:0 0 clamp(45px, 9vw, 85px) rgba(255,45,149,0.95); }
/* دستگاه‌های بزرگ (لپ‌تاپ/دسکتاپ): نمایش متنِ «ورود یا ثبت‌نام» */
@media(min-width:1024px){
    .login-trigger{ width:auto; padding:0 22px; font-size:16px; gap:9px; }
    .login-trigger .login-text{ display:inline; }
    .login-trigger i{ font-size:17px; }
}

/* ═══════════════════════════════════════════════════════════
   SIDE MENU
   ═══════════════════════════════════════════════════════════ */
.side-menu {
    position: fixed; top: 0; right: 0;
    width: min(320px, 86vw);
    height: 100vh; height: 100dvh;
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(0,255,255,0.10) 0%, transparent 55%),
        radial-gradient(120% 60% at 0% 100%, rgba(199,125,255,0.10) 0%, transparent 55%),
        linear-gradient(160deg, #0a0e17 0%, #11162a 50%, #1a1f33 100%);
    border-left: 1px solid rgba(0,255,255,0.18);
    z-index: 10000;
    transform: translateX(105%);
    transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow .55s ease;
    box-shadow: -12px 0 60px rgba(0,0,0,0);
    display: flex; flex-direction: column; overflow-y: auto;
    overscroll-behavior: contain;
    will-change: transform;
}
.side-menu.open {
    transform: translateX(0);
    box-shadow: -18px 0 70px rgba(0,0,0,0.85), -2px 0 0 rgba(0,255,255,0.25);
}
.side-menu::-webkit-scrollbar { width: 6px; }
.side-menu::-webkit-scrollbar-thumb { background: rgba(0,255,255,0.25); border-radius: 6px; }

.menu-header {
    padding: clamp(18px,4vw,28px) clamp(14px,3vw,20px);
    background: linear-gradient(135deg, var(--p), #c77dff);
    color: #000;
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.menu-header::after {
    content: ''; position: absolute; inset: auto 0 -1px 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.35), transparent);
}
.user-info { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; min-width: 0; }
.user-avatar {
    width: clamp(56px, 12vw, 76px);
    height: clamp(56px, 12vw, 76px);
    border-radius: 50%; border: 3px solid #000;
    object-fit: cover; flex-shrink: 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.user-details { flex: 1; min-width: 0; }
.username {
    font-size: clamp(15px, 3.5vw, 19px);
    font-weight: 900; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile { font-size: clamp(12px, 2.5vw, 14px); opacity: 0.9; }
.close-menu {
    font-size: 22px; cursor: pointer; padding: 8px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: transform .35s ease, background .25s ease;
    flex-shrink: 0;
}
.close-menu:hover { background: rgba(0,0,0,0.25); transform: rotate(90deg); }
.close-menu:active { transform: rotate(90deg) scale(0.92); }

.menu-links { flex: 1; padding: 10px 0; overflow-y: auto; }
.menu-links a {
    display: flex; align-items: center;
    padding: clamp(12px,3vw,16px) clamp(18px,4vw,24px);
    color: #eee; text-decoration: none;
    font-size: 15px; font-weight: 600;
    transition: background .3s ease, color .3s ease, padding-right .3s ease, transform .3s ease;
    border-bottom: 1px solid rgba(0,255,255,0.07);
    position: relative;
    opacity: 0;
    transform: translateX(28px);
}
.side-menu.open .menu-links a {
    opacity: 1;
    transform: translateX(0);
    transition: background .3s ease, color .3s ease, padding-right .3s ease,
                opacity .45s ease, transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}
/* stagger ورود آیتم‌ها */
.side-menu.open .menu-links a:nth-child(1) { transition-delay: .08s; }
.side-menu.open .menu-links a:nth-child(2) { transition-delay: .14s; }
.side-menu.open .menu-links a:nth-child(3) { transition-delay: .20s; }
.side-menu.open .menu-links a:nth-child(4) { transition-delay: .26s; }
.side-menu.open .menu-links a:nth-child(5) { transition-delay: .32s; }
.side-menu.open .menu-links a:nth-child(6) { transition-delay: .38s; }
.side-menu.open .menu-links a:nth-child(7) { transition-delay: .44s; }
.side-menu.open .menu-links a:nth-child(8) { transition-delay: .50s; }

.menu-links a::before {
    content: ''; position: absolute; top: 10%; bottom: 10%; right: 0;
    width: 3px; border-radius: 3px 0 0 3px;
    background: linear-gradient(180deg, var(--p), #c77dff);
    transform: scaleY(0); transform-origin: center;
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.menu-links a:hover {
    background: linear-gradient(90deg, rgba(0,255,255,0.04), rgba(0,255,255,0.14) 100%);
    color: var(--p);
    padding-right: clamp(22px, 5vw, 32px);
}
.menu-links a:hover::before { transform: scaleY(1); }
.menu-links a:focus-visible {
    outline: 2px solid var(--p);
    outline-offset: -4px;
    background: rgba(0,255,255,0.08);
}
.menu-links a i {
    width: 28px; text-align: center; margin-left: 12px;
    color: var(--p); font-size: clamp(16px,3.5vw,20px);
    transition: transform .35s ease;
}
.menu-links a:hover i { transform: none; }

.menu-links .logout { color: #ff5a5a; }
.menu-links .logout i { color: #ff5a5a; }
.menu-links .logout::before { background: linear-gradient(180deg, #ff5a5a, #ff2d95); }
.menu-links .logout:hover {
    background: linear-gradient(90deg, rgba(255,68,68,0.06), rgba(255,68,68,0.18));
    color: #ff7a7a;
}

.menu-footer{
    padding: clamp(18px, 3vw, 30px);
    text-align:center;
    color:#888;
    font-size: clamp(12px, 1.8vw, 14px);
    border-top:1px solid rgba(0,255,255,0.1);
    flex-shrink: 0;
}
.menu-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 9998; opacity: 0; visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* ── ریسپانسیو منو: تبلت ── */
@media (min-width: 641px) and (max-width: 1023px) {
    .side-menu { width: min(380px, 60vw); }
    .menu-links a { font-size: 16px; padding: 15px 22px; }
}
/* ── ریسپانسیو منو: لپ‌تاپ و دسکتاپ ── */
@media (min-width: 1024px) {
    .side-menu { width: 400px; }
    .menu-links a { font-size: 16.5px; padding: 16px 26px; }
    .menu-links a i { font-size: 19px; }
}
/* احترام به prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .side-menu, .menu-links a, .menu-overlay, .close-menu, .menu-links a i {
        transition: none !important;
    }
    .side-menu.open .menu-links a { transition-delay: 0s !important; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — GRID + SPACING
   ═══════════════════════════════════════════════════════════ */
/* موبایل خیلی کوچک ≤359px */
@media(max-width:359px){
    .singer-main{padding:0 6px;}
    .hero{padding-top:50px;padding-bottom:10px;}
    .singer-photo{width:95px;height:95px;}
    .singer-name{font-size:17px;margin-bottom:3px;}
    .total-songs{font-size:10px;margin-top:3px;}
    .singer-birth{font-size:9px;padding:3px 8px;margin:4px auto;}
    .singer-bio{font-size:10px;padding:6px 8px;margin:5px auto;line-height:1.5;}
    .fav-singer-btn{padding:5px 12px;font-size:10px;gap:4px;}
    .fav-container{margin-top:6px;}
    .songs-section{padding:10px 6px 20px;}
    .section-title{font-size:14px;margin-bottom:8px;}
    .songs-grid{grid-template-columns:repeat(2,1fr);gap:5px;padding:0 2px;}
    .song-info{padding:4px 4px 6px;}
    .song-title{font-size:9px;margin-bottom:4px;}
    .play-download{gap:3px;}
    .play-btn,.dl-btn{padding:4px 4px;font-size:8px;gap:2px;}
    .play-btn i,.dl-btn i{font-size:8px;}
}
/* موبایل کوچک 360–479px */
@media(min-width:360px) and (max-width:479px){
    .singer-main{padding:0 8px;}
    .hero{padding-top:52px;padding-bottom:12px;}
    .singer-photo{width:108px;height:108px;}
    .singer-name{font-size:20px;margin-bottom:4px;}
    .total-songs{font-size:11px;margin-top:3px;}
    .singer-birth{font-size:10px;padding:4px 10px;margin:5px auto;}
    .singer-bio{font-size:11px;padding:7px 10px;margin:6px auto;line-height:1.55;}
    .fav-singer-btn{padding:6px 14px;font-size:11px;}
    .fav-container{margin-top:7px;}
    .songs-section{padding:12px 8px 22px;}
    .section-title{font-size:16px;margin-bottom:10px;}
    .songs-grid{grid-template-columns:repeat(2,1fr);gap:7px;padding:0 3px;}
    .song-info{padding:5px 5px 7px;}
    .song-title{font-size:10px;margin-bottom:5px;}
    .play-download{gap:3px;}
    .play-btn,.dl-btn{padding:4px 5px;font-size:9px;}
}
/* موبایل متوسط 480–639px */
@media(min-width:480px) and (max-width:639px){
    .hero{padding-top:54px;padding-bottom:14px;}
    .singer-photo{width:120px;height:120px;}
    .singer-name{font-size:24px;}
    .total-songs{font-size:12px;}
    .singer-birth{font-size:11px;padding:4px 12px;}
    .singer-bio{font-size:12px;padding:8px 12px;}
    .fav-singer-btn{padding:7px 16px;font-size:12px;}
    .songs-section{padding:14px 10px 26px;}
    .section-title{font-size:18px;margin-bottom:12px;}
    .songs-grid{grid-template-columns:repeat(3,1fr);gap:8px;padding:0 5px;}
    .song-info{padding:6px 5px 8px;}
    .song-title{font-size:10px;}
    .play-btn,.dl-btn{padding:5px 6px;font-size:9px;}
}
/* تبلت 640–899px */
@media(min-width:640px) and (max-width:899px){
    .hero{padding-top:58px;padding-bottom:16px;}
    .singer-photo{width:130px;height:130px;}
    .singer-name{font-size:30px;}
    .total-songs{font-size:14px;}
    .singer-birth{font-size:12px;}
    .singer-bio{font-size:12px;padding:9px 14px;}
    .fav-singer-btn{padding:8px 20px;font-size:13px;}
    .songs-section{padding:16px 14px 30px;}
    .section-title{font-size:22px;margin-bottom:14px;}
    .songs-grid{grid-template-columns:repeat(3,1fr);gap:11px;padding:0 8px;}
    .song-info{padding:7px 7px 9px;}
    .song-title{font-size:11px;}
    .play-btn,.dl-btn{padding:5px 8px;font-size:10px;}
}
/* لپ‌تاپ کوچک 900–1199px */
@media(min-width:900px) and (max-width:1199px){
    .hero{padding-top:70px;padding-bottom:18px;}
    .singer-photo{width:150px;height:150px;}
    .singer-name{font-size:38px;}
    .songs-section{padding:18px 18px 36px;}
    .section-title{font-size:26px;margin-bottom:16px;}
    .songs-grid{grid-template-columns:repeat(4,1fr);gap:13px;padding:0 12px;}
    .song-info{padding:8px 7px 10px;}
    .song-title{font-size:12px;}
    .play-btn,.dl-btn{padding:6px 9px;font-size:11px;}
}
/* لپ‌تاپ 1200–1599px */
@media(min-width:1200px) and (max-width:1599px){
    .songs-section{padding:20px 20px 40px;}
    .section-title{font-size:30px;}
    .songs-grid{grid-template-columns:repeat(5,1fr);gap:15px;padding:0 15px;}
}
/* دسکتاپ بزرگ 1600px+ */
@media(min-width:1600px){
    .songs-section{padding:22px 24px 44px;}
    .section-title{font-size:34px;}
    .songs-grid{grid-template-columns:repeat(6,1fr);gap:18px;padding:0 18px;}
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — حرفه‌ای و کاملاً ریسپانسیو
   ═══════════════════════════════════════════════════════════ */
footer {
    background: linear-gradient(180deg, #000 0%, #050810 100%);
    border-top: 2px solid rgba(0,255,255,0.18);
    color: #888;
    position: relative;
    z-index: 1;
    padding: clamp(40px, 6vw, 70px) clamp(16px, 4vw, 50px) clamp(24px, 4vw, 40px);
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: clamp(100px, 20vw, 200px);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--p), transparent);
    box-shadow: 0 0 20px rgba(0,255,255,0.6);
}
footer a:not(.footer-link-btn):not(.social-btn) {
    color: var(--p);
    font-weight: 700;
    text-decoration: none;
}
footer a:not(.footer-link-btn):not(.social-btn):hover {
    text-decoration: underline;
}

/* Footer Inner Container */
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 3vw, 32px);
}

/* Footer Brand (logo/name top) */
.footer-brand {
    text-align: center;
    margin-bottom: clamp(4px, 1vw, 8px);
}
.footer-brand-name {
    font-size: clamp(20px, 3.5vw, 32px);
    font-weight: 900;
    background: linear-gradient(90deg, var(--p), #c77dff, var(--p));
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: neonFlow 8s linear infinite;
    margin: 0;
    letter-spacing: 1px;
}
.footer-brand-tagline {
    font-size: clamp(11px, 1.8vw, 14px);
    color: #aaa;
    margin-top: 6px;
    font-weight: 500;
}

/* Footer Links Row — همیشه ۴ دکمه در یک ردیف */
.footer-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(4px, 1.2vw, 16px);
    width: 100%;
    padding: 0 clamp(2px, 1.5vw, 16px);
}
.footer-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.8vw, 8px);
    padding: clamp(7px, 1.4vw, 13px) clamp(6px, 1.5vw, 22px);
    background: rgba(199,125,255,0.10);
    border: 1.5px solid rgba(199,125,255,0.35);
    border-radius: 50px;
    color: #c77dff !important;
    font-size: clamp(9px, 1.5vw, 15px);
    font-weight: 700;
    text-decoration: none !important;
    transition: all .3s;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    max-width: 25%;
    min-height: clamp(34px, 5.5vw, 46px);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
}
.footer-link-btn i {
    font-size: clamp(10px, 1.4vw, 15px);
    color: #c77dff !important;
    flex-shrink: 0;
}
.footer-link-btn:hover {
    background: #c77dff;
    color: #fff !important;
    border-color: #c77dff;
    box-shadow: 0 0 30px rgba(199,125,255,0.5);
}
.footer-link-btn:hover i,
.footer-link-btn:hover * { color: #fff !important; }
.footer-link-btn:visited,
.footer-link-btn:visited:not(:hover) {
    background: rgba(199,125,255,0.10) !important;
    color: #c77dff !important;
    border-color: rgba(199,125,255,0.35) !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
.footer-link-btn:visited:hover {
    background: #c77dff !important;
    color: #fff !important;
    border-color: #c77dff !important;
    box-shadow: 0 0 30px rgba(199,125,255,0.5) !important;
}
.footer-link-btn:active,
.footer-link-btn:focus,
.footer-link-btn:focus:not(:focus-visible) {
    background: rgba(199,125,255,0.10) !important;
    color: #c77dff !important;
    border-color: rgba(199,125,255,0.35) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Divider */
.footer-divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,255,0.25), transparent);
    margin: clamp(4px, 1vw, 8px) 0;
}

/* Social Buttons */
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    width: 100%;
    padding: 0 clamp(0px, 2vw, 16px);
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    background: rgba(0,255,255,0.07);
    border: 1.5px solid rgba(0,255,255,0.25);
    border-radius: 50%;
    color: var(--p) !important;
    text-decoration: none !important;
    transition: background .3s, border-color .3s, box-shadow .3s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.social-icon {
    width: clamp(17px, 3.2vw, 22px);
    height: clamp(17px, 3.2vw, 22px);
    flex-shrink: 0;
    fill: currentColor;
}
.social-btn:hover {
    background: rgba(0,255,255,0.18);
    color: var(--p) !important;
    border-color: rgba(0,255,255,0.6);
    box-shadow: 0 0 18px rgba(0,255,255,0.3);
}
.social-btn:active, .social-btn:focus {
    background: rgba(0,255,255,0.07) !important;
    color: var(--p) !important;
    border-color: rgba(0,255,255,0.25) !important;
    box-shadow: none !important;
    outline: none !important;
}
.social-btn:visited { color: var(--p) !important; }

/* Copyright */
.footer-copy {
    color: #666;
    font-size: clamp(11px, 1.8vw, 14px);
    line-height: 1.7;
    text-align: center;
    padding: 0 clamp(8px, 3vw, 20px);
    margin-top: clamp(8px, 2vw, 16px);
    word-break: keep-all;
}
.footer-copy strong {
    color: #888;
}

/* ── فوتر موبایل ≤360px ── */
@media (max-width: 360px) {
    footer { padding: 32px 6px 20px; }
    .footer-inner { gap: 14px; }
    .footer-brand-name { font-size: 17px; }
    .footer-brand-tagline { font-size: 10px; }
    .footer-links { gap: 3px; padding: 0 2px; flex-wrap: nowrap; }
    .footer-link-btn {
        padding: 6px 3px;
        font-size: 8.5px;
        gap: 2px;
        min-height: 32px;
        max-width: 25%;
    }
    .footer-link-btn i { font-size: 9px; }
    .footer-socials { gap: 6px; }
    .social-btn { width: 36px; height: 36px; }
    .social-icon { width: 15px; height: 15px; }
    .footer-copy { font-size: 10px; line-height: 1.6; }
}

/* ── فوتر موبایل 361–480px ── */
@media (min-width: 361px) and (max-width: 480px) {
    footer { padding: 36px 8px 22px; }
    .footer-inner { gap: 16px; }
    .footer-brand-name { font-size: 20px; }
    .footer-links { gap: 4px; padding: 0 3px; flex-wrap: nowrap; }
    .footer-link-btn {
        padding: 7px 5px;
        font-size: 9.5px;
        gap: 3px;
        min-height: 34px;
        max-width: 25%;
    }
    .footer-link-btn i { font-size: 10px; }
    .footer-socials { gap: 8px; }
    .social-btn { width: 38px; height: 38px; }
    .social-icon { width: 16px; height: 16px; }
}

/* ── فوتر تبلت کوچک 481–640px ── */
@media (min-width: 481px) and (max-width: 640px) {
    footer { padding: 42px 14px 26px; }
    .footer-inner { gap: 20px; }
    .footer-brand-name { font-size: 22px; }
    .footer-links { gap: 6px; flex-wrap: nowrap; }
    .footer-link-btn {
        padding: 8px 10px;
        font-size: 11px;
        min-height: 38px;
        max-width: 25%;
    }
    .footer-socials { gap: 10px; }
    .social-btn { width: 41px; height: 41px; }
    .social-icon { width: 18px; height: 18px; }
}

/* ── فوتر تبلت 641–900px ── */
@media (min-width: 641px) and (max-width: 900px) {
    footer { padding: 50px 24px 32px; }
    .footer-inner { gap: 26px; }
    .footer-brand-name { font-size: 27px; }
    .footer-links { gap: 10px; flex-wrap: nowrap; }
    .footer-link-btn {
        padding: 11px 20px;
        font-size: 13px;
        min-height: 42px;
        max-width: 25%;
    }
    .footer-socials { gap: 13px; }
    .social-btn { width: 46px; height: 46px; }
    .social-icon { width: 21px; height: 21px; }
}

/* ── فوتر لپ‌تاپ 901px+ ── */
@media (min-width: 901px) {
    footer { padding: 60px 40px 36px; }
    .footer-inner { gap: 30px; }
    .footer-brand-name { font-size: 30px; }
    .footer-links { gap: 14px; flex-wrap: nowrap; }
    .footer-link-btn {
        padding: 12px 26px;
        font-size: 15px;
        min-height: 44px;
        max-width: 25%;
    }
    .footer-socials { gap: 14px; }
    .social-btn { width: 48px; height: 48px; }
    .social-icon { width: 22px; height: 22px; }
}

/* ── دسکتاپ بزرگ 1400px+ ── */
@media (min-width: 1400px) {
    footer { padding: 70px 50px 40px; }
    .footer-brand-name { font-size: 32px; }
    .footer-link-btn {
        padding: 13px 28px;
        font-size: 15px;
        min-height: 46px;
        max-width: 25%;
    }
    .social-btn { width: 50px; height: 50px; }
    .social-icon { width: 23px; height: 23px; }
}
/* ═══════════════════════════════════════════════════════════
   AD SECTION — کاملاً ریسپانسیو برای همه دستگاه‌ها
   ═══════════════════════════════════════════════════════════ */
.ad-section {
    background: linear-gradient(135deg, rgba(8,6,22,0.98) 0%, rgba(12,10,30,0.96) 100%);
    border-top: 1px solid rgba(255,193,7,0.12);
    border-bottom: 1px solid rgba(255,193,7,0.12);
    padding: clamp(8px, 1.5vw, 16px) clamp(8px, 2vw, 28px);
    position: relative;
    z-index: 1;
}
.ad-section-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(5px, 1vw, 8px);
}
.ad-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ad-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.4);
    color: #ffc107;
    font-size: clamp(9px, 1.3vw, 11px);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    user-select: none;
    -webkit-user-select: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.ad-label::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #ffc107;
    border-radius: 50%;
    animation: adPulse 2s ease-in-out infinite;
}
@keyframes adPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}
.ad-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,193,7,0.25), transparent);
}
.ad-img-wrapper {
    width: 28%;
}
.ad-banner-link {
    display: block;
    width: 100%;
    border-radius: clamp(8px, 1.2vw, 13px);
    overflow: hidden;
    border: 1.5px solid rgba(255,193,7,0.18);
    box-shadow: 0 5px 22px rgba(0,0,0,0.55);
    transition: box-shadow .35s ease, border-color .35s ease;
    text-decoration: none;
}
.ad-banner-link:hover {
    border-color: rgba(255,193,7,0.5);
    box-shadow: 0 8px 36px rgba(255,193,7,0.12), 0 5px 18px rgba(0,0,0,0.5);
}
.ad-banner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

/* موبایل خیلی کوچک ≤359px */
@media (max-width: 359px) {
    .ad-section { padding: 6px 6px; }
    .ad-img-wrapper { width: 42%; }
    .ad-label { font-size: 8px; padding: 2px 7px; }
}
/* موبایل کوچک 360–479px */
@media (min-width: 360px) and (max-width: 479px) {
    .ad-section { padding: 7px 8px; }
    .ad-img-wrapper { width: 38%; }
    .ad-label { font-size: 9px; padding: 2px 8px; }
}
/* موبایل متوسط 480–639px */
@media (min-width: 480px) and (max-width: 639px) {
    .ad-section { padding: 8px 10px; }
    .ad-img-wrapper { width: 34%; }
    .ad-label { font-size: 10px; }
}
/* تبلت کوچک 640–899px */
@media (min-width: 640px) and (max-width: 899px) {
    .ad-section { padding: 9px 14px; }
    .ad-img-wrapper { width: 30%; }
}
/* لپ‌تاپ کوچک 900–1199px */
@media (min-width: 900px) and (max-width: 1199px) {
    .ad-section { padding: 10px 20px; }
    .ad-img-wrapper { width: 36%; }
}
/* لپ‌تاپ/دسکتاپ 1200px+ */
@media (min-width: 1200px) {
    .ad-section { padding: 11px 28px; }
    .ad-img-wrapper { width: 32%; }
}


/* آواتار پیش‌فرض منو (بدون عکس کاربر) */
.user-avatar-fallback {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,255,255,.18), rgba(199,125,255,.22));
    border: 2px solid rgba(0,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    font-size: 1.15rem;
    flex-shrink: 0;
}
img.user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0,255,255,.3);
    flex-shrink: 0;
    background: #0a0e17;
}

/* menu z-index unify */
.search-trigger, .menu-trigger { z-index: 10050 !important; }
.side-menu { z-index: 10060 !important; }
.menu-overlay { z-index: 10055 !important; }


/* ═══════════════════════════════════════════════
   singer-responsive-v2
   ═══════════════════════════════════════════════ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body {
  font-size: 16px !important;
  line-height: 1.65;
}
.menu-trigger, .search-trigger { font-size: 22px !important; }
.menu-links a { font-size: 15px !important; }
.menu-links a i { font-size: 17px !important; }

.hero-name, .singer-page-name, .hero h1 {
  font-size: 1.4rem !important;
  line-height: 1.4;
  word-break: break-word;
}
.singer-bio {
  font-size: 0.92rem !important;
  line-height: 1.8;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
}
.song-card-title, .song-title {
  font-size: 0.9rem !important;
}

/* گرید آهنگ‌های خواننده */
.songs-grid, .song-list, .songs-section .grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0 12px !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 359.98px) {
  .hero-name, .hero h1 { font-size: 1.2rem !important; }
  .songs-grid, .song-list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
@media (min-width: 576px) {
  .songs-grid, .song-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .hero-name, .hero h1 { font-size: 1.5rem !important; }
}
@media (min-width: 768px) {
  .songs-grid, .song-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}
@media (min-width: 992px) {
  .songs-grid, .song-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .hero-name, .hero h1 { font-size: 1.65rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}


/* ═══════════════════════════════════════════════
   singer-font-stable-v3 — فونت پایدار صفحه خواننده
   ═══════════════════════════════════════════════ */
body {
  font-size: 16px !important;
  line-height: 1.65 !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
.menu-trigger, .search-trigger { font-size: 22px !important; }
.menu-links a { font-size: 15px !important; }
.menu-links a i { font-size: 17px !important; }
.username { font-size: 16px !important; }
.mobile { font-size: 13px !important; }

/* نام خواننده در هیرو */
.hero h1,
.hero-name,
.singer-info h1,
.singer-page-title {
  font-size: 1.4rem !important;
  line-height: 1.4 !important;
  word-break: break-word;
}
.singer-meta,
.birth-date,
.songs-count-label {
  font-size: 0.88rem !important;
}
.singer-bio {
  font-size: 0.92rem !important;
  line-height: 1.8 !important;
}
.fav-singer-btn,
#favText {
  font-size: 0.9rem !important;
}
.song-card-title,
.song-title,
.song-card .title {
  font-size: 0.9rem !important;
  line-height: 1.35 !important;
}
.song-card-artist,
.song-artist {
  font-size: 0.78rem !important;
}
.footer-copy { font-size: 0.8rem !important; }

@media (max-width: 359.98px) {
  .hero h1, .hero-name, .singer-info h1 {
    font-size: 1.2rem !important;
  }
  .singer-bio { font-size: 0.88rem !important; }
}
@media (min-width: 768px) {
  .hero h1, .hero-name, .singer-info h1 {
    font-size: 1.55rem !important;
  }
  .singer-bio { font-size: 0.95rem !important; }
}
@media (min-width: 992px) {
  .hero h1, .hero-name, .singer-info h1 {
    font-size: 1.7rem !important;
  }
  .menu-links a { font-size: 16px !important; }
}


/* بدون پرش/زوم هنگام هاور روی دکمه‌ها و لینک‌های عملیاتی */
a.button:hover, button:hover, .btn:hover, .btn-buy:hover, .btn-outline:hover,
.guest-btn:hover, .success-btn:hover, .back-btn:hover, .footer-link-btn:hover,
.login-prompt-btn:hover, .artist-cta-btn:hover, .new-ticket-btn:hover,
button[type="submit"]:hover, .filter-btn:hover, .nav-chip:hover {
    transform: none !important;
}


/* باقی‌مانده اشتراک در منوی کناری */
.menu-sub-remain {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #34d399;
    line-height: 1.4;
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}
.user-details .mobile {
    line-height: 1.45;
}
