@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #060911;
    --glass-bg: rgba(15, 23, 42, 0.72);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-glow: 0 10px 30px -10px rgba(16, 185, 129, 0.35);
    --shadow-panel: 0 20px 45px -15px rgba(0, 0, 0, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-drag: none;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
}

#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

/* UI Overlay Layer */
.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.interactive {
    pointer-events: auto;
}

/* Glassmorphism Common Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    border-color: var(--glass-highlight);
}

/* Top Header Bar */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.brand-icon svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, #a7f3d0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-storm-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    transition: all 0.25s ease;
    animation: stormPulse 2.5s infinite;
}

@keyframes stormPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 28px rgba(239, 68, 68, 0.7); }
}

.btn-storm-action:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.15);
}

.btn-storm-action svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.btn-regrow-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(16px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    transition: all 0.25s ease;
}

.btn-regrow-action:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.15);
}

.btn-regrow-action svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    backdrop-filter: blur(16px);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-icon.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.3));
    border-color: var(--accent-emerald);
    color: #6ee7b7;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Sidebar Customizer Studio */
.sidebar-drawer {
    position: fixed;
    top: 90px;
    right: 24px;
    width: 360px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px;
    display: none;
    flex-direction: column;
    gap: 20px;
    z-index: 20;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-drawer::-webkit-scrollbar {
    width: 6px;
}

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

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.drawer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.sub-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

/* iOS-style Switch Toggle */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input:checked + .slider-toggle {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

input:checked + .slider-toggle:before {
    transform: translateX(16px);
}

/* Species Preset Grid */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.preset-card {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.25s ease;
}

.preset-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.preset-card.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border-color: var(--accent-emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.preset-card .preset-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.preset-card .preset-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Tab Pill Switchers */
.tab-pills {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
}

.tab-pill {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-pill:hover {
    color: var(--text-primary);
}

.tab-pill.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Interactive Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.slider-val {
    font-weight: 600;
    color: var(--accent-emerald);
    font-variant-numeric: tabular-nums;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Bottom Cinematic Camera Toolbar */
.bottom-toolbar {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    margin-bottom: 84px;
}

.cam-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cam-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.cam-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border-color: var(--accent-emerald);
    color: #ffffff;
}

.cam-btn svg {
    width: 16px;
    height: 16px;
}

/* 4K Capture Button */
.btn-capture {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #ffffff;
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.btn-capture:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

/* Camera Hint Toast */
.hint-toast {
    position: fixed;
    bottom: 156px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 5px 16px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    z-index: 15;
}

/* Flash effect for screenshot */
.flash-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.5s ease-out;
}

/* -------------------------------------------------------------
 * 108 SACRED HANUMAN JI BHAKTI MUSIC PLAYER BAR
 * ------------------------------------------------------------- */
.bhakti-player-container {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 840px;
    z-index: 999999 !important;
    pointer-events: auto !important;
    display: block !important;
}

.bhakti-player-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    border-radius: 28px;
    background: rgba(13, 17, 23, 0.82);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 180, 50, 0.22);
    box-shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.85), 0 0 24px -6px rgba(245, 158, 11, 0.25);
    transition: all 0.3s ease;
}

.bhakti-player-bar:hover {
    border-color: rgba(255, 190, 70, 0.45);
    box-shadow: 0 16px 42px -6px rgba(0, 0, 0, 0.9), 0 0 32px -4px rgba(245, 158, 11, 0.35);
}

/* Player Left: Album Thumbnail & Metadata */
.player-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    max-width: 260px;
}

.album-art-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 180, 50, 0.6);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-art.spinning {
    animation: spinVinyl 12s linear infinite;
}

@keyframes spinVinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #111;
    border: 2px solid #f59e0b;
    border-radius: 50%;
}

.track-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
}

.track-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.25;
}

.track-artist {
    font-size: 0.72rem;
    color: #f59e0b;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 2px;
    opacity: 0.9;
}

/* Player Center: Progress & Controls */
.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 420px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.time-label {
    font-size: 0.70rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    min-width: 32px;
}

.progress-bar-track {
    position: relative;
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    cursor: pointer;
    overflow: visible;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.progress-bar-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.progress-bar-track:hover .progress-bar-thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

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

.btn-player-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-player-ctrl:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: scale(1.1);
}

.btn-player-ctrl.active {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
    color: #fbbf24;
}

.btn-player-ctrl svg {
    width: 16px;
    height: 16px;
}

.btn-player-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-player-play:hover {
    transform: scale(1.12);
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.85);
}

.btn-player-play svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.btn-playlist-toggle {
    position: relative;
}

.playlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.60rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Player Right: Volume */
.player-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 75px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    box-shadow: 0 0 8px #f59e0b;
}

/* -------------------------------------------------------------
 * 108 SACRED PLAYLIST DRAWER (MODAL LIST)
 * ------------------------------------------------------------- */
.playlist-drawer {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 32px);
    max-width: 840px;
    max-height: 65vh;
    background: rgba(10, 14, 22, 0.96);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 24px;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.95), 0 0 35px -5px rgba(245, 158, 11, 0.25);
    z-index: 9999;
    display: none;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.playlist-drawer.open {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0);
}

.playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.playlist-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.playlist-count {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.btn-close-playlist {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-playlist:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* Playlist Search & Category Filter Pills */
.playlist-toolbar {
    padding: 10px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.playlist-search-input {
    width: 100%;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.playlist-search-input:focus {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.08);
}

.playlist-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.playlist-filter-pills::-webkit-scrollbar {
    height: 3px;
}

.filter-pill {
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.filter-pill.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(234, 88, 12, 0.3));
    border-color: #f59e0b;
    color: #fbbf24;
}

/* Playlist Scrollable Items */
.playlist-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px;
}

.playlist-items-list::-webkit-scrollbar {
    width: 6px;
}

.playlist-items-list::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 3px;
}

.playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.playlist-item.active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.item-index {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    min-width: 24px;
}

.item-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.playlist-item.active .item-title {
    color: #fbbf24;
}

.item-artist {
    font-size: 0.70rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

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

.item-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.item-duration {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    min-width: 35px;
    text-align: right;
}

/* Playing Equalizer Animation Bars */
.item-eq {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    width: 12px;
}

.playlist-item.active .item-eq {
    display: flex;
}

.eq-bar {
    flex: 1;
    background: #f59e0b;
    border-radius: 1px;
    animation: eqPulse 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 85%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }

@keyframes eqPulse {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* -------------------------------------------------------------
 * RESPONSIVE ADAPTATIONS (Laptops, Tablets & iPad Screens <= 1100px)
 * ------------------------------------------------------------- */
@media (max-width: 1100px) {
    .brand-text p {
        display: none !important;
    }
    .brand-text h1 {
        font-size: 0.95rem;
    }
    .brand-badge {
        padding: 6px 12px;
        gap: 8px;
    }
    .header-actions {
        gap: 6px;
    }
    .btn-storm-action,
    .btn-regrow-action {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

/* -------------------------------------------------------------
 * COMPREHENSIVE RESPONSIVE MOBILE OPTIMIZATIONS (Smartphones <= 768px)
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Main Overlay Padding */
    .ui-overlay {
        padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 6px) 8px;
        touch-action: manipulation;
        pointer-events: none;
    }

    /* Top Header Bar: Clean Single Row with All Buttons Visible */
    .top-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        width: 100%;
        height: auto;
        pointer-events: auto;
        flex-wrap: nowrap;
    }

    /* Icon only for brand badge on mobile */
    .brand-badge {
        padding: 4px;
        height: 32px;
        width: 32px;
        min-width: 32px;
        border-radius: 8px;
        flex-shrink: 0;
        justify-content: center;
    }

    .brand-icon {
        width: 20px;
        height: 20px;
    }

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

    .header-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap;
        flex-shrink: 0;
        width: auto;
        overflow: visible;
    }

    /* Action Buttons: PAWAN and राम राम */
    .btn-storm-action,
    .btn-regrow-action {
        padding: 4px 7px;
        font-size: 0.68rem;
        gap: 3px;
        height: 32px;
        border-radius: 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .btn-storm-action svg,
    .btn-regrow-action svg {
        width: 12px;
        height: 12px;
    }

    /* All 4 Icon Buttons: Audio, Rotate, Settings, Fullscreen - ALWAYS VISIBLE */
    .btn-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        padding: 0 !important;
        border-radius: 8px;
        flex-shrink: 0;
        background: rgba(13, 17, 23, 0.88) !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }

    .btn-icon svg {
        width: 14px;
        height: 14px;
    }

    /* Bottom Camera Toolbar: Horizontal Swipeable Pill Strip ABOVE Player */
    .bottom-toolbar {
        position: fixed;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
        left: 8px;
        right: 8px;
        width: auto;
        max-width: 100%;
        transform: none;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 4px 8px;
        border-radius: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
        background: rgba(10, 14, 22, 0.88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 999;
        pointer-events: auto;
    }

    .bottom-toolbar::-webkit-scrollbar {
        display: none;
    }

    .cam-btn {
        padding: 4px 9px;
        font-size: 0.68rem;
        flex-shrink: 0;
        gap: 3px;
        border-radius: 10px;
        height: 28px;
    }

    .cam-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Floating Bhakti Music Player Bar: Compact 2-Row Mobile Bar */
    .bhakti-player-container {
        position: fixed;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
        left: 8px;
        right: 8px;
        width: auto;
        max-width: 100%;
        transform: none;
        z-index: 999999 !important;
        pointer-events: auto !important;
        display: block !important;
    }

    .bhakti-player-bar {
        display: flex;
        flex-direction: column;
        padding: 6px 10px;
        border-radius: 18px;
        gap: 4px;
        background: rgba(10, 14, 22, 0.94);
        backdrop-filter: blur(24px) saturate(190%);
        -webkit-backdrop-filter: blur(24px) saturate(190%);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(255, 180, 50, 0.28);
    }

    /* Top Row in Mobile Player: Left Info + Right Controls */
    .player-left {
        min-width: 0;
        max-width: 48%;
        gap: 7px;
        flex: 1;
    }

    .album-art-wrap {
        width: 30px;
        height: 30px;
    }

    .track-meta {
        overflow: hidden;
    }

    .track-title {
        font-size: 0.74rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 110px;
    }

    .track-artist {
        font-size: 0.62rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 110px;
    }

    .player-center {
        width: 100%;
        display: flex;
        flex-direction: column-reverse;
        gap: 3px;
        margin-top: 0;
    }

    .player-controls {
        position: absolute;
        top: 6px;
        right: 10px;
        gap: 8px;
        justify-content: flex-end;
        align-items: center;
        width: auto;
    }

    .btn-player-play {
        width: 32px;
        height: 32px;
    }

    .btn-player-play svg {
        width: 16px;
        height: 16px;
    }

    .btn-player-ctrl {
        width: 26px;
        height: 26px;
    }

    .btn-player-ctrl svg {
        width: 14px;
        height: 14px;
    }

    #btnShuffle,
    #btnRepeat {
        display: none; /* Keep clean on small mobile */
    }

    .progress-container {
        gap: 5px;
        width: 100%;
        margin-top: 2px;
    }

    .progress-bar-track {
        height: 4px;
    }

    .time-label {
        font-size: 0.62rem;
        min-width: 24px;
    }

    .player-right {
        display: none !important;
    }

    /* 108 Sacred Playlist Modal Drawer */
    .playlist-drawer {
        position: fixed;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
        left: 8px;
        right: 8px;
        width: auto;
        max-width: 100%;
        transform: none;
        max-height: 65vh;
        border-radius: 18px;
        padding: 12px 10px;
        z-index: 9999999;
    }

    .playlist-header {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    .playlist-title {
        font-size: 0.85rem;
    }

    .playlist-count {
        font-size: 0.62rem;
        padding: 1px 5px;
    }

    .playlist-toolbar {
        gap: 6px;
        margin-bottom: 6px;
    }

    .playlist-search-input {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .playlist-filter-pills {
        gap: 4px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .playlist-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        padding: 3px 8px;
        font-size: 0.68rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .playlist-items-list {
        max-height: calc(65vh - 130px);
        gap: 3px;
    }

    .playlist-item {
        padding: 6px 8px;
        border-radius: 8px;
    }

    .playlist-item-title {
        font-size: 0.75rem;
    }

    .playlist-item-artist {
        font-size: 0.64rem;
    }

    .item-duration {
        font-size: 0.64rem;
    }

    /* Botanical Customizer Drawer */
    .sidebar-drawer {
        position: fixed;
        top: 50px;
        right: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100vh - 140px);
        border-radius: 18px;
        padding: 14px;
        z-index: 99999;
    }

    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .preset-card {
        padding: 8px;
    }

    .preset-card h4 {
        font-size: 0.76rem;
    }

    .preset-card p {
        font-size: 0.62rem;
    }

    /* Hint Toast */
    .hint-toast {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .brand-text h1 {
        font-size: 0.74rem;
    }

    .btn-storm-action,
    .btn-regrow-action {
        padding: 4px 7px;
        font-size: 0.66rem;
    }

    .track-title {
        max-width: 90px;
    }

    .track-artist {
        max-width: 90px;
    }

    .preset-grid {
        grid-template-columns: 1fr;
    }
}



