/* =========================================
   ŞARKI SÖZLERİ LİSTELEME & DETAY (FLUID)
   ========================================= */

/* --- LİSTELEME SAYFASI BAŞLIĞI --- */
.lyrics-page-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    padding-left: 5px;
}

.lyrics-page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-main);
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lyrics-page-header p {
    color: var(--text-muted);
    font-size: clamp(0.85rem, 2vw, 1rem);
}

/* --- GRID YAPISI --- */
.lyrics-grid {
    display: grid;
    /* Kartların minimum genişliği ayarlandı, mobilde 1 veya 2 sütun sığar */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

/* --- LİSTE KARTI --- */
.lyric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.lyric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--border-color);
    transition: var(--transition);
}

.lyric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.lyric-card:hover::before {
    background: #fb8500;
}

.lyric-icon {
    font-size: 2.2rem;
    color: #fb8500;
    margin-bottom: 15px;
    opacity: 0.15;
    position: absolute;
    top: 15px; right: 15px;
    transition: var(--transition);
}

.lyric-card:hover .lyric-icon {
    opacity: 0.8;
    transform: rotate(10deg);
}

.lyric-info {
    flex: 1;
    z-index: 1;
}

.lyric-title {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
    transition: color 0.2s;
    line-height: 1.3;
}

.lyric-card:hover .lyric-title {
    color: var(--primary-color);
}

.lyric-artist {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    font-weight: 500;
}

.lyric-footer {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    z-index: 1;
}

.lyric-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lyric-user img {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* =========================================
   DETAY SAYFASI (HEADER CARD)
   ========================================= */
.lyrics-header-card {
    position: relative;
    background: #111;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.header-blur-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.3);
    z-index: 0;
    transform: scale(1.1);
}

.header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.5));
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    padding: 20px; 
    gap: 25px;
    align-items: center;
}

.header-cover {
    flex-shrink: 0;
    width: 180px; 
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    background: #000;
}

.header-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-title {
    font-size: clamp(1.3rem, 4vw, 2rem); /* Mobilde font biraz daha küçültüldü */
    font-weight: 800;
    margin: 0 0 5px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #fff;
    
    /* Çok satırlı başlık desteği (Max 2 satır) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal; /* Tek satır zorlaması kaldırıldı */
}

.header-artist {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    transition: color 0.2s;
}

.header-artist:hover {
    color: var(--primary-color);
}

/* --- META GRID --- */
.header-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-tag {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.1);
    height: 36px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.meta-uploader-link {
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    background: rgba(255,255,255,0.15);
}

.meta-uploader-link:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* --- CREDITS GRID --- */
.header-credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.credit-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
}

.credit-box:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.credit-box .lbl {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    white-space: nowrap;
}

.credit-box .val {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header Mini Player */
.header-player-wrapper {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 6px 15px 6px 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
    width: 100%;
}

.btn-mini-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.btn-mini-play:hover { transform: scale(1.1); }

.mini-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.mini-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    line-height: 1;
}

.mini-bar {
    height: 4px !important;
    background: rgba(255,255,255,0.2) !important;
}

.mini-bar .audio-progress-filled {
    background-color: var(--primary-color);
}

.btn-icon-transparent {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.btn-icon-transparent:hover { color: #fff; }

/* Ses kontrolü (Mini Player) - Slider Gizli */
.mini-vol {
    display: none !important;
}

/* --- LYRICS BODY CARD --- */
.lyrics-card-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
}

.lyrics-text-content {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-main);
    text-align: left; /* Sola yaslı */
    margin-bottom: 30px;
    font-family: var(--font-body);
}

.lyrics-text-content pre {
    font-family: inherit;
    white-space: pre-wrap;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
}

.lyrics-actions-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.action-group {
    display: flex;
    gap: 10px;
}

/* --- RELATED WORKS --- */
.related-works-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
}

.related-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
    padding-left: 10px;
    border-left: 4px solid var(--primary-color);
}

.related-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.related-chip i { color: var(--primary-color); opacity: 0.8; }
.related-chip small { color: var(--text-muted); font-weight: 400; margin-left: 4px; }

.related-chip:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* RESPONSIVE (TABLET & MOBİL) */

/* 1024px ve altı (Tablet & Küçük Laptop) */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column; 
        text-align: center;
        padding: 15px;
    }
    
    .header-cover {
        width: 160px; 
        height: 160px; 
        margin: 0 auto 15px auto;
    }
    
    .header-info { 
        width: 100%; 
        align-items: center; 
    }
    
    .header-title {
        text-align: center;
        margin-bottom: 8px;
    }

    .header-meta-grid { 
        justify-content: center; 
    }
    
    .header-credits-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .lyrics-actions-footer { 
        flex-direction: column; 
        gap: 20px;
    }
    
    .action-group, 
    .subscribe-group { 
        width: 100%; 
        justify-content: center; 
    }
    
    .btn-action, .btn-subscribe { 
        flex: 1; 
        justify-content: center;
    }
}

/* 768px ve altı (MOBİL - Edge to Edge) */
@media (max-width: 768px) {
    /* EDGE TO EDGE ÇÖZÜMÜ (BREAKOUT) */
    .lyrics-header-card, 
    .lyrics-card-body {
        width: 100vw; /* Ekranın tamamı */
        max-width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw; /* Ortadan sola tam açıl */
        margin-right: -50vw; /* Ortadan sağa tam açıl */
        
        border-radius: 0;
        border-left: none;
        border-right: none;
        
        padding-left: 15px;
        padding-right: 15px;
    }
}