/* ─── CANER GUNGOR INTERACTIVE TOOLS STYLESHEET ─── */

:root {
    --sozluk-gold: #967018; /* High Contrast for Light Theme (>= 4.5:1) */
}

[data-theme="dark"] {
    --sozluk-gold: #d4af37; /* Vivid Gold for Dark Theme (>= 9.0:1) */
}

/* Tool Hero & Common Layout Classes */
.c-tool-hero { min-height: 40vh; display: flex; align-items: center; justify-content: center; position: relative; }
.c-tool-hero__bg { background-image: url('/img/hero-bg.webp'); }
.c-tool-hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.c-tool-hero__title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; color: var(--gold); text-align: center; }
.c-tool-hero__desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; text-align: center; }

.c-tool-section { padding: 4rem 0; position: relative; }
.c-tool-container { position: relative; z-index: 5; }

/* ─── SÖZLÜK COMPONENT STYLES ─── */
.sozluk-filter-box {
    background: var(--paper-2, rgba(255, 255, 255, 0.04));
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    margin-bottom: 3rem;
    border: 1px solid var(--border, rgba(0,0,0,0.1));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sozluk-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sozluk-overview > div {
    min-height: 76px;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--bg-color, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.sozluk-stat-number {
    color: var(--sozluk-gold, #967018);
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 800;
}

.sozluk-stat-label {
    margin-top: 0.35rem;
    color: var(--text-muted, #475569);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sozluk-search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrap {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.search-input-wrap i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #64748b);
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 8px;
    background: var(--bg-color, #fff);
    color: var(--text, #1e293b);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    min-height: 48px;
}

.search-input-wrap input:focus-visible,
.sozluk-select:focus-visible,
.btn:focus-visible,
.harf-link:focus-visible,
.terim-card:focus-visible,
.page-link:focus-visible {
    outline: 3px solid var(--sozluk-gold, #967018) !important;
    outline-offset: 2px !important;
}

.sozluk-select {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 8px;
    background: var(--bg-color, #fff);
    color: var(--text, #1e293b);
    font-size: 1rem;
    cursor: pointer;
    min-width: 200px;
    min-height: 48px;
}

.alfabe-dizini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    border-top: 1px solid var(--border, #e2e8f0);
    padding-top: 1.5rem;
}

.harf-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.5rem;
    border-radius: 8px;
    background: var(--bg-color, #fff);
    color: var(--text, #1e293b);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid var(--border, #cbd5e1);
}

.harf-link:hover, .harf-link.active {
    background: var(--sozluk-gold, #967018);
    color: #ffffff;
    border-color: var(--sozluk-gold, #967018);
    transform: translateY(-2px);
}

.sozluk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.terim-card-wrap {
    display: flex;
}

.terim-card {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 1.8rem;
    text-decoration: none;
    color: var(--text, #1e293b);
    border: 1px solid var(--border, #e2e8f0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 230px;
}

.terim-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--sozluk-gold, #967018);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.terim-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--sozluk-gold, #967018);
}

.terim-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.terim-kategori {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sozluk-gold, #967018);
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.terim-baslik {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.65rem;
    margin-bottom: 0.8rem;
    color: var(--heading-color, var(--text));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    line-height: 1.2;
}

.term-title-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.terim-tanim {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted, #475569);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.terim-link-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sozluk-gold, #967018);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.terim-card:hover .terim-link-text {
    gap: 0.8rem;
}

.terim-audio-btn {
    background: var(--paper-2, rgba(184, 146, 42, 0.1));
    border: 1px solid var(--sozluk-gold, #967018);
    color: var(--sozluk-gold, #967018);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.terim-audio-btn:hover,
.terim-audio-btn:focus-visible {
    transform: scale(1.1);
    background: var(--sozluk-gold, #967018);
    color: #ffffff;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg, #fff);
    border-radius: 12px;
    border: 2px dashed var(--border, #cbd5e1);
}

.no-results i {
    font-size: 3.5rem;
    color: var(--sozluk-gold, #967018);
    margin-bottom: 1rem;
}

.no-results h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-muted, #64748b);
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}

/* Pagination Stilleri */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border, #cbd5e1);
    background: var(--card-bg, #fff);
    color: var(--text, #1e293b);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    border-color: var(--sozluk-gold, #967018);
    color: var(--sozluk-gold, #967018);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--sozluk-gold, #967018);
    border-color: var(--sozluk-gold, #967018);
    color: #ffffff;
}

/* ─── TERİM DETAY STYLES ─── */
.terim-detay-box {
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    padding: 3.5rem 3rem 2.5rem 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    position: relative;
    border: 1px solid var(--border, #e2e8f0);
    margin-bottom: 2rem;
}

.terim-icon {
    position: absolute;
    top: -22px;
    left: 3rem;
    width: 44px;
    height: 44px;
    background: var(--sozluk-gold, #967018);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(184, 146, 42, 0.4);
}

.terim-tanim-icerik {
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--text, #f8fafc);
    font-weight: 500;
    margin-bottom: 2rem;
}

.terim-uzun-icerik {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text, #e2e8f0);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border, rgba(255, 255, 255, 0.15));
}

.terim-uzun-icerik h2,
.terim-uzun-icerik h3 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--sozluk-gold, #967018);
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.terim-uzun-icerik ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terim-uzun-icerik li {
    margin-bottom: 0.5rem;
}

.terim-paylas {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #e2e8f0);
}

.share-btn-sm {
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border, #cbd5e1);
    background: var(--bg-color, #ffffff);
    color: var(--text, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.share-btn-sm:hover,
.share-btn-sm:focus-visible {
    background: var(--sozluk-gold, #967018);
    color: #ffffff;
    border-color: var(--sozluk-gold, #967018);
    transform: translateY(-2px);
    outline: 3px solid var(--sozluk-gold, #967018);
    outline-offset: 2px;
}

.terim-navigation { text-align: center; }

.ilgili-terimler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.ilgili-terim-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #cbd5e1);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    text-align: center;
    color: var(--text, #1e293b);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    display: block;
}

.ilgili-terim-card:hover,
.ilgili-terim-card:focus-visible {
    background: var(--sozluk-gold, #967018);
    color: #ffffff;
    border-color: var(--sozluk-gold, #967018);
    transform: translateY(-2px);
    outline: 3px solid var(--sozluk-gold, #967018);
    outline-offset: 2px;
}

.sozluk-toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--sozluk-gold, #967018);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sozluk-toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Overrides */
[data-theme="dark"] .sozluk-filter-box,
[data-theme="dark"] .terim-card,
[data-theme="dark"] .no-results,
[data-theme="dark"] .terim-detay-box,
[data-theme="dark"] .ilgili-terim-card {
    background: rgba(18, 18, 18, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .sozluk-overview > div {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .search-input-wrap input,
[data-theme="dark"] .sozluk-select,
[data-theme="dark"] .harf-link:not(.active) {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f8fafc;
}

[data-theme="dark"] .terim-tanim-icerik { color: var(--text, #f8fafc); }
[data-theme="dark"] .terim-uzun-icerik { color: var(--text, #e2e8f0); }
[data-theme="dark"] .share-btn-sm {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

/* Tuner & Gauge BEM Component Rules */
.c-tuner__panel { min-height: 80vh; padding-bottom: 4rem; }
.c-tuner__gauge-card { position: relative; height: 280px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 2rem; box-shadow: inset 0 0 20px rgba(0,0,0,0.5); transition: box-shadow 0.3s ease; }
.c-tuner__note-display { font-size: 4.5rem; font-weight: bold; font-family: 'Playfair Display', serif; color: var(--text); line-height: 1; }
.c-tuner__cents-display { font-size: 1.2rem; color: var(--gold); margin-top: 0.5rem; font-weight: 600; letter-spacing: 1px; }

/* Media Queries */
@media (max-width: 768px) {
    .sozluk-filter-box { padding: 1.25rem; }
    .sozluk-search-form { flex-direction: column; }
    .search-input-wrap, .sozluk-select, .sozluk-search-form .btn, .sozluk-search-form .btn-outline { width: 100%; min-width: 0; }
    .sozluk-grid { grid-template-columns: 1fr; }
    .terim-card { padding: 1.4rem; }
}

/* Tools Hub Page Rules */
.tools-hub{padding:4rem 0 6rem}.tools-hub__intro{max-width:760px;margin:0 auto 2.5rem;text-align:center;color:var(--text-muted);font-size:1.1rem;line-height:1.7}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.tool-card{display:flex;flex-direction:column;gap:1rem;min-height:260px;padding:2rem;border:1px solid rgba(212,175,55,.22);border-radius:20px;background:rgba(255,255,255,.035);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:inherit;text-decoration:none;transition:transform .3s cubic-bezier(.4,0,.2,1),border-color .3s ease,background .3s ease,box-shadow .3s ease;position:relative;overflow:hidden}
.tool-card:hover,.tool-card:focus-visible{transform:translateY(-6px);border-color:var(--gold);background:rgba(212,175,55,.08);box-shadow:0 12px 30px rgba(0,0,0,.25),0 0 20px rgba(212,175,55,.15)}
.tool-card:focus-visible{outline:3px solid var(--gold)!important;outline-offset:3px!important}
.tool-card__icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:rgba(212,175,55,.14);color:var(--gold);font-size:1.35rem;transition:transform .3s ease,box-shadow .3s ease}
.tool-card:hover .tool-card__icon{transform:scale(1.08);box-shadow:0 0 16px rgba(212,175,55,.3)}
.tool-card h2{margin:0;font-size:1.45rem;font-family:"Playfair Display",Georgia,serif;color:var(--heading-color,var(--text))}
.tool-card p{margin:0;color:var(--text-muted);line-height:1.7;font-size:.98rem}
.tool-card__cta{margin-top:auto;color:var(--gold);font-weight:700;font-size:.95rem;display:inline-flex;align-items:center;gap:.5rem;transition:gap .2s ease}
.tool-card:hover .tool-card__cta{gap:.8rem}
[data-theme="dark"] .tool-card{background:rgba(18,18,18,.75);border-color:rgba(212,175,55,.25)}

/* Term Detail Page Rules */
.page-header--flex-40 { min-height: 40vh; display: flex; align-items: center; }
.u-flex-center-col { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.term-detail-hero-title { font-size: clamp(2.8rem, 6vw, 4.8rem); margin-bottom: 0; color: var(--sozluk-gold, #d4af37); font-family: 'Playfair Display', Georgia, serif; }
.u-py-4 { padding: 4rem 0 !important; }
.u-max-w-840 { max-width: 840px !important; }
.terim-share-label { font-size: 0.92rem; font-weight: 700; color: var(--text-muted); }
.u-mt-25 { margin-top: 2.5rem !important; }
.ilgili-terimler-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; }

.terim-detay-box { background: var(--card-bg, #ffffff); border-radius: 16px; padding: 3.5rem 3rem 2.5rem 3rem; box-shadow: 0 10px 40px rgba(0,0,0,0.06); position: relative; border: 1px solid var(--border, #e2e8f0); margin-bottom: 2rem; }
.terim-icon { position: absolute; top: -22px; left: 3rem; width: 44px; height: 44px; background: var(--sozluk-gold, #967018); color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 4px 15px rgba(184, 146, 42, 0.4); }
.terim-tanim-icerik { font-size: 1.2rem; line-height: 1.85; color: var(--text, #f8fafc); font-weight: 500; margin-bottom: 2rem; }
.terim-uzun-icerik { font-size: 1.02rem; line-height: 1.8; color: var(--text, #e2e8f0); margin-top: 2rem; padding-top: 2rem; border-top: 1px dashed var(--border, rgba(255, 255, 255, 0.15)); }
.terim-uzun-icerik h2, .terim-uzun-icerik h3 { font-family: "Playfair Display", Georgia, serif; color: var(--sozluk-gold, #967018); margin-top: 1.8rem; margin-bottom: 0.8rem; }
.terim-uzun-icerik ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.terim-uzun-icerik li { margin-bottom: 0.5rem; }
.terim-paylas { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border, #e2e8f0); }
.share-btn-sm { min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--border, #cbd5e1); background: var(--bg-color, #ffffff); color: var(--text, #1e293b); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; font-size: 1.1rem; }
.share-btn-sm:hover, .share-btn-sm:focus-visible { background: var(--sozluk-gold, #967018); color: #ffffff; border-color: var(--sozluk-gold, #967018); transform: translateY(-2px); outline: 3px solid var(--sozluk-gold, #967018); outline-offset: 2px; }
.terim-navigation { text-align: center; }
.ilgili-terimler-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.2rem; }
.ilgili-terim-card { background: var(--card-bg, #ffffff); border: 1px solid var(--border, #cbd5e1); border-radius: 10px; padding: 1.2rem 1rem; text-align: center; color: var(--text, #1e293b); text-decoration: none; font-weight: 700; transition: all 0.2s ease; display: block; }
.ilgili-terim-card:hover, .ilgili-terim-card:focus-visible { background: var(--sozluk-gold, #967018); color: #ffffff; border-color: var(--sozluk-gold, #967018); transform: translateY(-2px); outline: 3px solid var(--sozluk-gold, #967018); outline-offset: 2px; }
.sozluk-toast-notification { position: fixed; bottom: 2rem; right: 2rem; background: var(--sozluk-gold, #967018); color: #ffffff; padding: 1rem 1.5rem; border-radius: 8px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 9999; opacity: 0; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.sozluk-toast-notification.show { opacity: 1; transform: translateY(0); }
[data-theme="dark"] .terim-detay-box, [data-theme="dark"] .ilgili-terim-card { background: rgba(18, 18, 18, 0.85); border-color: rgba(255, 255, 255, 0.15); }
[data-theme="dark"] .terim-tanim-icerik { color: var(--text, #f8fafc); }
[data-theme="dark"] .terim-uzun-icerik { color: var(--text, #e2e8f0); }
[data-theme="dark"] .share-btn-sm { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); color: #f8fafc; }

/* Sanal Bağlama Klavyesi Rules */
.c-fretboard-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; color: var(--gold); }
.c-fretboard-hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.c-fretboard-title { margin-bottom: 0.5rem; font-size: 1.2rem; }
.c-fretboard-subtitle { color: var(--text-muted); font-size: 0.9rem; }
.c-fretboard-article-container { max-width: 800px; margin: 4rem auto; color: var(--text-muted); line-height: 1.8; }
.c-fretboard-article-h2 { color: var(--gold); margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; }
.c-fretboard-article-h3 { color: #fff; margin-bottom: 1rem; margin-top: 2rem; }
.c-fretboard-article-ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.c-fretboard-faq-box { margin-top: 3rem; background: rgba(255,255,255,0.02); padding: 2rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }

.fretboard-container { padding: 2rem; overflow: hidden; }
.fret-shortcut { position: absolute; top: -15px; background: var(--gold); color: #111; font-size: 0.7rem; font-weight: 800; border-radius: 4px; padding: 1px 5px; border: 1px solid #111; box-shadow: 0 2px 4px rgba(0,0,0,0.4); pointer-events: none; z-index: 10; opacity: 0; transform: translateY(5px); transition: opacity 0.2s, transform 0.2s; font-family: monospace; }
.fretboard-shortcuts-active .fret-shortcut { opacity: 1; transform: translateY(0); }
.fret.active-play { background: rgba(212, 170, 72, 0.45) !important; }
.fretboard-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.fretboard-controls > div:last-child { display: flex; gap: 0.5rem; flex-wrap: wrap; min-width: 0; }
.baglama-neck { background: linear-gradient(to right, #2a1b12, #4a3424 10%, #4a3424 90%, #2a1b12); border-radius: 6px; padding: 2.5rem 0; position: relative; box-shadow: inset 0 20px 20px -20px rgba(0,0,0,0.8), inset 0 -20px 20px -20px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.3); overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.string-wrapper { display: flex; align-items: center; margin-bottom: 2rem; min-width: 1200px; }
.string-wrapper:last-child { margin-bottom: 0; }
.string-label { width: 100px; color: var(--gold); font-weight: bold; font-size: 0.9rem; text-align: right; padding-right: 1rem; }
.string { flex: 1; height: 40px; position: relative; display: flex; align-items: center; }
.string::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 2px; background: linear-gradient(to bottom, #d4af37, #f3e5ab, #d4af37); box-shadow: 0 2px 4px rgba(0,0,0,0.4); z-index: 1; }
.fret { position: relative; height: 100%; border-right: 3px solid #b0b0b0; box-shadow: inset -2px 0 2px rgba(255,255,255,0.4), inset -3px 0 2px rgba(0,0,0,0.3); flex: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; transition: background 0.1s; }
.fret:hover { background: linear-gradient(to right, transparent, rgba(255,255,255,0.05)); }
.fret:active { background: rgba(212, 170, 72, 0.4); }
.fret-note { background: var(--bg-color); color: var(--text); font-size: 0.75rem; padding: 0.2rem 0.4rem; border-radius: 4px; font-weight: 600; border: 1px solid var(--gold); box-shadow: 0 2px 4px rgba(0,0,0,0.2); user-select: none; pointer-events: none; }
.fret-note.koma { border-color: #e74c3c; color: #e74c3c; }
.fretboard-info { margin-top: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
[data-theme="dark"] .fret-note { background: #222; color: #ddd; }
@media (max-width: 600px) {
    .fretboard-container { padding: 1.25rem; }
    .fretboard-controls { align-items: flex-start; }
    .fretboard-controls > div:last-child { width: 100%; }
    .fretboard-controls .btn { flex: 1 1 150px; padding-left: 1rem; padding-right: 1rem; white-space: normal; }
    .baglama-neck { margin-inline: -0.25rem; }
}

/* Usul Atlasi Utility Rules */
.c-usul-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; color: var(--gold); text-align: center; }
.c-usul-hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; text-align: center; }

/* Eser Detay Page Rules */
.page-header--flex-30 { min-height: 30vh; display: flex; align-items: center; }
.c-song-hero-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; }
.c-song-back-link { color: var(--gold); text-decoration: none; font-size: 0.9rem; margin-bottom: 1rem; display: inline-block; }
.c-song-title { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 0.5rem; color: #fff; font-family: 'Playfair Display', serif; }
.u-font-size-08 { font-size: 0.8rem !important; }
.c-pdf-container { text-align: center; width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); background: #f8f9fa; }
.c-pdf-iframe { border: none; display: block; width: 100%; height: 700px; }
.c-pdf-actions { margin-top: 1rem; text-align: center; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.c-note-image { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.c-note-empty-title { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-on-dark); }
.c-lyrics-column { display: flex; flex-direction: column; gap: 2.5rem; }
.c-related-songs-section { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 3rem; width: 100%; }
.u-mt-0 { margin-top: 0 !important; }

/* Kutuphane Component Rules */
.page-header--flex-35 { min-height: 35vh; display: flex; align-items: center; }
.c-lib-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; color: var(--gold); }
.c-lib-hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.u-mb-3 { margin-bottom: 3rem !important; }
.c-lib-search-form { display: flex; gap: 1rem; max-width: 700px; }
.u-flex-1 { flex: 1 !important; }
.u-relative { position: relative !important; }
.c-lib-empty-box { grid-column: 1 / -1; text-align: center; padding: 5rem 2rem; background: var(--paper-2); border-radius: 16px; border: 1px dashed var(--border-dark); }
.c-lib-empty-icon { font-size: 3.5rem; color: rgba(255,255,255,0.05); margin-bottom: 1.5rem; }
.c-lib-empty-title { font-size: 1.75rem; margin-bottom: 0.5rem; }

/* Tuner Page */
.c-tuner-page {
  --tuner-green: #3ddc97;
  --tuner-green-soft: rgba(61, 220, 151, .14);
  --tuner-red: #ff6b72;
  --tuner-red-soft: rgba(255, 107, 114, .13);
  --tuner-blue: #7cb9ff;
  --tuner-panel: #0b0d12;
  min-height: 80vh;
  padding-bottom: 5rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(246, 184, 16, .055), transparent 35rem),
    #030405;
}
.c-tuner-hero { min-height: 480px; padding-bottom: 4rem; }
.c-tuner-hero .page-header-overlay {
  background: linear-gradient(180deg, rgba(2, 3, 5, .4) 0%, rgba(2, 3, 5, .82) 82%, #030405 100%);
}
.c-tuner-hero-title {
  max-width: 820px;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.c-tuner-hero-desc {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
  text-wrap: balance;
}
.c-tuner-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.4rem;
}
.c-tuner-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 34px;
  padding: .4rem .75rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  background: rgba(5, 6, 8, .45);
  color: rgba(255, 255, 255, .7);
  font-size: .77rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
.c-tuner-trust-row i { color: var(--gold); }
.c-tuner-container { position: relative; z-index: 5; margin-top: -4.5rem; }
.c-tuner-app {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  background: rgba(8, 9, 13, .94);
  box-shadow: 0 35px 100px rgba(0, 0, 0, .58), 0 0 0 1px rgba(246, 184, 16, .035) inset;
}
.c-tuner-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.c-tuner-app-title-wrap { display: flex; align-items: center; gap: .85rem; }
.c-tuner-app-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  background: var(--gold-pale);
  color: var(--gold-light);
}
.c-tuner-app-kicker {
  margin: 0 0 .15rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.c-tuner-app-title-wrap h2 { margin: 0; color: #fff; font: 600 1.05rem/1.2 var(--font-body); }
.c-tuner-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 36px;
  padding: .45rem .75rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: var(--text-muted);
  font-size: .78rem;
  white-space: nowrap;
}
.c-tuner-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d7380;
  box-shadow: 0 0 0 4px rgba(109, 115, 128, .12);
}
.c-tuner-status-pill.is-active { color: #bdf8dd; border-color: rgba(61, 220, 151, .22); background: rgba(61, 220, 151, .07); }
.c-tuner-status-pill.is-active .c-tuner-status-dot {
  background: var(--tuner-green);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, .13);
  animation: tunerStatusPulse 1.8s ease-out infinite;
}
.c-tuner-status-pill.is-error { color: #ffb1b5; border-color: rgba(255, 107, 114, .2); }
@keyframes tunerStatusPulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .35); }
  75%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); }
}
.c-tuner-alert {
  display: flex;
  gap: .85rem;
  margin: 1rem 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 107, 114, .25);
  border-radius: 14px;
  background: var(--tuner-red-soft);
  color: #ffd9db;
}
.c-tuner-alert-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 107, 114, .14);
  color: var(--tuner-red);
}
.c-tuner-alert h3 { margin: 0 0 .25rem; color: #fff; font: 600 .95rem/1.3 var(--font-body); }
.c-tuner-alert p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .83rem; line-height: 1.55; }
.c-tuner-permission-help { margin-top: .6rem; }
.c-tuner-permission-help summary { width: fit-content; color: #fff; cursor: pointer; font-size: .8rem; font-weight: 600; }
.c-tuner-permission-help p { margin-top: .55rem; }
.c-tuner-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  width: min(100% - 3rem, 430px);
  margin: 1.25rem 1.5rem 0;
  padding: .3rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: #050609;
}
.c-tuner-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 40px;
  padding: .55rem .75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: 600 .8rem/1 var(--font-body);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.c-tuner-mode-btn:hover { color: #fff; }
.c-tuner-mode-btn.is-active {
  background: #15171d;
  color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.c-tuner-mode-btn.is-active i { color: var(--gold); }
.c-tuner-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, .82fr);
  gap: 1.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
}
.c-tuner-display {
  position: relative;
  display: flex;
  min-height: 530px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 34%, rgba(246, 184, 16, .08), transparent 38%),
    linear-gradient(145deg, #0b0d12, #07080b);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 20px 50px rgba(0, 0, 0, .2) inset;
  isolation: isolate;
}
.c-tuner-display::before {
  position: absolute;
  z-index: -1;
  top: -35%;
  left: 50%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .012), 0 0 0 140px rgba(255, 255, 255, .008);
}
.c-tuner-display[data-state="in-tune"] {
  background:
    radial-gradient(circle at 50% 35%, rgba(61, 220, 151, .13), transparent 42%),
    linear-gradient(145deg, #0b0f12, #07090a);
  border-color: rgba(61, 220, 151, .18);
}
.c-tuner-display-topline { display: flex; align-items: center; justify-content: space-between; color: #7f8795; font-size: .74rem; font-weight: 600; }
#detection-state { display: inline-flex; align-items: center; gap: .45rem; }
#detection-state i { color: var(--gold); font-size: .55rem; }
.c-tuner-confidence { display: inline-flex; align-items: center; gap: .35rem; }
.c-tuner-reading { padding: 1rem 0 .2rem; text-align: center; }
.c-tuner-target-caption {
  min-height: 1.3em;
  margin: 0 0 .35rem;
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.c-tuner-note-row { display: flex; min-height: 7.5rem; align-items: baseline; justify-content: center; }
.c-tuner-note-text {
  color: #f7f8fa;
  font: 500 clamp(5.5rem, 11vw, 8.6rem)/.9 var(--font-body);
  letter-spacing: -.075em;
  text-shadow: 0 10px 50px rgba(0, 0, 0, .55);
  transition: color .2s ease;
}
.c-tuner-display[data-state="in-tune"] .c-tuner-note-text { color: #aaf5d2; }
.c-tuner-octave { margin-left: .35rem; color: #737b89; font-size: 1.15rem; font-weight: 600; }
.c-tuner-pitch-name { min-height: 1.45em; margin: .7rem 0 .2rem; color: rgba(255, 255, 255, .78); font-size: .95rem; font-weight: 500; }
.c-tuner-frequency { margin: 0; color: #7d8592; font-size: .8rem; font-variant-numeric: tabular-nums; }
.c-tuner-frequency span:first-child { color: #aeb5c0; font-size: 1rem; font-weight: 600; }
.c-tuner-gauge {
  position: relative;
  width: min(100%, 540px);
  height: 78px;
  margin: .5rem auto .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.c-tuner-gauge-ticks {
  position: absolute;
  inset: 16px 0 25px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .17) 0 1px, transparent 1px 10%);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.c-tuner-gauge-ticks::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, .75);
  content: "";
  transform: translateX(-50%);
}
.c-tuner-gauge-zone {
  position: absolute;
  z-index: -1;
  top: 8px;
  bottom: 18px;
  left: 45%;
  width: 10%;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(61, 220, 151, .17), rgba(61, 220, 151, 0));
}
.c-tuner-gauge-label { position: absolute; bottom: 2px; color: #676f7d; font-size: .62rem; font-variant-numeric: tabular-nums; }
.c-tuner-gauge-label--left { left: 0; }
.c-tuner-gauge-label--center { left: 50%; color: #8e97a5; transform: translateX(-50%); }
.c-tuner-gauge-label--right { right: 0; }
.c-tuner-needle {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 3px;
  height: 51px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(246, 184, 16, .65);
  transform: translateX(-50%);
  transition: left .16s cubic-bezier(.2, .8, .2, 1), background .2s ease, box-shadow .2s ease;
}
.c-tuner-needle::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: inherit;
  content: "";
  transform: translateX(-50%);
}
.c-tuner-display[data-state="in-tune"] .c-tuner-needle { background: var(--tuner-green); box-shadow: 0 0 16px rgba(61, 220, 151, .75); }
.c-tuner-guidance {
  display: flex;
  width: min(100%, 430px);
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 0 auto .8rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
  color: #c2c7d0;
  font-size: .86rem;
  font-weight: 600;
  text-align: center;
}
.c-tuner-guidance-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: #929aa7;
}
.c-tuner-guidance[data-tone="low"],
.c-tuner-guidance[data-tone="high"] { border-color: rgba(246, 184, 16, .17); background: rgba(246, 184, 16, .055); color: #ffe49a; }
.c-tuner-guidance[data-tone="low"] .c-tuner-guidance-icon,
.c-tuner-guidance[data-tone="high"] .c-tuner-guidance-icon { background: var(--gold-pale); color: var(--gold-light); }
.c-tuner-guidance[data-tone="success"] { border-color: rgba(61, 220, 151, .2); background: var(--tuner-green-soft); color: #baf7da; }
.c-tuner-guidance[data-tone="success"] .c-tuner-guidance-icon { background: rgba(61, 220, 151, .14); color: var(--tuner-green); }
.c-tuner-level { display: flex; align-items: center; gap: .65rem; width: min(100%, 430px); margin: 0 auto; color: #5f6672; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.c-tuner-level-track { flex: 1; height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.c-tuner-level-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tuner-blue), var(--gold)); transition: width .12s linear; }
.c-tuner-idle-prompt {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
  background: rgba(7, 8, 11, .83);
  text-align: center;
  backdrop-filter: blur(10px);
}
.c-tuner-mic-orb {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  place-items: center;
  border: 1px solid var(--gold-border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(246, 184, 16, .15), rgba(246, 184, 16, .045));
  color: var(--gold-light);
  font-size: 1.55rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}
.c-tuner-mic-orb::after {
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(246, 184, 16, .1);
  border-radius: 28px;
  content: "";
}
.c-tuner-idle-prompt h3 { margin: 0 0 .5rem; color: #fff; font: 600 clamp(1.25rem, 3vw, 1.6rem)/1.2 var(--font-body); }
.c-tuner-idle-prompt p { max-width: 400px; margin: 0 0 1.3rem; color: #929aa7; font-size: .88rem; line-height: 1.6; }
.c-tuner-start-btn { min-height: 50px; padding: .85rem 1.5rem; font-size: .9rem; }
.c-tuner-privacy-note { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; color: #737b87; font-size: .7rem; }
.c-tuner-privacy-note i { color: var(--tuner-green); }
.c-tuner-controls {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  background: rgba(255, 255, 255, .018);
}
.c-tuner-field-label,
.c-tuner-control-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 .55rem;
  color: #c7ccd5;
  font-size: .75rem;
  font-weight: 600;
}
.c-tuner-control-heading { margin-top: 1.25rem; }
.c-tuner-control-hint { color: #676f7d; font-size: .66rem; font-weight: 500; }
.c-tuner-select-wrap { position: relative; }
.c-tuner-select {
  width: 100%;
  min-height: 46px;
  padding: .72rem 2.2rem .72rem .8rem;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  outline: 0;
  background: #0b0d12;
  color: #f1f2f5;
  font: 500 .83rem/1 var(--font-body);
  cursor: pointer;
}
.c-tuner-select-wrap > i { position: absolute; top: 50%; right: .85rem; color: #707785; font-size: .65rem; pointer-events: none; transform: translateY(-50%); }
.c-tuner-target-list { display: grid; gap: .45rem; }
.c-tuner-target-btn {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 51px;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .45rem .65rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 11px;
  background: rgba(255, 255, 255, .018);
  color: #c5cad3;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.c-tuner-target-btn:hover { border-color: rgba(246, 184, 16, .2); background: rgba(246, 184, 16, .035); color: #fff; }
.c-tuner-target-btn.is-active { border-color: rgba(246, 184, 16, .35); background: rgba(246, 184, 16, .08); color: #fff; box-shadow: 0 0 0 1px rgba(246, 184, 16, .04) inset; }
.c-tuner-target-btn.is-detected:not(.is-active) { border-color: rgba(124, 185, 255, .32); background: rgba(124, 185, 255, .06); color: #fff; }
.c-tuner-target-btn.is-detected:not(.is-active) .c-tuner-target-note { background: rgba(124, 185, 255, .15); color: #b9d9ff; }
.c-tuner-target-note {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
}
.c-tuner-target-btn.is-active .c-tuner-target-note { background: var(--gold); color: #131313; }
.c-tuner-target-copy { overflow: hidden; }
.c-tuner-target-copy strong,
.c-tuner-target-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-tuner-target-copy strong { font-size: .8rem; font-weight: 600; }
.c-tuner-target-copy small { margin-top: .13rem; color: #707886; font-size: .65rem; }
.c-tuner-target-hz { color: #707886; font-size: .67rem; font-variant-numeric: tabular-nums; }
.c-tuner-tip { display: flex; gap: .5rem; margin: .85rem 0 0; color: #747c89; font-size: .68rem; line-height: 1.5; }
.c-tuner-tip i { margin-top: .15rem; color: var(--gold); }
.c-tuner-analysis-card { display: grid; gap: .45rem; }
.c-tuner-analysis-card > div {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: .6rem .75rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .018);
}
.c-tuner-analysis-card span { color: #7d8592; font-size: .71rem; }
.c-tuner-analysis-card strong { color: #eff1f4; font-size: .84rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-tuner-advanced { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .065); }
.c-tuner-advanced summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #a8aeba; font-size: .72rem; cursor: pointer; list-style: none; }
.c-tuner-advanced summary::-webkit-details-marker { display: none; }
.c-tuner-advanced summary span { display: inline-flex; align-items: center; gap: .45rem; }
.c-tuner-advanced summary span:last-child { color: #676f7d; font-variant-numeric: tabular-nums; }
.c-tuner-advanced[open] summary { margin-bottom: .9rem; color: #fff; }
.c-tuner-calibration { padding: .8rem; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.c-tuner-calibration-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #7f8794; font-size: .68rem; }
.c-tuner-calibration output { color: var(--gold-light); font-weight: 600; }
.c-tuner-calibration input[type="range"] { width: 100%; margin: .75rem 0 .15rem; accent-color: var(--gold); cursor: pointer; }
.c-tuner-range-labels { display: flex; justify-content: space-between; color: #555c67; font-size: .58rem; }
.c-tuner-reset-calibration {
  display: block;
  margin: .65rem 0 0 auto;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: #9ba2ae;
  font: 600 .65rem/1 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.c-tuner-stop-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  color: #c7ccd4;
  font: 600 .77rem/1 var(--font-body);
  cursor: pointer;
}
.c-tuner-stop-btn:hover { border-color: rgba(255, 107, 114, .25); background: var(--tuner-red-soft); color: #fff; }
.c-tuner-local-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .85rem 0 0; color: #5f6671; font-size: .64rem; }
.c-tuner-local-note i { color: var(--tuner-green); }
.c-tuner-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.c-tuner-how { max-width: 1100px; margin: 5.5rem auto 0; }
.c-tuner-section-heading { max-width: 650px; margin: 0 auto 2rem; text-align: center; }
.c-tuner-section-heading--left { max-width: none; margin-left: 0; text-align: left; }
.c-tuner-eyebrow { margin: 0 0 .5rem; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.c-tuner-section-heading h2 { margin: 0 0 .7rem; color: #fff; font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1.15; letter-spacing: -.025em; }
.c-tuner-section-heading > p:last-child { margin: 0; color: #858d9a; font-size: .92rem; line-height: 1.6; }
.c-tuner-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding: 0; }
.c-tuner-steps li {
  display: flex;
  gap: .9rem;
  min-height: 168px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: rgba(255, 255, 255, .018);
}
.c-tuner-step-number { color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.c-tuner-steps h3 { margin: 0 0 .45rem; color: #f5f6f8; font: 600 1rem/1.25 var(--font-body); }
.c-tuner-steps p { margin: 0; color: #7e8693; font-size: .78rem; line-height: 1.65; }
.c-tuner-article-container { max-width: 900px; margin: 6rem auto 1rem; color: #969daa; line-height: 1.75; }
.c-tuner-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.c-tuner-guide-grid section { padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; background: rgba(255, 255, 255, .018); }
.c-tuner-guide-grid h3 { margin: 0 0 .75rem; color: #fff; font: 600 1.05rem/1.3 var(--font-body); }
.c-tuner-guide-grid p { margin: 0 0 .8rem; color: #8d95a1; font-size: .86rem; }
.c-tuner-guide-grid p:last-child { margin-bottom: 0; }
.c-tuner-guide-grid strong { color: #d9dde3; }
.c-tuner-faq { margin-top: 5rem; }
.c-tuner-faq details { border-top: 1px solid rgba(255, 255, 255, .09); }
.c-tuner-faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.c-tuner-faq summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 1rem; color: #e8eaed; font-size: .92rem; font-weight: 600; cursor: pointer; list-style: none; }
.c-tuner-faq summary::-webkit-details-marker { display: none; }
.c-tuner-faq summary i { color: var(--gold); font-size: .72rem; transition: transform .2s ease; }
.c-tuner-faq details[open] summary i { transform: rotate(45deg); }
.c-tuner-faq details > p { max-width: 760px; margin: -.2rem 0 1.2rem; color: #89919e; font-size: .85rem; line-height: 1.7; }

@media (max-width: 900px) {
  .c-tuner-workspace { grid-template-columns: 1fr; }
  .c-tuner-controls { min-height: auto; }
  .c-tuner-advanced { margin-top: 1rem; }
}
@media (max-width: 700px) {
  .c-tuner-hero { min-height: 460px; }
  .c-tuner-container { width: min(100% - 1rem, 1100px); margin-top: -3.3rem; }
  .c-tuner-app { border-radius: 18px; }
  .c-tuner-app-header { padding: 1rem; }
  .c-tuner-mode-switch { width: calc(100% - 2rem); margin: 1rem 1rem 0; }
  .c-tuner-workspace { gap: .8rem; padding: 1rem; }
  .c-tuner-display { min-height: 500px; padding: 1rem; border-radius: 14px; }
  .c-tuner-note-row { min-height: 6.5rem; }
  .c-tuner-note-text { font-size: clamp(5rem, 27vw, 7.2rem); }
  .c-tuner-controls { padding: 1rem; border-radius: 14px; }
  .c-tuner-how { margin-top: 4.2rem; }
  .c-tuner-steps { grid-template-columns: 1fr; }
  .c-tuner-steps li { min-height: 0; }
  .c-tuner-guide-grid { grid-template-columns: 1fr; }
  .c-tuner-article-container { margin-top: 4.5rem; }
}
@media (max-width: 480px) {
  .c-tuner-hero-title { font-size: clamp(2.35rem, 13vw, 3.35rem); }
  .c-tuner-trust-row { gap: .4rem; }
  .c-tuner-trust-row span { padding: .35rem .6rem; font-size: .68rem; }
  .c-tuner-app-kicker { display: none; }
  .c-tuner-app-title-wrap h2 { font-size: .9rem; }
  .c-tuner-app-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .c-tuner-status-pill { padding: .4rem .55rem; font-size: .68rem; }
  .c-tuner-mode-btn { padding-inline: .4rem; font-size: .72rem; }
  .c-tuner-display { min-height: 485px; }
  .c-tuner-display-topline { font-size: .66rem; }
  .c-tuner-idle-prompt { padding: 1.3rem; }
  .c-tuner-guidance { font-size: .77rem; }
  .c-tuner-section-heading { margin-bottom: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .c-tuner-status-pill.is-active .c-tuner-status-dot { animation: none; }
  .c-tuner-needle,
  .c-tuner-faq summary i { transition: none; }
}

/* Ear Training Component Rules */
.c-ear-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; color: var(--gold); }
.c-ear-hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.c-ear-container { margin-top: -3rem; position: relative; z-index: 5; }
.c-ear-games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.c-ear-game-card { padding: 2.5rem; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.c-ear-icon { font-size: 3rem; color: var(--gold); margin-bottom: 1.5rem; }
.c-ear-card-title { font-size: 1.5rem; margin-bottom: 1rem; }
.c-ear-card-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; min-height: 45px; }
.c-ear-select-group { margin-bottom: 1.5rem; text-align: left; }
.c-ear-select-label { font-weight: 600; color: var(--gold); font-size: 0.85rem; margin-bottom: 0.5rem; display: block; }
.c-ear-select { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); color: #fff; cursor: pointer; padding: 0.5rem; border-radius: 6px; width: 100%; }
.c-ear-spacer { margin-bottom: 1.5rem; min-height: 52px; }
.c-ear-stats-panel { margin-top: 3rem; padding: 2.5rem; }
.c-ear-stats-title { color: var(--gold); margin-bottom: 1.5rem; text-align: center; font-size: 1.5rem; }
.c-ear-flex-gap-1 { display: flex; gap: 1rem; }
.c-ear-grid-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .8rem; margin-top: .5rem; }

/* Sozluk Header & Layout Utilities */
.u-min-h-35vh { min-height: 35vh !important; }
.u-py-4 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.c-sozluk-header-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.c-sozluk-title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; color: var(--sozluk-gold, #d4af37); }
.c-sozluk-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 650px; margin: 0 auto; }
.c-ear-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.c-ear-stat-box { background: rgba(0,0,0,0.2); padding: 1.5rem; border-radius: 8px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.c-ear-stat-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.c-ear-stat-val { font-size: 2rem; font-weight: bold; }
.c-ear-stat-val--gold { color: var(--gold); }
.c-ear-stat-val--green { color: var(--success); }
.c-ear-stat-val--blue { color: #3498db; }
.c-ear-stat-val--emerald { color: #2ecc71; }
.c-ear-recommend-box { background: rgba(0,0,0,0.15); padding: 1.5rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.c-ear-recommend-title { color: #fff; margin-bottom: 1rem; font-size: 1.1rem; }
.c-ear-recommend-text { color: var(--text-muted); line-height: 1.6; margin: 0; font-size: 0.95rem; }
.c-ear-reset-btn { font-size: 0.8rem; padding: 0.4rem 1rem; }
.c-ear-game-area { margin-top: 4rem; padding: 3rem; text-align: center; position: relative; z-index: 5; }
.c-ear-game-header { display: flex; justify-content: space-between; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
.c-ear-game-badge--gold { font-weight: bold; color: var(--gold); }
.c-ear-game-badge--green { font-weight: bold; color: var(--success); }
.c-ear-exit-btn { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.c-ear-play-circle-btn { width: 80px; height: 80px; border-radius: 50%; font-size: 2rem; box-shadow: 0 10px 20px rgba(184, 146, 42, 0.3); }
.c-ear-instruction-text { margin-top: 1.5rem; font-size: 1.1rem; color: var(--text-muted); }
.c-ear-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 500px; margin: 0 auto; }
.c-ear-feedback-box { margin-top: 2rem; font-size: 1.2rem; font-weight: bold; }
.c-ear-status-icon { font-size: 4rem; color: var(--gold); margin-bottom: 1rem; }
.c-ear-rhythm-instruction { margin-top: 1.5rem; font-size: 1.3rem; color: var(--text); }
.c-ear-tap-btn { width: 150px; height: 150px; border-radius: 50%; font-size: 1.5rem; box-shadow: 0 10px 20px rgba(184, 146, 42, 0.3); margin: 0 auto; transition: transform 0.1s; }
.c-ear-article-container { max-width: 800px; margin: 4rem auto; color: var(--text-muted); line-height: 1.8; }
.c-ear-article-h2 { color: var(--gold); margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; }
.c-ear-article-h3 { color: #fff; margin-bottom: 1rem; margin-top: 2rem; }
.c-ear-article-ul { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.c-ear-faq-box { margin-top: 3rem; background: rgba(255,255,255,0.02); padding: 2rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.c-ear-faq-title { color: var(--gold); margin-bottom: 1.5rem; text-align: center; }
.c-ear-faq-q { color: #fff; margin-bottom: 0.5rem; }
.u-text-right { text-align: right !important; }
