/* Full CSS to match the latest HTML layout */
/* ---------- Global Styles ---------- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #dcd2c5, #f8f4ef);
    color: #333;
}

header {
    display: flex;
    justify-content: center;
    background-color: transparent;
    padding: 0;
}

.header-image {
    width: 100%;
    height: auto;
    max-width: 1200px;
}

hr {
    border: none;
    border-top: 1px solid #6e6255;

    /* deep stone/brown tone */
    width: 90%;
    margin: 10px auto;
    opacity: 0.7;
}

.intro-section {
    display: flex;
    justify-content: center;
    padding: 20px 20px;
}

.intro-container {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    max-width: 1140px;
    width: 100%;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
    .intro-container {
        padding: 20px;
        font-size: 0.95rem;
    }

    .intro-container h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .playlist-title {
        font-size: 1.4rem;
    }

    .playlist-description {
        font-size: 0.95rem;
    }
}

/* ---------- Navigation Styles ---------- */
.top-nav {
    display: flex;
    justify-content: center;
    background: transparent;
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
}

.top-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: #f0f0f0;
    padding: 0;
    margin: 10px auto;
    border-radius: 8px;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
}

.top-nav ul li {
    margin: 0;
}

.top-nav ul li a {
    display: block;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.top-nav ul li a:hover,
.top-nav ul li a:focus {
    background-color: #ddd;
    outline: none;
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform 1s ease;
}

/* ---------- Back to Top Button ---------- */
#backToTop {
    font-size: 24px;
    line-height: 0;
    padding: 12px 16px;
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease;
}

#backToTop:hover,
#backToTop:focus {
    background-color: #005fa3;
    outline: none;
}

/* ---------- Carousel Layout ---------- */
.carousel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- Playlist Background Wrappers ---------- */
.playlist-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 16px;
}

.playlist-wrapper:not(:last-child) {
    margin-bottom: 20px;
}

.soft-portrait {
    background-color: #f5ece4;

    /* soft parchment / warm light grey tone */
}

.light-blue {
    background-color: #d9ecf2;
}

.pale-yellow {
    background-color: #fff7d6;
}

.soft-green {
    background-color: #e4f7e0;
}

.light-grey {
    background-color: #f0f0f0;
}

.lavender {
    background-color: #e9e5f6;
}

.soft-purple {
    background-color: #ede4f9;

    /* soft pastel purple */
}

/* ---------- Playlist Row Layout ---------- */
.playlist-row {
    width: 100%;
    max-width: 1200px;
    height: 320px;
    display: flex;
    margin: 0 auto;
    overflow: hidden;
}

/* ---------- Playlist Image Defaults ---------- */
.playlist-image {
    width: 180px;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
}

.playlist-wrapper.reverse .playlist-image {
    margin-right: 0;

    /* was 10px */
    border-radius: 0 8px 8px 0;
}

.playlist-wrapper:not(.reverse) .playlist-image {
    margin-left: 0;

    /* was 10px */
    border-radius: 8px 0 0 8px;
}

.podcast-image {
    width: 570px;
}

.playlist-image:hover {
    filter: brightness(1.1);
    cursor: pointer;
    transform: scale(1.02);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.playlist-info {
    flex-grow: 1;
    position: relative;
    z-index: 2;
    isolation: isolate;

    /* NEW: ensures stacking works for pseudo-elements */
    display: flex;
    flex-direction: column;

    /* STACK elements vertically */
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);

    /* ENHANCED for better visibility */
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.play-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    font-size: 1.5rem;
    padding: 6px 10px;
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 600px) {
    .playlist-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .play-overlay {
        position: static;
        font-size: 2rem;
        background: rgba(0,0,0,0.6);
        border-radius: 50%;
        padding: 12px 14px;
    }
}

.playlist-info::before,
.playlist-info::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 0;
}

.playlist-info::after {
    background-color: rgba(0, 0, 0, 0.4);

    /* universal dark tint */
    z-index: 1;
}

.pit-overlay::after {
    background-color: rgba(0, 0, 0, 0.0);

    /* lighter overlay */
}

.oo-bg::before {
    background-image: url('../images/lists/bg-oo-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.music-bg::before {
    background-image: url('../images/lists/bg-music-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.pit-bg::before {
    background-image: url('../images/lists/bg-pit-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.nw-bg::before {
    background-image: url('../images/lists/bg-nw-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.m4r-bg::before {
    background-image: url('../images/lists/bg-m4r-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.tr-bg::before {
    background-image: url('../images/lists/bg-tr-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.ee-bg::before {
    background-image: url('../images/lists/bg-ee-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.so-bg::before {
    background-image: url('../images/lists/bg-so-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.pod-bg::before {
    background-image: url('../images/lists/bg-pod-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.playlist-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.playlist-description {
    font-size: 1rem;
    font-weight: normal;
    max-width: 90%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    line-height: 1.4;
}

.playlist-info .playlist-title,
.playlist-info .playlist-description {
    position: relative;
    z-index: 2;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 1);
}

/* ---------- Reverse Layout (Alternating Rows) ---------- */
.reverse .playlist-row {
    flex-direction: row-reverse;
}

.reverse .playlist-info {
    border-radius: 8px 0 0 8px;
}

/* ---------- Podcast Row Styling ---------- */
.podcast-row .playlist-info {
    background-color: rgba(10, 20, 40, 0.6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-style: italic;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* --- Frankenstein block --- */
.steel-blue {
    background-color: #c7d4e1;
}

/* soft steel-blue band */
.frank-bg::before {
    background-image: url('../images/lists/bg-frank-hsl.jpg');
    background-size: cover;
    background-position: center;
}

.frank-bg::after {
    background-color: rgba(0,0,0,0.45);

    /* slight dark tint for readability */
}

.frank-bg .playlist-title {
    font-family: "Merienda", Georgia, serif;
    font-size: 2rem;
}

.frank-bg .playlist-description {
    font-size: 1rem;
    line-height: 1.45;
}

.frank-image {
    width: 570px;
}

/* or 520–600 to taste */
/* ---------- Mobile-Friendly Adjustments ---------- */
@media (max-width: 600px) {
    .top-nav ul {
        flex-direction: column;
        align-items: center;
        max-width: 90%;
    }

    .top-nav ul li a {
        padding: 12px;
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    .playlist-row {
        flex-direction: column;
        height: auto;
    }

    .playlist-wrapper:not(.reverse) .playlist-image,
    .playlist-wrapper:not(.reverse) .podcast-image {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0;
    }

    .playlist-wrapper.reverse .playlist-image,
    .playlist-wrapper.reverse .podcast-image {
        width: 100%;
        height: 200px;
        border-radius: 0 0 8px 8px;
    }

    .playlist-info {
        border-radius: 0 0 8px 8px;
        padding: 20px;
        text-align: center;
    }

    .reverse .playlist-row {
        flex-direction: column;
    }
}

footer {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
    background: transparent;
    max-width: 1200px;
    margin: 0 auto;
}

footer .copyright {
    margin-left: 10px;
    font-size: 0.9rem;
    color: #555;
}

.trailer-section {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.trailer-container {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    max-width: 960px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.trailer-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;

    /* maintains 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}