/* ==========================================================================
   hero-rail.css — panel samping hero DFA ("Promo & Program")
   Tab vertikal di kanan layar -> panel geser masuk dari kanan.
   + lightbox poster (klik kartu promo/event bergambar)
   ========================================================================== */

.hr-tab {
    position: fixed;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    z-index: 260;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 16px 10px;
    border: 0;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #F2C94C 0%, #E0B63A 100%);
    color: #00101F;
    font-family: 'Archivo', system-ui, sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: -8px 0 26px rgba(0, 0, 0, .38);
    transition: padding .2s ease, box-shadow .2s ease;
}
.hr-tab:hover { padding-right: 14px; box-shadow: -10px 0 30px rgba(0, 0, 0, .5); }
.hr-tab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hr-tab .hr-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00101F;
    writing-mode: horizontal-tb;
}

/* ---------- backdrop ---------- */
.hr-backdrop {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0, 6, 18, .55);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    backdrop-filter: blur(2px);
}
.hr-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- panel ---------- */
.hr-panel {
    position: fixed; top: 0; right: 0; z-index: 320;
    height: 100%;
    width: min(560px, 94vw);
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #04162F 0%, #000D24 100%);
    border-left: 1px solid rgba(242, 201, 76, .22);
    box-shadow: -34px 0 70px rgba(0, 0, 0, .55);
    transform: translateX(103%);
    transition: transform .38s cubic-bezier(.22, .8, .28, 1);
    visibility: hidden;
}
.hr-panel.open { transform: none; visibility: visible; }
.hr-panel { padding-top: env(safe-area-inset-top, 0); }

.hr-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(242, 201, 76, .10), transparent);
}
.hr-head strong {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 13px; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: #fff;
}
.hr-close {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.hr-close:hover { background: rgba(242, 201, 76, .18); border-color: rgba(242, 201, 76, .5); }

.hr-body { flex: 1; overflow-y: auto; padding: 18px 22px 32px; -webkit-overflow-scrolling: touch; }
.hr-body::-webkit-scrollbar { width: 8px; }
.hr-body::-webkit-scrollbar-thumb { background: rgba(242, 201, 76, .4); border-radius: 8px; }

.hr-sec { margin-bottom: 24px; }
.hr-sec-title {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
    color: #F2C94C; margin: 0 0 12px;
}
.hr-sec-title::after { content: ''; flex: 1; height: 1px; background: rgba(242, 201, 76, .28); }

.hr-card {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.hr-card:hover { transform: translateY(-2px); border-color: rgba(242, 201, 76, .55); background: rgba(255, 255, 255, .07); }
.hr-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hr-card.is-poster img { aspect-ratio: 2 / 3; object-position: center top; }
.hr-c-body { padding: 13px 15px 15px; }
.hr-kicker {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 9.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    color: #F2C94C;
}
.hr-card h4 {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 16px; font-weight: 800; line-height: 1.28; letter-spacing: .005em;
    text-transform: uppercase; color: #fff; margin: 6px 0 0;
}
.hr-card p { font-size: 13px; line-height: 1.58; color: #B7C6DC; margin: 6px 0 0; }
.hr-more {
    display: inline-block; margin-top: 10px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #F2C94C;
}
.hr-empty, .hr-loading { font-size: 13px; color: #8FA1BC; padding: 10px 2px; }
.hr-empty b { color: #fff; }

/* ---------- lightbox / popup poster ---------- */
.hr-lb {
    position: fixed; inset: 0; z-index: 400;
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(0, 6, 18, .95);
    backdrop-filter: blur(4px);
}
.hr-lb.open { display: flex; }
.hr-lb-box {
    position: relative;
    display: flex;
    max-width: 940px;
    max-height: 86vh;
    margin: auto;
    background: #04162F;
    border: 1px solid rgba(242, 201, 76, .25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .65);
}
.hr-lb-media {
    flex: 0 1 auto; min-width: 0;
    display: flex; align-items: center; justify-content: center;
    background: #000D24;
}
.hr-lb-media img {
    display: block;
    height: 86vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.hr-lb-info {
    flex: 0 0 330px; width: 330px;
    padding: 32px 30px 30px;
    display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(180deg, #04162F 0%, #000D24 100%);
    border-left: 1px solid rgba(242, 201, 76, .18);
}
.hr-lb-kicker {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
    color: #F2C94C; margin-bottom: 10px;
}
.hr-lb-info h4 {
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 21px; font-weight: 800; line-height: 1.2;
    text-transform: uppercase; color: #fff; margin: 0;
}
.hr-lb-info p { font-size: 14px; line-height: 1.62; color: #B7C6DC; margin: 12px 0 0; }
.hr-lb-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 22px; padding: 14px 22px; border-radius: 8px;
    background: linear-gradient(180deg, #F2C94C, #E0B63A); color: #00101F;
    font-family: 'Archivo', system-ui, sans-serif; font-weight: 800;
    font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 6px 0 rgba(0, 0, 0, .25);
}
.hr-lb-cta:hover { filter: brightness(1.06); }
.hr-lb-close {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(0, 13, 36, .85); color: #fff;
    font-size: 18px; line-height: 1; cursor: pointer;
}
.hr-lb-close:hover { background: #F2C94C; color: #00101F; border-color: #F2C94C; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
    .hr-tab { top: auto; bottom: 96px; transform: none; padding: 13px 8px; font-size: 10px; }
    .hr-panel { width: 100%; }
    .hr-body { padding: 14px 14px 26px; }
    .hr-lb { padding: 14px; align-items: flex-start; }
    .hr-lb-box { flex-direction: column; width: 100%; max-height: none; margin: auto 0; }
    .hr-lb-media img { height: auto; width: 100%; max-height: 60vh; }
    .hr-lb-info { flex: 0 0 auto; width: 100%; padding: 22px 20px 24px; border-left: 0; border-top: 1px solid rgba(242,201,76,.18); }
    .hr-lb-info h4 { font-size: 18px; }
    .hr-lb-cta { width: 100%; }
}
