﻿/* ======================================================
   Music Page Styles (music.css)
   Hero, show rows with poster modal
   ====================================================== */

/* --- Hero with background image --- */
.music-hero {
    min-height: 460px;
    display: flex;
    align-items: end;
    background: linear-gradient(90deg, rgba(8,21,27,.86), rgba(8,21,27,.3)),
                url('assets/ots-band2.jpg') center / cover no-repeat;
    color: #fff;
}

.music-hero-inner {
    padding: 55px 22px;
    max-width: 1160px;
    margin: auto;
    width: 100%;
}

.music-hero h1 {
    font-size: clamp(36px, 5vw, 52px);
    margin: 0 0 12px;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.music-hero p {
    max-width: 500px;
    color: rgba(255,255,255,.85);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* --- Intro --- */
.music-intro {
    padding: 20px 0 40px;
}

.music-intro p {
    max-width: 700px;
    font-size: 15px;
    line-height: 1.8;
    color: #53615f;
}

/* --- Shows Section --- */
.shows-section {
    padding: 20px 0 60px;
}

.shows-section .wrap {
    max-width: 1160px;
    margin: auto;
    padding: 0 22px;
}

.shows-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin: 0 0 8px;
    color: var(--navy);
    font-weight: 900;
}

.shows-heading p {
    max-width: 600px;
    font-size: 14px;
    line-height: 1.7;
    color: #53615f;
    margin: 0 0 40px;
}

/* --- Show List with dividers --- */
.show-list {
    border-top: 1px solid var(--line);
}

/* Each show row */
.show-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    border-bottom: 1px solid var(--line);
}

.show-row:hover {
    background: #fafaf8;
}

/* Small poster thumbnail — clickable */
.show-poster {
    width: 140px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    aspect-ratio: 4 / 5;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s;
}

.show-poster:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.show-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s;
}

.show-poster:hover img {
    transform: scale(1.05);
}

.poster-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    letter-spacing: 0.05em;
}

.show-poster:hover .poster-hint {
    opacity: 1;
}

/* Text content */
.show-body {
    flex: 1;
}

.show-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.show-day {
    font-size: 11px;
    font-weight: 900;
    color: var(--wine);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.show-time {
    font-size: 12px;
    font-weight: 700;
    color: #8a9592;
}

.show-body h3 {
    font-size: 20px;
    margin: 0 0 4px;
    color: var(--navy);
    font-weight: 900;
}

.show-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #62706d;
    margin: 0 0 12px;
}

.show-book {
    font-size: 13px;
    font-weight: 700;
    color: var(--wine);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    display: inline-block;
}

.show-book:hover {
    border-color: var(--wine);
}

/* Bottom note */
.shows-note {
    margin-top: 40px;
    padding: 24px;
    background: #f6f4ee;
    border-radius: 8px;
    text-align: center;
}

.shows-note p {
    font-size: 14px;
    color: #53615f;
    margin: 0 0 14px;
}

.shows-note .action {
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 800;
}

/* --- Poster Modal --- */
.poster-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.poster-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,.3);
}

/* --- Responsive --- */
@media (max-width: 720px) {
    .music-hero {
        min-height: 360px;
    }

    .show-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 20px;
    }

    .show-poster {
        width: 100%;
        height: auto;
    }

    .modal-close {
        top: -44px;
        right: 0;
    }

    .shows-note {
        padding: 20px;
    }
}