
/* ================================================
   REKLAM KAYMASINA KARŞI KORUMA STİLLERİ
   İçerik sabit kalır, reklamlar overlay olarak çalışır
   ================================================ */

/* Ana sayfa yapısı - reklamlardan bağımsız */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    width: 100%;
    min-width: 320px;
}

/* Song detail container'ın merkezi ve sabit kalması */
.song-detail-container {
    /* Sayfa reklamlarından etkilenmesin */
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Chords layout kesinlikle sabit kalsın */
.chords-layout-wrapper {
    /* Genişlik sabit */
    width: 100% !important;
    max-width: 100% !important;
    /* Dış etkenlerden izole */
    transform: translateZ(0);
}

/* Chords container grid içinde sabit */
.chords-container {
    min-width: 0 !important;
}

/* Font Family */
* {
    font-family: "Open Sans", sans-serif;
}

/* Header Mobile Improvements */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem !important;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
    }

    .navbar-nav {
        gap: 0.5rem !important;
    }

    .nav-link {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }


}

@media (max-width: 480px) {
    .navbar {
        padding: 0.4rem 0.8rem !important;
        flex-wrap: wrap !important;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
        margin-right: auto !important;
    }

    .navbar-nav {
        gap: 0.3rem !important;
        margin-left: auto !important;
    }

    .nav-link {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        border-radius: 15px !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        margin: 0.1rem !important;
    }

    .search-container {
        margin: 0.75rem 0 0.25rem 0 !important;
    }

    .search-input {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.8rem 0.5rem 2.2rem !important;
    }

    .search-form .fa-search,
    .search-form .fas.fa-search {
        left: 0.7rem !important;
        font-size: 0.8rem !important;
    }

    .search-btn {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
}

/* Chords Layout with Sidebars */
.chords-layout-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    grid-template-rows: auto; /* Tek satır, otomatik yükseklik */
    gap: 1.5rem;
    align-items: start;
    margin-top: 1rem;
    /* Reklam kaymasına karşı sabit layout */
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    /* Layout'un dışarıdan etkilenmemesi için */
    contain: layout style;
    isolation: isolate;
}

/* Grid sütunları ve satırları - elementler sabit yerlerinde kalsın */
.chords-layout-wrapper > .sidebar-left {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.chords-layout-wrapper > .chords-container {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}

.chords-layout-wrapper > .sidebar-right {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
}

/* Sidebar Styles */
.song-sidebar {
    position: sticky;
    top: 100px;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    /* Reklamlardan etkilenmesin */
    z-index: 10;
    contain: layout;
}

.song-sidebar::-webkit-scrollbar {
    width: 4px;
}

.song-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.song-sidebar::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--color-primary), var(--color-secondary)) 1;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.sidebar-header i {
    color: var(--color-primary);
    font-size: 1rem;
}

.sidebar-left .sidebar-header i {
    color: #f59e0b;
}

.sidebar-songs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-song-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-song-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-song-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(96, 165, 250, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.sidebar-song-item:hover::before {
    opacity: 1;
}

.sidebar-song-info {
    margin-bottom: 0.35rem;
}

.sidebar-song-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-song-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.sidebar-song-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-song-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 28px;
}

.sidebar-song-views {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sidebar-song-views i {
    font-size: 0.65rem;
}

.sidebar-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.6rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
    color: white;
}

/* Sidebar Refresh Button */
.sidebar-refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.6rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.sidebar-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.sidebar-refresh-btn:active {
    transform: scale(0.95);
}

.sidebar-refresh-btn i {
    transition: transform 0.5s ease;
}

.sidebar-refresh-btn:hover i {
    transform: rotate(180deg);
}

.sidebar-refresh-btn.loading i {
    animation: dice-spin 0.6s ease-in-out;
}

@keyframes dice-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Theme Sidebar Adjustments */
[data-theme="dark"] .sidebar-song-item {
    background: var(--bg-secondary);
}

[data-theme="dark"] .sidebar-song-item:hover {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.12) 0%, rgba(96, 165, 250, 0.12) 100%);
    border-color: rgba(129, 140, 248, 0.25);
}

/* Responsive - Hide sidebars on smaller screens */
@media (max-width: 1100px) {
    .chords-layout-wrapper {
        grid-template-columns: 1fr;
    }

    .chords-layout-wrapper > .chords-container {
        grid-column: 1; /* Tek sütun modunda 1. sütuna geç */
    }

    .song-sidebar {
        display: none;
    }
}

/* Modern Container */
.song-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
    /* Reklam kaymasına karşı sabit container */
    position: relative;
    z-index: 1;
    /* Reklamların container'ı etkilememesi için */
    contain: layout style;
    isolation: isolate;
}

/* Modern Header */
.song-header-modern {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%) !important;
    border-radius: 1.5rem !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    position: relative !important;
    overflow: hidden !important;
}

.song-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #8b72e8);
    border-radius: 2rem 2rem 0 0;
}

.header-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.back-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.back-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    font-size: 1rem;
}

.back-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.song-info {
    flex: 1;
    min-width: 0;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.artist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.song-title-modern {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

.song-artist-modern {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.song-artist-modern:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.song-stats-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.stat-inline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.stat-inline i {
    color: var(--color-primary);
    font-size: 0.8rem;
}



.action-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    width: auto;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    border-radius: 16px;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.15));
    color: #6366F1;
    border-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.2);
}

/* Control Panel */
.control-panel {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    background: linear-gradient(135deg, #7990f3 0%, #8366a2 50%, #e384ee 100%) !important;
    border-radius: 1.5rem !important;
    border: none !important;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    position: relative !important;
    overflow: hidden;
    flex-direction: row;
    align-items: center;
}

.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.control-panel::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 2rem;
    pointer-events: none;
}

.control-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: relative;
}

.control-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.control-btn:hover::before {
    opacity: 1;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.control-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

.tone-btn {
    min-width: 140px;
}

.control-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.tone-display {
    font-weight: 800;
    font-size: 1rem;
}

.capo-info {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
}

.learn-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.learn-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.learn-btn i {
    font-size: 1.1rem;
}

.learn-text {
    font-weight: 700;
}

/* Chords Container */
.chords-container {
    background: var(--ak-surface) !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid var(--ak-line) !important;
    box-shadow: 0 12px 30px rgba(27, 52, 93, 0.07) !important;
    backdrop-filter: none !important;
    position: relative !important;
    overflow: hidden !important;
    /* Reklam kaymasına karşı sabit width - grid içinde düzgün davranması için */
    min-width: 0;
    box-sizing: border-box;
}

.chords-container::before {
    content: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #8b72e8);
    border-radius: 2rem 2rem 0 0;
}

.chords-content {
    position: relative;
}

.chords-text {
    font-family: "Open Sans", sans-serif !important;
    white-space: pre-wrap !important;
    line-height: 1.6 !important;
    font-size: 0.85rem;
    color: var(--ak-ink) !important;
    margin: 0 !important;
    overflow-x: auto !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0.75rem 0 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.split-view {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.split-view.active {
    display: grid;
}

.chords-only,
.lyrics-only {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: fit-content;
    min-height: 400px;
}

.chords-only {
    border-left: 0;
}

.lyrics-only {
    border-left: 0;
}



.chords-only pre,
.lyrics-only pre {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text-primary);
    background: transparent;
    border: none;
    padding: 0;
    font-weight: normal; /* Normal font weight for both */
    /* font-size JavaScript ile kontrol edilecek */
}

/* Desktop - Hide scroll controls */
@media (min-width: 769px) {
    .scroll-control-group {
        display: none !important;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .split-view {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .song-detail-container {
        padding: 0.5rem;
    }

    .song-header-modern {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* Control Panel Mobile - Sol/Orta/Sağ Düzeni */
    .control-panel {
        padding: 0.6rem 1rem;
        gap: 0;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        align-items: center;
        border-radius: 1.5rem;
        overflow-x: auto;
        display: flex !important;
        background: linear-gradient(135deg, #7990f3 0%, #8366a2 50%, #e384ee 100%);
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.25) !important;
    }

    .control-group {
        display: inline-flex !important;
        gap: 0.3rem;
        flex: 0 0 auto;
        min-width: auto;
        justify-content: center;
        flex-direction: row !important;
    }

    /* Sol grup (Ton) */
    .control-group:nth-child(1) {
        justify-content: flex-start;
        flex: 1;
    }

    /* Orta grup (Play/Stop) */
    .control-group:nth-child(2) {
        justify-content: center;
        flex: 0 0 auto;
    }

    /* Sağ grup (Font boyut) */
    .control-group:nth-child(3) {
        justify-content: flex-end;
        flex: 1;
        gap: 0.5rem;
    }

    /* Diğer grupları gizle */
    .control-group:nth-child(n+4) {
        display: none !important;
    }



    .control-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
        min-height: 36px;
        flex-direction: column;
        gap: 0.2rem;
        min-width: 60px;
        white-space: nowrap;
        border-radius: 12px;
        flex-shrink: 0;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    /* Font boyut butonları için özel stil */
    .font-btn {
        min-width: 40px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 1rem !important;
        flex-direction: row !important;
    }

    .font-btn i {
        font-size: 0.9rem !important;
    }

    /* Scroll butonu orta pozisyon için */
    .scroll-btn {
        min-width: 50px !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: row !important;
    }

    .scroll-btn i {
        font-size: 1.2rem !important;
    }

    /* İkiye böl butonunu mobilde gizle */
    .view-toggle-btn {
        display: none !important;
    }

    /* Repertuara ekle butonu mobilde görünür */
    .repertoire-btn {
        display: flex !important;
    }

    /* Öğren butonu mobilde sadece icon */
    .learn-btn {
        padding: 0 !important;
        min-width: 40px !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        justify-content: center !important;
    }

    .learn-text {
        display: none !important;
    }

    .learn-btn i {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }

    .control-btn i {
        font-size: 0.8rem;
    }

    .control-label {
        font-size: 0.6rem;
        text-align: center;
        line-height: 1;
    }

    .tone-display {
        font-size: 0.8rem;
        font-weight: 700;
    }

    .capo-info {
        font-size: 0.6rem;
        text-align: center;
    }

    .tone-btn {
        min-width: auto !important;
        max-width: none !important;
        padding: 0.5rem 0.8rem !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
    }

    .chords-container {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem;
    }

    .chords-text {
        padding: 0.75rem;
        font-size: 0.8rem;
        line-height: 1.5;
    }



    /* Chords Content Mobile */
    .chords-text {
        padding: 0.75rem;
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .chord-highlight {
        padding: 0.05rem 0.2rem;
        font-size: 0.85em;
        border-radius: 4px;
    }

    .chords-only pre,
    .lyrics-only pre {
        line-height: 1.5;
        /* font-size JavaScript ile kontrol edilecek */
    }

    /* Header Mobile */
    .header-top {
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .back-btn {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1)) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
    }

    .title-row {
        gap: 0.75rem;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        flex-wrap: nowrap;
    }

    .song-title-modern {
        font-size: 1.25rem;
        line-height: 1.3;
        flex: 1;
        min-width: 0;
        word-break: break-word;
    }

    .artist-row {
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .song-artist-modern {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .song-stats-inline {
        gap: 0.5rem;
        flex-shrink: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .stat-inline {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        border-radius: 10px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
}

/* Akorları renkli yapma */
.chord-highlight {
    color: var(--ak-blue);
    font-weight: 700;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: 0;
}

/* Rating Section */
.rating-section-modern {
    background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.rating-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 107, 107, 0.1), transparent 50%);
    pointer-events: none;
}

.rating-section-modern h3 {
    margin: 0 0 1.25rem 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.rating-section-modern h3::before {
    content: '⭐';
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.stars-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.stars {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 2.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
}

.star-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--color-primary), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.star-btn:hover::before {
    width: 100%;
    height: 100%;
}

.star-btn:hover,
.star-btn.active {
    color: var(--color-primary);
    transform: scale(1.2) rotate(18deg);
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.rating-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 25px;
    display: inline-block;
    border: 1px solid var(--border-color);
}

/* Copyright Notice - Subtle */
.copyright-notice-subtle {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.copyright-notice-subtle p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    opacity: 0.6;
    font-style: italic;
    text-align: center;
}

.copyright-notice-subtle a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.copyright-notice-subtle a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Priority SEO cohort: compact, server-rendered notes based on catalog data. */
.priority-song-guide {
    margin: 1.5rem 0;
    padding: 1.35rem;
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
}

.priority-song-guide-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.priority-song-guide-eyebrow {
    margin: 0 0 0.2rem;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.priority-song-guide h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.priority-song-summary {
    margin: 0.9rem 0 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.priority-song-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.priority-song-fact {
    display: flex;
    gap: 0.6rem;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: var(--bg-card);
}

.priority-song-fact > i {
    color: var(--color-primary);
    padding-top: 0.15rem;
}

.priority-song-fact strong,
.priority-song-fact span {
    display: block;
}

.priority-song-fact strong {
    color: var(--text-primary);
    font-size: 0.86rem;
}

.priority-song-fact span {
    margin-top: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.priority-song-chords,
.priority-song-links {
    margin: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.priority-song-chords span {
    display: inline-block;
    margin: 0.15rem 0.15rem 0 0;
    padding: 0.12rem 0.42rem;
    border-radius: 0.35rem;
    background: rgba(102, 126, 234, 0.12);
    color: var(--text-primary);
    font-weight: 700;
}

.priority-song-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.1rem;
}

.priority-song-links a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.priority-song-links a:hover,
.priority-song-links a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .priority-song-facts {
        grid-template-columns: 1fr;
    }
}

/* Other Songs Section */
.artist-about-section {
    position: relative;
    display: flex;
    overflow: hidden;
    margin: 0 0 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    background: var(--bg-card);
}

.artist-about-accent {
    flex: 0 0 4px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

.artist-about-content {
    min-width: 0;
    padding: 1.1rem 1.25rem;
}

.artist-about-content h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 650;
}

.artist-about-content h2 i {
    color: var(--color-primary);
}

.artist-about-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.7;
}

.artist-about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.artist-about-link:hover,
.artist-about-link:focus-visible {
    color: var(--text-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .artist-about-content {
        padding: 1rem;
    }

    .artist-about-content p {
        font-size: 0.88rem;
        line-height: 1.65;
    }
}

.other-songs-section {
    background: var(--bg-card);
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.other-songs-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.other-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.other-song-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.other-song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.other-song-card:hover {
    background: var(--card-bg);
    color: inherit;
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.other-song-card:hover::before {
    transform: scaleX(1);
}

.other-song-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.other-song-title::before {
    content: '♪';
    color: var(--color-primary);
    font-size: 0.9rem;
    opacity: 0.7;
}

.other-song-key {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.other-song-card:hover .other-song-title {
    color: var(--color-primary);
    transform: translateX(4px);
}

.other-song-card:hover .other-song-key {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.view-all-songs {
    text-align: center;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content-modern {
    background: var(--bg-card);
    border-radius: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Mobil Modal Boyutları */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal-content-modern {
        max-width: 100%;
        width: 100%;
        max-height: 70vh;
        border-radius: 1.5rem 1.5rem 0 0;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .modal-content-modern {
        max-height: 65vh;
        border-radius: 1.2rem 1.2rem 0 0;
    }
}

.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header-modern h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body-modern {
    padding: 1.5rem;
}

/* Key Modal Styles */
.key-options-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.key-option-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.key-option-btn:hover,
.key-option-btn.selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.key-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
}

.key-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.key-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.info-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-btn:hover {
    background: var(--color-primary);
    color: white;
}

.other-keys-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.keys-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.key-grid-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-weight: 600;
    aspect-ratio: 1;
}

.key-grid-btn:hover,
.key-grid-btn.selected {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Speed Modal */
.speed-controls {
    text-align: center;
}

.speed-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.speed-slider {
    width: 100%;
    margin-bottom: 1rem;
    accent-color: var(--color-primary);
}

.speed-description {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.speed-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Modal Buttons */
.modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.modal-btn.primary {
    background: var(--color-primary);
    color: white;
}

.modal-btn.primary:hover {
    background: var(--color-primary);
    opacity: 0.9;
}

.modal-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-btn.secondary:hover {
    background: var(--bg-primary);
}

.modal-btn.full-width {
    width: 100%;
}

/* Login Required Modal Specific Styles */
.login-modal {
    max-width: 450px;
}

.login-required-content {
    text-align: center;
    padding: 2rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.login-icon i {
    font-size: 2rem;
    color: white;
}

.login-required-content h4 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.login-required-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.login-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes starPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.favorite-success h4 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}





.action-btn.favorite-btn,
.action-btn.share-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.action-btn.favorite-btn.favorited {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.action-btn.favorite-btn.favorited i {
    color: white;
}

.action-btn.favorite-btn:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2));
    color: #f9f9f9;
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.2);
}



/* Action buttons group */
.action-buttons-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .action-buttons-group {
        gap: 1rem;
    }
}

/* Desktop'ta repertoire-btn-mobile gizle */
.repertoire-btn-mobile {
    display: none;
}

@media (max-width: 768px) {
    .action-text {
        display: none;
    }

    .action-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        min-width: 38px;
        flex-shrink: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1)) !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
    }

    .action-btn i {
        font-size: 0.95rem;
        color: var(--text-primary);
    }

    /* Mobilde favorited state için özel stil */
    .action-btn.favorite-btn.favorited {
        background: linear-gradient(135deg, var(--accent-color), var(--accent-hover)) !important;
        border-color: rgba(102, 126, 234, 0.4);
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    }

    .action-btn.favorite-btn.favorited i {
        color: rgba(102, 126, 234, 0.4);
        text-shadow: 0 1px 3px rgba(102, 126, 234, 0.4);
    }

    /* Mobilde repertoire-btn-mobile göster */
    .repertoire-btn-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .repertoire-btn-mobile i {
        color: var(--text-primary);
    }

    .repertoire-btn-mobile:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.2)) !important;
        color: #f9f9f9;
        border-color: rgba(102, 126, 234, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(102, 126, 234, 0.2) !important;
    }
}

/* Info Modal */
.info-content {
    text-align: left;
}

.info-content p {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.info-examples {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.info-examples h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.info-examples ul {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.info-examples li {
    margin-bottom: 0.5rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .key-options-main {
        grid-template-columns: 1fr;
    }

    .other-songs-grid {
        grid-template-columns: 1fr;
    }

    .keys-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .key-grid-btn {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .modal-header-modern {
        padding: 1rem;
    }

    .modal-body-modern {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .song-header-modern {
        padding: 0.6rem;
    }

    .song-title-modern {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .title-row {
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }

    .artist-row {
        gap: 0.5rem;
    }

    .song-artist-modern {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .stat-inline {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .control-panel {
        padding: 0.5rem 0.8rem;
        gap: 0;
        border-radius: 1rem !important;
    }

    .control-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
        min-height: 32px;
        min-width: 50px;
        border-radius: 10px !important;
    }

    /* Font boyut butonları 480px altında */
    .font-btn {
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .font-btn i {
        font-size: 0.85rem !important;
    }

    /* Grup düzenlemelerini koru */
    .control-group:nth-child(1) {
        flex: 1;
        justify-content: flex-start;
    }

    .control-group:nth-child(2) {
        flex: 0 0 auto;
        justify-content: center;
    }

    .control-group:nth-child(3) {
        flex: 1;
        justify-content: flex-end;
        gap: 0.4rem;
    }

        .control-group:nth-child(n+4) {
        display: none !important;
    }

    /* Scroll butonu 480px altında */
    .scroll-btn {
        min-width: 44px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .scroll-btn i {
        font-size: 1.1rem !important;
    }

      .control-btn i {
        font-size: 0.8rem;
    }

    .tone-display {
        font-size: 0.7rem;
    }

    .capo-info {
        font-size: 0.55rem;
    }

    .control-label {
        font-size: 0.6rem;
    }

    .action-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .action-btn i {
        font-size: 0.85rem;
    }

    .back-btn {
        width: 36px;
        height: 36px;
    }

    .chord-highlight {
        padding: 0;
        font-size: 0.8em;
        border-radius: 0;
    }
}

/* Auto Scroll Animation */
@keyframes autoScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-100%); }
}

.auto-scrolling {
    animation: autoScroll linear infinite;
}

/* Active states */
.control-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.favorite-btn.favorited {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}


/* Page-local finishing layer: it follows the legacy detail stylesheet above. */
.song-header-modern {
    padding: clamp(1rem, 2.5vw, 1.5rem) !important;
    border: 1px solid var(--ak-line-strong) !important;
    border-radius: 22px !important;
    background: linear-gradient(128deg, color-mix(in srgb, var(--ak-surface) 92%, #e7efff), var(--ak-surface)) !important;
    box-shadow: var(--ak-shadow) !important;
}
[data-theme="dark"] .song-header-modern {
    background: linear-gradient(128deg, #111f3a, #0d1728 65%, #0a1220) !important;
}
.song-header-modern::before {
    height: 2px !important;
    background: linear-gradient(90deg, var(--ak-blue), var(--ak-indigo), transparent 74%) !important;
}
.header-top { align-items: center !important; margin-bottom: 1.25rem !important; }
.back-btn { border: 1px solid var(--ak-line) !important; background: var(--ak-surface-muted) !important; color: var(--ak-ink) !important; }
.back-btn:hover { border-color: var(--ak-blue) !important; background: var(--ak-blue) !important; color: #fff !important; }
.song-artwork { flex: 0 0 auto; width: clamp(68px, 8vw, 96px); height: clamp(68px, 8vw, 96px); overflow: hidden; border: 1px solid var(--ak-line-strong); border-radius: 18px; background: linear-gradient(145deg, #1b315d, #7165d8); box-shadow: 0 12px 26px rgba(25, 50, 97, .2); }
.song-artwork img { display: block; width: 100%; height: 100%; object-fit: cover; }
.song-header-eyebrow { margin: 0 0 .25rem; color: var(--ak-blue); font-size: .72rem; font-weight: 850; letter-spacing: .085em; text-transform: uppercase; }
.song-title-modern { color: var(--ak-ink) !important; font-size: clamp(1.45rem, 3vw, 2rem) !important; letter-spacing: -.045em; }
.song-artist-modern { color: var(--ak-muted) !important; font-size: 1rem !important; }.song-artist-modern:hover { color: var(--ak-blue) !important; }
.stat-inline { border-color: var(--ak-line) !important; background: var(--ak-surface-muted) !important; color: var(--ak-muted) !important; }
.action-btn { border-color: var(--ak-line) !important; background: var(--ak-surface-muted) !important; color: var(--ak-ink) !important; }.action-btn:hover { border-color: var(--ak-blue) !important; background: color-mix(in srgb, var(--ak-blue) 11%, var(--ak-surface)) !important; color: var(--ak-blue) !important; }
.control-panel { overflow: hidden; padding: .7rem !important; border: 1px solid #263f65 !important; border-radius: 15px !important; background: #0a1224 !important; box-shadow: inset 0 1px 0 rgba(165, 196, 245, .09), 0 12px 25px rgba(13, 27, 51, .17) !important; }.control-panel::before, .control-panel::after { display: none !important; }.control-btn { border-color: rgba(149, 185, 241, .24) !important; background: rgba(255,255,255,.055) !important; color: #eaf2ff !important; box-shadow: none !important; }.control-btn:hover, .control-btn.active { border-color: rgba(128, 176, 255, .68) !important; background: rgba(75, 127, 210, .28) !important; color: #fff !important; }.control-btn i, .control-btn .control-label { color: #b9d1f4 !important; }.control-btn:hover i, .control-btn:hover .control-label { color: #fff !important; }.tone-display { color: #8cbcff !important; }.learn-btn { border-color: rgba(126, 172, 249, .52) !important; background: linear-gradient(135deg, #1c3962, #2e5b91) !important; color: #f7faff !important; }.learn-btn i, .learn-btn .learn-text { color: inherit !important; }
.chords-layout-wrapper { grid-template-columns: minmax(208px, 224px) minmax(0, 1fr) minmax(208px, 224px) !important; gap: 1rem !important; }
.song-sidebar { overflow: hidden; min-width: 0; border: 1px solid var(--ak-line) !important; border-radius: 16px !important; background: var(--ak-surface) !important; box-shadow: 0 12px 30px rgba(27, 52, 93, .07) !important; }
.sidebar-header { padding: .9rem 1rem !important; border-bottom: 1px solid var(--ak-line) !important; background: color-mix(in srgb, var(--ak-blue) 7%, var(--ak-surface)) !important; color: var(--ak-ink) !important; }.sidebar-header i { color: var(--ak-blue) !important; }
.sidebar-songs-list { padding: .35rem !important; }
.song-sidebar.sidebar-left { position: static; max-height: none; overflow: visible; }
.sidebar-left .sidebar-songs-list { max-height: none; overflow: visible; }
.sidebar-left .sidebar-song-item { flex-shrink: 0; }
.sidebar-song-item { display: grid !important; grid-template-areas: "cover info" "cover meta"; grid-template-columns: 40px minmax(0, 1fr); gap: .22rem .65rem; align-items: center; padding: .62rem !important; border: 0 !important; border-radius: 10px; background: transparent !important; }.sidebar-song-item:hover { background: var(--ak-surface-muted) !important; transform: none !important; }.sidebar-song-cover { grid-area: cover; }.sidebar-song-info { grid-area: info; margin: 0 !important; min-width: 0; }.sidebar-song-meta { grid-area: meta; justify-content: flex-start !important; gap: .6rem !important; min-width: 0; }
.sidebar-song-cover { display: block; overflow: hidden; width: 38px; height: 38px; border: 1px solid var(--ak-line); border-radius: 9px; background: linear-gradient(145deg, #223d75, #7568dc); }.sidebar-song-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sidebar-song-title { color: var(--ak-ink) !important; font-size: .84rem !important; line-height: 1.25 !important; }.sidebar-song-artist, .sidebar-song-views { color: var(--ak-muted) !important; }.sidebar-song-key { color: var(--ak-blue) !important; }
.sidebar-refresh-btn, .sidebar-view-all { margin: .25rem .75rem .75rem !important; border-radius: 10px !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }.sidebar-view-all { background: linear-gradient(135deg, var(--ak-blue), var(--ak-indigo)) !important; }
.song-header-summary { max-width: 760px; margin: .7rem 0 0; color: var(--ak-muted); font-size: .88rem; line-height: 1.55; }.song-context-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1.15rem 0; padding: 1.05rem 1.2rem; border: 1px solid var(--ak-line); border-radius: 16px; background: var(--ak-surface); box-shadow: 0 10px 25px rgba(27, 52, 93, .05); }
.song-context-eyebrow { margin: 0 0 .24rem; color: var(--ak-blue); font-size: .7rem; font-weight: 850; letter-spacing: .085em; text-transform: uppercase; }.song-context-card h2 { margin: 0; color: var(--ak-ink); font-size: 1.1rem; letter-spacing: -.03em; }.song-context-card p:not(.song-context-eyebrow) { max-width: 680px; margin: .38rem 0 0; color: var(--ak-muted); font-size: .88rem; line-height: 1.55; }.song-context-facts { display: grid; grid-template-columns: repeat(2, minmax(96px, 1fr)); gap: .65rem; flex: 0 0 auto; margin: 0; }.song-context-facts div { min-width: 0; padding: .62rem .72rem; border: 1px solid var(--ak-line); border-radius: 10px; background: var(--ak-surface-muted); }.song-context-facts dt { color: var(--ak-muted); font-size: .65rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }.song-context-facts dd { margin: .2rem 0 0; overflow: hidden; color: var(--ak-ink); font-size: .82rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.song-context-facts a { color: var(--ak-blue); text-decoration: none; }.song-context-facts a:hover { text-decoration: underline; }
@media (max-width: 1100px) {
    .chords-layout-wrapper { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 640px) {
    .header-top { align-items: flex-start !important; gap: .7rem !important; }.song-artwork { width: 62px; height: 62px; border-radius: 14px; }.title-row { align-items: flex-start !important; flex-direction: column; gap: .65rem !important; }.action-buttons-group { align-self: stretch; }.song-title-modern { font-size: 1.45rem !important; }.control-panel { gap: .4rem !important; }.control-group { margin-left: 0 !important; }.song-context-card { align-items: flex-start; flex-direction: column; gap: .9rem; }.song-context-facts { width: 100%; }.chords-layout-wrapper { grid-template-columns: 1fr !important; }
}

html:not([data-theme="dark"]) .chord-highlight,
html:not([data-theme="dark"]) #songReadTab[aria-pressed="true"] { color: #2456a8 !important; }
html:not([data-theme="dark"]) .song-detail-container em { color: #475569; }

.copyright-notice-subtle p { opacity: 1; }
html:not([data-theme="dark"]) .copyright-notice-subtle a { color: #2456a8; }

html:not([data-theme="dark"]) .song-context-eyebrow,
html:not([data-theme="dark"]) .song-context-facts a { color: #2456a8; }
html:not([data-theme="dark"]) .song-context-facts dt { color: #475569; }
