/* =============================================================================
   Member Detail Page — 2026 Redesign
   Dark theme with accent red (#dc2626), matches site-wide design system
   ============================================================================= */

/* --- Layout --- */
.member-detail {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(6rem, 10vw, 10rem) 1.5rem clamp(3rem, 6vw, 6rem);
}

.member-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, rgba(255,255,255,0.5));
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.2s, gap 0.2s;
}

.member-back:hover {
    color: var(--accent-red, #dc2626);
    gap: 0.75rem;
}

/* =============================================================================
   ENHANCED HERO SECTION
   ============================================================================= */

.member-hero-section {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.95) 0%, rgba(30, 30, 38, 0.9) 50%, rgba(220, 38, 38, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Parallax background (CSS only) */
.member-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.member-hero-bg::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(220, 38, 38, 0.04) 0%, transparent 60%);
    animation: heroParallaxDrift 20s ease-in-out infinite alternate;
}

@keyframes heroParallaxDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 2%) scale(1.04); }
}

.member-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: start;
}

/* Photo wrapper */
.member-photo-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: box-shadow 0.4s ease;
}

.member-photo-wrapper:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 20px rgba(220, 38, 38, 0.1);
}

.member-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.15) contrast(1.05);
    transition: filter 0.4s ease, transform 0.6s ease;
}

.member-photo-wrapper:hover img {
    filter: brightness(1.25) contrast(1.1);
    transform: scale(1.03);
}

.member-photo-wrapper .photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(60, 60, 75, 0.9) 100%);
}

.member-photo-wrapper .photo-placeholder svg {
    width: 72px;
    height: 72px;
    opacity: 0.25;
}

/* Memorial ribbon for deceased members */
.member-hero-section--memorial {
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.97) 0%, rgba(25, 20, 22, 0.95) 50%, rgba(220, 38, 38, 0.06) 100%);
}

.member-hero-section--memorial .member-photo-wrapper {
    border-color: rgba(220, 38, 38, 0.15);
}

.member-memorial-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.25), rgba(220, 38, 38, 0.15));
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(8px);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.member-memorial-ribbon .ribbon-cross {
    font-size: 1rem;
    color: var(--accent-red, #dc2626);
    opacity: 0.7;
}

.member-memorial-ribbon .ribbon-dates {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Name and role --- */
.member-info {
    padding-top: 0.5rem;
}

.member-info h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    margin: 0 0 0.4rem;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-info .member-role-display {
    font-size: 1.0625rem;
    color: var(--accent-red, #dc2626);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

/* --- Founder badge --- */
.member-founder-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 4px;
    font-size: 0.6875rem;
    color: var(--accent-red, #dc2626);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* --- Years active badge --- */
.member-years-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.member-years-badge .badge-icon {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* --- Deceased marker --- */
.deceased-marker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: 8px;
    color: var(--accent-red, #dc2626);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.deceased-marker .dagger {
    font-weight: bold;
    font-size: 1rem;
}

/* --- Meta info --- */
.member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.member-meta-item {
    font-size: 0.875rem;
    color: var(--text-secondary, rgba(255,255,255,0.5));
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.member-meta-item .meta-icon {
    opacity: 0.6;
}

/* --- Instruments --- */
.instruments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruments-list li {
    padding: 0.35rem 0.85rem;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s;
}

.instruments-list li:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.2);
}

/* =============================================================================
   Tab Bar
   ============================================================================= */

.member-tabs {
    margin-top: 0;
    margin-bottom: 2rem;
}

.member-tab-list {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-tab-list [role="tab"] {
    position: relative;
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255,255,255,0.5));
    font-size: 0.9375rem;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

.member-tab-list [role="tab"]:hover {
    color: rgba(255, 255, 255, 0.85);
}

.member-tab-list [role="tab"][aria-selected="true"] {
    color: #fff;
}

.member-tab-list [role="tab"][aria-selected="true"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--accent-red, #dc2626);
    border-radius: 3px 3px 0 0;
}

.member-tab-list [role="tab"]:focus-visible {
    outline: 2px solid var(--accent-red, #dc2626);
    outline-offset: -2px;
    border-radius: 4px;
}

/* --- Tab panels --- */
.member-tab-panel {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.member-tab-panel.is-active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   BIOGRAPHY TAB — Enhanced Typography
   ============================================================================= */

.member-biography {
    margin-bottom: 3rem;
}

.member-biography h2,
.member-section h2 {
    font-size: 1.4rem;
    margin: 0 0 1rem;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.member-biography .bio-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary, rgba(255,255,255,0.75));
}

.member-biography .bio-text p {
    margin: 0 0 1.25rem;
}

/* Drop cap on first paragraph */
.member-biography .bio-text p:first-child::first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 0.8;
    padding-right: 0.1em;
    margin-top: 0.05em;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    font-weight: 700;
    color: var(--accent-red, #dc2626);
}

/* Collapsible "Read more" for long bios */
.bio-text--collapsed {
    max-height: 20rem;
    overflow: hidden;
    position: relative;
}

.bio-text--collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to bottom, transparent, var(--color-bg-base, #141416));
    pointer-events: none;
}

.bio-text--expanded {
    max-height: none;
    overflow: visible;
}

.bio-text--expanded::after {
    display: none;
}

.bio-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.4rem 1rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 6px;
    color: var(--accent-red, #dc2626);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s, border-color 0.2s;
}

.bio-toggle-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
}

.bio-toggle-btn .toggle-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.bio-toggle-btn[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}

/* Career section */
.member-section {
    margin-bottom: 2.5rem;
}

.member-section ul {
    padding-left: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary, rgba(255,255,255,0.7));
}

.member-section ul li {
    margin-bottom: 0.5rem;
}

/* =============================================================================
   DISCOGRAPHY TAB — Enhanced Grid
   ============================================================================= */

.member-discography-heading {
    font-size: 1.1rem;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.member-discography-heading--other {
    margin-top: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.member-discography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.member-discography-grid--dimmed {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.member-discography-grid--dimmed:hover {
    opacity: 0.8;
}

.member-album-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.member-album-card:hover {
    transform: translateY(-6px);
}

.member-album-cover {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.6rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.member-album-card:hover .member-album-cover {
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Track count badge on cover */
.member-album-cover .album-track-badge {
    position: absolute;
    bottom: 0.4rem;
    right: 0.4rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.member-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.member-album-card:hover .member-album-cover img {
    transform: scale(1.05);
}

.member-album-cover .album-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0.15;
}

.member-album-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    line-height: 1.3;
    color: #fff;
}

.member-album-year {
    font-size: 0.75rem;
    color: var(--text-secondary, rgba(255,255,255,0.45));
}

.member-tab-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-secondary, rgba(255,255,255,0.4));
    font-size: 0.9375rem;
}

/* --- Gallery tab --- */
.member-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.member-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.member-gallery-item:hover {
    transform: scale(1.03);
    border-color: rgba(220, 38, 38, 0.3);
}

.member-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================================================
   CONTRIBUTION TIMELINE
   ============================================================================= */

.member-contribution-timeline {
    margin: 3rem 0;
    padding: 2rem 0;
}

/* Override generic timeline styles from components.css that hide events with opacity:0 */
.member-contribution-timeline .timeline-event {
    opacity: 1;
    transform: none;
    width: auto;
    left: auto;
    padding: 0;
    justify-content: flex-start;
}

.member-contribution-timeline h2 {
    font-size: 1.4rem;
    margin: 0 0 2rem;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.contribution-timeline {
    position: relative;
    padding-left: 2rem;
}

/* Vertical connecting line */
.contribution-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(220, 38, 38, 0.4),
        rgba(220, 38, 38, 0.15) 40%,
        rgba(220, 38, 38, 0.15) 60%,
        rgba(220, 38, 38, 0.05)
    );
}

.timeline-event {
    position: relative;
    padding-bottom: 1.75rem;
    padding-left: 1.25rem;
}

.timeline-event:last-child {
    padding-bottom: 0;
}

/* Dot */
.timeline-event::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.35rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-bg-base, #141416);
    border: 2px solid rgba(220, 38, 38, 0.5);
    z-index: 1;
    transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.timeline-event:hover::before {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--accent-red, #dc2626);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

/* Special dot for key events */
.timeline-event--highlight::before {
    background: var(--accent-red, #dc2626);
    border-color: var(--accent-red, #dc2626);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

.timeline-event--memorial::before {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.6);
}

.timeline-event__year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-red, #dc2626);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    font-size: 1rem;
}

.timeline-event__content {
    font-size: 0.9375rem;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    line-height: 1.5;
}

.timeline-event__content a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
    transition: border-color 0.2s, color 0.2s;
}

.timeline-event__content a:hover {
    color: #fff;
    border-color: var(--accent-red, #dc2626);
}

/* =============================================================================
   RELATED MEMBERS (Other Band Members)
   ============================================================================= */

.related-members {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-members h2 {
    font-size: 1.4rem;
    margin: 0 0 1.5rem;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.related-members-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 38, 38, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
}

.related-members-scroll::-webkit-scrollbar {
    height: 4px;
}

.related-members-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.related-members-scroll::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.3);
    border-radius: 2px;
}

.related-member-card {
    flex: 0 0 140px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: transform 0.25s ease;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    transition: transform 0.25s ease, background 0.25s, border-color 0.25s;
}

.related-member-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.related-member-card--deceased {
    opacity: 0.8;
}

.related-member-card .related-photo {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.related-member-card:hover .related-photo {
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 16px rgba(220, 38, 38, 0.15);
}

.related-member-card .related-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-member-card .related-photo__deceased-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.8);
    border-radius: 50%;
    font-size: 0.625rem;
    color: #fff;
    font-weight: bold;
    border: 2px solid var(--color-bg-base, #141416);
}

.related-member-card .related-name {
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    color: #fff;
    line-height: 1.3;
}

.related-member-card .related-role {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.3;
}

/* =============================================================================
   SHARE SECTION
   ============================================================================= */

.member-share {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.member-share__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.member-share__buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.share-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: #fff;
}

.share-btn--vk:hover {
    background: rgba(39, 135, 245, 0.1);
    border-color: rgba(39, 135, 245, 0.2);
}

.share-btn--telegram:hover {
    background: rgba(38, 166, 222, 0.1);
    border-color: rgba(38, 166, 222, 0.2);
}

.share-btn--copied {
    background: rgba(39, 174, 96, 0.1);
    border-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

/* =============================================================================
   LIGHT THEME
   ============================================================================= */

[data-theme="light"] .member-detail {
    --text-primary: #1a1a1a;
    --text-secondary: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
}

[data-theme="light"] .member-hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 252, 0.95) 50%, rgba(220, 38, 38, 0.04) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .member-hero-bg::before {
    background:
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(220, 38, 38, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(220, 38, 38, 0.02) 0%, transparent 60%);
}

[data-theme="light"] .member-photo-wrapper {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .member-photo-wrapper img {
    filter: brightness(1.05) contrast(1.02);
}

[data-theme="light"] .member-info h1 {
    background: linear-gradient(180deg, #1a1a1a 30%, rgba(0, 0, 0, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .member-back {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .member-back:hover {
    color: var(--accent-red, #dc2626);
}

[data-theme="light"] .member-years-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .deceased-marker {
    background: rgba(220, 38, 38, 0.04);
    border-color: rgba(220, 38, 38, 0.1);
}

[data-theme="light"] .member-memorial-ribbon {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.06), rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.06));
    border-bottom-color: rgba(220, 38, 38, 0.1);
}

[data-theme="light"] .member-memorial-ribbon .ribbon-dates {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .member-tab-list {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .member-tab-list [role="tab"] {
    color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .member-tab-list [role="tab"]:hover {
    color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .member-tab-list [role="tab"][aria-selected="true"] {
    color: #1a1a1a;
}

[data-theme="light"] .member-biography .bio-text {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .bio-text--collapsed::after {
    background: linear-gradient(to bottom, transparent, #fff);
}

[data-theme="light"] .bio-toggle-btn {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.1);
}

[data-theme="light"] .member-album-cover {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .member-album-title {
    color: #1a1a1a;
}

[data-theme="light"] .member-album-year {
    color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .member-tab-empty {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .member-album-cover .album-placeholder {
    opacity: 0.1;
}

/* Timeline light theme */
[data-theme="light"] .contribution-timeline::before {
    background: linear-gradient(
        to bottom,
        rgba(220, 38, 38, 0.3),
        rgba(220, 38, 38, 0.1) 40%,
        rgba(220, 38, 38, 0.1) 60%,
        rgba(220, 38, 38, 0.03)
    );
}

[data-theme="light"] .timeline-event::before {
    background: #fff;
    border-color: rgba(220, 38, 38, 0.4);
}

[data-theme="light"] .timeline-event--highlight::before {
    background: var(--accent-red, #dc2626);
}

[data-theme="light"] .timeline-event__content {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .timeline-event__content a {
    color: rgba(0, 0, 0, 0.8);
}

/* Related members light theme */
[data-theme="light"] .related-members {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .related-member-card:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .related-member-card .related-photo {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .related-member-card .related-name {
    color: #1a1a1a;
}

[data-theme="light"] .related-member-card .related-role {
    color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .related-member-card .related-photo__deceased-badge {
    border-color: #fff;
}

/* Share light theme */
[data-theme="light"] .member-share {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .member-share__label {
    color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .share-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .share-btn:hover {
    color: #1a1a1a;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 700px) {
    .member-hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .member-hero-section--memorial .member-hero-content {
        padding-top: 3.5rem;
    }

    .member-photo-wrapper {
        max-width: 220px;
        margin: 0 auto;
    }

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

    .member-info h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .member-meta {
        justify-content: center;
    }

    .instruments-list {
        justify-content: center;
    }

    .deceased-marker {
        justify-content: center;
    }

    .member-years-badge {
        justify-content: center;
    }

    .member-tab-list {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .member-tab-list [role="tab"] {
        padding: 0.65rem 1rem;
        font-size: 0.8125rem;
    }

    .member-discography-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }

    .member-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    /* Timeline mobile */
    .contribution-timeline {
        padding-left: 1.5rem;
    }

    .timeline-event {
        padding-left: 1rem;
    }

    .timeline-event::before {
        left: -1.5rem;
        width: 12px;
        height: 12px;
    }

    /* Related members: 2-column on very small screens */
    .related-member-card {
        flex: 0 0 120px;
    }

    /* Share */
    .member-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .member-hero-content {
        padding: 1rem;
    }

    .member-photo-wrapper {
        max-width: 180px;
    }

    .member-info h1 {
        font-size: 2rem;
    }

    .member-biography .bio-text p:first-child::first-letter {
        font-size: 2.8em;
    }
}

/* =============================================================================
   REDUCED MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .member-hero-bg::before {
        animation: none;
    }

    .member-photo-wrapper img {
        transition: none;
    }

    .member-album-card,
    .related-member-card,
    .timeline-event::before {
        transition: none;
    }

    .member-tab-panel {
        animation: none;
    }

    .bio-toggle-btn .toggle-arrow {
        transition: none;
    }
}

/* =============================================================================
   PRINT
   ============================================================================= */

@media print {
    .member-hero-bg,
    .member-memorial-ribbon,
    .member-share,
    .member-tabs,
    .member-back {
        display: none;
    }

    .member-hero-content {
        display: block;
    }

    .member-photo-wrapper {
        float: left;
        width: 150px;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }

    .member-tab-panel {
        display: block !important;
    }

    .bio-text--collapsed {
        max-height: none;
    }

    .bio-text--collapsed::after {
        display: none;
    }
}
