.story-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.story-panel.story-panel-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.story-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 18, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.story-panel.story-panel-open .story-panel-backdrop {
    opacity: 1;
}

.story-panel-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    background: rgba(2, 3, 11, 0.817);
    pointer-events: none;
}

.story-panel-inner {
    position: relative;
    width: min(920px, 92vw);
    height: 100%;
    overflow-y: auto;
    pointer-events: auto;
}
.story-panel-inner p {
    margin: 10px 0 0 1px;
    color: #d6b06a;
}
.story-panel.story-panel-open .story-panel-inner {
    transform: translateX(0);
}

.story-panel-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 20;
    border: 0;
    background: transparent;
    color: #f3e4ba;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.story-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 20px;
    margin-bottom: 18px;
}

.story-topbar .brand {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-top: 8px;
    padding: 0 14px;
    border: 1px solid rgba(212, 175, 96, 0.45);
    border-radius: 999px;
    color: #d6b06a;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.story-topbar #audio-toggle {
    margin-left: auto;
    white-space: nowrap;
}

.story-heading {
    margin-bottom: 8px;
}

.story-panel-region {
    margin: 0 0 2px;
    color: #c8a96a;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.story-panel-title {
    margin: 14px 2px 0 !important;
    color: #f7f1e4;
    font-size: clamp(1.65rem, 2.3vw, 2.5rem);
    line-height: 1.08;
}

.story-video {
    margin: 0 0 22px;
}

.story-video video {
    display: block;
    width: 100%;
    max-height: 60vh;
    border-radius: 16px;
    background: #000;
}

.story-panel-body {
    color: #e6dfd2;
    font-size: 1rem;
    line-height: 1.75;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 18px;
    margin-top: 20px;
    margin-right: 30px;
    vertical-align: middle;
    border-radius: 999px;
    border: 1px solid rgba(231, 198, 128, 0.8);
    background: transparent;
    color: #f3d89d;
    font: inherit;
    cursor: pointer;
}

body.story-panel-lock-scroll {
    overflow: hidden;
}

@media (max-width: 900px) {
    .story-panel-inner {
        width: min(100%, 100vw);
        padding: 22px 18px 30px;
    }

    .story-topbar {
        flex-wrap: wrap;
        gap: 10px;
        padding-right: 42px;
    }

    .story-topbar #audio-toggle {
        margin-left: 0;
    }
}