* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-image: url('./assets/images/pandal.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.background-text {
    text-align: center;
    margin-top: 8vh; 
}

.background-text h1 {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 8rem; 
    color: #F8D64F; 
    line-height: 1.1;
    text-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.8), 
        0 0 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 0, 0, 0.4); 
}

/* --- Countdown Styling (Desktop Floating Text) --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px; 
    margin-top: 15px;
    animation: fadeIn 1.5s ease-in-out;
    flex-wrap: nowrap; 
    padding: 0 20px;
}

.time-box {
    background: transparent; 
    border: none; 
    padding: 5px 10px; 
    min-width: 60px; 
    text-align: center;
    box-shadow: none; 
    backdrop-filter: none; 
    transition: transform 0.3s ease;
}

.time-box:hover {
    transform: scale(1.05);
}

.time-box span {
    font-size: 2.2rem; 
    font-weight: bold;
    color: #fff;
    display: block;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.7);
}

.time-box p,
.time-box .label {
    font-size: 0.75rem; 
    color: #F8D64F;
    margin-top: 4px; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* --- Digital Slide & Glow Animation --- */
@keyframes slideAndGlow {
    0% { 
        transform: translateY(-15px) scale(0.9); 
        opacity: 0; 
        color: #F8D64F;
        text-shadow: 0 0 20px rgba(248, 214, 79, 0.8);
    }
    60% { 
        transform: translateY(3px) scale(1.05); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(0) scale(1); 
        color: #fff;
    }
}

.pulse-animate {
    animation: slideAndGlow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Bottom Container --- */
.bottom-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- Music Player Styling --- */
.player-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column; 
    align-items: center; 
    padding: 0 20px 20px 20px; 
}

.player-container {
    background: linear-gradient(90deg, #3d2a1f, #6d4223); 
    width: 100%;
    max-width: 700px; 
    border-radius: 40px; 
    padding: 15px 25px 15px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); 
    gap: 20px;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1; 
    min-width: 0; 
}

.album-art {
    width: 90px;
    height: 90px;
    background-color: #222; 
    border-radius: 25px; 
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.track-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    width: 100%;
    min-width: 0; 
}

.song-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.artist-name {
    font-size: 0.9rem;
    color: #d1bba8; 
    margin-bottom: 12px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.progress-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.progress {
    width: 0%; 
    height: 100%;
    background-color: white;
    border-radius: 3px;
}

.time-info {
    font-size: 0.8rem;
    color: #d1bba8;
}

.controls {
    display: flex;
    align-items: center;
    gap: 12px; 
    flex-shrink: 0; 
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s;
}

.control-btn:hover {
    transform: scale(1.1); 
}

.control-btn .material-symbols-rounded {
    font-size: 28px;
    font-variation-settings: 'FILL' 1; 
}

.play-btn {
    background-color: white;
    color: black;
    width: 55px;
    height: 55px;
    border-radius: 20px; 
}

.play-btn .material-symbols-rounded {
    font-size: 34px;
}

/* --- Footer Styling --- */
.site-footer {
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(5px);
    color: #d1bba8;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    position: relative; 
    min-height: 55px;
}

.visitor-counter {
    position: absolute; 
    left: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #F8D64F;
}

.visitor-counter .material-symbols-rounded {
    font-size: 18px;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #d1bba8;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: #F8D64F;
}

.footer-links a .material-symbols-rounded {
    font-size: 18px; 
}

.funky-text {
    font-style: italic;
    color: #a89f91;
    margin-right: -10px; 
    cursor: pointer;
}

/* --- Playlist Modal Styling --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #1a1618; 
    width: 90%;
    max-width: 600px;
    height: 80vh;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2px;
}

.modal-header button {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-header button:hover {
    color: #fff;
}

.modal-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.tab {
    background: none;
    border: none;
    color: #888;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
}

.tab.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.modal-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.modal-list {
    flex: 1;
    overflow-y: auto; 
    padding-right: 10px;
}

.modal-list::-webkit-scrollbar {
    width: 8px;
}
.modal-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 5px;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.track-number {
    color: #F8D64F;
    font-size: 0.9rem;
    width: 30px;
    font-weight: bold;
}

.track-img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background-color: #2a2528;
    margin-right: 15px;
    background-size: cover;
    background-position: center;
}

.track-text {
    flex: 1;
    min-width: 0;
}

.track-title-modal {
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.track-artist-modal {
    color: #888;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ========================================================= */
/* --- LEGAL PAGES (Privacy & Terms) STYLING ---             */
/* ========================================================= */
.legal-wrapper {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.legal-content {
    background-color: rgba(26, 22, 24, 0.9); 
    color: #d1bba8;
    width: 100%;
    max-width: 800px;
    padding: 40px 50px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.6;
}

.legal-content h1 {
    color: #F8D64F;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h2, .legal-content h3 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content ul {
    margin-bottom: 15px;
    color: #bbb;
    font-size: 1rem;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content a {
    color: #F8D64F;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: white;
    text-decoration: underline;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #F8D64F;
    color: #1a1618;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.back-home-btn:hover {
    transform: scale(1.05);
    color: #1a1618;
    text-decoration: none;
}


/* ========================================================= */
/* --- RESPONSIVE MEDIA QUERIES (TABLETS & MOBILE PHONES) -- */
/* ========================================================= */

@media (max-width: 768px) {
    .background-text h1 { font-size: 6rem; }
    
    .site-footer {
        flex-direction: column;
        gap: 15px;
        position: static; 
        text-align: center;
    }
    .visitor-counter {
        position: static;
    }
    
    .legal-content {
        padding: 30px 25px;
    }

    /* --- Single Line Digital Clock for Tablets & Phones --- */
    .countdown-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        max-width: 100%; 
        margin: 15px auto 0 auto;
        padding: 0;
    }
    
    .time-box {
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0; 
        min-width: 0; 
        border-radius: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .time-box:hover {
        transform: none; 
    }
    
    .time-box span:first-child { 
        font-size: 2.2rem; 
        line-height: 1; 
        text-shadow: 0 3px 8px rgba(0,0,0,0.9);
    }

    /* Adds a neat colon ":" between the numbers */
    .time-box:not(:last-child)::after {
        content: ":";
        color: #F8D64F;
        font-size: 2rem;
        font-weight: bold;
        margin-left: 12px;
        text-shadow: 0 3px 8px rgba(0,0,0,0.9);
    }
    
    /* Hides the Day, Hour, Minute, Second texts entirely */
    .time-box p, 
    .time-box .label,
    .time-box span:last-child { 
        display: none !important; 
    }

    /* Mobile Transparency Fix (Frosted Glass) */
    .player-container {
        background: rgba(20, 20, 20, 0.15) !important; 
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    }
}

@media (max-width: 650px) {
    .background-text h1 { font-size: 4rem; } 
    
    /* Shrinks the digital clock numbers a bit more for small phones */
    .time-box span:first-child { font-size: 1.6rem; }
    .time-box:not(:last-child)::after {
        font-size: 1.5rem;
        margin-left: 8px;
    }
    .countdown-container { gap: 8px; }

    .player-wrapper {
        padding: 0 12px 12px 12px;
    }
    .player-container {
        flex-direction: column;
        padding: 18px 15px; 
        gap: 15px; 
        border-radius: 25px;
    }
    .track-info {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 12px;
    }
    .album-art {
        width: 100px; 
        height: 100px;
        border-radius: 20px;
    }
    .song-title {
        white-space: normal; 
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        font-size: 1.15rem;
        line-height: 1.2;
    }
    .controls {
        width: 100%;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .control-btn .material-symbols-rounded {
        font-size: 26px; 
    }
    .play-btn {
        width: 50px;
        height: 50px;
    }
    .play-btn .material-symbols-rounded {
        font-size: 32px;
    }
    
    .modal-content {
        padding: 20px;
        height: 85vh;
        width: 95%;
    }
    .modal-tabs {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .site-footer {
        padding: 15px 10px;
    }
    .footer-links {
        flex-direction: row; 
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .legal-wrapper {
        padding: 20px 15px;
    }
    .legal-content {
        padding: 25px 20px;
        border-radius: 20px;
    }
    .legal-content h1 {
        font-size: 1.8rem;
    }
    .legal-content p, .legal-content ul {
        font-size: 0.95rem;
    }
}

/* --- ONLY Creator Modal Styling --- */
.creator-modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.creator-heading {
    font-size: 14px;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 25px;
}
.creator-card {
    background: #242424;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}
.creator-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 15px;
    border: 2px solid #F8D64F;
}
.creator-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}
.creator-socials {
    display: flex;
    gap: 12px;
}
.creator-socials a {
    background: #333;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.creator-socials a:hover {
    background: #F8D64F;
    color: #000;
}
.contact-section p {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
}
.email-box {
    background: #242424;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
#copy-email-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    transition: background 0.2s;
}
#copy-email-btn:hover {
    background: #F8D64F;
    color: #000;
}
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
}
.close-btn:hover {
    color: #fff;
}