@font-face {
            font-family: 'Cormorant Garamond';
            font-style: normal;
            font-weight: 300 500;
            font-display: swap;
            src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
        }

        :root {
            --gold: #d4a574;
            --gold-light: #e8c9a0;
            --gold-glow: rgba(212, 165, 116, 0.6);
            --white: #ffffff;
            --black: #000000;
            --overlay: rgba(0, 0, 0, 0.85);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select:none;
        }

        html, body {
            height: 100%;
            width: 100%;
            overflow: hidden;
            background: var(--black);
            font-family: 'Cormorant Garamond', Georgia, serif;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        /* Baba Image Container */
        .baba-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            border: 0;
            background: transparent;
            cursor: pointer;
            font: inherit;
        }

        #babaImage {
            max-width: 92vw;
            max-height: 92vh;
            object-fit: contain;
            border-radius: 8px;
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 1;
        }

        /* Divine Glow Effect During Aarti */
        .baba-container.aarti-active::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: calc(100% + 60px);
            height: calc(100% + 60px);
            background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 70%);
            animation: divineGlow 4s ease-in-out infinite;
            z-index: 0;
            pointer-events: none;
        }

        @keyframes divineGlow {
            0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
            50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
        }

        /* Floating Particles During Aarti */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            opacity: 0;
            transition: opacity 1s ease;
        }

        .particles.active {
            opacity: 1;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--gold-light);
            border-radius: 50%;
            animation: floatUp 8s infinite;
            opacity: 0;
        }

        @keyframes floatUp {
            0% { transform: translateY(100vh) scale(0); opacity: 0; }
            10% { opacity: 0.8; }
            90% { opacity: 0.8; }
            100% { transform: translateY(-100vh) scale(1); opacity: 0; }
        }

        /* UI Container - Hidden by default */
        .ui-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .ui-container.visible {
            opacity: 1;
            visibility: visible;
        }

        .ui-container > * {
            pointer-events: auto;
        }

        /* Close Button */
        .close-ui {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-ui:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .close-ui svg {
            width: 20px;
            height: 20px;
            stroke: var(--white);
            stroke-width: 2;
            fill: none;
        }

        /* Settings Button */
        .settings-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .settings-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1) rotate(45deg);
        }

        .settings-btn svg {
            width: 20px;
            height: 20px;
            fill: var(--white);
        }

        /* Bottom Info Panel */
        .bottom-panel {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 30px 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        /* Time Display */
        .time-display {
            text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.85);
    padding: 13px;
    border-radius: 21px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.21);
        }

        .ist-time {
            font-size: 14px;
            letter-spacing: 3px;
            opacity: 0.6;
            text-transform: uppercase;
        }

        .next-aarti {
            font-size: 18px;
            color: var(--gold-light);
            margin-top: 5px;
            font-weight: 300;
        }

        /* Audio Controls - Beautiful Minimal Design */
        .audio-controls {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 15px 30px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 50px;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .audio-controls.visible {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .play-btn {
            width: 56px;
            height: 56px;
            background: var(--gold);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(212, 165, 116, 0.4);
        }

        .play-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 30px rgba(212, 165, 116, 0.6);
        }

        .play-btn:active {
            transform: scale(0.95);
        }

        .play-btn svg {
            width: 24px;
            height: 24px;
            fill: var(--black);
            margin-left: 3px;
        }

        .play-btn.playing svg {
            margin-left: 0;
        }

        .aarti-info {
            display: flex;
            flex-direction: column;
            min-width: 120px;
        }

        .aarti-name {
            font-size: 16px;
            color: var(--white);
            font-weight: 400;
        }

        .aarti-progress-container {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-top: 5px;
        }

        .aarti-progress {
            flex: 1;
            height: 3px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            overflow: hidden;
            min-width: 80px;
        }

        .aarti-progress-fill {
            height: 100%;
            background: var(--gold);
            border-radius: 3px;
            transition: width 1s linear;
            width: 0%;
        }

        .aarti-time {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.5);
            min-width: 35px;
        }

        .volume-btn {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .volume-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .volume-btn svg {
            width: 18px;
            height: 18px;
            fill: var(--white);
        }

        /* Volume Slider Popup */
        .volume-popup {
            position: absolute;
            bottom: 80px;
            right: 20px;
            background: transparent;
            backdrop-filter: blur(20px);
            padding: 20px 15px;
            border-radius: 30px;
         
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
        }

        .volume-popup.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .volume-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            outline: none;
            transform: rotate(-90deg);
            transform-origin: center;
        }

        .volume-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            background: var(--gold);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(212, 165, 116, 0.5);
        }

        /* Settings Panel */
        .settings-panel {
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            max-width: 360px;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            padding: 30px;
            transform: translateX(-100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 200;
            overflow-y: auto;
        }

        .settings-panel.open {
            transform: translateX(0);
        }

        .settings-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            z-index: 199;
        }

        .settings-overlay.visible {
            opacity: 1;
            visibility: visible;
        }

        .settings-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .settings-title {
            font-size: 24px;
            font-weight: 300;
            color: var(--white);
            letter-spacing: 2px;
        }

        .close-settings {
            width: 40px;
            height: 40px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-settings:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .close-settings svg {
            width: 16px;
            height: 16px;
            stroke: var(--white);
            stroke-width: 2;
            fill: none;
        }

        .setting-item {
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .setting-label {
            font-size: 16px;
            color: rgba(255, 255, 255, 0.8);
            font-weight: 300;
        }

        .toggle-switch {
            position: relative;
            width: 50px;
            height: 28px;
        }

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

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.1);
            transition: 0.4s;
            border-radius: 28px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 3px;
            bottom: 3px;
            background-color: var(--white);
            transition: 0.4s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: var(--gold);
        }

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

        .setting-section {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-title {
            font-size: 12px;
            color: var(--gold-light);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 20px;
        }

        .schedule-list {
            color: rgba(255,255,255,0.6);
            font-size: 14px;
            line-height: 2;
        }

        .volume-setting {
            flex-direction: column;
            align-items: stretch;
            gap: 15px;
        }

        .volume-setting .setting-label {
            display: flex;
            justify-content: space-between;
        }

        .volume-setting-slider {
            -webkit-appearance: none;
            appearance: none;
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            outline: none;
        }

        .volume-setting-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            background: var(--gold);
            border-radius: 50%;
            cursor: pointer;
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            padding: 30px 50px;
            border-radius: 20px;
            border: 1px solid rgba(212, 165, 116, 0.3);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            text-align: center;
        }

        .toast.show {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
            visibility: visible;
        }

        .toast-icon {
            width: 50px;
            height: 50px;
            margin: 0 auto 15px;
            fill: var(--gold);
        }

        .toast-message {
            font-size: 20px;
            color: var(--white);
            font-weight: 300;
            letter-spacing: 1px;
        }

        .toast-submessage {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.5);
            margin-top: 8px;
        }

        /* Tap Hint */
        .tap-hint {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255, 255, 255, 0.3);
            font-size: 12px;
            letter-spacing: 2px;
            text-transform: uppercase;
            animation: pulse 2s ease-in-out infinite;
            pointer-events: none;
            z-index: 50;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }

        .tap-hint.hidden {
            display: none;
        }

        /* Missed Aarti Button */
        .missed-aarti-btn {
            background: rgba(212, 165, 116, 0.2);
            border: 1px solid var(--gold);
            color: var(--gold-light);
            padding: 12px 24px;
            border-radius: 30px;
            font-family: inherit;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
            display: none;
        }

        .missed-aarti-btn.visible {
            display: block;
        }

        .missed-aarti-btn:hover {
            background: var(--gold);
            color: var(--black);
        }

        /* Loading Spinner */
        .loading {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 500;
        }

        .loading.show {
            opacity: 1;
            visibility: visible;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-top-color: var(--gold);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Responsive */
        @media (max-width: 600px) {
            .audio-controls {
                padding: 12px 20px;
                gap: 15px;
            }

            .play-btn {
                width: 48px;
                height: 48px;
            }

            .aarti-name {
                font-size: 14px;
            }

            .settings-panel {
                max-width: 100%;
            }
        }

        /* Focus States for Accessibility */
        *:focus {
            outline: 2px solid var(--gold);
            outline-offset: 2px;
        }

        button:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.4);
        }
