/* THE MAIN DASHBOARD WRAPPER */
.book-experience-module {
    display: flex;
    
    /* Pushes tiles and button to the bottom */
    align-items: flex-end; 
    
    justify-content: space-between;
    background: rgba(0, 10, 20, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    
    max-width: 900px;
    margin: 15px auto 30px;

    /* INCREASED TOP PADDING (220px) to make room for the text header */
    padding: 220px 25px 30px 25px; 

    gap: 25px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.05);
    position: relative; /* Essential for the text header to stay at the top */
}

/* THE TEXT HEADER INSIDE THE WRAPPER */
.module-header {
    position: absolute;
    top: 35px; /* Distance from the very top of the dark box */
    left: 0;
    right: 0;
    text-align: center;
    padding: 0 40px;
}

.module-header h4 {
    font-family: 'Cinzel', serif;
    color: #00ffff;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.module-header p {
    font-family: 'Georgia', serif;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 5px 0;
}

.module-header .quote {
    color: #00ffff;
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.8;
}

.module-header hr {
    border: 0;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    width: 70%;
    margin: 20px auto;
}

/* THE GRID HOLDING THE 4 TILES */
.mini-gallery-container {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* INDIVIDUAL CHARACTER TILES */
.mini-tile {
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
    transition: 0.3s;
}

.mini-tile img { 
    width: 100%; 
    display: block; 
    filter: brightness(0.6); 
    transition: 0.3s; 
}

.mini-tile:hover img { filter: brightness(0.9); }
.mini-tile:hover { border-color: #00ffff; transform: translateY(-3px); }

/* THE CHAPTER LABELS */
.tile-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #00ffff;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    text-align: center;
    padding: 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* GLOW STATE WHEN AUDIO IS PLAYING */
.playing {
    border-color: #00ffff !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}
.playing img { filter: brightness(1); }

/* BUY BUTTON SIDE */
.buy-button-zone { 
    flex-shrink: 0; 
    text-align: center; 
}

.buy-button-zone img { 
    width: 130px; 
    transition: 0.3s; 
}

.buy-button-zone img:hover { 
    transform: scale(1.08); 
    filter: drop-shadow(0 0 12px #00ffff); 
}