/**
 * CBT Medya Nota Defteri - Dijital Kitap & Nota Sayfası Stilleri
 * Kısa Sap Bağlama Notasyonu, Kitap Efekti, Parşömen Dokusu, Gece Modu & Yazdırma
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;800&family=Lora:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Renk Paleti */
  --bg-parchment: #f6f1e7;
  --paper-parchment: #fdfaf3;
  --paper-border: #e2d7c5;
  --paper-shadow: rgba(43, 30, 18, 0.12);
  --text-primary: #1f2421;
  --text-secondary: #5c6258;
  --text-muted: #889084;
  --accent-gold: #c68a4c;
  --accent-gold-dark: #9e6931;
  --accent-red: #8b1538;
  --accent-blue: #1d4ed8;
  --accent-emerald: #15803d;
  
  /* Font Ailesi */
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cinzel', serif;
  --font-lyrics: 'Lora', Georgia, serif;

  /* Boyutlar & Boşluklar */
  --header-height: 64px;
  --player-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Koyu / Sahne Modu Değişkenleri */
[data-theme="dark"] {
  --bg-parchment: #0f1115;
  --paper-parchment: #181b22;
  --paper-border: #282e3d;
  --paper-shadow: rgba(0, 0, 0, 0.45);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
}

/* Temiz Beyaz Kağıt Modu */
[data-theme="white"] {
  --bg-parchment: #f1f5f9;
  --paper-parchment: #ffffff;
  --paper-border: #cbd5e1;
  --paper-shadow: rgba(15, 23, 42, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
}

/* Temel Sıfırlamalar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-parchment);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. ÜST HEADER (Başlık, Arama, Hızlı Araçlar)
   ========================================================================== */
.site-header {
  height: var(--header-height);
  background-color: var(--paper-parchment);
  border-bottom: 1px solid var(--paper-border);
  box-shadow: 0 2px 10px var(--paper-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #8b1538, #b91c1c);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 8px rgba(139, 21, 56, 0.35);
}

.brand-info h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.brand-info p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.header-center {
  flex: 1;
  max-width: 420px;
  margin: 0 20px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--paper-border);
  background-color: var(--bg-parchment);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--accent-gold);
  background-color: var(--paper-parchment);
  box-shadow: 0 0 0 3px rgba(198, 138, 76, 0.18);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-tool {
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-tool:hover {
  background-color: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.btn-tool.active {
  background-color: var(--accent-gold-dark);
  color: #fff;
  border-color: var(--accent-gold-dark);
}

/* ==========================================================================
   2. KİTAPLIK RAFİ (Cilt Seçici / Book Carousel)
   ========================================================================== */
.bookshelf-bar {
  background-color: var(--paper-parchment);
  border-bottom: 1px solid var(--paper-border);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.bookshelf-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
}

.book-tab-btn {
  background: var(--bg-parchment);
  border: 1.5px solid var(--paper-border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-tab-btn .tab-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.08);
}

.book-tab-btn:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.book-tab-btn.active {
  background: var(--text-primary);
  color: var(--paper-parchment);
  border-color: var(--text-primary);
  box-shadow: 0 2px 6px var(--paper-shadow);
}

/* ==========================================================================
   3. DİJİTAL DEFTER / KİTAP GÖVDE DÜZENİ
   ========================================================================== */
.main-notebook-container {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 18px auto 120px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* Gerçekçi Kitap Cildi / Defter Kasası */
.digital-book-wrapper {
  background: var(--paper-parchment);
  border-radius: var(--radius-lg);
  border: 1px solid var(--paper-border);
  box-shadow: 0 10px 30px var(--paper-shadow), 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Kitap Cilt Sırtı Efekti (Book Spine) */
.digital-book-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 380px;
  width: 12px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent, rgba(0, 0, 0, 0.08));
  pointer-events: none;
  z-index: 5;
}

@media (max-width: 1024px) {
  .digital-book-wrapper::before {
    display: none;
  }
}

.book-content-split {
  display: flex;
  min-height: 720px;
  align-items: stretch;
}

/* Sol Sayfa: Kitap İçi İçindekiler, Makam, Usul ve Şiir Sözleri */
.book-left-page {
  width: 380px;
  background-color: var(--paper-parchment);
  border-right: 1px solid var(--paper-border);
  padding: 24px;
  display: block;
  overflow-y: visible;
  max-height: none;
}

@media (max-width: 1024px) {
  .book-content-split {
    flex-direction: column;
  }
  .book-left-page {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--paper-border);
    max-height: none;
    overflow-y: visible;
  }
}

.current-book-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
}

.current-book-cover-img {
  width: 58px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.book-banner-info h3 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.book-banner-info p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.left-section-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-gold-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Eser Listesi (İçindekiler) */
.toc-pieces-list {
  list-style: none;
  margin-bottom: 20px;
}

.toc-item {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
}

.toc-item:hover {
  background-color: var(--bg-parchment);
  border-color: var(--paper-border);
}

.toc-item.active {
  background-color: rgba(198, 138, 76, 0.12);
  border-color: var(--accent-gold);
  color: var(--accent-gold-dark);
  font-weight: 700;
}

.toc-item .piece-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 22px;
}

.toc-item .piece-name {
  flex: 1;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-item .piece-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-parchment);
  color: var(--text-secondary);
}

/* Eser Bilgi Kartı */
.piece-meta-card {
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.piece-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.82rem;
  border-bottom: 1px dashed var(--paper-border);
}

.piece-meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 600;
}

.meta-val {
  color: var(--text-primary);
  font-weight: 700;
}

/* Şiir & Şan Sözleri */
.piece-lyrics-box {
  margin-top: 10px;
}

.lyrics-verse {
  font-family: var(--font-lyrics);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  white-space: pre-line;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   4. SAĞ SAYFA: VEKTÖREL NOTA DEFTERİ SAYFASI (Engraved Sheet Music)
   ========================================================================== */
.book-right-page {
  flex: 1;
  background-color: var(--paper-parchment);
  padding: 28px 36px;
  display: block;
  overflow-y: visible;
  max-height: none;
  position: relative;
}

@media (max-width: 768px) {
  .book-right-page {
    padding: 16px 12px;
  }
}

.sheet-header-box {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px double var(--paper-border);
  position: relative;
}

.sheet-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sheet-subtitle {
  font-family: var(--font-lyrics);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

.sheet-meta-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.sheet-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  color: var(--text-secondary);
}

/* Nota Çizim Alanı (SVG Container) */
.sheet-render-viewport {
  width: 100%;
  display: block;
  overflow-x: auto;
  overflow-y: visible;
  padding: 12px 0 24px 0;
  min-height: 380px;
  scrollbar-width: thin;
  position: relative;
}

.baglama-sheet-svg {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 280px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}

/* Nota Etkileşim & Parlatma (Kesinlikle Kayma / Zıplama Yapmaz - Sabit ve Net) */
.note-item {
  cursor: pointer;
}

/* Mouse nota üzerine geldiğinde kesinlikle transform / scale KULLANILMAZ (SVG koordinatlarını kaydırır) */
.note-item:hover .note-head {
  fill: #f59e0b !important;
  stroke: #d97706 !important;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.85));
}

.note-item:hover .note-name-badge rect {
  stroke: #f59e0b !important;
  stroke-width: 2px !important;
  filter: drop-shadow(0 1px 3px rgba(245, 158, 11, 0.4));
}

.note-item:hover .tezene-mark rect {
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
}

.note-item:hover .finger-badge circle {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

/* Çalınan aktif nota: Vurgulu altın ışıma, sıfır kayma */
.active-playing-note .note-head {
  fill: #f59e0b !important;
  stroke: #b45309 !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.95)) !important;
}

.active-playing-note .note-name-badge rect {
  fill: #fef3c7 !important;
  stroke: #f59e0b !important;
  stroke-width: 2.2px !important;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.65));
}

.active-playing-note .tezene-mark rect {
  stroke-width: 2px !important;
  filter: drop-shadow(0 0 5px rgba(2, 132, 199, 0.6));
}

/* Nota Seçenekleri Hızlı Araç Çubuğu (Görünüm Ayarları) */
.sheet-view-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

.view-checkbox-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.view-checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   5. ALT ÇALICI & SAYFA ÇEVİRİCİ (Sticky Player & Flip Controls)
   ========================================================================== */
.notebook-footer-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background-color: var(--paper-parchment);
  border-top: 1px solid var(--paper-border);
  box-shadow: 0 -4px 15px var(--paper-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 90;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-play-master {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #fff;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(198, 138, 76, 0.4);
  transition: var(--transition);
}

.btn-play-master:hover {
  transform: scale(1.06);
}

.player-btn-secondary {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.player-btn-secondary:hover {
  background: var(--paper-border);
}

.player-btn-secondary.active {
  background: var(--accent-gold-dark);
  color: #fff;
  border-color: var(--accent-gold-dark);
}

/* Hız Seçici */
.speed-selector-group {
  display: flex;
  align-items: center;
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-full);
  padding: 2px;
}

.speed-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.speed-btn.active {
  background: var(--text-primary);
  color: var(--paper-parchment);
}

/* Ses / Çalım Modu Seçici (Gerçek Eser İcrası vs Nota Nota Akustik Bağlama) */
.audio-mode-selector-group {
  display: flex;
  align-items: center;
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.audio-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.audio-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.audio-mode-btn.active {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #fff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
}

/* Sayfa Çevirme Kontrolleri */
.player-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-page-turn {
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  color: var(--text-primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-page-turn:hover:not(:disabled) {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.btn-page-turn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-indicator-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 90px;
  text-align: center;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   6. AKORT ALETİ (TUNER) MODAL & ÇEKMECE
   ========================================================================== */
.tool-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tool-drawer-overlay.active {
  display: flex;
}

.tool-modal-card {
  background: var(--paper-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--paper-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

/* Tuner Göstergesi */
.tuner-gauge-box {
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.tuner-note-display {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.tuner-freq-display {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.tuner-needle-track {
  width: 100%;
  height: 10px;
  background: var(--paper-border);
  border-radius: var(--radius-full);
  margin: 20px 0 10px 0;
  position: relative;
  overflow: visible;
}

.tuner-needle-center {
  position: absolute;
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 3px;
  background: var(--accent-emerald);
  transform: translateX(-50%);
  z-index: 2;
}

.tuner-needle-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 26px;
  background: var(--text-primary);
  border-radius: 4px;
  transform: translateX(-50%);
  transition: left 0.1s ease-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.tuner-needle-pointer.is-tuned {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(21, 128, 61, 0.6);
}

.tuner-status-text {
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 10px;
  min-height: 24px;
}

.tuner-status-text.tuned { color: var(--accent-emerald); }
.tuner-status-text.flat { color: var(--accent-blue); }
.tuner-status-text.sharp { color: var(--accent-red); }

/* Tuner Tel Seçici Butonları */
.tuner-strings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.tuner-string-btn {
  background: var(--bg-parchment);
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.tuner-string-btn:hover {
  border-color: var(--accent-gold);
}

.tuner-string-btn.active {
  border-color: var(--accent-gold-dark);
  background: rgba(198, 138, 76, 0.12);
}

.tuner-string-btn .str-name {
  font-size: 0.8rem;
  font-weight: 700;
  display: block;
}

.tuner-string-btn .str-note {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold-dark);
}

/* ==========================================================================
   7. METRONOM MODAL
   ========================================================================== */
.metronome-visualizer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.beat-bubble {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--paper-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: transform 0.08s ease;
}

.beat-bubble.active-dum {
  background: var(--accent-red);
  color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(139, 21, 56, 0.5);
}

.beat-bubble.active-tek {
  background: var(--accent-blue);
  color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(29, 78, 216, 0.4);
}

.bpm-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
}

.bpm-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent-gold-dark);
}

.bpm-val-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  min-width: 90px;
  text-align: right;
}

.usul-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.usul-pill-btn {
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.usul-pill-btn.active {
  background: var(--text-primary);
  color: var(--paper-parchment);
}

/* ==========================================================================
   8. KISA SAP BAĞLAMA PERDE & KLAVYE ŞEMASI (SIFIR KAYDIRMA / %100 TAM GÖRÜNÜM)
   ========================================================================== */
.fretboard-wrap-outer {
  background: var(--paper-parchment);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--paper-border);
  padding: 20px;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.baglama-fretboard-wrap.full-width-fit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Üst Başlık & Yön Göstergesi */
.fretboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--paper-border);
  padding-bottom: 12px;
}

.fretboard-title-block {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.view-tag-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  letter-spacing: 0.5px;
}

.neck-direction-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.dir-tag {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
}

.dir-left { color: #854d0e; }
.dir-right { color: #1e3a8a; }
.dir-divider { color: var(--text-muted); font-size: 0.7rem; }

/* ==========================================================================
   KLAVYE RENK REHBERİ (NE NEYİ İFADE EDİYOR?)
   ========================================================================== */
.fret-color-legend-card {
  background: var(--bg-parchment);
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legend-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--accent-gold-dark);
}

.legend-card-header strong {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.lch-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-style: italic;
}

.fret-legend-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.f-legend-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.fl-sample-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 4px;
  padding: 2px 7px;
  min-width: 38px;
  height: 24px;
  text-align: center;
  flex-shrink: 0;
}

.fl-sample-pill.fl-green {
  border: 2px solid #10b981;
  background: #064e3b;
  color: #a7f3d0;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}

.fl-sample-pill.fl-gold {
  border: 1.5px solid #f59e0b;
  background: #78350f;
  color: #fef08a;
}

.fl-sample-pill.fl-blue {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0f172a;
  color: #cbd5e1;
}

.fl-sample-pill.fl-solid-green {
  background: #10b981;
  color: #ffffff;
  border: 1px solid #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.fl-sample-pill.fl-glow-yellow {
  background: #f59e0b;
  color: #000000;
  border: 1.5px solid #d97706;
  box-shadow: 0 0 10px #f59e0b;
}

.fl-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.fl-info strong {
  font-size: 0.72rem;
  font-weight: 800;
}

.fl-info span {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.fl-title-green { color: #059669; }
.fl-title-gold { color: #d97706; }
.fl-title-blue { color: #334155; }
.fl-title-solid-green { color: #047857; }
.fl-title-playing { color: #b45309; }

.pfs-student-tip {
  grid-column: 1 / -1;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: #065f46;
  margin-top: 6px;
}

.tip-badge {
  font-weight: 900;
  background: #10b981;
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* 2. Çok Basit Anlatımlı Öğrenci Bilgi Kartları */
.student-quick-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

@media (max-width: 860px) {
  .student-quick-guide {
    grid-template-columns: 1fr;
  }
}

.guide-item {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.guide-bullet {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #fff;
  font-weight: 800;
  text-align: center;
  line-height: 18px;
  font-size: 0.7rem;
  margin-right: 4px;
}

/* 3. Birlikte Basılan Çift Tel Butonları */
.double-stop-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.double-stop-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold-dark);
}

.double-stop-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-double-stop {
  background: var(--bg-parchment);
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.btn-double-stop:hover {
  border-color: var(--accent-gold);
  background: #fff;
}

.btn-double-stop.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.double-stop-desc-box {
  background: rgba(198, 138, 76, 0.08);
  border-left: 3px solid var(--accent-gold);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.78rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* 4. BAĞLAMA ENSTRÜMAN KASASI (%100 GENİŞLİK, KAYDIRMASIZ) */
.baglama-instrument-container {
  display: flex;
  width: 100%;
  background: #1f120c; /* Maun / Ceviz Sap Ağacı */
  border-radius: var(--radius-md);
  padding: 12px 6px;
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.7), 0 4px 14px rgba(0, 0, 0, 0.15);
  position: relative;
  align-items: stretch;
  overflow: hidden;
}

/* Aktif Eser Başlık Rozeti */
.active-piece-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #8b1538;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(139, 21, 56, 0.35);
}

/* Seçili Eserin Kullanılan Perdeleri Özeti (Dinamik) */
.piece-frets-summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(198, 138, 76, 0.1);
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  flex-wrap: wrap;
}

.pfs-col {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.pfs-label {
  color: var(--text-secondary);
  font-weight: 700;
}

.pfs-val {
  color: var(--text-primary);
  font-weight: 800;
}

.used-note-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: #064e3b;
  color: #a7f3d0;
  border: 1px solid #10b981;
  margin: 1px 2px;
}

/* 4. GERÇEK BAĞLAMA GÖRSELİ (BAŞI SOLDA - ARMUDİ OYMA DUT TEKNE SAĞDA - %100 EKRANA SIĞAR) */
.real-baglama-visual-frame {
  display: flex;
  width: 100%;
  background: #120702;
  border-radius: 14px 85px 85px 14px / 14px 50% 50% 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 2px 10px rgba(255, 255, 255, 0.08);
  position: relative;
  align-items: stretch;
  overflow: hidden;
  margin-top: 12px;
  border: 2px solid rgba(217, 119, 6, 0.4);
  min-height: 175px;
}

/* ==========================================================================
   SOL TARAF: GELENEKSEL AĞAÇ BURGULUK / OYMA TAÇ & 7 AĞAÇ BURGU
   ========================================================================== */
.baglama-headstock-pegbox {
  width: 140px;
  background: linear-gradient(135deg, #451a03 0%, #291005 50%, #150702 100%);
  border-radius: 12px 0 0 12px;
  border-right: 4px solid #1c0802;
  display: flex;
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 2px 2px 6px rgba(255, 255, 255, 0.12);
}

/* Oyma Taç / Tepelik */
.headstock-crown-finial {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(to right, #240c03, #451a03);
  border-right: 1px solid rgba(217, 119, 6, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.crown-motif {
  font-size: 0.85rem;
  color: #d97706;
  opacity: 0.6;
  transform: rotate(-90deg);
}

.pegbox-wood-carving {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 6px 6px 16px;
  position: relative;
}

.pegbox-title-label {
  text-align: center;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 2px;
  margin-bottom: 3px;
}

.pegbox-title-label span:first-child {
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  color: #f59e0b;
  letter-spacing: 1.2px;
}

.pegbox-sub-label {
  display: block;
  font-size: 0.5rem;
  color: #cbd5e1;
}

/* 7 Adet Geleneksel Şimşir/Abanoz Ağaç Burgu */
.tuning-pegs-rack.traditional-saz-pegs {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 86px;
  padding: 0 2px;
  position: relative;
}

.peg-unit {
  display: flex;
  align-items: center;
  height: 10px;
  position: relative;
}

/* Geleneksel Ahşap Burgu Kulağı (T-Burgu) */
.peg-wooden-ear {
  width: 20px;
  height: 9px;
  background: linear-gradient(135deg, #78350f 0%, #451a03 55%, #270e03 100%);
  border-radius: 4px;
  border: 1px solid #b45309;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  position: relative;
}

.peg-wooden-ear::before {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: calc(50% - 1px);
  width: 2px;
  background: rgba(254, 243, 199, 0.35);
  border-radius: 1px;
}

.peg-shaft {
  width: 14px;
  height: 3.5px;
  background: linear-gradient(to right, #9a3412, #78350f);
  border-radius: 1px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

/* Tel İsimleri Etiketleri */
.string-names-legend {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  margin-top: 3px;
}

.str-tag {
  font-size: 0.54rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.tag-ust { background: rgba(245, 158, 11, 0.22); color: #fbbf24; border-left: 2.5px solid #f59e0b; }
.tag-orta { background: rgba(52, 211, 153, 0.22); color: #34d399; border-left: 2.5px solid #10b981; }
.tag-alt { background: rgba(56, 189, 248, 0.22); color: #38bdf8; border-left: 2.5px solid #0284c7; }

/* Kemik / Şimşir Üst Eşik (Nut) */
.baglama-nut-barrier {
  width: 9px;
  background: linear-gradient(to bottom, #fffbeb 0%, #fef3c7 50%, #e2d3b8 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 20px 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45), inset 0 0 2px rgba(0,0,0,0.4);
  border-radius: 2px;
  flex-shrink: 0;
}

.nut-string-slot {
  width: 100%;
  height: 2px;
  background: #78350f;
}

/* ==========================================================================
   ORTA KISIM: KISA SAP KLAVYE & 12 PERDE (DOĞAL AHŞAP & MİSİNA PERDELER)
   ========================================================================== */
.baglama-neck-fretboard {
  display: flex;
  flex: 1;
  position: relative;
  min-width: 0;
  background: linear-gradient(to bottom, #421c0e 0%, #8c4c26 14%, #b46d3e 48%, #85431e 84%, #3b170a 100%);
  border-top: 3px solid #291005;
  border-bottom: 3px solid #1d0903;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.55), inset 0 -4px 12px rgba(0,0,0,0.55);
}

.nut-column {
  width: 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.32);
}

.neck-frets-container {
  display: flex;
  flex: 1;
  width: 100%;
}

.fret-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  padding: 0 1px;
}

.fret-column.is-koma-fret {
  background: rgba(245, 158, 11, 0.07);
}

.fret-top-badge {
  height: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fed7aa;
  text-align: center;
  line-height: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  letter-spacing: -0.2px;
}

.fret-top-badge.badge-koma {
  color: #fbbf24;
  font-weight: 900;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.fret-cell {
  height: 42px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* 3 Adet Kesintisiz Çelik Tel */
.string-line {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.string-line-ust { height: 3.2px; background: linear-gradient(to bottom, #f8fafc, #94a3b8 50%, #475569); }
.string-line-orta { height: 2.2px; background: linear-gradient(to bottom, #f1f5f9, #cbd5e1); }
.string-line-alt { height: 1.4px; background: #ffffff; box-shadow: 0 0 4px #fff, 0 1px 2px rgba(0,0,0,0.8); }

/* Otantik Misina Perde Bağları (Düğümlü Naylon Sarım - Sıfır Gitar Noktası!) */
.fret-tie-line {
  position: absolute;
  top: 20px;
  bottom: 0;
  right: 0;
  width: 2.5px;
  background: linear-gradient(to right, rgba(255,255,255,0.7), rgba(240,240,240,0.95) 50%, rgba(180,180,180,0.8));
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.65);
  z-index: 2;
}

.fret-tie-line.fret-tie-koma {
  background: linear-gradient(to right, #fde68a, #f59e0b 60%, #b45309);
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.85);
}

.misina-knot {
  position: absolute;
  left: -2px;
  width: 6px;
  height: 5px;
  background: #fdfaf3;
  border-radius: 50%;
  border: 1px solid #78350f;
  box-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.misina-knot.knot-top { top: 0; }
.misina-knot.knot-bottom { bottom: 0; }

/* ==========================================================================
   YALNIZCA BU ESERDE KULLANILAN NOTA ROZETLERİ (GEREKSİZLER GİZLİ)
   ========================================================================== */
.note-pill-placeholder {
  position: relative;
  z-index: 3;
}

.note-pill.active-piece-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.12s ease;
}

.np-name {
  font-weight: 900;
}

.np-finger {
  font-size: 0.6rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.38);
  padding: 0 3px;
  border-radius: 3px;
}

/* Doğal (Natürel) Nota Rengi */
.natural-pill {
  background: #064e3b;
  border: 1.5px solid #10b981;
  color: #a7f3d0;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Koma ve Arıza Nota Rengi */
.koma-pill {
  background: #78350f;
  border: 1.5px solid #f59e0b;
  color: #fef08a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Boş Tel Rengi */
.open-wire-pill {
  background: #0e7490;
  border: 1.5px solid #38bdf8;
  color: #e0f2fe;
}

.note-pill.active-piece-pill:hover {
  background: #f59e0b !important;
  color: #000 !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 14px #f59e0b !important;
  transform: scale(1.18);
}

/* Çalınan Anlık Aktif Nota */
.active-playing-fret .note-pill {
  background: #f59e0b !important;
  color: #000 !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 20px #f59e0b !important;
  transform: scale(1.28) !important;
  font-weight: 900 !important;
}

/* Beraber Basılan Çift Tel Vurgusu */
.active-chord-cell .note-pill {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #34d399 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.9) !important;
  transform: scale(1.22) !important;
}

/* ==========================================================================
   SAĞ TARAF: GERÇEK OYMA DUT TEKNE GÖVDESİ & LADİN GÖĞÜS (GİTAR DELİĞİ YOK!)
   ========================================================================== */
.baglama-body-soundboard {
  width: 185px;
  background: radial-gradient(ellipse at 75% 50%, #c2691b 0%, #8f4010 38%, #572005 72%, #220b02 100%);
  border-radius: 0 75px 75px 0 / 0 50% 50% 0;
  border-left: 4px solid #1c0802;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: inset 4px 0 16px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

/* Armudi Dut Tekne Kavis Kemeri */
.bowl-pear-rim {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.4) 60%, rgba(30, 10, 3, 0.8) 100%);
  pointer-events: none;
  border-radius: 0 75px 75px 0 / 0 50% 50% 0;
}

.soundboard-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px;
  position: relative;
}

/* Rezonans Ladin Ahşap Göğüs Dokusu */
.spruce-wood-texture {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0, 0, 0, 0.07) 3px, rgba(0, 0, 0, 0.07) 5px);
  pointer-events: none;
}

/* Geleneksel Ahşap Vurmaç (Tezene Koruyucu Bağa / Ceviz Tabla - Göğsün Altında) */
.soundboard-pickguard-vurmac {
  position: absolute;
  right: 52px;
  bottom: 12px;
  width: 72px;
  height: 48px;
  border-radius: 36px 12px 42px 14px;
  background: radial-gradient(ellipse at 35% 35%, #592408 0%, #301103 65%, #150600 100%);
  border: 1.5px solid #854d0e;
  box-shadow: inset 0 2px 5px rgba(255,255,255,0.1), 0 3px 8px rgba(0,0,0,0.65);
  opacity: 0.92;
  pointer-events: none;
}

/* Gövde Üzerindeki Teller ve Şimşir Alt Eşik */
.body-strings-bridge-zone {
  position: relative;
  width: 100%;
  height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-top: 10px;
}

.b-string {
  width: 78%;
  height: 2px;
  background: #e2e8f0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.b-str-ust { height: 3px; }
.b-str-orta { height: 2.2px; }
.b-str-alt { height: 1.4px; background: #fff; }

/* Şimşir Hareketli Alt Eşik (Floating Wooden Bridge) */
.floating-wooden-bridge {
  position: absolute;
  right: 36px;
  top: 2px;
  bottom: 2px;
  width: 9px;
  background: linear-gradient(to right, #fef3c7, #fde68a 50%, #d97706);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 2px rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.bridge-notch {
  width: 100%;
  height: 2px;
  background: #78350f;
}

.bridge-label {
  display: none;
}

/* Tezene Vuruş Alanı Etiketi */
.plectrum-strike-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 4px;
  padding: 2px 7px;
  z-index: 1;
}

.psb-icon { font-size: 0.72rem; }
.psb-text { font-size: 0.62rem; font-weight: 800; color: #fed7aa; }
.psb-hand { font-size: 0.56rem; color: #a7f3d0; font-weight: 700; }

/* Otantik Ses Deliği Bilgisi (Bağlamanın deliği alttadır) */
.back-soundhole-notice {
  font-size: 0.54rem;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  z-index: 1;
  text-align: center;
  letter-spacing: -0.2px;
}

/* Şimşir Tel Takozu / Dip Eşik (7 Pimli) */
.tailpiece-wooden-peg {
  position: absolute;
  right: 5px;
  top: calc(50% - 20px);
  width: 8px;
  height: 40px;
  background: linear-gradient(to bottom, #592408, #3b1403 50%, #1c0802);
  border-radius: 3px;
  border: 1px solid #92400e;
  box-shadow: 0 2px 6px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 2px 0;
}

.tailpiece-pin {
  width: 3px;
  height: 3px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.9);
}

/* ==========================================================================
   5. ÇOK BASİT ANLATIM: ESERE UYARLANMIŞ YAZILI İCRA REHBERİ KARTI
   ========================================================================== */
.piece-plain-guide-card {
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-top: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.plain-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--paper-border);
  margin-bottom: 15px;
}

.pgh-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pgh-badge {
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.5px;
}

.pgh-main-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.pgh-ratios {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ratio-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.ratio-alt { background: #e0f2fe; color: #0369a1; border: 1px solid #38bdf8; }
.ratio-orta { background: #dcfce7; color: #15803d; border: 1px solid #34d399; }
.ratio-ust { background: #fef3c7; color: #b45309; border: 1px solid #f59e0b; }

.guide-summary-card {
  background: var(--bg-parchment);
  border: 1px solid var(--paper-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.guide-summary-card p {
  margin: 0;
}

/* 3 Telin Kartları Grid Düzeni */
.strings-step-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.str-step-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.str-step-card.card-alt { border-top: 4px solid #0284c7; }
.str-step-card.card-orta { border-top: 4px solid #10b981; }
.str-step-card.card-ust { border-top: 4px solid #f59e0b; }

.ssc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--paper-border);
}

.ssc-header strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.ssc-dot {
  font-size: 0.9rem;
  margin-right: 4px;
}

.dot-alt { color: #0284c7; }
.dot-orta { color: #10b981; }
.dot-ust { color: #f59e0b; }

.ssc-usage {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
}

.ssc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ssc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  padding: 4px 6px;
  background: var(--bg-parchment);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.ssc-fret-tag {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 5px;
  background: #1e293b;
  color: #fff;
  border-radius: 3px;
  white-space: nowrap;
}

.ssc-note-name {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--accent-burgundy);
  min-width: 32px;
}

.ssc-note-name.is-koma {
  color: #d97706;
}

.ssc-finger-desc {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.25;
}

.ssc-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 6px 0;
}

/* Koma ve Karar Uyarı Kutuları */
.guide-koma-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.45;
}

.guide-koma-alert .gka-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.guide-karar-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid #10b981;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #14532d;
  line-height: 1.45;
}

.guide-karar-tip .gkt-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================================

/* ==========================================================================
   8.5. TEZENE REHBERİ & MOBİL GÖRÜNÜM SEKME STİLLERİ
   ========================================================================== */
.tezene-legend-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-parchment);
  border: 1.5px solid var(--paper-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.t-legend-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-gold-dark);
  letter-spacing: 0.5px;
}

.t-legend-items {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.t-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-primary);
}

.t-badge {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.t-badge-alt {
  background: #e0f2fe;
  color: #0369a1;
  border: 1.5px solid #0284c7;
}

.t-badge-ust {
  background: #ffe4e6;
  color: #be123c;
  border: 1.5px solid #e11d48;
}

/* Mobil Görünüm Sekmeleri (Masaüstünde Gizli, Mobilde Görünür) */
.mobile-view-tabs {
  display: none;
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
}

.mobile-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--paper-parchment);
  border: 1.5px solid var(--paper-border);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.mobile-tab-btn.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   8.6. MOBİL UYUMLULUK (@media max-width: 768px & 480px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Header Mobilde Temiz Çok Satırlı */
  .site-header {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-brand {
    order: 1;
  }

  .brand-info h1 {
    font-size: 1.0rem;
  }

  .brand-info p {
    font-size: 0.65rem;
  }

  .header-actions {
    order: 2;
    gap: 4px;
  }

  .btn-tool {
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .header-center {
    order: 3;
    max-width: 100%;
    margin: 4px 0 0 0;
    width: 100%;
  }

  /* Mobil Sekmeleri Göster */
  .mobile-view-tabs {
    display: flex;
  }

  /* Kitap Sayfaları Mobilde Sekmeli Gösterim */
  .book-content-split {
    flex-direction: column;
    min-height: auto;
  }

  .book-left-page,
  .book-right-page {
    width: 100%;
    max-height: none;
    overflow-y: visible;
    padding: 16px 12px;
  }

  .book-left-page.mobile-hidden,
  .book-right-page.mobile-hidden {
    display: none !important;
  }

  /* Ana Taşıyıcı */
  .main-notebook-container {
    margin: 10px auto 110px auto;
    padding: 0 10px;
  }

  /* Bağlama Klavyesi Mobilde Dokunmatik Kaydırmalı & Ferah */
  .baglama-instrument-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px;
  }

  .instrument-left-panel {
    width: 110px;
    padding: 4px;
  }

  .str-desc .str-sub {
    display: none; /* Mobilde taşmayı önlemek için alt yazıyı gizle */
  }

  .str-main {
    font-size: 0.68rem;
  }

  .frets-grid-flex {
    min-width: 540px; /* Mobilde tuşların ezilmesini önle, kaydırmayı sağla */
  }

  /* Sabit Alt Çalıcı Mobilde Parmak Dostu */
  .notebook-footer-player {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .player-left {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .player-center {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .player-right {
    display: none; /* Mobilde klavye kısayolu ipucunu gizle */
  }

  .btn-play-master {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .sheet-title {
    font-size: 1.25rem;
  }

  .tezene-legend-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .t-legend-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .double-stop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   9. BASKI / A4 YAZDIRMA STİLLERİ (@media print)
   ========================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .site-header,
  .bookshelf-bar,
  .book-left-page,
  .sheet-view-options,
  .notebook-footer-player,
  .tool-drawer-overlay,
  .fretboard-wrap-outer {
    display: none !important;
  }
  .main-notebook-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .digital-book-wrapper {
    border: none !important;
    box-shadow: none !important;
  }
  .book-right-page {
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .baglama-sheet-svg {
    width: 100% !important;
  }
  @page {
    margin: 1.5cm;
    size: A4 portrait;
  }
}
