/* ============================================================
   KALBAR TV — FULL STYLESHEET
   Blok 1-6 + Video Story Portrait + Shorts Modal
   Responsive: Desktop / Tablet / Mobile / Landscape
   
   Struktur:
   1. Variabel & Base
   2. Blok 1 — Live Streaming
   3. Section Header
   4. Blok 2 — Kalbar Digital (Video Story) + Phone Mockup
   5. Blok 3 — Kalbar Hari Ini
   6. Blok 5 — Info Pemprov
   7. Blok 6 — Terbaru + Sidebar
   8. Shorts Modal (Video + Info Panel)
   9. Responsive (Tablet → Mobile → Small Mobile)
   10. Dark Mode
   11. Print
   ============================================================ */

/* ============================================================
   1. VARIABEL & BASE
   ============================================================ */


:root {
    /* ========================================
       PRIMARY — KALBAR TV BLUE
    ======================================== */
    --kalbar-primary: #004A89;
    --kalbar-primary-dark: #003563;
    --kalbar-primary-light: #1976D2;
    --kalbar-primary-container: #D6E8FF;
    --kalbar-on-primary: #FFFFFF;

    /* ========================================
       SECONDARY — BLUE
    ======================================== */
    --kalbar-secondary: #1263A5;
    --kalbar-secondary-dark: #002B50;
    --kalbar-secondary-light: #4795DF;

    /* ========================================
       ACCENT — BLUE
    ======================================== */
    --kalbar-accent: #1976D2;
    --kalbar-accent-dark: #004A89;
    --kalbar-accent-light: #90BDEB;

    /* ========================================
       HIGHLIGHT — LIGHT BLUE
    ======================================== */
    --kalbar-highlight: #C5DDF5;
    --kalbar-highlight-light: #E5F0FC;

    /* ========================================
       DARK
    ======================================== */
    --kalbar-dark: #002B50;
    --kalbar-dark-secondary: #003563;

    /* ========================================
       NEUTRAL
    ======================================== */
    --kalbar-gray: #64748B;
    --kalbar-light-gray: #F1F5F9;
    --kalbar-surface: #F3F8FE;
    --kalbar-border: #D6E4F2;
    --kalbar-white: #FFFFFF;

    /* ========================================
       SEMANTIC
    ======================================== */
    --kalbar-success: #256B8F;
    --kalbar-warning: #477DAA;
    --kalbar-error: #004A89;
    --kalbar-info: #1976D2;

    /* ========================================
       ELEVATION
    ======================================== */
    --kalbar-shadow:
        0 1px 3px rgba(0, 53, 99, 0.08);

    --kalbar-shadow-lg:
        0 8px 24px rgba(0, 53, 99, 0.12);

    /* ========================================
       SHAPE & MOTION
    ======================================== */
    --kalbar-radius: 8px;
    --kalbar-radius-lg: 12px;
    --kalbar-transition: all 0.2s ease;
}


.kalbar-pemprov-poster-play {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kalbar-pemprov-poster:hover .kalbar-pemprov-poster-play {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   2. BLOK 1 — LIVE STREAMING + PROGRAM (CLEAN / NO BG)
   ============================================================ */
.kalbar-live-section {
    position: relative;
    background: transparent;
    padding: 36px 0 40px;
   
    overflow: visible;   /* sebelumnya hidden — tidak perlu karena tidak ada glow */
}

.kalbar-live-section .container {
    position: relative;
    z-index: 1;
}

/* Hapus total pseudo-element dekorasi */
.kalbar-live-section::before,
.kalbar-live-section::after {
    content: none;
    display: none;
}

.kalbar-live-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 22px;
    align-items: stretch;
}

/* ============================
   FRAME VIDEO LIVE
   ============================ */
.kalbar-live-frame {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hapus border gradient berputar */
.kalbar-live-frame::before {
    content: none;
    display: none;
}

.kalbar-live-frame:hover {
    transform: translateY(-3px);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(0, 0, 0, 0.08);
}

.kalbar-live-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

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

/* Badge LIVE */
.kalbar-live-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #e31e24 0%, #b9181d 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 3;
    letter-spacing: 0.8px;
    box-shadow:
        0 4px 14px rgba(227, 30, 36, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: liveBadgePulse 2s ease-in-out infinite;
}

@keyframes liveBadgePulse {
    0%, 100% {
        box-shadow:
            0 4px 14px rgba(227, 30, 36, 0.55),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset,
            0 0 0 0 rgba(227, 30, 36, 0.5);
    }
    50% {
        box-shadow:
            0 4px 14px rgba(227, 30, 36, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset,
            0 0 0 6px rgba(227, 30, 36, 0);
    }
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.4); }
}

/* Viewer count */
.kalbar-live-viewers {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.kalbar-live-viewers svg {
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

/* ============================
   PROGRAM FRAME (kanan) — TANPA BACKGROUND
   ============================ */
.kalbar-program-frame {
    position: relative;
    border-radius: 16px;
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--kalbar-dark);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--kalbar-border);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.02) inset;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hapus pattern dot & glow */
.kalbar-program-frame::before,
.kalbar-program-frame::after {
    content: none;
    display: none;
}

.kalbar-program-frame > * {
    position: relative;
    z-index: 1;
}

.kalbar-program-frame:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

/* Header program */
.kalbar-program-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--kalbar-border);
}

.kalbar-program-logo {
    height: 34px;
    width: auto;
    /* Logo asli (tanpa invert putih) karena bg program frame sekarang putih */
}

.kalbar-program-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: lowercase;
    color: var(--kalbar-primary);
}

/* Eyebrow */
.kalbar-program-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--kalbar-primary);
    margin-bottom: 10px;
}

.kalbar-program-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: var(--kalbar-primary);
    border-radius: 2px;
}

.kalbar-program-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   /* center horizontal */
    gap: 14px;
    text-align: center;
}

.kalbar-program-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--kalbar-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    width: 100%;           /* agar clamping tetap bekerja */
}

/* Tombol CTA */
.kalbar-program-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--kalbar-primary) 0%, var(--kalbar-primary-dark) 100%);
    border-radius: 24px;
    transition: all 0.3s ease;
    width: fit-content;
    box-shadow:
        0 4px 14px rgba(13, 92, 138, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
}

.kalbar-program-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.5s ease;
}

.kalbar-program-link:hover::before {
    left: 100%;
}

.kalbar-program-link:hover {
    background: linear-gradient(135deg, var(--kalbar-primary-dark) 0%, var(--kalbar-primary) 100%);
    transform: translateX(4px);
    box-shadow:
        0 6px 20px rgba(13, 92, 138, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.kalbar-program-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.kalbar-program-link:hover svg {
    transform: translateX(3px);
}

/* ============================
   RESPONSIVE BLOK 1
   ============================ */
@media (max-width: 1024px) {
    .kalbar-live-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .kalbar-program-frame {
        min-height: 220px;
        padding: 22px;
    }

    .kalbar-program-title {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .kalbar-live-section {
        padding: 24px 0 28px;
    }

    .kalbar-live-frame {
        border-radius: 14px;
    }

    .kalbar-live-badge {
        top: 10px;
        left: 10px;
        padding: 5px 11px;
        font-size: 10.5px;
    }

    .kalbar-live-viewers {
        bottom: 10px;
        right: 10px;
        font-size: 10.5px;
        padding: 4px 10px;
    }

    .kalbar-program-frame {
        padding: 20px;
        border-radius: 14px;
    }

    .kalbar-program-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .kalbar-program-brand {
        font-size: 17px;
    }

    .kalbar-program-logo {
        height: 28px;
    }

    .kalbar-program-title {
        font-size: 15.5px;
    }

    .kalbar-program-link {
        font-size: 12px;
        padding: 9px 16px;
    }
}

@media (max-width: 480px) {
    .kalbar-live-section {
        padding: 18px 0 22px;
    }

    .kalbar-program-frame {
        padding: 16px;
    }

    .kalbar-program-title {
        font-size: 14.5px;
    }

    .kalbar-program-eyebrow {
        font-size: 10px;
    }

    .kalbar-program-link {
        font-size: 11.5px;
        padding: 8px 14px;
    }
}

/* ============================================================
   3. SECTION HEADER UMUM
   ============================================================ */
.kalbar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--kalbar-border);
}

.kalbar-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--kalbar-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.kalbar-title-dot {
    width: 6px;
    height: 24px;
    background: var(--kalbar-accent);
    border-radius: 3px;
    display: inline-block;
}

.kalbar-section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--kalbar-primary);
    text-decoration: none;
    transition: var(--kalbar-transition);
}

.kalbar-section-more:hover {
    color: var(--kalbar-accent);
    transform: translateX(3px);
}

/* ============================================================
   4. BLOK 2 — KALBAR DIGITAL (Video Story)
   ============================================================ */
.ks-video-section {
    padding: 24px 0 32px;
    background: #fff;
    margin-bottom: 24px;
}

.ks-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.ks-video-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    padding: 8px 14px;
    border-radius: 8px;
}

.ks-video-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.ks-video-title a {
    color: inherit;
    text-decoration: none;
}

.ks-video-title a:hover {
    color: var(--kalbar-primary);
}

.ks-video-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: var(--kalbar-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ks-video-more:hover {
    background: var(--kalbar-primary);
    color: #fff;
    transform: translateX(2px);
}

.ks-video-slider-wrap {
    position: relative;
    padding: 0 4px;
}

.ks-video-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 8px;
    scroll-snap-type: x mandatory;
}

.ks-video-slider::-webkit-scrollbar {
    display: none;
}

/* ============================================================
   PHONE MOCKUP — Instagram Reels Style (Refined)
   ============================================================ */
.ks-video-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}

.ks-video-card:hover {
    transform: translateY(-3px);
}

.ks-phone-mockup {
    position: relative;
    width: 100%;
    padding: 5px;
    background: linear-gradient(145deg, #2a2a3d 0%, #1a1a2e 100%);
    border-radius: 18px;
    /* box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.08); */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.ks-video-card:hover .ks-phone-mockup {
    transform: translateY(-3px) scale(1.005);
    /* box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.12); */
}

.ks-phone-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 32%;
    height: 9px;
    background: #0a0a12;
    border-radius: 12px;
    z-index: 5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ks-phone-mockup .ks-video-link {
    display: block;
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.ks-phone-mockup .ks-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 13px;
    overflow: hidden;
    background: #000;
}

.ks-phone-mockup .ks-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ks-phone-mockup .ks-video-link:hover .ks-video-thumb img {
    transform: scale(1.03);
}

/* Top overlay: duration */
.ks-video-top-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: flex-start;
    z-index: 2;
    pointer-events: none;
}

.ks-video-duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 8px;
    font-size: 9.5px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.2px;
}

.ks-video-dot {
    width: 5px;
    height: 5px;
    background: #e31e24;
    border-radius: 50%;
    animation: ksLivePulse 1.2s infinite;
}

@keyframes ksLivePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Side actions */
.ks-video-actions {
    position: absolute;
    right: 8px;
    bottom: 72px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 3;
}

.ks-video-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
    transition: transform 0.2s ease;
}

.ks-video-action:hover {
    transform: scale(1.12);
}

.ks-video-action svg {
    width: 20px;
    height: 20px;
    color: #fff;
    stroke-width: 2.2;
}

.ks-video-action span {
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    line-height: 1;
}

/* Bottom overlay: publisher + title */
.ks-video-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.ks-video-publisher-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.ks-video-publisher-dot {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #0d5c8a, #1a7bb5);
    border-radius: 50%;
    border: 1.5px solid #fff;
    flex-shrink: 0;
}

.ks-video-verified-inline {
    color: #1d9bf0;
    flex-shrink: 0;
}

.ks-video-title-overlay {
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Play overlay saat hover */
.ks-phone-mockup .ks-video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.ks-phone-mockup .ks-video-link:hover .ks-video-play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
}

.ks-phone-mockup .ks-video-play-overlay svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
    transform: scale(0.75);
    transition: transform 0.3s ease;
}

.ks-phone-mockup .ks-video-link:hover .ks-video-play-overlay svg {
    transform: scale(1);
}

/* "Lihat Video Lainnya" */
.ks-phone-mockup .ks-video-link-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: linear-gradient(145deg, #f8fbff 0%, #e8f3fb 100%);
    border-radius: 13px;
    text-decoration: none;
    color: var(--kalbar-primary);
    transition: all 0.2s ease;
}

.ks-phone-mockup .ks-video-link-more:hover {
    background: linear-gradient(145deg, #eef7ff 0%, #dbeafe 100%);
}

.ks-phone-mockup .ks-video-more-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 16px 12px;
}

.ks-phone-mockup .ks-video-more-inner svg {
    opacity: 0.85;
}

.ks-phone-mockup .ks-video-more-inner span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--kalbar-primary);
}

/* Nav controls */
.ks-video-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
}

.ks-video-slider-wrap:hover .ks-video-nav {
    opacity: 1;
}

.ks-video-nav:hover:not(:disabled) {
    background: var(--kalbar-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.ks-video-nav:disabled {
    opacity: 0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.ks-video-nav-prev { left: -18px; }
.ks-video-nav-next { right: -18px; }

/* ============================================================
   5. BLOK 3 — KALBAR HARI INI
   ============================================================ */
.kalbar-hariini-section {
    margin-bottom: 30px;
}

.kalbar-hariini-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.kalbar-hariini-slider::-webkit-scrollbar {
    height: 6px;
}

.kalbar-hariini-slider::-webkit-scrollbar-thumb {
    background: var(--kalbar-border);
    border-radius: 3px;
}

.kalbar-hariini-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: var(--kalbar-radius);
    overflow: hidden;
    box-shadow: var(--kalbar-shadow);
    transition: var(--kalbar-transition);
}

.kalbar-hariini-card:hover {
    transform: translateY(-4px);
    /* box-shadow: var(--kalbar-shadow-lg); */
}

.kalbar-hariini-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.kalbar-hariini-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.kalbar-hariini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kalbar-hariini-card:hover .kalbar-hariini-thumb img {
    transform: scale(1.05);
}

.kalbar-hariini-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 56px;
    height: 56px;
    background: rgba(227, 30, 36, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;

    opacity: 0;
    visibility: hidden;
    transition: var(--kalbar-transition);
}

.kalbar-hariini-card:hover .kalbar-hariini-play {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--kalbar-accent);
}

.kalbar-hariini-content {
    padding: 14px;
}

.kalbar-hariini-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--kalbar-dark);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kalbar-hariini-schedule {
    font-size: 12px;
    color: var(--kalbar-gray);
    margin: 0;
}

/* ============================================================
   6. BLOK 5 — INFO PEMPROV
   ============================================================ */
.kalbar-pemprov-section {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px 0;
}

.kalbar-pemprov-eyebrow {
    margin-bottom: 14px;
    padding: 0 4px;
}

.kalbar-pemprov-eyebrow p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--kalbar-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.kalbar-pemprov-eyebrow p::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--kalbar-accent);
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.kalbar-pemprov-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 8px;
    align-items: start;
}

.kalbar-pemprov-col-main {
    width: 100%;
}

.kalbar-pemprov-main-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.kalbar-pemprov-main-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 720 / 423;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--kalbar-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #0a3d5c;
}

.kalbar-pemprov-main-link:hover .kalbar-pemprov-main-poster {
    transform: translateY(-3px);
    box-shadow: var(--kalbar-shadow-lg);
}

.kalbar-pemprov-main-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.kalbar-pemprov-main-link:hover .kalbar-pemprov-main-poster img {
    transform: scale(1.03);
}

.kalbar-pemprov-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #fff;
}

.kalbar-pemprov-main-badge {
    display: inline-block;
    background: var(--kalbar-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.kalbar-pemprov-main-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kalbar-pemprov-col-small {
    width: 100%;
}

.kalbar-pemprov-poster-card {
    width: 100%;
}

.kalbar-pemprov-poster-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.kalbar-pemprov-poster-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 414 / 736;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--kalbar-shadow);
    background: #0a3d5c;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kalbar-pemprov-poster-card:hover .kalbar-pemprov-poster-thumb {
    transform: translateY(-3px);
    box-shadow: var(--kalbar-shadow-lg);
}

.kalbar-pemprov-poster-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.kalbar-pemprov-poster-card:hover .kalbar-pemprov-poster-thumb img {
    transform: scale(1.05);
}

.kalbar-pemprov-poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(227, 30, 36, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.kalbar-pemprov-poster-card:hover .kalbar-pemprov-poster-play {
    background: var(--kalbar-accent);
    transform: translate(-50%, -50%) scale(1.1);
}

.kalbar-pemprov-poster-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.kalbar-pemprov-poster-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   7. BLOK 6 — TERBARU + SIDEBAR
   ============================================================ */
.kalbar-terbaru-section {
    margin-bottom: 40px;
}

.kalbar-terbaru-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.kalbar-terbaru-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.kalbar-terbaru-item {
    border-bottom: 1px solid var(--kalbar-border);
}

.kalbar-terbaru-item:last-child {
    border-bottom: none;
}

.kalbar-terbaru-link {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    text-decoration: none;
    color: inherit;
    transition: var(--kalbar-transition);
}

.kalbar-terbaru-link:hover {
    background: var(--kalbar-light-gray);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--kalbar-radius);
}

.kalbar-terbaru-thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 90px;
    overflow: hidden;
    border-radius: var(--kalbar-radius);
    background: #f0f0f0;
}

.kalbar-terbaru-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.kalbar-terbaru-link:hover .kalbar-terbaru-thumb img {
    transform: scale(1.05);
}

.kalbar-terbaru-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kalbar-terbaru-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--kalbar-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.kalbar-terbaru-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--kalbar-dark);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kalbar-terbaru-link:hover .kalbar-terbaru-title {
    color: var(--kalbar-primary);
}

.kalbar-terbaru-meta {
    font-size: 12px;
    color: var(--kalbar-gray);
}

.kalbar-terbaru-sidebar {
    position: sticky;
    top: 100px;
}

.kalbar-widget {
    background: #fff;
    border-radius: var(--kalbar-radius);
    box-shadow: var(--kalbar-shadow);
    margin-bottom: 24px;
    overflow: hidden;
}

.kalbar-widget-title {
    background: linear-gradient(135deg, var(--kalbar-primary) 0%, var(--kalbar-primary-dark) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 18px;
    margin: 0;
    letter-spacing: 0.3px;
}

.kalbar-topic-list {
    list-style: none;
    margin: 0;
    padding: 12px 18px;
}

.kalbar-topic-item {
    padding: 8px 0;
    border-bottom: 1px dashed var(--kalbar-border);
}

.kalbar-topic-item:last-child {
    border-bottom: none;
}

.kalbar-topic-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--kalbar-primary);
    text-decoration: none;
    transition: var(--kalbar-transition);
    display: block;
}

.kalbar-topic-link:hover {
    color: var(--kalbar-accent);
    transform: translateX(4px);
}

.kalbar-video-list {
    list-style: none;
    margin: 0;
    padding: 12px 18px;
}

.kalbar-video-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--kalbar-border);
}

.kalbar-video-item:last-child {
    border-bottom: none;
}

.kalbar-video-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.kalbar-video-number {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    background: var(--kalbar-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--kalbar-primary);
    transition: var(--kalbar-transition);
}

.kalbar-video-link:hover .kalbar-video-number {
    background: var(--kalbar-accent);
    color: #fff;
}

.kalbar-video-content { flex: 1; }

.kalbar-video-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--kalbar-dark);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kalbar-video-link:hover .kalbar-video-title {
    color: var(--kalbar-primary);
}



/* ============================================================
   8. SHORTS MODAL — Instagram Reels / YouTube Shorts Style
   Video: proporsional 9:16 di semua device
   Info panel: kanan (desktop) / bawah (mobile)
   Backdrop: transparan + blur
   ============================================================ */

/* Overlay */
.ks-shorts-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    background: transparent;
}

.ks-shorts-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ksShortsFadeIn 0.25s ease;
}

@keyframes ksShortsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Backdrop */
.ks-shorts-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, 0.55);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    z-index: 1;
    cursor: pointer;
}

/* Close button */
.ks-shorts-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ks-shorts-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* Container */
.ks-shorts-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: auto;
    max-width: calc(100vw - 40px);
    height: min(85vh, 90vh);
    max-height: 85vh;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

/* Video area */
.ks-shorts-video-area {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 9 / 16;
    max-width: 100%;
    background: #000;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.ks-shorts-scroll {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ks-shorts-scroll::-webkit-scrollbar {
    display: none;
}

.ks-shorts-item {
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.ks-shorts-item iframe,
.ks-shorts-item video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    background: #000;
}

/* Counter */
.ks-shorts-counter {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Nav buttons */
.ks-shorts-nav {
    position: absolute;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ks-shorts-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ks-shorts-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ks-shorts-nav-up { top: 50px; }
.ks-shorts-nav-down { bottom: 50px; }

/* Info panel */
.ks-shorts-info-panel {
    flex: 0 0 auto;
    width: 360px;
    max-width: 360px;
    height: 100%;
    background: #1a1a2e;
    border-radius: 0 16px 16px 0;
    padding: 20px;
    overflow-y: auto;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.ks-shorts-info-panel::-webkit-scrollbar {
    width: 6px;
}

.ks-shorts-info-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.ks-shorts-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ks-shorts-publisher-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d5c8a, #1a7bb5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.ks-shorts-publisher-info {
    flex: 1;
    min-width: 0;
}

.ks-shorts-publisher-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.ks-shorts-publisher-name::after {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    background: #1d9bf0;
    border-radius: 50%;
    font-size: 8px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.ks-shorts-publish-date {
    font-size: 11.5px;
    color: #8895a0;
}

.ks-shorts-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.ks-shorts-description {
    font-size: 12.5px;
    line-height: 1.55;
    color: #b8c4cf;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ks-shorts-description.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.ks-shorts-expand-btn {
    background: transparent;
    border: none;
    color: #4fb3d8;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    text-align: left;
    transition: color 0.2s;
    align-self: flex-start;
}

.ks-shorts-expand-btn:hover {
    color: #6cc5e8;
    text-decoration: underline;
}

.ks-shorts-actions {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.ks-shorts-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    color: #b8c4cf;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ks-shorts-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ks-shorts-action-btn svg {
    flex-shrink: 0;
}

.ks-shorts-action-btn.liked {
    color: #ff4757;
}

.ks-shorts-action-btn.liked svg {
    fill: #ff4757;
    stroke: #ff4757;
}

.ks-shorts-footer {
    font-size: 11px;
    color: #8895a0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 6px;
}

/* ============================================================
   9. RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    /* Blok 1 */
    .kalbar-live-grid { grid-template-columns: 1fr; }
    .kalbar-program-frame { min-height: 200px; }

    /* Blok 5 */
    .kalbar-pemprov-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; }
    .kalbar-pemprov-main-title { font-size: 16px; }

    /* Blok 6 */
    .kalbar-terbaru-layout { grid-template-columns: 1fr 280px; gap: 24px; }

    /* Video Story */
    .ks-video-card { flex: 0 0 185px; }

    /* Modal Shorts */
    .ks-shorts-container { height: min(85vh, 800px); max-width: calc(100vw - 32px); }
    .ks-shorts-info-panel { width: 320px; max-width: 320px; padding: 16px; }
    .ks-shorts-title { font-size: 15px; }
    .ks-shorts-description { font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — TABLET KECIL (≤900px)
   ============================================================ */
@media (max-width: 900px) {
    .ks-shorts-container { height: min(85vh, 750px); }
    .ks-shorts-info-panel { width: 280px; max-width: 280px; padding: 14px; }
    .ks-shorts-title { font-size: 14px; }
    .ks-shorts-description { font-size: 11.5px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   Video di atas, info panel di bawah
   ============================================================ */
@media (max-width: 768px) {
    /* Blok 1 */
    .kalbar-live-section { padding: 20px 0; }

    /* Blok 3 */
    .kalbar-hariini-card { flex: 0 0 240px; }

    /* Blok 5 */
    .kalbar-pemprov-grid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .kalbar-pemprov-col-main { grid-column: 1 / -1; margin-bottom: 8px; }
    .kalbar-pemprov-main-poster { aspect-ratio: 16 / 9; }
    .kalbar-pemprov-main-title { font-size: 16px; }
    .kalbar-pemprov-poster-title { font-size: 10px; }

    /* Blok 6 */
    .kalbar-terbaru-layout { grid-template-columns: 1fr; gap: 30px; }
    .kalbar-terbaru-sidebar { position: static; }

    /* Section header */
    .kalbar-section-title { font-size: 17px; }

    /* Video Story */
    .ks-video-title { font-size: 17px; }
    .ks-video-title-wrap { padding: 6px 12px; }
    .ks-video-card { flex: 0 0 170px; }
    .ks-video-nav { display: none; }

    /* Phone mockup mobile */
    .ks-phone-mockup { padding: 4px; border-radius: 15px; }
    .ks-phone-notch { height: 8px; width: 30%; top: 8px; border-radius: 10px; }
    .ks-phone-mockup .ks-video-thumb { border-radius: 11px; }
    .ks-video-actions { bottom: 60px; gap: 12px; right: 7px; }
    .ks-video-action svg { width: 18px; height: 18px; }
    .ks-video-action span { font-size: 8px; }
    .ks-video-bottom-overlay { padding: 24px 10px 10px; }
    .ks-video-publisher-inline { font-size: 9px; gap: 3px; }
    .ks-video-publisher-dot { width: 12px; height: 12px; }
    .ks-video-title-overlay { font-size: 9.5px; }

    /* Modal Shorts — mobile */
    .ks-shorts-container {
        flex-direction: column;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        background: #000;
    }

    .ks-shorts-video-area {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
        max-height: 60vh;
        border-radius: 0;
        margin: 0 auto;
    }

    .ks-shorts-scroll { width: 100%; height: 100%; aspect-ratio: unset; margin: 0; }

    .ks-shorts-info-panel {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 16px 16px 0 0;
        padding: 16px;
        margin-top: -16px;
        background: #1a1a2e;
        overflow-y: auto;
        z-index: 10;
        position: relative;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
    }

    .ks-shorts-info-header { padding-bottom: 10px; gap: 10px; }
    .ks-shorts-publisher-avatar { width: 36px; height: 36px; font-size: 14px; }
    .ks-shorts-publisher-name { font-size: 13px; }
    .ks-shorts-publish-date { font-size: 11px; }
    .ks-shorts-title { font-size: 14.5px; }
    .ks-shorts-description { font-size: 12px; -webkit-line-clamp: 3; }
    .ks-shorts-actions { gap: 10px; padding: 8px 0; }
    .ks-shorts-action-btn { font-size: 11px; padding: 5px 8px; }
    .ks-shorts-action-btn svg { width: 16px; height: 16px; }
    .ks-shorts-counter { top: 12px; font-size: 11px; padding: 4px 10px; }
    .ks-shorts-nav { width: 32px; height: 32px; right: 10px; }
    .ks-shorts-nav-up { top: 44px; }
    .ks-shorts-nav-down { bottom: 44px; }
    .ks-shorts-modal-close { top: 12px; right: 12px; width: 36px; height: 36px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤576px)
   ============================================================ */
@media (max-width: 576px) {
    .kalbar-program-frame { padding: 16px; }
    .kalbar-program-title { font-size: 16px; }
    .kalbar-hariini-card { flex: 0 0 220px; }
    .kalbar-terbaru-thumb { flex: 0 0 100px; width: 100px; height: 70px; }
    .kalbar-terbaru-title { font-size: 13px; }
    .kalbar-terbaru-category { font-size: 10px; }
    .kalbar-widget-title { font-size: 14px; padding: 12px 16px; }

    /* Blok 5 */
    .kalbar-pemprov-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .kalbar-pemprov-eyebrow p { font-size: 12px; }
    .kalbar-pemprov-main-title { font-size: 14px; }
    .kalbar-pemprov-main-badge { font-size: 9px; padding: 2px 8px; }
    .kalbar-pemprov-poster-play { width: 36px; height: 36px; }
    .kalbar-pemprov-poster-play svg { width: 16px; height: 16px; }
    .kalbar-pemprov-poster-title { font-size: 9px; }

    /* Video Story */
    .ks-video-section { padding: 16px 0 20px; }
    .ks-video-card { flex: 0 0 155px; }
    .ks-video-slider { gap: 12px; }
    .ks-video-actions { right: 6px; bottom: 55px; gap: 10px; }
    .ks-video-action svg { width: 16px; height: 16px; }
    .ks-video-action span { font-size: 7.5px; }
    .ks-video-bottom-overlay { padding: 20px 9px 9px; }
    .ks-video-publisher-inline { font-size: 8.5px; }
    .ks-video-publisher-dot { width: 11px; height: 11px; }
    .ks-video-title-overlay { font-size: 9px; }

    /* Modal Shorts — small mobile */
    .ks-shorts-video-area { max-height: 65vh; }
    .ks-shorts-info-panel { padding: 14px; margin-top: -14px; }
    .ks-shorts-title { font-size: 14px; }
    .ks-shorts-description { font-size: 11.5px; -webkit-line-clamp: 2; }
    .ks-shorts-action-btn { font-size: 10.5px; padding: 4px 6px; }
    .ks-shorts-action-btn svg { width: 15px; height: 15px; }
}

/* ============================================================
   RESPONSIVE — EXTRA SMALL (≤400px)
   ============================================================ */
@media (max-width: 400px) {
    .kalbar-hariini-card { flex: 0 0 200px; }
    .kalbar-terbaru-link { gap: 10px; }
    .kalbar-terbaru-thumb { flex: 0 0 80px; width: 80px; height: 60px; }
    .kalbar-pemprov-main-title { font-size: 13px; }
    .kalbar-pemprov-poster-play { width: 32px; height: 32px; }
    .kalbar-pemprov-poster-title { font-size: 8px; }
    .ks-video-card { flex: 0 0 140px; }

    /* Modal Shorts */
    .ks-shorts-title { font-size: 13px; }
    .ks-shorts-description { font-size: 11px; }
    .ks-shorts-action-btn { font-size: 10px; gap: 3px; }
    .ks-shorts-action-btn svg { width: 14px; height: 14px; }
    .ks-shorts-publisher-avatar { width: 32px; height: 32px; font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — LAPTOP PENDEK (tinggi < 700px, desktop)
   ============================================================ */
@media (max-height: 700px) and (min-width: 769px) {
    .ks-shorts-container { height: 90vh; max-height: 90vh; }
    .ks-shorts-info-panel { width: 320px; max-width: 320px; padding: 14px; }
}

/* ============================================================
   RESPONSIVE — LANDSCAPE MOBILE
   Video kiri, info panel kanan
   ============================================================ */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    .ks-shorts-container {
        flex-direction: row;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .ks-shorts-video-area {
        height: 100%;
        width: auto;
        aspect-ratio: 9 / 16;
        max-height: 100vh;
        border-radius: 0;
    }
    .ks-shorts-info-panel {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        height: 100%;
        border-radius: 0;
        margin-top: 0;
    }
}

/* ============================================================
   10. DARK MODE
   ============================================================ */
body.dark-mode .kalbar-hariini-card,
body.dark-mode .kalbar-pemprov-card,
body.dark-mode .kalbar-widget {
    background: #162029;
}

body.dark-mode .kalbar-terbaru-title,
body.dark-mode .kalbar-hariini-title,
body.dark-mode .kalbar-pemprov-title,
body.dark-mode .kalbar-video-title {
    color: #e6edf3;
}

body.dark-mode .kalbar-terbaru-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .kalbar-section-title {
    color: #e6edf3;
}

body.dark-mode .kalbar-widget-title {
    background: linear-gradient(135deg, var(--kalbar-primary-dark) 0%, var(--kalbar-primary) 100%);
}

body.dark-mode .ks-video-section {
    background: #162029;
}

body.dark-mode .ks-video-title-wrap {
    background: #1b2630;
}

body.dark-mode .ks-video-title {
    color: #e6edf3;
}

body.dark-mode .ks-video-nav {
    background: #1b2630;
    color: #e6edf3;
}

body.dark-mode .ks-video-nav:hover:not(:disabled) {
    background: #4fb3d8;
    color: #fff;
}

body.dark-mode .ks-phone-mockup .ks-video-link-more {
    background: linear-gradient(135deg, #1e2935 0%, #2d3b4a 100%);
    border-color: #2a3a46;
    color: #4fb3d8;
}

body.dark-mode .ks-phone-mockup .ks-video-more-inner span {
    color: #4fb3d8;
}

/* ============================================================
   11. PRINT
   ============================================================ */
@media print {
    .kalbar-live-section,
    .ks-video-section,
    .kalbar-hariini-section,
    .kalbar-pemprov-section,
    .kalbar-terbaru-sidebar,
    .ks-shorts-modal {
        display: none !important;
    }
}

/* ===== BODY LOCK ===== */
body.ks-shorts-open {
    overflow: hidden;
}

/* ============================================================
   MODAL VIDEO LANDSCAPE — YOUTUBE STYLE
   Untuk Kalbar Hari Ini & video landscape (16:9)
   Terpisah dari modal shorts/portrait
   ============================================================ */

/* Overlay */
.kv-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: kvFadeIn 0.25s ease;
}

.kv-modal.active {
    display: flex;
}

@keyframes kvFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Dialog */
.kv-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    background: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: kvZoomIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes kvZoomIn {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Tombol close */
.kv-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.kv-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Player 16:9 */
.kv-modal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    flex-shrink: 0;
}

.kv-modal-player iframe,
.kv-modal-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Info panel */
.kv-modal-info {
    padding: 16px 20px 20px;
    color: #e5e7eb;
    background: #0f0f0f;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.kv-modal-publisher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
    font-size: 13px;
    margin-bottom: 12px;
}

.kv-modal-publisher-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d5c8a, #1a7bb5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.kv-modal-info-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kv-modal-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: #9ca3af;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kv-modal-meta .kv-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.kv-modal-description {
    font-size: 13px;
    line-height: 1.65;
    color: #d1d5db;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-line;
}

/* Navigasi prev/next */
.kv-modal-nav {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 15;
    backdrop-filter: blur(6px);
}

.kv-modal-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.kv-modal-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.kv-modal-nav.kv-nav-prev { left: 14px; }
.kv-modal-nav.kv-nav-next { right: 14px; }

.kv-modal.has-playlist .kv-modal-nav { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .kv-modal {
        padding: 0;
        align-items: flex-start;
    }

    .kv-modal-dialog {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .kv-modal-player {
        margin-top: 0;
    }

    .kv-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .kv-modal-info {
        padding: 14px 16px 20px;
        max-height: none;
    }

    .kv-modal-info-title {
        font-size: 16px;
    }

    .kv-modal-nav {
        width: 38px;
        height: 38px;
    }

    .kv-modal-nav.kv-nav-prev { left: 8px; }
    .kv-modal-nav.kv-nav-next { right: 8px; }
}

@media (max-width: 480px) {
    .kv-modal-info-title {
        font-size: 15px;
    }

    .kv-modal-description {
        font-size: 12.5px;
        -webkit-line-clamp: 3;
    }

    .kv-modal-publisher {
        font-size: 12px;
    }

    .kv-modal-publisher-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark-mode .kv-modal-dialog,
body.dark-mode .kv-modal-info {
    background: #000;
}



/* ============================================
   FOOTER — KALBAR TV
   ============================================ */

.kalbar-footer {
    background: #0f172a;
    color: #cbd5e1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 48px;
}

.kalbar-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;   /* ← 2 kolom: brand lebih lebar */
    gap: 40px;
    align-items: start;
}

/* ---------- Kolom ---------- */
.kalbar-footer-column {
    display: flex;
    flex-direction: column;
}

.kalbar-footer-brand {
    max-width: 360px;
}

.kalbar-footer-logo {
    margin-bottom: 16px;
}

.kalbar-footer-logo img {
    max-height: 56px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); 
}

.kalbar-footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 20px;
}

/* ---------- Sosial Media ---------- */
.kalbar-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kalbar-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    transition: all 0.25s ease;
    text-decoration: none;
}

.kalbar-footer-social a:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* Warna brand hover */
.kalbar-social-facebook:hover  { background: #1877f2; }
.kalbar-social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.kalbar-social-youtube:hover   { background: #ff0000; }
.kalbar-social-twitter:hover   { background: #0f172a; border: 1px solid #fff; }
.kalbar-social-tiktok:hover    { background: #000; }

/* ---------- Judul Kolom ---------- */
.kalbar-footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.kalbar-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: #e11d48; /* warna aksen — sesuaikan */
}

/* ---------- Link List ---------- */
.kalbar-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kalbar-footer-links li a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
    line-height: 1.6;
}

.kalbar-footer-links li a:hover {
    color: #fff;
    padding-left: 4px;
}

/* ---------- Bottom Bar ---------- */
.kalbar-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #0b1220;
}

.kalbar-footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.kalbar-footer-bottom-inner p {
    margin: 0;
}

.kalbar-footer-credit {
    color: #64748b;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .kalbar-footer-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .kalbar-footer-container {
        grid-template-columns: 1fr 1fr;
        padding: 40px 20px 32px;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .kalbar-footer-container {
        grid-template-columns: 1fr;
        padding: 32px 16px 24px;
        gap: 24px;
    }
    .kalbar-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .kalbar-footer-title {
        font-size: 14px;
    }
    .kalbar-footer-links li a {
        font-size: 13px;
    }
}

/* ============================================================
   FALLBACK BLOK 1 — GRID BERITA (GAMBAR KIRI LEBIH LEBAR)
   ============================================================ */
/* ============================================================
   FALLBACK BLOK 1 — GRID BERITA (RAPI MENGIKUTI CONTAINER)
   ============================================================ */

.kfb-grid {
    display: grid;
    /* Porsi kiri (2.2) dan kanan (1) */
    grid-template-columns: 2.2fr 1fr;
    gap: 8px;
    
    /* IKUTI LEBAR CONTAINER (Tidak melewati batas) */
    width: 100%; 
    
    /* KUNCI PROPORSI: Agar tingginya pas & tidak jangkung */
    aspect-ratio: 2.4 / 1; 
}

/* Kartu Dasar */
.kfb-card {
    position: relative;
    display: block;

    overflow: hidden;
    text-decoration: none;
    background: #1a1a1a;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Berita Utama (Kiri) */
.kfb-main {
    height: 100%;
}

/* Container 2 Berita Kanan */
.kfb-side-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

/* Berita Kanan (Atas & Bawah) */
.kfb-side {
    flex: 1;
    height: 100%;
}

/* Gambar */
.kfb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Penting agar gambar tidak gepeng */
    transition: transform 0.4s ease;
}

.kfb-card:hover .kfb-img {
    transform: scale(1.03);
}

.kfb-img-placeholder {
    position: absolute;
    inset: 0;
    background: #333;
}

/* Gradient Overlay */
.kfb-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
}

/* Konten Teks */
.kfb-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    z-index: 2;
}

/* Tipografi Berita Utama */
.kfb-title-main {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Tipografi Berita Kanan */
.kfb-title-side {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Meta Data */
.kfb-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.kfb-cat {
    color: #fff;
    font-weight: 700;
}

.kfb-sep {
    color: #94a3b8;
}

.kfb-date {
    color: #cbd5e1;
}

/* ============================================================
   RESPONSIVE FALLBACK BLOK 1
   ============================================================ */
@media (max-width: 1024px) {
    .kfb-grid {
        aspect-ratio: auto; /* Matikan aspect-ratio di tablet/HP */
        grid-template-columns: 1fr;
    }
    
    .kfb-main {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    
    .kfb-side-col {
        flex-direction: row;
        height: auto;
    }
    
    .kfb-side {
        aspect-ratio: 16 / 9;
        height: auto;
        flex: 1;
    }
    
    .kfb-title-main { font-size: 1.3rem; }
    .kfb-title-side { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    .kfb-side-col {
        flex-direction: column;
    }
    .kfb-title-main { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .kfb-content { padding: 1rem; }
    .kfb-title-main { font-size: 1.1rem; }
    .kfb-title-side { font-size: 0.9rem; }
}