:root {
    --primary: #1c0632;
    --secondary: #3a155a;
    --light: #f0f6ff;
    --dark: #262b47;

    --glass-bg: #28064b;
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --primary-color: #4b0082;
    --secondary-color: #6a0dad;
    --text-color: #ffffff;
    --text-color-dark: #d0cfd3;
}

body {
    /* Removed absolute positioning to allow normal document flow */
    font-family: Arial, sans-serif;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #fff; /* Added a default background */
}

#podcast {
    height: 30vh;
    background: url(../assets/img/bg-circle.png), url(../assets/img/bg-triangle.png),
        url(../assets/img/bg-bottom.png),
        linear-gradient(to bottom right, var(--primary), var(--secondary));
    background-position: left 0px top 0px, right 0px top 50%, center bottom;
    background-repeat: no-repeat;
}

/* #podcast-list {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
} */

/* .podcast {
    display: flex;
    align-items: center;
    background: #4b0082;
    padding: 15px;
    border-radius: 28px;
    margin: 10px;
    cursor: pointer;
    width: 80%;
    height: 250px;
    transition: transform 0.2s ease;
} */

.podcast:hover {
    transform: scale(1.05);
}

.podcast img {
    width: 214px;
    border-radius: 10px;
    margin-right: 15px;
}

.details {
    text-align: left;
}

.title {
    color: white;
    font-size: 27px;
    font-weight: bold;
}

.date,
.duration {
    font-size: 14px;
    opacity: 0.8;
}

.address {
    text-align: start;
}

@media (max-width: 680.98px) {
    .podcast {
        display: flex;
        align-items: center;
        background: #4b0082;
        padding: 15px;
        border-radius: 8px;
        margin: 10px;
        cursor: pointer;
        width: 95%;
        max-width: 600px;
        height: 130px;
        transition: transform 0.2s ease;
    }

    .podcast img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        margin-right: 15px;
    }

    .title {
        color: white;
        font-size: 18px;
        font-weight: bold;
    }
}
/* --- Loading Modal --- */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.loading-modal.show {
    display: flex;
    opacity: 1;
}

.loading-modal-content {
    background: #28064b; /* Using a specific glass background color */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 3rem;
    border-radius: 16px;
    text-align: center;
    color: #ffffff;
    width: 90%;
    max-width: 400px;
}

.loading-modal-content h3 {
    margin-bottom: 1.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4b0082, #6a0dad);
    border-radius: 5px;
    transition: width 0.2s ease-out;
}

#progressText {
    font-weight: 600;
}


/* --- Podcast List Container --- */
#podcast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem; /* Adjusted gap */
    padding: 1rem;
    width: 100%;
    max-width: 1200px; /* Added max-width for better layout on large screens */
    margin: 0 auto;
}

/* --- Individual Podcast Card --- */
.podcast {
    display: flex;
    align-items: center;
    background: #4b0082; /* Solid purple background as requested */
    padding: 15px;
    border-radius: 28px;
    margin: 0; /* Margin is handled by the grid gap */
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.podcast:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.podcast img {
    width: 120px; /* Adjusted size for a better grid fit */
    height: 120px;
    object-fit: cover;
    border-radius: 18px; /* Softer radius */
    margin-right: 15px;
    flex-shrink: 0;
}

.podcast .details {
    text-align: left;
    color: #ffffff;
}

.podcast .title {
    color: white;
    font-size: 1.5rem; /* Adjusted for better readability */
    font-weight: bold;
    line-height: 1.3;
}

.podcast .date,
.podcast .duration {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    #podcast-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680.98px) {
    .podcast {
        padding: 15px;
        border-radius: 20px;
        height: auto; /* Allow height to be flexible */
    }

    .podcast img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        margin-right: 15px;
    }

    .podcast .title {
        font-size: 1.1rem;
    }
}
