/* =========================
   Reset / Base
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f3f3;
    color: #333;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   Header / Banner / Navigation
========================= */

.site-header {
    background: #f3f3f3;
    border-bottom: 1px solid #d9d9d9;
    padding: 0 0 10px;
}

.header-banner {
    margin-bottom: 10px;
}

.header-banner a {
    display: block;
}

.header-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.header-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border-top: 1px solid #e4e4e4;
    padding-top: 8px;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav a {
    display: inline-block;
    padding: 8px 14px;
    color: #5d6f92;
    font-weight: normal;
    text-decoration: none;
    transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: #efefef;
    color: #ff5a00;
}

.header-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #ffffff;
    transition: 0.2s ease;
}

.header-social-link:hover {
    border-color: #b8860b;
    transform: translateY(-1px);
}

.header-social-link img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* =========================
   Main / Content
========================= */

.site-main {
    min-height: calc(100vh - 220px);
    padding: 22px 0 40px;
}

.page-head {
    text-align: center;
    margin-bottom: 24px;
}

.page-head h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: normal;
    color: #3f5f8c;
}

.page-head p {
    margin: 0;
    color: #666;
}

.page-head.page-head-left {
    text-align: left;
    margin-bottom: 18px;
}

.content-box {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    padding: 24px;
}

/* =========================
   Footer
========================= */

.site-footer {
    background: #f3f3f3;
    border-top: 1px dotted #bfbfbf;
    padding: 26px 0 40px;
    text-align: center;
    color: #5d6f92;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #5d6f92;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ff5a00;
}

.footer-copy {
    margin: 0;
    color: #5d6f92;
}

.footer-credit {
    margin-top: 26px;
    font-size: 0.8rem;
    color: #666;
}

/* =========================
   Biography
========================= */

.bio-layout {
    display: flex;
    align-items: flex-start;
    gap: 42px;
}

.bio-image {
    flex: 0 0 390px;
}

.bio-image img {
    display: block;
    width: 100%;
    height: auto;
}

.bio-text {
    flex: 1 1 auto;
    min-width: 0;
}

.bio-text p {
    margin: 0 0 14px;
    color: #333;
    line-height: 1.8;
}

/* =========================
   Gallery
========================= */

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    color: #5d6f92;
}

.back-link:hover {
    color: #ff5a00;
    border-color: #c7c7c7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.gallery-card {
    display: block;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    border-color: #cfcfcf;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f3f3f3;
}

.gallery-card-body {
    padding: 14px 16px 18px;
}

.gallery-card-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #3f5f8c;
    word-break: break-word;
}

.gallery-card-meta {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.image-item {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.image-item:hover {
    transform: translateY(-2px);
    border-color: #cfcfcf;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.image-item img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #f3f3f3;
}

.image-caption {
    padding: 10px 12px;
    color: #555;
    font-size: 0.92rem;
    text-align: center;
    word-break: break-word;
}

.empty-state {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #666;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    text-align: center;
}

.lightbox img {
    max-width: 95vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    margin-top: 12px;
    color: #ddd;
    word-break: break-word;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: #ffffff;
    color: #222;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================
   Discography
========================= */

.discography-wrap {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.discography-featured,
.discography-box {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.discography-featured {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.discography-featured-cover {
    flex: 0 0 320px;
    max-width: 320px;
}

.discography-featured-cover img,
.discography-card-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #f3f3f3;
}

.discography-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #f1f1f1;
    color: #777;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}

.discography-featured-body {
    flex: 1 1 auto;
    min-width: 0;
}

.discography-kicker {
    margin: 0 0 8px;
    color: #9a7a00;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.discography-title {
    margin: 0 0 12px;
    color: #222;
    line-height: 1.2;
}

.discography-title.featured {
    font-size: 2rem;
}

.discography-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.discography-badge {
    display: inline-block;
    padding: 6px 10px;
    background: #f7f1d7;
    color: #6f5700;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: bold;
}

.discography-text {
    margin: 0 0 16px;
    color: #444;
    line-height: 1.65;
}

.discography-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.discography-button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease;
}

.discography-button:hover {
    border-color: #b8860b;
    color: #b8860b;
}

.discography-button-primary {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

.discography-button-primary:hover {
    background: #9c7008;
    border-color: #9c7008;
    color: #fff;
}

.discography-section-title {
    margin: 0 0 14px;
    font-size: 1.4rem;
    color: #222;
}

.discography-section-intro {
    margin: 0 0 16px;
    color: #555;
    line-height: 1.65;
}

.discography-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.discography-filter-button {
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #222;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.discography-filter-button:hover,
.discography-filter-button.active {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

.discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.discography-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.discography-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    flex: 1 1 auto;
}

.discography-card-title {
    margin: 0;
    font-size: 1.08rem;
    color: #222;
    line-height: 1.35;
}

.discography-card-meta {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.discography-card-text {
    margin: 0;
    color: #444;
    line-height: 1.55;
    font-size: 0.95rem;
}

.discography-variants {
    margin: 0;
    padding-left: 18px;
    color: #444;
    font-size: 0.94rem;
    line-height: 1.55;
}

.discography-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
}

.soundcloud-embed {
    margin-top: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.soundcloud-embed iframe {
    display: block;
    width: 100%;
}

/* =========================
   Legal Pages
========================= */

.legal-page {
    line-height: 1.7;
    color: #333;
}

.legal-section + .legal-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e2e2;
}

.legal-section h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: #222;
}

.legal-section p {
    margin: 0 0 12px;
}

.legal-section a {
    color: #b8860b;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* =========================
   Utility
========================= */

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
    .header-nav-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-social-links {
        justify-content: flex-start;
    }

    .bio-layout {
        flex-direction: column;
    }

    .bio-image {
        flex: none;
        width: min(100%, 390px);
    }

    .discography-featured {
        flex-direction: column;
    }

    .discography-featured-cover {
        flex: none;
        max-width: 100%;
        width: min(100%, 420px);
    }

    .discography-title.featured {
        font-size: 1.6rem;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100%, calc(100% - 24px));
    }

    .site-main {
        padding: 18px 0 30px;
    }

    .page-head h2 {
        font-size: 1.6rem;
    }

    .main-nav {
        gap: 6px;
    }

    .main-nav a {
        padding: 7px 10px;
        font-size: 0.95rem;
    }

    .header-social-link {
        width: 34px;
        height: 34px;
    }

    .header-social-link img {
        width: 18px;
        height: 18px;
    }

    .gallery-card img,
    .image-item img {
        height: 210px;
    }

    .content-box,
    .discography-featured,
    .discography-box {
        padding: 18px;
    }
}