/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header, main, footer {
    width: 100%;
    max-width: 900px; /* Constrain the main content width */
    padding: 20px;
}

/* --- Header & Footer --- */
header {
    background-color: #4CAF50; /* A friendly, inviting green */
    color: white;
    text-align: center;
    padding: 40px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    margin-bottom: 5px;
}

.subtitle {
    font-style: italic;
    opacity: 0.9;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    font-size: 0.9em;
    color: #666;
}

/* --- Intro Section (Cover Art & Text) --- */
.intro-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 20px 0;
}

#cover-art {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.intro-text h2 {
    color: #4CAF50;
    margin-top: 0;
}

/* --- Audio Player --- */
.podcast-player {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

#audio-player {
    width: 100%;
    margin-top: 10px;
}

#current-episode-title {
    font-weight: normal;
    color: #007bff; /* Highlight the title */
}

/* --- Episode List --- */
.episode-list-container h2 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

#episode-list {
    list-style: none;
    padding: 0;
}

#episode-list li {
    background-color: white;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    border-left: 5px solid #4CAF50; /* Accent color */
}

#episode-list li:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

#episode-list li.playing {
    background-color: #d4edda;
    border-left-color: #28a745;
    font-weight: bold;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
    .intro-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #cover-art {
        width: 100%;
        max-width: 200px;
        height: auto;
    }
}
