/* ============================================================
   RED KING — SHARED STYLESHEET
   Mobile-first. Tablet: 600px+. Desktop: 768px+.
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BASE ── */
body {
    background-color: #000;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,69,0,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,0,0,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139,0,0,0.1) 0%, transparent 50%);
    color: #FF0000;
    font-family: 'Impact', 'Arial Black', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── LOGO ── */
.logo-container {
    text-align: center;
    background: linear-gradient(180deg, #1a0000 0%, #000 100%);
    border-bottom: 3px solid #FF0000;
    padding: 10px 0 0;
    animation: pulse 2s infinite;
}
.logo-container img {
    max-height: 100px;
    width: auto;
}

/* ── MARQUEE ── */
marquee {
    background: linear-gradient(90deg, #8B0000, #FF0000, #FF4500, #FF0000, #8B0000);
    color: #FFFF00;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000, 0 0 10px #FF0000;
    border-top: 3px solid #FF4500;
    border-bottom: 3px solid #FF4500;
    padding: 6px 0;
}

/* ── CONTAINER ── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px;
}

/* ── LAYOUT: mobile stacked, desktop side-by-side ── */
.layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── SIDEBAR ── */
.sidebar {
    background: linear-gradient(180deg, #1a0000 0%, #000 100%);
    border: 3px ridge #FF0000;
    padding: 12px;
}
.sidebar h3 {
    color: #FF4500;
    text-align: center;
    font-size: 18px;
    text-shadow: 2px 2px 4px #000, 0 0 10px #FF0000;
    border-bottom: 2px solid #FF0000;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

/* Nav links: row on mobile, column on desktop */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nav-link {
    flex: 1 1 auto;
    min-width: 120px;
    display: block;
    color: #FF6347;
    background: #000;
    border: 2px outset #8B0000;
    padding: 12px 10px;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}
.nav-link:hover, .nav-link:focus {
    background: linear-gradient(90deg, #8B0000, #FF0000);
    color: #FFFF00;
    border: 2px inset #FF4500;
    box-shadow: 0 0 15px #FF0000;
    outline: none;
}

/* ── MAIN CONTENT ── */
.main-content {
    background: linear-gradient(180deg, #0a0000 0%, #000 100%);
    border: 4px ridge #FF4500;
    padding: 16px;
    box-shadow: 0 0 30px #FF0000;
}

/* ── BACK BAR (music page) ── */
.back-bar {
    background: #0a0000;
    border-bottom: 2px solid #8B0000;
    padding: 10px 16px;
}
.back-link {
    color: #FF6347;
    background: #000;
    border: 2px outset #8B0000;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
}
.back-link:hover, .back-link:focus {
    background: linear-gradient(90deg, #8B0000, #FF0000);
    color: #FFFF00;
    box-shadow: 0 0 15px #FF0000;
    outline: none;
}

/* ── HEADINGS ── */
h1 {
    color: #FF4500;
    text-align: center;
    text-shadow: 3px 3px 6px #000, 0 0 20px #FF0000, 0 0 30px #FF4500;
    letter-spacing: 2px;
    font-size: 28px;
    animation: flicker 3s infinite;
    margin-bottom: 8px;
}
h2 {
    color: #FF4500;
    text-align: center;
    text-shadow: 2px 2px 5px #000, 0 0 15px #FF0000;
    letter-spacing: 2px;
    font-size: 22px;
}

/* ── CONTENT BOX ── */
.content-box {
    background: #0a0000;
    border: 3px groove #FF0000;
    padding: 14px;
    margin: 16px 0;
    box-shadow: inset 0 0 15px #8B0000;
}
.content-box h3 {
    color: #FF6347;
    font-size: 17px;
    text-shadow: 2px 2px 4px #000, 0 0 10px #FF0000;
    border-bottom: 2px solid #8B0000;
    padding-bottom: 6px;
    margin-bottom: 10px;
}
.content-box p {
    color: #FFA07A;
    line-height: 1.6;
    text-shadow: 1px 1px 2px #000;
    font-size: 15px;
}
.content-box img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 8px auto;
}

/* ── METAL BUTTON ── */
.metal-button {
    background: linear-gradient(180deg, #FF4500, #8B0000);
    color: #FFFF00;
    border: 3px outset #FF0000;
    padding: 14px 24px;
    font-size: 18px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 2px 2px 4px #000;
    box-shadow: 0 0 20px #FF0000;
    display: block;
    width: 100%;
    margin: 14px 0;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
}
.metal-button:hover, .metal-button:focus {
    background: linear-gradient(180deg, #FF6347, #FF0000);
    box-shadow: 0 0 40px #FF4500;
    outline: none;
}
.metal-button:active { border: 3px inset #8B0000; transform: scale(0.97); }

/* ── COUNTER ── */
.counter {
    text-align: center;
    font-size: 20px;
    color: #FF4500;
    text-shadow: 2px 2px 4px #000, 0 0 15px #FF0000;
    margin: 12px 0;
    font-weight: bold;
}

/* ── VISITOR COUNTER ── */
.visitor-counter {
    background: #000;
    border: 3px ridge #FF0000;
    padding: 10px;
    text-align: center;
    margin: 16px 0;
}

/* ── FLAME DIVIDER ── */
.flame-divider {
    text-align: center;
    font-size: 30px;
    margin: 14px 0;
    animation: flame-dance 2s infinite;
    line-height: 1.2;
}

/* ── SECTION HEADER (music page) ── */
.section-header {
    color: #FF4500;
    font-size: 18px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px #000, 0 0 15px #FF0000;
    border-bottom: 3px ridge #FF4500;
    padding-bottom: 8px;
    margin: 26px 0 12px;
}

/* ── NOW PLAYING PANEL ── */
.now-playing-box {
    background: linear-gradient(160deg, #1a0000, #050000);
    border: 4px ridge #FF4500;
    box-shadow: 0 0 40px rgba(255,0,0,0.6), inset 0 0 30px #2a0000;
    padding: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
/* CRT scanline effect */
.now-playing-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent, transparent 3px,
        rgba(255,0,0,0.04) 3px, rgba(255,0,0,0.04) 4px
    );
    pointer-events: none;
}
.np-label {
    color: #FF4500;
    font-size: 11px;
    letter-spacing: 4px;
    text-shadow: 0 0 8px #FF0000;
    margin-bottom: 5px;
}
.np-title {
    color: #FFFF00;
    font-size: 18px;
    text-shadow: 0 0 15px #FF4500, 2px 2px 4px #000;
    letter-spacing: 1px;
    min-height: 28px;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── VISUALISER ── */
.visualiser {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 44px;
    margin-bottom: 14px;
}
.bar {
    flex: 1;
    background: linear-gradient(to top, #FF0000, #FF4500, #FFFF00);
    border-radius: 2px 2px 0 0;
    height: 4px;
}

/* ── PROGRESS BAR ── */
.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.time-label {
    color: #FF6347;
    font-size: 12px;
    min-width: 36px;
    text-shadow: 0 0 6px #FF0000;
    flex-shrink: 0;
}
.progress-track {
    flex: 1;
    height: 12px;
    background: #1a0000;
    border: 2px inset #8B0000;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 0 8px #000;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B0000, #FF4500, #FFFF00);
    width: 0%;
    box-shadow: 0 0 6px #FF0000;
    pointer-events: none;
}

/* ── PLAYER CONTROLS ── */
.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ctrl-btn {
    background: linear-gradient(180deg, #3a0000, #1a0000);
    color: #FF4500;
    border: 3px outset #8B0000;
    padding: 10px 14px;
    font-size: 18px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-shadow: 0 0 8px #FF0000;
    box-shadow: 0 0 12px rgba(255,0,0,0.4);
    transition: all 0.2s;
    min-width: 46px;
    text-align: center;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.ctrl-btn:hover, .ctrl-btn:focus {
    background: linear-gradient(180deg, #FF4500, #8B0000);
    color: #FFFF00;
    box-shadow: 0 0 25px #FF0000;
    outline: none;
}
.ctrl-btn:active { border: 3px inset #8B0000; transform: scale(0.95); }
.ctrl-btn.play-btn { font-size: 24px; padding: 12px 20px; }

/* ── VOLUME ── */
.volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.vol-label {
    color: #FF4500;
    font-size: 13px;
    text-shadow: 0 0 6px #FF0000;
    white-space: nowrap;
    flex-shrink: 0;
}
input[type=range] {
    -webkit-appearance: none;
    flex: 1;
    height: 10px;
    background: #1a0000;
    border: 2px inset #8B0000;
    outline: none;
    cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: linear-gradient(180deg, #FF4500, #8B0000);
    border: 2px outset #FF0000;
    cursor: pointer;
    box-shadow: 0 0 8px #FF0000;
}
input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(180deg, #FF4500, #8B0000);
    border: 2px outset #FF0000;
    cursor: pointer;
}

/* ── TRACK LIST ── */
.track-list {
    width: 100%;
    border-collapse: collapse;
}
.track-list tr {
    border-bottom: 1px solid #2a0000;
    transition: background 0.2s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.track-list tr:hover  { background: linear-gradient(90deg, #1a0000, #0a0000); }
.track-list tr.active { background: linear-gradient(90deg, #2a0000, #0a0000); box-shadow: inset 0 0 12px rgba(255,0,0,0.3); }
.track-list td { padding: 12px 8px; vertical-align: middle; }

.track-num {
    color: #660000;
    font-size: 13px;
    width: 32px;
    text-align: right;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.track-list tr.active .track-num { color: #FFFF00; }

.playing-icon {
    display: none;
    color: #FF0000;
    font-size: 15px;
    animation: bounce 0.4s infinite alternate;
    margin-right: 6px;
}
.track-list tr.active .playing-icon { display: inline; }

.track-name {
    color: #FFA07A;
    font-size: 15px;
    text-shadow: 1px 1px 2px #000;
    letter-spacing: 1px;
}
.track-list tr.active .track-name { color: #FFFF00; text-shadow: 0 0 10px #FF4500; }

.track-format {
    color: #660000;
    font-size: 11px;
    letter-spacing: 2px;
    text-align: center;
    width: 44px;
}
.track-list tr.active .track-format { color: #FF4500; }

.dl-btn {
    background: linear-gradient(180deg, #2a0000, #0a0000);
    color: #FF4500;
    border: 2px outset #660000;
    padding: 8px 12px;
    font-size: 17px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.2s;
    text-shadow: 0 0 6px #FF0000;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.dl-btn:hover, .dl-btn:focus {
    background: linear-gradient(180deg, #FF4500, #8B0000);
    color: #FFFF00;
    box-shadow: 0 0 15px #FF0000;
    border: 2px inset #FF4500;
    outline: none;
}

/* ── MODAL ── */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.75);
    overflow-y: auto;
}
.modal-content {
    margin: 10% auto;
    padding: 20px;
    width: min(300px, 90%);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-btn {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #FF4500;
    line-height: 1;
}
.modal-content img { max-width: 100%; height: auto; }
.modal-content button { margin-top: 12px; }

/* ── FOOTER ── */
.footer {
    text-align: center;
    padding: 20px 16px;
    background: linear-gradient(180deg, #000 0%, #1a0000 100%);
    border-top: 3px solid #FF0000;
    color: #FF6347;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.8;
}

/* ── BLINK ── */
blink { animation: blink-anim 1s infinite; }

/* ── ANIMATIONS ── */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px #FF0000; }
    50%       { box-shadow: 0 0 40px #FF4500; }
}
@keyframes flicker {
    0%, 100% { opacity: 1;   text-shadow: 3px 3px 6px #000, 0 0 20px #FF0000, 0 0 30px #FF4500; }
    50%       { opacity: 0.8; text-shadow: 3px 3px 6px #000, 0 0 30px #FF0000, 0 0 50px #FF4500; }
}
@keyframes flame-dance {
    0%, 100% { transform: scale(1) translateY(0); }
    25%       { transform: scale(1.1) translateY(-4px); }
    75%       { transform: scale(0.9) translateY(4px); }
}
@keyframes blink-anim {
    0%, 50%, 100% { opacity: 1; }
    25%, 75%      { opacity: 0; }
}
@keyframes bounce {
    from { transform: scaleY(0.6); }
    to   { transform: scaleY(1.3); }
}

/* ============================================================
   TABLET  600px+
   ============================================================ */
@media (min-width: 600px) {
    .logo-container img  { max-height: 140px; }
    marquee              { font-size: 22px; }
    h1                   { font-size: 34px; }
    .section-header      { font-size: 20px; }
    .np-title            { font-size: 22px; }
    .metal-button        { width: auto; }
    /* Nav links stack vertically in sidebar */
    .nav-links           { flex-direction: column; }
    .nav-link            { min-width: unset; }
    .ctrl-btn            { font-size: 20px; }
    .ctrl-btn.play-btn   { font-size: 26px; }
}

/* ============================================================
   DESKTOP  768px+
   ============================================================ */
@media (min-width: 768px) {
    .logo-container img  { max-height: 160px; }
    marquee              { font-size: 24px; }
    h1                   { font-size: 42px; letter-spacing: 3px; }
    .flame-divider       { font-size: 36px; }
    .container           { padding: 20px; }

    /* Side-by-side layout */
    .layout              { flex-direction: row; align-items: flex-start; }
    .sidebar             { width: 210px; flex-shrink: 0; }
    .main-content        { flex: 1; }

    .now-playing-box     { padding: 22px 26px 20px; }
    .np-title            { font-size: 24px; }
    .track-name          { font-size: 16px; }
    .ctrl-btn            { padding: 10px 18px; }
}
 /* ── PAGE-SPECIFIC STYLES ── */

        .timeline {
            position: relative;
            padding: 10px 0;
        }
        /* Vertical blood-red line on desktop */
        .timeline::before {
            content: '';
            display: none;
        }

        .member-card {
            background: linear-gradient(160deg, #120000, #050000);
            border: 3px ridge #FF4500;
            box-shadow: 0 0 30px rgba(255,0,0,0.4), inset 0 0 20px #1a0000;
            padding: 20px;
            margin: 0 0 30px;
            position: relative;
            overflow: hidden;
        }
        /* CRT lines */
        .member-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient(
                0deg,
                transparent, transparent 4px,
                rgba(255,0,0,0.03) 4px, rgba(255,0,0,0.03) 5px
            );
            pointer-events: none;
        }

        .member-header {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 14px;
            flex-wrap: wrap;
        }
        .member-photo {
            width: 110px;
            height: 110px;
            object-fit: cover;
            object-position: top center;
            border: 3px ridge #FF4500;
            box-shadow: 0 0 20px rgba(255,0,0,0.6);
            flex-shrink: 0;
            filter: grayscale(30%) contrast(1.1);
        }
        .member-photo.deceased {
            filter: grayscale(100%) sepia(20%) contrast(1.1);
        }
        .member-info { flex: 1; min-width: 180px; }

        .member-name {
            color: #FF4500;
            font-size: 24px;
            letter-spacing: 3px;
            text-shadow: 0 0 15px #FF0000, 2px 2px 4px #000;
            margin-bottom: 2px;
        }
        .member-role {
            color: #FFFF00;
            font-size: 13px;
            letter-spacing: 3px;
            text-shadow: 0 0 8px #FF4500;
            margin-bottom: 8px;
        }
        .member-status {
            display: inline-block;
            padding: 4px 12px;
            font-size: 12px;
            letter-spacing: 2px;
            font-weight: bold;
            border: 2px outset #8B0000;
        }
        .status-dead {
            background: linear-gradient(90deg, #1a0000, #2a0000);
            color: #FF0000;
            border-color: #FF0000;
            box-shadow: 0 0 10px #FF0000;
        }
        .status-missing {
            background: linear-gradient(90deg, #1a1a00, #2a2a00);
            color: #FFFF00;
            border-color: #FFFF00;
            box-shadow: 0 0 10px #FFFF00;
        }

        .member-bio {
            color: #FFA07A;
            font-family: 'Arial', sans-serif;
            font-size: 14px;
            line-height: 1.8;
            text-shadow: 1px 1px 2px #000;
            border-top: 1px solid #3a0000;
            padding-top: 12px;
            position: relative;
        }

        .death-box {
            background: #0a0000;
            border: 2px groove #FF0000;
            border-left: 5px solid #FF0000;
            padding: 12px 14px;
            margin-top: 14px;
            box-shadow: inset 0 0 10px #1a0000, 0 0 15px rgba(255,0,0,0.3);
        }
        .death-label {
            color: #FF0000;
            font-size: 11px;
            letter-spacing: 4px;
            margin-bottom: 6px;
            text-shadow: 0 0 8px #FF0000;
        }
        .death-text {
            color: #FF6347;
            font-family: 'Arial', sans-serif;
            font-size: 14px;
            line-height: 1.7;
            font-style: italic;
        }

        .blood-drop {
            font-size: 22px;
            margin: 0 6px;
            animation: drip 2s infinite;
            display: inline-block;
        }
        @keyframes drip {
            0%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(6px); }
        }

        .intro-box {
            background: linear-gradient(160deg, #1a0000, #050000);
            border: 4px ridge #FF4500;
            box-shadow: 0 0 40px rgba(255,0,0,0.5), inset 0 0 25px #1a0000;
            padding: 20px;
            margin-bottom: 30px;
            text-align: center;
        }
        .intro-box p {
            color: #FFA07A;
            font-family: 'Arial', sans-serif;
            font-size: 15px;
            line-height: 1.9;
            text-shadow: 1px 1px 2px #000;
        }

        .rip-stamp {
            display: inline-block;
            border: 3px solid #FF0000;
            color: #FF0000;
            font-size: 28px;
            padding: 4px 14px;
            transform: rotate(-8deg);
            text-shadow: 0 0 10px #FF0000;
            box-shadow: 0 0 10px #FF0000;
            letter-spacing: 4px;
            margin-top: 10px;
            animation: stamp-pulse 3s infinite;
        }
        @keyframes stamp-pulse {
            0%, 100% { box-shadow: 0 0 10px #FF0000; }
            50% { box-shadow: 0 0 25px #FF0000; }
        }

        .epitaph {
            text-align: center;
            padding: 20px;
            margin: 10px 0 30px;
        }
        .epitaph p {
            color: #660000;
            font-size: 15px;
            font-style: italic;
            letter-spacing: 1px;
        }

        /* ── TABLET+ ── */
        @media (min-width: 600px) {
            .member-photo { width: 110px; height: 130px; }
            .member-name { font-size: 28px; }
            .death-text { font-size: 15px; }
        }