/* ═══════════════════════════════════════════════════════════════
   Shruti Monitor – Indian Classical Music Theme
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Core Palette – Warm, earthy, classical */
    --bg-dark: #0d0907;
    --bg-canvas: #110b08;
    --glass-bg: rgba(28, 18, 10, 0.85);
    --glass-border: rgba(217, 163, 76, 0.15);
    --panel-bg: rgba(20, 12, 6, 0.6);

    /* Accent Colors */
    --saffron: #d97706;
    --saffron-light: #f59e0b;
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.3);
    --copper: #b45309;
    --cream: #fef3c7;

    /* Text */
    --text-main: #fef3c7;
    --text-muted: #a8917a;
    --text-label: #d4a064;

    /* Functional */
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hind', 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100dvh;
    width: 100vw;
}

/* ── App Layout ────────────────────────────────────────────── */

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    /* Prevent horizontal scrollbar during viewport transitions */
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR – Brand + Live Pitch + Start Button
   ═══════════════════════════════════════════════════════════════ */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.5rem;
    height: 95px;
    /* Increased from 75px to fit 4-line pitch display */
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 10;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px var(--gold-glow);
}

.logo p {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Status Indicator – The Big Swara Display */
.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    max-width: 48vw;
    /* Prevent from overflowing the center space */
    overflow: hidden;
}

.swara-abbr {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.15rem;
    text-shadow: 0 0 24px var(--gold-glow), 0 0 48px rgba(251, 191, 36, 0.12);
}

.swara-name {
    font-family: 'Hind', sans-serif;
    font-size: 0.85rem;
    color: var(--saffron-light);
    font-weight: 600;
    line-height: 1.1;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swara-octave {
    font-family: 'Hind', sans-serif;
    font-size: 0.65rem;
    color: var(--text-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 0.2rem;
    min-height: 0.78rem;
    /* keep height even if empty */
}

.pitch-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   TOOLBAR – Organized Control Panels
   ═══════════════════════════════════════════════════════════════ */

.toolbar {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: rgba(14, 8, 4, 0.9);
    border-bottom: 1px solid var(--glass-border);
    z-index: 9;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0 1rem;
}

.toolbar-panel {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    min-width: 0;
}

.panel-title {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(217, 119, 6, 0.15);
    padding-bottom: 0.2rem;
}

.panel-body {
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
    flex: 1;
}

.toolbar-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
    margin: 0.5rem 0;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PITCH PICKER MODAL
   ═══════════════════════════════════════════════════════════════ */

.pitch-picker-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(217, 163, 76, 0.12);
    color: var(--cream);
    padding: 0.35rem 0.6rem;
    border-radius: 3px;
    font-family: 'Hind', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 150px;
    justify-content: space-between;
    white-space: nowrap;
}

.pitch-picker-trigger:hover {
    border-color: var(--saffron);
}

.pitch-picker-trigger svg {
    color: var(--text-label);
    flex-shrink: 0;
}

/* Modal Backdrop */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-backdrop.open {
    display: flex;
}

/* Modal Card */
.modal-content {
    background: #1a100a;
    border: 1px solid rgba(217, 163, 76, 0.25);
    border-radius: 10px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(217, 163, 76, 0.1);
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(217, 163, 76, 0.12);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.modal-close {
    background: transparent;
    border: 1px solid rgba(217, 163, 76, 0.12);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close:hover {
    color: var(--cream);
    border-color: var(--saffron);
    background: rgba(217, 119, 6, 0.1);
}

/* Octave Tabs */
.octave-tabs {
    display: flex;
    border-bottom: 1px solid rgba(217, 163, 76, 0.1);
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.octave-tab {
    flex: 1;
    padding: 0.55rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Hind', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.octave-tab:hover {
    color: var(--gold);
    background: rgba(251, 191, 36, 0.05);
}

.octave-tab.active {
    color: var(--gold);
    border-bottom-color: var(--saffron);
    background: rgba(251, 191, 36, 0.08);
}

/* Note Grid */
.note-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 12px;
}

.note-btn {
    background: rgba(217, 163, 76, 0.04);
    border: 1px solid rgba(217, 163, 76, 0.08);
    color: var(--text-label);
    padding: 0.6rem 0.4rem;
    border-radius: 5px;
    font-family: 'Hind', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: center;
    white-space: nowrap;
}

.note-btn:hover {
    background: rgba(251, 191, 36, 0.12);
    border-color: var(--gold);
    color: var(--gold);
}

.note-btn.selected {
    background: var(--saffron);
    color: var(--bg-dark);
    border-color: var(--saffron);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

/* ── Control Groups ────────────────────────────────────────── */

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.control-group label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS – Custom Styled
   ═══════════════════════════════════════════════════════════════ */

input[type="text"],
select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(217, 163, 76, 0.12);
    color: var(--cream);
    padding: 0.35rem 0.5rem;
    border-radius: 3px;
    outline: none;
    font-family: 'Hind', sans-serif;
    font-size: 0.8rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
select:focus {
    border-color: var(--saffron);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 1.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 7L1 3h8z' fill='%23d4a064'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    min-width: 120px;
}

select option {
    background: #1a100a;
    color: var(--cream);
    padding: 4px;
}

select:disabled,
input:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Range Inputs */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 2px;
    background: rgba(217, 163, 76, 0.15);
    outline: none;
    width: 80px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 6px var(--gold-glow);
    border: 2px solid var(--copper);
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 6px var(--gold-glow);
    border: 2px solid var(--copper);
}

/* Toggle Label (Checkbox + Text) */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-label);
    white-space: nowrap;
}

.toggle-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--saffron);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn-primary {
    background: linear-gradient(135deg, var(--saffron), var(--copper));
    color: var(--cream);
    border: none;
    padding: 0.55rem 1.2rem;
    border-radius: 5px;
    font-weight: 700;
    font-family: 'Hind', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--saffron-light), var(--saffron));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(180, 83, 9, 0.3);
}

.btn-primary.recording {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
    background: rgba(217, 163, 76, 0.06);
    color: var(--text-label);
    border: 1px solid rgba(217, 163, 76, 0.12);
    padding: 0.35rem 0.7rem;
    border-radius: 3px;
    font-weight: 600;
    font-family: 'Hind', sans-serif;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(217, 163, 76, 0.15);
    border-color: var(--saffron);
}

.btn-secondary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-secondary.recording {
    color: var(--danger);
    border-color: var(--danger);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SHRUTI PETTI BAR
   ═══════════════════════════════════════════════════════════════ */

.shruti-petti-bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.35rem 1.5rem;
    background: rgba(14, 8, 4, 0.85);
    border-bottom: 1px solid var(--glass-border);
    z-index: 8;
    flex-shrink: 0;
}

.shruti-petti-label {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    color: var(--saffron);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.shruti-petti-buttons {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.shruti-petti-btn {
    background: rgba(217, 163, 76, 0.05);
    color: var(--text-label);
    border: 1px solid rgba(217, 163, 76, 0.1);
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: 'Hind', sans-serif;
    min-width: 32px;
    text-align: center;
    white-space: nowrap;
}

.shruti-petti-btn:hover:not(:disabled) {
    background: rgba(251, 191, 36, 0.12);
    border-color: var(--gold);
    color: var(--gold);
}

.shruti-petti-btn.active {
    background: var(--saffron);
    color: var(--bg-dark);
    border-color: var(--saffron);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.45);
}

.shruti-petti-btn:disabled {
    opacity: 0.12;
    cursor: not-allowed;
}

.shruti-petti-btn.is-sa {
    border-color: rgba(251, 191, 36, 0.25);
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   CANVAS
   ═══════════════════════════════════════════════════════════════ */

.canvas-container {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
}

#pitchCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Y-Axis Labels ─────────────────────────────────────────── */

.y-axis-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

#yAxisLabelsInner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.swara-label {
    position: absolute;
    left: 8px;
    transform: translateY(-50%);
    font-family: 'Hind', sans-serif;
    font-size: 0.8rem;
    color: rgba(212, 160, 100, 0.55);
    font-weight: 700;
    line-height: 1;
    /* Match line-height to fix visual offset */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
}

.swara-label.is-sa {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 0 10px var(--gold-glow);
}

.swara-label.varjit {
    opacity: 0.1;
}

/* ═══════════════════════════════════════════════════════════════
   PITCH SLIDER (Horizontal)
   ═══════════════════════════════════════════════════════════════ */

.pitch-slider-section {
    width: 100%;
    background: rgba(14, 8, 4, 0.95);
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 0 24px 0;
    /* Extra padding top/bottom to accommodate marker overflow */
    position: relative;
    z-index: 7;
    /* Below topbars, above canvas */
    flex-shrink: 0;
    overflow: hidden;
    /* Prevent scrollbar from marker overflow */
}

.octave-labels {
    position: absolute;
    top: 6px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.octave-label {
    font-family: 'Hind', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(212, 160, 100, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pitch-slider-track {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 32px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(217, 163, 76, 0.15);
    border-radius: 6px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
    /* No overflow clipping here — labels-container handles horizontal clip,
       marker extends vertically unclipped */
}

.slider-edge-indicator {
    position: absolute;
    top: 0;
    height: 100%;
    width: 24px;
    background: rgba(251, 191, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
}

.slider-edge-indicator.active {
    opacity: 1;
}

.slider-edge-indicator.left {
    left: 0;
    border-right: 1px solid rgba(251, 191, 36, 0.3);
    background: linear-gradient(to right, rgba(251, 191, 36, 0.2) 0%, transparent 100%);
}

.slider-edge-indicator.right {
    right: 0;
    border-left: 1px solid rgba(251, 191, 36, 0.3);
    background: linear-gradient(to left, rgba(251, 191, 36, 0.2) 0%, transparent 100%);
}

/* Clip container for the horizontally-scrolling labels */
.pitch-slider-labels-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* This is the key horizontal clip */
    z-index: 3;
}

/* Container for all injected markers */
.pitch-slider-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pitch-slider-label {
    position: absolute;
    top: 0;
    height: 100%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* The vertical tick line */
.pitch-slider-tick {
    width: 1px;
    height: 8px;
    background: rgba(217, 163, 76, 0.3);
    margin-bottom: 2px;
    transition: all 0.15s ease-out;
}

/* The text */
.pitch-slider-text {
    font-family: 'Hind', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(212, 160, 100, 0.6);
    line-height: 1;
    transition: all 0.15s ease-out;
}

.pitch-slider-label.is-sa .pitch-slider-tick {
    height: 18px;
    background: var(--gold);
    width: 3px;
    box-shadow: 0 0 8px var(--gold-glow);
}

.pitch-slider-label.is-sa .pitch-slider-text {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.8rem;
    text-shadow: 0 0 12px var(--gold-glow);
}

.pitch-slider-label.is-major .pitch-slider-tick {
    height: 10px;
    background: rgba(217, 163, 76, 0.6);
}

.pitch-slider-label.is-major .pitch-slider-text {
    color: rgba(212, 160, 100, 0.9);
}

/* Nearest Swara Highlighting */
.pitch-slider-label.highlight .pitch-slider-tick {
    background: #4ade80;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.9);
    height: 14px;
}

.pitch-slider-label.highlight .pitch-slider-text {
    color: #4ade80;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.9);
    transform: scale(1.15) translateY(-2px);
}

.pitch-slider-label.is-sa.highlight .pitch-slider-tick {
    height: 22px;
    background: #fff;
    box-shadow: 0 0 18px #4ade80;
}

.pitch-slider-label.is-sa.highlight .pitch-slider-text {
    color: #fff;
    text-shadow: 0 0 16px #4ade80;
}

/* The wrapper to define the visible "window" bounds */
.pitch-slider-marker-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* The dynamic moving thumb */
.pitch-slider-marker {
    position: absolute;
    top: 50%;
    left: 0;
    /* JS will apply padding offset usually */
    height: 60px;
    width: 15px;
    background: var(--gold);
    /* Using transform to precisely center the marker mathematically and vertically offset over the track */
    transform: translate(-50%, -50%);
    will-change: transform, left;
    transition: filter 0.15s ease, background 0.15s ease;
    z-index: 10;

    /* Apply SVG as CSS mask to carve the block into the shape of a Tanpura bead */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='100' viewBox='0 0 24 100'%3E%3Cline x1='12' y1='0' x2='12' y2='24' stroke='currentColor' stroke-width='2.5'/%3E%3Cline x1='8' y1='18' x2='16' y2='18' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'/%3E%3Crect x='4' y='24' width='16' height='52' rx='5' ry='5' fill='transparent' stroke='currentColor' stroke-width='2.5'/%3E%3Crect x='7' y='27' width='10' height='46' rx='2' ry='2' fill='transparent' stroke='currentColor' stroke-width='1.5' opacity='0.85'/%3E%3Cline x1='8' y1='82' x2='16' y2='82' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='12' y1='76' x2='12' y2='100' stroke='currentColor' stroke-width='2.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='100' viewBox='0 0 24 100'%3E%3Cline x1='12' y1='0' x2='12' y2='24' stroke='currentColor' stroke-width='2.5'/%3E%3Cline x1='8' y1='18' x2='16' y2='18' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'/%3E%3Crect x='4' y='24' width='16' height='52' rx='5' ry='5' fill='transparent' stroke='currentColor' stroke-width='2.5'/%3E%3Crect x='7' y='27' width='10' height='46' rx='2' ry='2' fill='transparent' stroke='currentColor' stroke-width='1.5' opacity='0.85'/%3E%3Cline x1='8' y1='82' x2='16' y2='82' stroke='currentColor' stroke-width='2.5' stroke-linecap='round'/%3E%3Cline x1='12' y1='76' x2='12' y2='100' stroke='currentColor' stroke-width='2.5'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;

    /* Multilayered filter to create a warm radiating aura */
    filter: drop-shadow(0 0 4px var(--gold-glow)) drop-shadow(0 0 12px var(--saffron)) drop-shadow(0 0 24px rgba(251, 191, 36, 0.4));
}

.pitch-slider-marker.inactive {
    background: rgba(212, 160, 100, 0.4);
    filter: none;
}

/* ═══════════════════════════════════════════════════════════════
   PIANO KEYBOARD – Premium Harmonium Style
   ═══════════════════════════════════════════════════════════════ */

.keyboard-section {
    flex-shrink: 0;
    background: linear-gradient(to bottom,
            #1a0e06 0%,
            #0e0804 4px,
            #120a04 100%);
    border-top: 2px solid rgba(217, 163, 76, 0.15);
    position: relative;
}

.keyboard-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.35rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(217, 163, 76, 0.06);
    min-height: 24px;
}

.keyboard-note {
    font-family: 'Hind', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
    min-width: 40px;
    text-align: center;
}

.keyboard-swara {
    font-family: 'Hind', sans-serif;
    font-size: 0.8rem;
    color: var(--saffron);
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.keyboard-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 163, 76, 0.15) transparent;
    display: flex;
    justify-content: center;
    padding: 6px 0 8px 0;
}

.keyboard-scroll::-webkit-scrollbar {
    height: 3px;
}

.keyboard-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.keyboard-scroll::-webkit-scrollbar-thumb {
    background: rgba(217, 163, 76, 0.2);
    border-radius: 2px;
}

.keyboard {
    display: flex;
    position: relative;
    height: 90px;
    min-width: max-content;
    user-select: none;
    -webkit-user-select: none;
}

/* ── White Keys (Harmonium Ivory) ─────────────────────────── */
.key-white {
    position: relative;
    width: 22px;
    height: 90px;
    background: linear-gradient(to bottom,
            #faf3e0 0%, #f5eedb 30%, #ece3cc 70%, #e2d6bb 100%);
    border-left: 1px solid rgba(160, 130, 80, 0.2);
    border-right: 1px solid rgba(160, 130, 80, 0.15);
    border-bottom: 2px solid rgba(140, 110, 60, 0.3);
    border-top: none;
    border-radius: 0 0 3px 3px;
    cursor: pointer;
    z-index: 1;
    transition: all 0.1s ease;
    flex-shrink: 0;
    box-shadow: inset 0 -3px 6px rgba(120, 90, 40, 0.08);
}

.key-white:hover {
    background: linear-gradient(to bottom,
            #fff8ea 0%, #faf3e0 30%, #f0e8d2 70%, #e8dcc4 100%);
}

.key-white.active,
.key-white.playing {
    background: linear-gradient(to bottom, #d97706, #b45309, #92400e);
    box-shadow: 0 0 14px rgba(217, 119, 6, 0.6),
        0 0 28px rgba(217, 119, 6, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
    border-color: var(--saffron);
    z-index: 1;
    /* Keep it below black keys even when pressed */
}

/* Bottom label (note name: C1, C2, ...) */
.key-white .key-label {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.48rem;
    color: rgba(100, 75, 35, 0.45);
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
}

.key-white.active .key-label {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
}

/* Top label (swara name) */
.key-white .swara-label-top {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.42rem;
    color: rgba(180, 83, 9, 0.6);
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.key-white.active .swara-label-top {
    color: rgba(255, 255, 255, 0.85);
}

/* Sa key styling — gold top accent */
.key-white.is-sa {
    border-top: 3px solid var(--gold);
    border-radius: 0 0 3px 3px;
    box-shadow: inset 0 2px 6px rgba(251, 191, 36, 0.1),
        inset 0 -3px 6px rgba(120, 90, 40, 0.08);
}

.key-white.is-sa .swara-label-top {
    color: var(--saffron);
    font-weight: 800;
}

/* ── Black Keys (Harmonium Rosewood) ──────────────────────── */
.key-black {
    position: absolute;
    width: 14px;
    height: 56px;
    background: linear-gradient(to bottom,
            #3a200e 0%, #2c170a 40%, #1e0e04 80%, #150a02 100%);
    border: 1px solid rgba(80, 50, 20, 0.3);
    border-top: none;
    border-radius: 0 0 3px 3px;
    z-index: 2;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(60, 30, 10, 0.3);
}

.key-black:hover {
    background: linear-gradient(to bottom,
            #4a2c14 0%, #3a200e 40%, #2c170a 80%, #1e0e04 100%);
}

.key-black.active,
.key-black.playing {
    background: linear-gradient(to bottom, #d97706, #92400e, #6b2f06);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.6),
        0 0 24px rgba(217, 119, 6, 0.2),
        inset 0 1px 2px rgba(255, 200, 100, 0.2);
    border-color: var(--saffron);
    z-index: 3;
}

.key-black .key-label {
    display: none;
    /* No labels on black keys by default */
}

/* Swara label on black keys */
.key-black .swara-label-top {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.38rem;
    color: rgba(217, 163, 76, 0.45);
    font-family: 'Hind', sans-serif;
    font-weight: 700;
    pointer-events: none;
    white-space: nowrap;
}

.key-black.active .swara-label-top {
    color: rgba(255, 255, 255, 0.85);
}

/* Sa key styling for black keys — gold top accent */
.key-black.is-sa {
    border-top: 3px solid var(--gold);
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 2px 6px rgba(251, 191, 36, 0.15),
        inset 0 -2px 4px rgba(60, 30, 10, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   CONTROLS DRAWER + SETTINGS TOGGLE
   On desktop: drawer is inline (normal flow), toggle is hidden.
   On mobile (≤768px): drawer is fixed overlay, toggle is visible.
   ═══════════════════════════════════════════════════════════════ */

/* Drawer Handle (hidden on desktop) */
.drawer-handle {
    display: none;
}

/* Settings Toggle Button (hidden on desktop) */
.settings-toggle {
    display: none;
}

/* Drawer Backdrop (hidden on desktop) */
.controls-drawer-backdrop {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN – MOBILE FIRST (≤768px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Top Bar: Compact Single Row ──────────────────────── */
    .top-bar {
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 0.4rem 0.6rem;
        gap: 0.4rem;
    }

    .logo {
        display: none;
        /* Hide brand on mobile to save space */
    }

    .status-indicator {
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        gap: 0;
    }



    #pitchDisplay {
        font-size: 0.7rem;
    }

    #deviationDisplay {
        font-size: 0.75rem;
    }

    .top-actions {
        flex-shrink: 0;
    }

    .btn-primary {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 4px;
        min-width: 44px;
        min-height: 44px;
    }

    /* ── Settings Toggle – Floating Gear ─────────────────── */
    .settings-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
        right: 12px;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 1px solid rgba(217, 163, 76, 0.25);
        background: rgba(28, 18, 10, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        color: var(--gold);
        cursor: pointer;
        z-index: 90;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
            0 0 12px rgba(251, 191, 36, 0.15);
        transition: all 0.25s ease;
    }

    .settings-toggle:hover,
    .settings-toggle:active {
        background: rgba(217, 119, 6, 0.25);
        border-color: var(--saffron);
        transform: scale(1.08) rotate(30deg);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6),
            0 0 20px rgba(251, 191, 36, 0.25);
    }

    .settings-toggle.active {
        background: var(--saffron);
        color: var(--bg-dark);
        border-color: var(--gold);
        transform: rotate(90deg);
    }

    /* ── Drawer Backdrop ─────────────────────────────────── */
    .controls-drawer-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 98;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

    .controls-drawer-backdrop.open {
        display: block;
        opacity: 1;
    }

    /* ── Controls Drawer ─────────────────────────────────── */
    .controls-drawer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99;
        background: rgba(14, 8, 4, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(217, 163, 76, 0.2);
        border-radius: 16px 16px 0 0;
        max-height: 75vh;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .controls-drawer.open {
        transform: translateY(0);
    }

    /* Drawer Handle Pill */
    .drawer-handle {
        display: flex;
        justify-content: center;
        padding: 10px 0 6px 0;
        cursor: grab;
    }

    .drawer-handle span {
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(217, 163, 76, 0.3);
    }

    /* ── Toolbar inside Drawer – Vertical Stack ──────────── */
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        border-bottom: none;
        overflow: visible;
    }

    .toolbar-panel {
        padding: 0.6rem 1rem;
        border-bottom: 1px solid rgba(217, 163, 76, 0.06);
    }

    .toolbar-panel:last-of-type {
        border-bottom: none;
    }

    .panel-body {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .toolbar-divider {
        display: none;
    }

    .control-group {
        min-width: 0;
        width: 100%;
    }

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

    input[type="range"] {
        width: 100%;
        min-width: 80px;
    }

    select,
    input[type="text"] {
        width: 100%;
        min-width: 0;
        font-size: 0.85rem;
        padding: 0.45rem 0.5rem;
        min-height: 38px;
    }

    .pitch-picker-trigger {
        width: 100%;
        min-width: 0;
        min-height: 38px;
    }

    .toggle-label {
        min-height: 38px;
    }

    .btn-secondary {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
        min-height: 38px;
    }

    /* ── Shruti Petti inside Drawer ───────────────────────── */
    .shruti-petti-bar {
        padding: 0.6rem 0.8rem;
        flex-direction: column;
        gap: 0.4rem;
        border-top: 1px solid rgba(217, 163, 76, 0.08);
        border-bottom: none;
    }

    .shruti-petti-label {
        text-align: center;
    }

    .shruti-petti-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }

    .shruti-petti-btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.75rem;
        min-width: 44px;
        min-height: 36px;
    }

    /* ── Canvas Maximization ─────────────────────────────── */
    .canvas-container {
        /* With toolbar & shruti-petti in the overlay drawer,
           the canvas fills all space between top-bar and keyboard */
        flex: 1;
    }

    .y-axis-labels .swara-label {
        font-size: 0.7rem;
    }

    /* ── Keyboard Compact ────────────────────────────────── */
    .keyboard-section {
        padding-top: 2px;
    }

    .keyboard-info {
        padding: 2px 8px;
        gap: 0.8rem;
        min-height: 20px;
    }

    .keyboard-note {
        font-size: 0.75rem;
    }

    .keyboard-swara {
        font-size: 0.7rem;
    }

    .keyboard {
        height: 60px;
    }

    .key-white {
        height: 60px;
        width: 22px;
        /* Increased from 18px */
    }

    .key-black {
        height: 38px;
        width: 14px;
        /* Increased from 12px */
    }

    .key-white .swara-label-top,
    .key-black .swara-label-top {
        font-size: 0.35rem;
    }

    .key-white .key-label {
        font-size: 0.35rem;
        bottom: 2px;
    }

    /* ── Pitch Picker Modal for Mobile ────────────────────── */
    .modal-content {
        width: 95%;
        max-width: 340px;
    }

    .note-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 10px;
    }

    .note-btn {
        padding: 0.7rem 0.4rem;
        min-height: 44px;
    }

    .octave-tab {
        padding: 0.45rem 0.35rem;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET BREAKPOINT (769px – 1024px)
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
    .top-bar {
        padding: 0.5rem 1rem;
    }



    .toolbar-panel {
        padding: 0.5rem 0.8rem;
    }

    .keyboard {
        height: 80px;
    }

    .key-white {
        height: 80px;
        width: 20px;
    }

    .key-black {
        height: 50px;
        width: 13px;
    }

    .note-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════
   VERY SMALL SCREENS (≤380px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {


    .btn-primary {
        padding: 0.45rem 0.6rem;
        font-size: 0.65rem;
    }

    .keyboard {
        height: 50px;
    }

    .key-white {
        height: 55px;
        /* Slightly taller */
        width: 20px;
        /* Increased from 16px */
    }

    .key-black {
        height: 34px;
        /* Slightly taller */
        width: 13px;
        /* Increased from 10px */
    }

    .settings-toggle {
        width: 42px;
        height: 42px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 60px);
        right: 8px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RAGA MODAL UI
   ═══════════════════════════════════════════════════════════════ */

/* Raga Trigger Button in Toolbar */
.raga-panel-body {
    padding: 0 10px;
    display: flex;
    align-items: center;
}

/* Modal Trigger Buttons (Pitch Setup & Raga Selection) */
.pitch-picker-trigger,
.raga-trigger-btn {
    width: 100%;
    background: rgba(251, 191, 36, 0.05); /* very faint gold */
    border: 1px solid rgba(217, 163, 76, 0.2);
    border-radius: 4px;
    padding: 0.45rem 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--cream);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: 'Hind', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
}

.pitch-picker-trigger:hover,
.raga-trigger-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--saffron);
    color: var(--gold);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.trigger-icon {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.pitch-picker-trigger:hover .trigger-icon,
.raga-trigger-btn:hover .trigger-icon {
    opacity: 1;
}

.raga-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL OVERLAY & CONTAINERS
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 5, 3, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    background: linear-gradient(145deg, rgba(26, 16, 10, 0.95), rgba(14, 8, 4, 0.98));
    border: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-container {
    transform: translateY(20px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.modal-close-btn:hover {
    color: var(--gold);
}

/* Raga Specific Modal Tweaks */

.raga-modal {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    height: 85vh;
    /* Taller for lists */
}

.modal-search-bar {
    position: relative;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-search-bar .search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
}

.modal-search-bar input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 10px 10px 42px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-search-bar input:focus {
    border-color: var(--gold);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.modal-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.02);
}

.modal-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

.raga-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    /* Padding handled by lists */
    /* Custom Scrollbar for list */
}

.raga-modal-body::-webkit-scrollbar {
    width: 6px;
}

.raga-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Raga List Groups */
.raga-group {
    padding-bottom: 10px;
}

.raga-group-header {
    position: sticky;
    top: 0;
    background: rgba(14, 8, 4, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 20px;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    border-top: 1px solid rgba(251, 191, 36, 0.05);
    z-index: 2;
    margin-top: -1px;
    /* fix sticky gap */
}

.carnatic-melakarta {
    font-size: 0.85rem;
    color: rgba(251, 191, 36, 0.7);
    padding-left: 20px;
    margin-top: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Raga Cards */
.raga-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.2s;
}

.raga-card:hover {
    background: rgba(251, 191, 36, 0.05);
}

.raga-card.is-janya {
    padding-left: 36px;
    border-left: 2px solid rgba(251, 191, 36, 0.2);
}

.raga-card-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.raga-card-swaras {
    font-family: 'Hind', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.2em;
}

.no-results {
    padding: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}