/* --- AUTOPSY REPORT PAGE (autopsy.css) --- */

.autopsy-content {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.autopsy-box {
    background: #0f0f0f;
    border: 2px solid #300;
    padding: 60px 30px;
    margin-bottom: 60px;
}

.autopsy-box:hover {
    border-color: #600;
}

.autopsy-box h1 {
    font-size: 3.5em;
    color: #f00;
    margin: 0 0 20px;
    letter-spacing: 5px;
    text-shadow: 0 0 10px #900;
}

.autopsy-box p.coming-soon {
    font-size: 1.8em;
    color: #ccc;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.autopsy-box p.support-text {
    font-size: 1.4em;
    color: #888;
    line-height: 1.5;
}

/* ── BOOKLET ──────────────────────────────────────────────────────────────── */
.booklet-section {
    margin: 45px 0 55px;
}

.booklet-toggle {
    display: inline-block;
    background: #111;
    color: #c00;
    border: 2px solid #400;
    padding: 12px 30px;
    font-size: 1.25em;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    border-radius: 3px;
}

.booklet-toggle:hover {
    background: #200;
    border-color: #800;
    color: #f00;
    box-shadow: 0 0 15px rgba(200,0,0,0.35);
}

.booklet-content {
    display: none;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.booklet-content.expanded {
    display: block;
}

.booklet-viewport {
    overflow: hidden;
    width: 100%;
    height: 420px;
    background: #000;
    border: 2px solid #400;
    border-radius: 4px;
    box-shadow: 0 0 18px rgba(80,0,0,0.55);
}

.booklet-inner {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.panel {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.panel img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Navigation arrows */
.booklet-nav {
    position: absolute;
    inset: 0 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.arrow {
    pointer-events: all;
    background: rgba(0,0,0,0.7);
    color: #c00;
    border: 2px solid #600;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9em;
    cursor: pointer;
    transition: all 0.25s;
    user-select: none;
}

.arrow:hover {
    background: rgba(50,0,0,0.9);
    border-color: #c00;
    color: #f00;
    box-shadow: 0 0 12px #800;
}

/* Panel counter */
.panel-counter {
    text-align: center;
    color: #777;
    font-size: 1.05em;
    margin-top: 12px;
    letter-spacing: 0.8px;
}

/* ── VIDEO PLAYER ─────────────────────────────────────────────────────────── */
.video-miniplayer {
    margin: 60px 0 30px;
    padding: 25px 20px;
    background: #0a0a0a;
    border: 1px solid #400;
    border-radius: 4px;
}

.video-title {
    font-size: 1.75em;
    color: #d00;
    margin: 0 0 6px;
    letter-spacing: 1.8px;
    text-shadow: 0 0 7px #600;
}

.video-subtitle {
    font-size: 1.15em;
    color: #777;
    margin-bottom: 18px;
}

.player-frame {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin: 0 auto 12px;
    overflow: hidden;
    border: 2px solid #500;
    border-radius: 4px;
    box-shadow: 0 0 18px rgba(100,0,0,0.5);
    background: #000;
    min-height: 292px;
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Failsafe button */
.fallback-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: #200;
    color: #f00;
    border: 2px solid #600;
    padding: 14px 32px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
    display: none;
}

.fallback-btn:hover {
    background: #400;
    border-color: #c00;
    color: #fff;
    box-shadow: 0 0 15px #800;
    transform: translate(-50%, -50%) scale(1.05);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .autopsy-box {
        padding: 40px 18px;
    }

    .autopsy-box h1 {
        font-size: 2.6em;
    }

    .booklet-viewport {
        height: 340px;
    }

    .booklet-toggle {
        padding: 10px 24px;
        font-size: 1.1em;
    }

    .arrow {
        width: 44px;
        height: 44px;
        font-size: 1.7em;
    }

    .video-miniplayer {
        margin: 50px 0 20px;
        padding: 20px 15px;
    }
}

@media (max-width: 500px) {
    .booklet-viewport {
        height: 300px;
    }
}