   :root {
    /* Light Theme Colors */
    --bg-page: #f8f9fa;       /* Very light gray for the page background */
    --bg-card: #ffffff;       /* Pure white for the cards */
    --text-main: #1f2937;     /* Dark gray/black for main text */
    --text-muted: #6b7280;    /* Medium gray for author/stats */
    --primary-blue: #007bff;  /* Vibrant blue for play button & waveform */
    --primary-hover: #0056b3;
    --border-card: #e5e7eb;   /* Light gray border for cards */
    
    /* Tag Colors */
    --tag-bg: #f3f4f6;
    --tag-border: #d1d5db;
    --tag-text: #4b5563;
    
    /* Button Colors */
    --btn-dl-text: #059669;   /* Emerald Green text */
    --btn-dl-bg: #ecfdf5;     /* Very light green bg */
    --btn-dl-border: #6ee7b7; /* Light green border */
    
    --btn-more-text: #0284c7;   /* Ocean Blue text */
    --btn-more-bg: #f0f9ff;     /* Very light blue bg */
    --btn-more-border: #bae6fd; /* Light blue border */

    /* Shadows & Fonts */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius-card: 16px;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

/* Layout */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography & Headers */
h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 25px 0 20px;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-card);
    padding-bottom: 10px;
}

.seo-intro p, .no-results {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    text-align: center;
}

/* --- RESPONSIVE GRID SYSTEM --- */
.ringtone-list {
    display: grid;
    /* Adapts perfectly to mobile and desktop */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
}

/* Individual Ringtone Card (White UI) */
.ringtone {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.ringtone:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #cbd5e1;
}

/* Details Section */
.details {
    margin-bottom: 15px;
}

.ringtone-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.ringtone-title a {
    color: var(--text-main);
}

.ringtone-title a:hover {
    color: var(--primary-blue);
}

/* Author Text */
.ringtone-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ringtone-author span {
    color: #9ca3af;
}

.ringtone-author a {
    color: var(--text-main);
    font-weight: 500;
}

/* Tags Styling (Light Pills) */
.ringtone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.ringtone-tags a {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: var(--tag-bg);
    color: var(--tag-text);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--tag-border);
}

.ringtone-tags a:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

/* Audio Player Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}


.audio-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}


.hidden-audio {
    display: none;
}

/* Round Blue Play Button */
.custom-play-btn {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.custom-play-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Waveform Animation */
.waveform-container {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 35px;
    flex-grow: 1;
}

.waveform-container .bar {
    width: 3px;
    background-color: #93c5fd; /* Light blue default */
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.waveform-container.active .bar {
    background-color: var(--primary-blue); /* Turns solid blue when playing */
    animation: waveBounce 1s infinite ease-in-out;
}

@keyframes waveBounce {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1.2); }
}

/* Plays & Downloads Text */
.time {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- ACTION BUTTONS (Full width stacked layout like screenshot) --- */
.download-button {
    width: 100%;
    margin-bottom: 10px;
}

.dl-btn, .more-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Download Button (Light Green UI) */
.dl-btn {
    color: var(--btn-dl-text);
    background-color: var(--btn-dl-bg);
    border: 1px solid var(--btn-dl-border);
}

.dl-btn:hover {
    background-color: #d1fae5;
    border-color: #10b981;
    transform: translateY(-1px);
}

/* More Ringtones Button (Light Blue UI) */
.more-link {
    color: var(--btn-more-text);
    background-color: var(--btn-more-bg);
    border: 1px solid var(--btn-more-border);
}

.more-link:hover {
    background-color: #e0f2fe;
    border-color: #38bdf8;
    transform: translateY(-1px);
}

/* Fallback Meta Data */
.song-meta-data {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 10px 0;
}

.song-meta-data div { margin-bottom: 5px; }
.song-meta-data span { font-weight: 600; color: var(--text-main); }

/* --- RECENT ALBUMS GRID --- */
.recent-albums-wrap {
    margin: 40px 0 20px;
    padding: 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}

.recent-albums-wrap h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-card);
    padding-bottom: 8px;
    font-weight: 600;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.recent-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-main);
}

.recent-item img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.recent-item:hover img {
    transform: scale(1.05);
}

.recent-item span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin: 30px 0;
    padding: 24px;
    background: #ffffff;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
}

p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.album-art {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-card);
}
