:root {
    --shell-header-h: var(--header-h, 72px);
    --shell-sitebar-position: sticky;
    --shell-bar-bg: rgba(10, 14, 18, 0.9);
    --shell-bar-border: var(--border, rgba(255, 255, 255, 0.14));
    --shell-bar-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    --shell-bar-text: var(--text, #e7e7ea);
    --shell-title-start: var(--brand-pink, #ff9ec8);
    --shell-title-end: var(--brand-pink-2, #ff6ba8);
    --shell-btn-bg: rgba(24, 24, 36, 0.92);
    --shell-btn-border: var(--border, rgba(255, 255, 255, 0.14));
    --shell-btn-text: var(--text, #e7e7ea);
    --shell-btn-hover-bg: color-mix(in srgb, var(--shell-title-end) 18%, rgba(255, 255, 255, 0.08));
    --shell-btn-hover-shadow: 0 10px 24px color-mix(in srgb, var(--shell-title-end) 20%, rgba(0, 0, 0, 0.08));
    --shell-btn-hover-border: color-mix(in srgb, var(--shell-title-end) 45%, var(--shell-btn-border));
}

.sitebar {
    position: var(--shell-sitebar-position);
    inset: 0 0 auto 0;
    height: var(--shell-header-h);
    display: grid;
    grid-template-columns: 120px 1fr 120px;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--shell-bar-border);
    background: var(--shell-bar-bg);
    color: var(--shell-bar-text);
    backdrop-filter: saturate(140%) blur(10px);
    box-shadow: var(--shell-bar-shadow);
    z-index: 60;
}

.btn-ghost {
    background: var(--shell-btn-bg);
    border: 1px solid var(--shell-btn-border);
    color: var(--shell-btn-text);
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    background: var(--shell-btn-hover-bg);
    border-color: var(--shell-btn-hover-border);
    transform: translateY(-1px);
    box-shadow: var(--shell-btn-hover-shadow);
}

.title {
    margin: 0;
    text-align: center;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(90deg, var(--shell-title-start), var(--shell-title-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.media-frame {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(14, 14, 22, 0.72), rgba(18, 18, 28, 0.92));
}

.media-frame__bg,
.media-frame__img {
    display: block;
    width: 100%;
    height: 100%;
}

.media-frame__bg {
    position: absolute;
    inset: -12%;
    width: calc(100% + 24%);
    height: calc(100% + 24%);
    object-fit: cover;
    filter: blur(26px) saturate(1.08);
    transform: scale(1.06);
    opacity: 0.88;
}

.media-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 11, 18, 0.06), rgba(11, 11, 18, 0.24) 65%, rgba(11, 11, 18, 0.48) 100%);
    pointer-events: none;
}

.media-frame__img {
    position: relative;
    z-index: 1;
    object-fit: contain;
    padding: var(--media-pad, 12px);
    background: transparent;
}
