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

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Hind', 'Noto Sans Devanagari', sans-serif;
    overflow: hidden;
    color: #fff;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1) saturate(1.2);
    animation: breathe 30s ease-in-out infinite alternate;
}

@keyframes breathe {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 30px 20px;
}

.title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

.content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.quotes-container {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    padding: 20px;
    width: 100%;
    max-width: 80%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quotes-container p {
    position: absolute;
    opacity: 1;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    width: 100%;
}

.quotes-container.fade p {
    opacity: 0;
    transform: translateY(-10px);
}

.modern-btn {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(40, 20, 20, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 10px 25px;
    color: white;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.modern-btn:hover {
    background: rgba(60, 30, 30, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.modern-btn:active, .modern-btn.active {
    background: rgba(80, 40, 40, 0.6);
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.modern-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.btn-text-primary {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-text-secondary {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.7;
}

/* Player section */
.player {
    padding: 20px 0 40px;
    display: flex;
    justify-content: center;
}

.player-inner {
    background: rgba(40, 20, 20, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.song-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    flex: 1;
}

.album-art {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: url('assets/images/bg.png') center/cover;
    position: relative;
    animation: spin 8s linear infinite;
    animation-play-state: paused;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.album-art.playing {
    animation-play-state: running;
}

.album-art .inner-circle {
    width: 20px;
    height: 20px;
    background: #111;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #333;
}

.song-details {
    overflow: hidden;
}

.song-details h2 {
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.song-details p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.controls-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: -5px;
}

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

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.control-btn svg {
    width: 24px;
    height: 24px;
}

.play-pause-btn {
    background: white;
    color: #111;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    opacity: 1;
}

.play-pause-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

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

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 2.8rem; margin-top: 50px; }
    
    .top-bar { padding: 0 15px; font-size: 0.8rem; top: 15px; }
    
    .modern-btn {
        top: 45%;
        left: 20px;
        transform: translateY(-50%);
        padding: 8px 18px;
        gap: 12px;
    }
    .modern-btn .icon svg { width: 20px; height: 20px; }
    .btn-text-primary { font-size: 1rem; }
    .btn-text-secondary { font-size: 0.75rem; }
    
    .modern-btn:hover {
        transform: translateY(-50%) scale(1.05);
    }
    
    .modern-btn:active, .modern-btn.active {
        transform: translateY(-50%) scale(0.95);
    }

    .quotes-container {
        font-size: 1.5rem;
        top: 25%;
        width: 95%;
    }
    
    .player-inner {
        flex-direction: column;
        border-radius: 25px;
        padding: 15px;
        gap: 12px;
        width: 95%;
    }
    
    .song-info {
        width: 100%;
    }
    .song-details h2 { max-width: 250px; }
    
    .controls-container {
        width: 100%;
    }

    .playlist-container {
        width: 95%;
        height: 80vh;
    }
    .playlist-container::before {
        font-size: 70px;
    }
    .playlist-item {
        padding: 10px 15px;
        gap: 10px;
    }
    .playlist-item .track-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .playlist-item .track-artist {
        text-align: left;
        font-size: 0.75rem;
    }
}

/* Noise Overlay */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Splash Screen */
.splash-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.splash-title {
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.splash-subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.start-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}

.start-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.start-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Top Bar */
.top-bar {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.8;
}
.status-display {
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-display .dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #4ade80;
}

/* Playlist Overlay */
.playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}
.playlist-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.playlist-container {
    width: 90%;
    max-width: 650px;
    height: 70vh;
    background: rgba(30, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.playlist-container::before {
    content: "बस वाला";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 150px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
}
.playlist-list {
    list-style: none;
    overflow-y: auto;
    padding: 10px 0;
    z-index: 1;
    flex-grow: 1;
}
.playlist-list::-webkit-scrollbar {
    width: 6px;
}
.playlist-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.playlist-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 15px;
}
.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.playlist-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid white;
}
.playlist-item .track-num {
    opacity: 0.5;
    font-size: 0.9rem;
    width: 20px;
}
.playlist-item .track-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.playlist-item .track-title {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}
.playlist-item .track-artist {
    opacity: 0.6;
    font-size: 0.85rem;
    white-space: nowrap;
    text-align: right;
}
