/* ============================================================
   بخش جزیرتی — کارت افقی
   چیدمان: دکمه پلی (چپ) + اطلاعات (وسط) + کاور (راست)
   رنگ اصلی: فیروزه‌ای دریایی
   ============================================================ */

:root {
    --jz-primary: #06B6D4;
    --jz-primary-dark: #0891B2;
    --jz-primary-light: #67E8F9;
    --jz-playing: #06B6D4;
    --jz-playing-dark: #0891B2;
    --jz-bg-card: rgba(255, 255, 255, 0.06);
    --jz-bg-card-hover: rgba(255, 255, 255, 0.1);
    --jz-border: rgba(255, 255, 255, 0.08);
    --jz-border-hover: rgba(6, 182, 212, 0.4);
    --jz-text-primary: #ffffff;
    --jz-text-secondary: #c8c8e0;
    --jz-text-muted: #8a8aa0;
    --jz-radius: 18px;
    --jz-radius-sm: 12px;
    --jz-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --jz-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   بخش کلی
   ============================================ */

.jazirati-section-modern {
    margin: 30px 0 40px;
    padding: 0 4px;
    position: relative;
}

.jazirati-glass-wrapper {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 24px 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

/* ============================================
   هدر بخش
   ============================================ */

.jazirati-section-modern .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
    position: relative;
    z-index: 1;
}

.jazirati-section-modern .section-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "bakhb", sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.jazirati-section-modern .section-title i {
    color: var(--jz-primary);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.6));
    animation: pulse-icon-turquoise 2s ease-in-out infinite;
}

@keyframes pulse-icon-turquoise {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.6)); }
    50%      { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.9)); }
}

.jazirati-section-modern .section-more {
    color: var(--jz-text-muted);
    font-size: 0.75rem;
    font-family: "bakhn", sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s var(--jz-ease);
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.jazirati-section-modern .section-more:hover {
    color: var(--jz-primary);
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    transform: translateX(-4px);
}

/* ============================================
   گرید
   ============================================ */

.jz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* ============================================
   کارت
   ============================================ */

.jz-card {
    min-width: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: jz-entrance 0.6s var(--jz-ease) forwards;
}

.jz-card:nth-child(1) { animation-delay: 0.05s; }
.jz-card:nth-child(2) { animation-delay: 0.10s; }
.jz-card:nth-child(3) { animation-delay: 0.15s; }
.jz-card:nth-child(4) { animation-delay: 0.20s; }
.jz-card:nth-child(5) { animation-delay: 0.25s; }
.jz-card:nth-child(6) { animation-delay: 0.30s; }
.jz-card:nth-child(7) { animation-delay: 0.35s; }
.jz-card:nth-child(8) { animation-delay: 0.40s; }
.jz-card:nth-child(9) { animation-delay: 0.45s; }
.jz-card:nth-child(10) { animation-delay: 0.50s; }
.jz-card:nth-child(11) { animation-delay: 0.55s; }
.jz-card:nth-child(12) { animation-delay: 0.60s; }

@keyframes jz-entrance {
    to { opacity: 1; transform: translateY(0); }
}

.jz-card-inner {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr 130px;   /* پلی، اطلاعات، کاور */
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: var(--jz-bg-card);
    border: 1px solid var(--jz-border);
    border-radius: var(--jz-radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.5s var(--jz-ease);
}

.jz-card-inner:hover {
    background: var(--jz-bg-card-hover);
    border-color: var(--jz-border-hover);
    box-shadow: 
        0 16px 48px rgba(6, 182, 212, 0.2),
        0 0 0 1px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* ============================================
   دکمه پلی — ستون ۱ (چپ)
   ============================================ */

.jz-play {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    background: linear-gradient(135deg, var(--jz-primary), var(--jz-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 24px rgba(6, 182, 212, 0.5),
        0 0 0 0 rgba(6, 182, 212, 0.7);
    transition: all 0.4s var(--jz-ease-bounce);
    z-index: 10;
    animation: jz-play-pulse 2s ease-in-out infinite;
    justify-self: center;
    align-self: center;
}

@keyframes jz-play-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5), 0 0 0 0 rgba(6, 182, 212, 0.7); }
    50%      { box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5), 0 0 0 10px rgba(6, 182, 212, 0); }
}

.jz-play:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, var(--jz-primary-light), var(--jz-primary));
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.8);
}

.jz-play i {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 3px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.jz-play:hover i {
    transform: scale(1.1);
}

/* حالت در حال پخش */
.jz-card-inner.is-playing {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 
        0 20px 60px rgba(6, 182, 212, 0.2),
        0 0 0 1px rgba(6, 182, 212, 0.3);
}

.jz-card-inner.is-playing .jz-play {
    background: linear-gradient(135deg, var(--jz-playing), var(--jz-playing-dark));
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 
        0 8px 24px rgba(6, 182, 212, 0.7),
        0 0 0 8px rgba(6, 182, 212, 0.15);
    animation: jz-playing-pulse 1.5s ease-in-out infinite;
}

@keyframes jz-playing-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(6, 182, 212, 0.7), 0 0 0 0 rgba(6, 182, 212, 0.4); }
    50%      { box-shadow: 0 8px 24px rgba(6, 182, 212, 0.7), 0 0 0 12px rgba(6, 182, 212, 0); }
}

/* ============================================
   اطلاعات — ستون ۲ (وسط)
   ============================================ */

.jz-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding-right: 4px;
}

/* خواننده */
.jz-artist {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--jz-text-secondary);
    font-size: 0.75rem;
    font-family: "bakhn", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.jz-artist i {
    color: var(--jz-primary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ترانه */
.jz-song-link {
    text-decoration: none;
    color: inherit;
}

.jz-song {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--jz-text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: "bakhb", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.jz-song i {
    color: var(--jz-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.jz-card-inner:hover .jz-song {
    color: var(--jz-primary-light);
}

.jz-card-inner:hover .jz-song i {
    color: var(--jz-primary-light);
}

/* ============================================
   موج صوتی — فقط در حال پخش
   ============================================ */

.jz-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    margin-top: 2px;
}

.jz-card-inner.is-playing .jz-wave {
    opacity: 1;
    visibility: visible;
}

.jz-wave span {
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--jz-primary-light), var(--jz-primary));
    border-radius: 2px;
    transform-origin: bottom;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.6);
    animation: jz-wave-bounce 1s ease-in-out infinite;
}

.jz-wave span:nth-child(1) { animation-delay: 0.0s; height: 40%; }
.jz-wave span:nth-child(2) { animation-delay: 0.1s; height: 70%; }
.jz-wave span:nth-child(3) { animation-delay: 0.2s; height: 100%; }
.jz-wave span:nth-child(4) { animation-delay: 0.3s; height: 60%; }
.jz-wave span:nth-child(5) { animation-delay: 0.4s; height: 90%; }
.jz-wave span:nth-child(6) { animation-delay: 0.5s; height: 50%; }
.jz-wave span:nth-child(7) { animation-delay: 0.6s; height: 80%; }
.jz-wave span:nth-child(8) { animation-delay: 0.7s; height: 45%; }
.jz-wave span:nth-child(9) { animation-delay: 0.8s; height: 75%; }

@keyframes jz-wave-bounce {
    0%, 100% { transform: scaleY(0.3); }
    50%      { transform: scaleY(1); }
}

/* ============================================
   آمار
   ============================================ */

.jz-stats {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2px;
}

.jz-like,
.jz-views {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--jz-text-muted);
    font-family: "bakhn", sans-serif;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.jz-like:hover,
.jz-views:hover {
    background: rgba(6, 182, 212, 0.1);
    color: var(--jz-primary);
}

.jz-like i,
.jz-views i {
    font-size: 0.9rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.jz-like.liked i {
    color: #ef4444;
}

.jz-like.liked i::before {
    content: "\e90b";
    color: #ef4444;
}

.jz-stat-count {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    font-family: "bakhb", sans-serif;
}

/* ============================================
   کاور — ستون ۳ (راست)
   ============================================ */

.jz-cover-link {
    display: block;
    text-decoration: none;
    color: inherit;
    grid-column: 3;
    grid-row: 1;
}

.jz-cover {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: var(--jz-radius-sm);
    overflow: hidden;
    background: #0a1a20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--jz-ease);
}

.jz-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--jz-ease);
}

.jz-card-inner:hover .jz-cover img {
    transform: scale(1.08);
}

/* ============================================
   موبایل: دکمه پلی همیشه نمایان
   ============================================ */

@media (hover: none) {
    .jz-play {
        opacity: 1;
    }
}

/* ============================================
   ریسپانسیو
   ============================================ */

@media (max-width: 1200px) {
    .jz-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    
    .jz-card-inner {
        grid-template-columns: 60px 1fr 110px;
        gap: 10px;
        padding: 12px;
    }
    
    .jz-cover {
        width: 110px;
        height: 110px;
    }
    
    .jz-play {
        width: 50px;
        height: 50px;
    }
    
    .jz-play i {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    .jz-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .jz-card-inner {
        grid-template-columns: 60px 1fr 110px;
        gap: 10px;
        padding: 12px;
    }
    
    .jz-cover {
        width: 110px;
        height: 110px;
    }
    
    .jz-play {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .jz-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .jz-card-inner {
        grid-template-columns: 55px 1fr 100px;
        gap: 8px;
        padding: 12px;
    }
    
    .jz-cover {
        width: 100px;
        height: 100px;
    }
    
    .jz-play {
        width: 45px;
        height: 45px;
        border-width: 2.5px;
    }
    
    .jz-play i {
        font-size: 1.15rem;
    }
    
    .jz-song {
        font-size: 0.88rem;
    }
    
    .jz-artist {
        font-size: 0.7rem;
    }
    
    .jz-stat-count {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .jz-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .jz-card-inner {
        grid-template-columns: 50px 1fr 85px;
        gap: 8px;
        padding: 10px;
    }
    
    .jz-cover {
        width: 85px;
        height: 85px;
    }
    
    .jz-play {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    
    .jz-play i {
        font-size: 1rem;
    }
    
    .jz-song {
        font-size: 0.82rem;
    }
    
    .jz-artist {
        font-size: 0.65rem;
    }
    
    .jz-stat-count {
        font-size: 0.6rem;
    }
    
    .jz-like i,
    .jz-views i {
        font-size: 0.8rem;
    }
    
    .jz-wave {
        height: 16px;
    }
    
    .jz-wave span {
        width: 2px;
    }
}