[data-theme="dark"] {
    --bg-color: #0d0d11;
    --card-bg: #16161f;
    --text-color: #ffffff;
    --border-color: #222;
}
[data-theme="light"] {
    --bg-color: #f4f4f9;
    --card-bg: #ffffff;
    --text-color: #111116;
    --border-color: #dddddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

header h1 {
    color: #ff007f;
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.theme-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff007f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
}

.search-box input {
    width: 80%;
    max-width: 500px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #ff007f;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    margin-bottom: 20px;
}

.category-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cat-btn.active, .cat-btn:hover {
    background: #ff007f;
    color: white;
    border-color: #ff007f;
}

.tag-filter-container { margin-bottom: 30px; }
.tag-filter-btn { background: #222; border: 1px dashed #ff007f; color: #ff007f; padding: 5px 15px; border-radius: 5px; cursor: pointer; margin: 0 5px; font-weight: bold; }
.tag-filter-btn:hover { background: #ff007f; color: white; }

#content-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-8px); border-color: #ff007f; }

.shimmer-card {
    width: 340px;
    height: 250px;
    background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
    background-size: 200% 100%;
    animation: loadingShimmer 1.5s infinite;
    border-radius: 15px;
}
@keyframes loadingShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.trending-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff007f, #7209b7);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 10px;
}

.card h3 { margin-top: 35px; font-size: 18px; }
.star-rating { color: #ffb703; font-size: 14px; margin-bottom: 8px; }
.card-stats { display: flex; gap: 15px; font-size: 12px; color: #aaa; margin-bottom: 10px; }
.fav-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #555; font-size: 22px; cursor: pointer; }
.fav-btn.active { color: #ff007f; }

audio { width: 100%; margin: 10px 0; border-radius: 10px; }

/* विज़ुअलाइज़र वेव्स */
.visualizer { display: flex; justify-content: center; align-items: flex-end; height: 20px; gap: 3px; margin: 10px 0; }
.wave-bar { width: 4px; height: 5px; background-color: #ff007f; animation: bounce 0.8s ease infinite alternate; animation-play-state: paused; }
.wave-bar:nth-child(2n) { background-color: #4cc9f0; animation-duration: 0.5s; }
.wave-bar:nth-child(3n) { background-color: #7209b7; animation-duration: 0.6s; }
@keyframes bounce { 100% { height: 20px; } }

.button-group { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.row-btns { display: flex; gap: 10px; }

.download-btn { text-decoration: none; padding: 10px; border-radius: 8px; color: white; font-weight: bold; font-size: 14px; text-align: center; flex: 1; cursor: pointer; border: none; }
.audio-btn { background-color: #00b4d8; }
.video-btn { background-color: #7209b7; }
.whatsapp-btn { background-color: #25d366; color: white; font-weight: bold; border-radius: 8px; padding: 10px; text-decoration: none; text-align: center; }
.copy-btn { background-color: #333344; color: #ccc; font-weight: bold; border-radius: 8px; padding: 8px; border: 1px solid #444; cursor: pointer; text-align: center; }

.load-more-container { margin: 40px 0; }
.load-more-btn { background-color: var(--card-bg); color: var(--text-color); border: 2px solid #ff007f; padding: 12px 30px; font-size: 16px; font-weight: bold; border-radius: 25px; cursor: pointer; }

.cookie-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: #111; color: white; padding: 15px; display: flex; justify-content: space-around; align-items: center; z-index: 3000; font-size: 14px; }
.cookie-bar.hidden { display: none !important; }
.cookie-btn { background: #ff007f; color: white; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; }

footer { margin-top: 60px; padding: 30px 20px; background: #111116; color: #aaa; font-size: 13px; border-top: 1px solid #222; }
.footer-links a { color: #ff007f; text-decoration: none; font-weight: bold; margin: 0 5px; }
.disclaimer { max-width: 800px; margin: 15px auto; line-height: 1.6; color: #888; text-align: justify; }

.timer-countdown { font-size: 48px; font-weight: bold; color: #ff007f; margin: 20px 0; }
.modal { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); display:flex; justify-content:center; align-items:center; z-index:4000; }
.modal-content { background: #16161f; border: 2px solid #ff007f; padding:30px; border-radius:15px; max-width:500px; color:white; text-align:left; position: relative; }
.legal-content { max-height: 80% !important; overflow-y: auto; }
.modal.hidden { display: none !important; }
.close-modal { position: absolute; top: 10px; right: 15px; color: white; font-size: 28px; cursor: pointer; }

#scrollTopBtn { position: fixed; bottom: 70px; right: 20px; display: none; border: none; background-color: #ff007f; color: white; padding: 15px; border-radius: 50%; font-size: 18px; z-index: 99; }
.notification { position: fixed; bottom: 20px; left: 20px; background-color: #16161f; border-left: 4px solid #ff007f; padding: 12px 20px; border-radius: 8px; z-index: 1000; font-size: 14px; color: #fff; transition: all 0.5s; }
.notification.hidden { opacity: 0; transform: translateY(50px); pointer-events: none; }