
/* Container Utama */

.chord-main-wrapper {
    margin-top: 20px;
    font-size: clamp(16px, 1.5vw + 14px, 20px);
}

.song-header {
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-orange);
    padding-left: 15px;
    border-radius: 10px;
}

.song-title {
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.song-artist {
    color: var(--text-dim);
    margin-top: 5px;
}
.song-category {
    color: #ee6c00; /* Warna orange agar senada dengan tema Chordtales */
    font-weight: normal;
    opacity: 0.8;
}

/* Box Chord */
.chord-box {
    position: relative;
    background: #1a1a1a;
    padding: 20px 10px;
    border-radius: 12px;
    transform-origin: top center;
    transition: transform 0.1s ease-out;
    color: #ccc;
    font-size: 14px;
}
.chord-box h3{
    text-align: center;
}
#chord-content {
    white-space: pre; 
    font-family: "Roboto Mono", monospace;
    overflow-x: auto;
    color: #ccc;
    line-height: 23px !important; 
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Style untuk chord yang nanti dibungkus otomatis oleh jQuery */
.chord-node {
    color: var(--primary-orange, #ee6c00); 
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: normal; 
    display: inline-block;
}

.chord-node:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}


/*RELATED ARTIS LAIN DARI YANG SEDANG DI MAINKAN*/
.related-songs {
    margin-top: 40px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden; /* Agar efek geser tetap rapi */
}

.section-title {
    font-size: 1.1rem;
    color: #ee6c00;
    margin: 15px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title span {
    color: #fff;
    padding-left: 5px;
    border-left: 3px solid #ee6c00;
    border-radius: 2px;
}

.song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.song-list li {
    border-bottom: 1px solid #2a2a2a;
}

.song-list a {
    color: #ddd;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 15px;
    /* Transisi halus saat bergeser */
    transition: all 0.3s ease-in-out;
}

.song-list a i {
    color: #ee6c00;
    margin-right: 12px;
}

/* LAYOUT FLEXBOX UNTUK BODY MODAL DIAGRAM */
/* 1. MODAL BOTTOM SHEET (Efek Blur Kaca & Floating) */
.chord-bottom-sheet {
    position: fixed;
    left: 50%;
    bottom: -100%;
    width: 95%;
    /* Warna transparan + Blur Kaca */
    background: rgba(18, 18, 18, 0.85); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border-top: 2px solid #ee6c00;
    border-radius: 25px 25px 0 0;
    transition: bottom 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    pointer-events: auto; /* Agar bagian dalam tetap bisa diklik */
    transform: translateX(-50%);
}
@media(min-width:768px){
    .chord-bottom-sheet{
        width: 768px;
    }
}

.chord-bottom-sheet.active { 
    bottom: 0; 
}

/* 2. TOMBOL CLOSE X (Pindah ke Kanan Atas) */
.close-sheet {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
    line-height: 1;
}

.close-sheet:hover { 
    color: #ee6c00; 
}

/* 3. HANDLE MODAL (Garis kecil di tengah atas) */
.sheet-handle {
    width: 40px; 
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 12px auto 5px;
}

/* 4. LAYOUT FLEXBOX (Diagram Kiri, Keterangan Kanan) */
.flex-container {
    display: flex;
    flex-direction: row; 
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 30px;
    gap: 15px;
}

/* Sisi Kiri (DIAGRAM) */
.sheet-diagram {
    flex: 0 0 52%; 
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sisi Kanan (KETERANGAN) */
.sheet-info {
    flex: 0 0 45%; 
    color: #eee;
    text-align: left;
}

.sheet-info h4 {
    color: #ee6c00;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
}

/* List Jari Otomatis */
#finger-list-container div {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #bbb;
}

#finger-list-container b {
    color: #ee6c00;
}

/* Box Kode Mentah */
.finger-legend {
    margin-top: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid #ee6c00;
}

.finger-legend p {
    font-size: 10px;
    margin: 0;
    color: #999;
}

/* 5. OVERLAY (Setel agar klik bisa tembus ke lirik) */
.chord-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent; 
    z-index: 1000;
    pointer-events: none; /* KUNCI: Biar bisa klik lirik saat modal buka */
}

#chord-canvas {
    max-width: 100%;
    height: auto;
}

/* 6. RESPONSIVE MOBILE */
@media (max-width: 360px) {
    .flex-container {
        padding: 10px 15px;
        gap: 10px;
    }
    .sheet-diagram { flex: 0 0 50%; }
    .sheet-info { flex: 0 0 48%; }
    .sheet-info h4 { font-size: 0.75rem; }
}

/* STYLE TRANSPOSE NADA */
/* Container Utama */
.transpose-container-main {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    background: transparent;
}

/* Panel Menjorok (Outer Box) */
.transpose-box-outer {
    position: relative;
    background: #2a2a2a;
    width: 100%;
    max-width: 500px;
    /*padding: 15px 25px 10px;*/
    border-radius: 50px;
    border: 1px solid #3d3d3d;
    box-shadow: 
        inset 0 2px 10px rgba(0,0,0,0.5), 
        0 1px 1px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

.label-top {
    font-size: 10px;
    color: #ee6c00;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 8px 0;
    text-transform: uppercase;
}

.transpose-controls-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

/* Tombol Lingkaran (Efek Logika Metal) */
.btn-tp-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    background: linear-gradient(145deg, #333, #222);
    color: #ee6c00;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        4px 4px 8px #181818, 
        -2px -2px 6px #3a3a3a;
    transition: 0.2s;
}

.btn-tp-circle:active {
    box-shadow: inset 2px 2px 5px #111;
    transform: scale(0.95);
}
.btn-tp-circle i{
    margin: auto;
}

/* Display Kunci Tengah */
.current-key-display {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}

#current-root-key {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(238, 108, 0, 0.5);
}

.step-label {
    font-size: 14px;
    color: #888;
    font-weight: bold;
    min-width: 20px;
}


/* STYLE LOGIC CONTROL AUTO SCROLL, RESIZE FONT, METRONOM*/
/* Gerigi Master (Trigger) */
.fab-gear {
    position: fixed; right: 20px; bottom: 10%; width: 50px; height: 50px;
    background: rgba(238,108,0,0.7); 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; cursor: pointer; z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: none; outline: none;
}
.fab-gear i{
    color: #fff; 
    margin: auto;
}

/* Animasi Putar Mulus */
.spinning i {
    animation: fa-spin 2s linear infinite;
}

/* Sidebar Mini (Glassmorphism) */
.sidebar-mini {
    position: fixed; 
    right: 15px; 
    bottom: calc(10% + 65px); 
    width: 60px;
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(5px); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px; 
    padding: 20px 0; 
    display: none;
    flex-direction: column; align-items: center; 
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.sidebar-section {
    width: 100%; display: flex; flex-direction: column; 
    align-items: center; justify-content: center; gap: 10px;
}
.sidebar-section i{
    margin: auto;
}
.zoom-box{
    display: flex;
    flex-direction: column;
}

/* Tombol + / - (Reset Sempurna agar Center) */
.btn-side {
    background: rgba(255,255,255,0.1); 
    border: none; color: #ffffff;
    width: 40px; height: 40px; 
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; margin: 0; font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1; /* Biar ikon tidak terdorong ke bawah */
}

.btn-side:active { background: #ee6c00; }

.side-hr { 
    width: 30px; border: 0; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    margin: 12px 0; 
}

/* Balok Scroll */
.scroll-blocks { 
    display: flex; flex-direction: column; 
    align-items: center; gap: 6px; 
}
.block { 
    width: 32px; height: 8px; 
    background: rgba(255,255,255,0.2); 
    border-radius: 4px; cursor: pointer; 
    transition: 0.3s ease; 
}
.block.active { 
    background: #ee6c00 !important; 
    box-shadow: 0 0 12px #ee6c00; 
}

/* LED Metronome */
.led-indicator { 
    width: 30px; height: 30px; 
    background: rgba(255,255,255,0.2); 
    border-radius: 50%; margin: 5px 0; 
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.led-indicator i {
    font-size: 12px;
    transition: all 0.2s;
    pointer-events: none; /* Biar klik tembus ke parent div */
}
.led-active { 
    background: #ee6c00 !important; 
    box-shadow: 0 0 15px #ee6c00, 0 0 25px #ee6c00 !important;
}

#bpm-val { font-size: 12px; font-weight: bold; color: #ffffff; }

/* KUNCI LINE-HEIGHT PADA KONTEN CHORD */
.chord-content {
    line-height: 1.2 !important; /* Kunci spasi antar baris agar tetap rapat */
    transition: font-size 0.2s ease;
}

.collapse-icon { font-size: 10px; color: rgba(255,255,255,0.6); cursor: pointer; padding: 5px; }


/* === STYLE CHORDTALES VARIATION BOX === */
.variation-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ee6c00;
    padding: 6px 12px; /* Padding lebih ramping */
    margin: 10px 0;
    border-radius: 10px;
    height: auto; 
    box-sizing: border-box;
    width: 100%;
}

.variation-content {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
    display: flex; 
    flex-direction: column;
    justify-content: center;
}
.variation-label{
    color: #eee;
}

.variation-desc {
    color: #999999;
    font-size: 12px; 
    margin-top: 5px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
    display: block;
    
}

.variation-canvas-container {
    width: 68px; 
    height: 85px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
