/* ============================================================
   MSTV Home V2 — Refreshed dark theme & grouping system
   Scope: semua style di bawah .mstv-v2 agar tidak ganggu halaman lama
   ============================================================ */

.mstv-v2 {
    --v2-bg: #141417;
    --v2-surface: #1e1e24;
    --v2-surface-2: #26262e;
    --v2-line: #33333d;
    --v2-text: #f4f4f6;
    --v2-muted: #a1a1ad;
    --v2-red: #e5484d;
    --v2-red-dark: #b53337;
    --v2-amber: #f5a524;
    --v2-blue: #3e7bfa;
    --v2-radius: 14px;
    --v2-radius-sm: 9px;

    background-color: var(--v2-bg);
    color: var(--v2-text);
}

.mstv-v2 a { color: var(--v2-text); }
.mstv-v2 a:hover { color: #ffffff; }

.mstv-v2 img { box-shadow: none; }

.mstv-v2 .v2-wrap {
    padding-left: 24px;
    padding-right: 24px;
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
}

/* ============ HERO SEARCH ============ */

.v2-hero {
    padding: 64px 0 34px;
    text-align: center;
}

.v2-hero-eyebrow {
    font-family: haas-med;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--v2-red);
    margin-bottom: 14px;
}

.v2-hero-title {
    font-family: haas-bold;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    margin-bottom: 10px;
}

.v2-hero-sub {
    color: var(--v2-muted);
    font-size: 16px;
    margin-bottom: 30px;
}

.v2-search {
    position: relative;
    max-width: 640px;
    margin: 0 auto 22px;
}

.v2-search .v2-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v2-muted);
    font-size: 18px;
    pointer-events: none;
}

.v2-search input {
    width: 100%;
    height: 60px;
    border-radius: 999px;
    border: 1px solid var(--v2-line);
    background: var(--v2-surface);
    color: var(--v2-text);
    font-family: haas-reg;
    font-size: 16px;
    padding: 0 26px 0 56px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.v2-search input::placeholder { color: var(--v2-muted); }

.v2-search input:focus {
    border-color: var(--v2-red);
    background: var(--v2-surface-2);
    box-shadow: 0 0 0 4px rgba(229, 72, 77, .15);
}

.v2-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.v2-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--v2-line);
    background: var(--v2-surface);
    color: var(--v2-text);
    font-size: 13px;
    font-family: haas-med;
    transition: background .2s, border-color .2s, transform .15s;
}

.v2-chip:hover {
    background: var(--v2-surface-2);
    border-color: var(--v2-red);
    color: #fff;
    transform: translateY(-1px);
}

.v2-chip i { color: var(--v2-red); font-size: 11px; }

/* ============ GROUP HEADER ============ */

.v2-group {
    margin-top: 64px;
}

.v2-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--v2-line);
    position: relative;
}

.v2-group-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 72px;
    height: 3px;
    border-radius: 2px;
    background: var(--v2-accent, var(--v2-red));
}

.v2-group-eyebrow {
    font-family: haas-bold;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--v2-accent, var(--v2-red));
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.v2-group-title {
    font-family: haas-bold;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.15;
}

.v2-group-sub {
    color: var(--v2-muted);
    font-size: 14px;
    margin-top: 6px;
    max-width: 560px;
}

/* ============ SECTION (ROW) ============ */

.v2-section { margin-bottom: 40px; }

.v2-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.v2-section-title {
    font-family: haas-bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.v2-section-title .v2-section-sub {
    font-family: haas-reg;
    font-size: 13px;
    color: var(--v2-muted);
}

.v2-more {
    font-family: haas-med;
    font-size: 13px;
    color: var(--v2-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--v2-line);
    border-radius: 999px;
    transition: color .2s, border-color .2s, background .2s;
}

.v2-more:hover {
    color: #fff;
    border-color: var(--v2-red);
    background: var(--v2-surface-2);
}

/* ============ SCROLLER ============ */

.v2-scroller { position: relative; }

.v2-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 14px;
    scrollbar-width: none;
}

.v2-track::-webkit-scrollbar { display: none; }

.v2-track > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.v2-arrow {
    position: absolute;
    top: 0;
    bottom: 14px;
    width: 44px;
    border: 0;
    border-radius: var(--v2-radius-sm);
    background: linear-gradient(90deg, rgba(20,20,23,.95), rgba(20,20,23,.4));
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-arrow.next {
    right: 0;
    background: linear-gradient(-90deg, rgba(20,20,23,.95), rgba(20,20,23,.4));
}

.v2-arrow.prev { left: 0; }

.v2-scroller:hover .v2-arrow { opacity: 1; }
.v2-arrow:hover { color: var(--v2-red); }
.v2-arrow[disabled] { opacity: 0 !important; pointer-events: none; }

@media (hover: none) {
    .v2-arrow { display: none; }
}

/* ============ VIDEO CARD ============ */

.v2-card {
    width: 292px;
    background: var(--v2-surface);
    border: 1px solid transparent;
    border-radius: var(--v2-radius);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s, background .22s;
    display: block;
}

.v2-card:hover {
    transform: translateY(-5px);
    border-color: var(--v2-line);
    background: var(--v2-surface-2);
}

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

.v2-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
    transition: transform .35s ease, opacity .35s ease;
}

.v2-card:hover .v2-card-thumb img { transform: scale(1.06); }

.v2-card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55));
    pointer-events: none;
}

.v2-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.8);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(229, 72, 77, .92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    padding-left: 3px;
    opacity: 0;
    transition: opacity .22s, transform .22s;
    z-index: 2;
    pointer-events: none;
}

.v2-card:hover .v2-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.v2-badges {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.v2-badge {
    font-family: haas-bold;
    font-size: 9px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 6px;
    color: #fff;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
}

.v2-badge.red { background: var(--v2-red); }
.v2-badge.amber { background: var(--v2-amber); color: #1a1200; }
.v2-badge.dark { background: rgba(0,0,0,.72); }

.v2-badge.live::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    margin-right: 5px;
    animation: v2pulse 1.4s infinite;
}

@keyframes v2pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

.v2-card-body { padding: 14px 14px 16px; }

.v2-card-title {
    font-family: haas-bold;
    font-size: 15px;
    line-height: 1.3;
    color: var(--v2-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    margin-bottom: 7px;
}

.v2-card-meta {
    font-size: 12px;
    color: var(--v2-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.v2-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--v2-muted); }

.v2-card-langs {
    display: flex;
    gap: 5px;
    margin-top: 11px;
}

.v2-lang {
    font-family: haas-bold;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid var(--v2-line);
    color: var(--v2-muted);
}

.v2-lang.on { color: #fff; border-color: var(--v2-line); background: var(--v2-surface-2); }

/* ============ LIVE CARDS (Today) ============ */

.v2-live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.v2-live-card {
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    overflow: hidden;
}

.v2-live-card .v2-card-thumb { aspect-ratio: 16/9; }

.v2-live-body { padding: 16px; }

.v2-live-title {
    font-family: haas-bold;
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.v2-live-meta {
    color: var(--v2-muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.v2-watch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    font-family: haas-bold;
    font-size: 14px;
    letter-spacing: .4px;
    color: #fff;
    background: var(--v2-red);
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.v2-watch-btn:hover { background: var(--v2-red-dark); transform: translateY(-1px); color: #fff; }
.v2-watch-btn.amber { background: var(--v2-amber); color: #1a1200; }
.v2-watch-btn.amber:hover { background: #d88d1d; color: #1a1200; }
.v2-watch-btn.dark { background: var(--v2-surface-2); border: 1px solid var(--v2-line); }
.v2-watch-btn.dark:hover { border-color: var(--v2-red); }

/* ============ FEATURE BANNER (Following Jesus / Living Worship) ============ */

.v2-feature {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.v2-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,20,23,.05) 30%, rgba(20,20,23,.55) 62%, var(--v2-bg) 96%);
    pointer-events: none;
}

.v2-feature-inner {
    position: relative;
    padding-top: clamp(240px, 32vw, 460px);
}

/* ============ SPEAKER ============ */

.v2-speaker {
    width: 150px;
    text-align: center;
    display: block;
}

.v2-speaker .v2-ava {
    width: 132px;
    height: 132px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--v2-line);
    transition: border-color .22s, transform .22s;
    background: var(--v2-surface);
}

.v2-speaker .v2-ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.v2-speaker:hover .v2-ava {
    border-color: var(--v2-red);
    transform: scale(1.05);
}

.v2-speaker-name {
    font-family: haas-med;
    font-size: 13px;
    line-height: 1.35;
    color: var(--v2-text);
}

/* ============ TILE GRID (Podcast / Pengajaran / Prayer) ============ */

.v2-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.v2-tile {
    position: relative;
    border-radius: var(--v2-radius);
    overflow: hidden;
    display: block;
    background: var(--v2-surface);
    border: 1px solid transparent;
    transition: transform .22s, border-color .22s;
}

.v2-tile:hover { transform: translateY(-4px); border-color: var(--v2-line); }

.v2-tile img { width: 100%; display: block; border-radius: 0; transition: transform .35s; }
.v2-tile:hover img { transform: scale(1.04); }

.v2-tile .v2-tile-label {
    position: absolute;
    left: 14px;
    bottom: 12px;
    right: 14px;
    font-family: haas-bold;
    font-size: 15px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.v2-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.6));
}

/* ============ MODAL V2 ============ */

.v2-modal .modal-content {
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    overflow: hidden;
    color: var(--v2-text);
}

.v2-modal .modal-header {
    border-bottom: 1px solid var(--v2-line);
    background: var(--v2-surface-2);
}

.v2-modal .modal-title { font-family: haas-bold; font-size: 17px; }

.v2-modal .modal-body { padding: 20px; }

.v2-modal-session {
    padding: 16px;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius-sm);
    margin-bottom: 14px;
    background: var(--v2-surface-2);
}

.v2-modal-session:last-child { margin-bottom: 0; }

.v2-modal-pl { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--v2-muted); font-family: haas-med; }
.v2-modal-name { font-size: 17px; font-family: haas-bold; margin: 5px 0 12px; line-height: 1.3; }

.v2-lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 15px;
    margin-bottom: 8px;
    border-radius: 9px;
    border: 1px solid var(--v2-line);
    background: transparent;
    color: var(--v2-text);
    font-family: haas-med;
    font-size: 14px;
    transition: background .18s, border-color .18s;
}

.v2-lang-btn:hover { background: var(--v2-red); border-color: var(--v2-red); color: #fff; }
.v2-lang-btn:last-child { margin-bottom: 0; }

/* ============ DIVIDER / MISC ============ */

.v2-countdown-note {
    text-align: center;
    color: var(--v2-muted);
    font-size: 13px;
    margin-top: 8px;
}

.mstv-v2 .v2-wrap hr { display: none; }

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

@media screen and (max-width: 640px) {
    .mstv-v2 .v2-wrap { padding-left: 18px; padding-right: 18px; }
    .v2-hero { padding: 42px 0 26px; }
    .v2-group { margin-top: 46px; }
    .v2-card { width: 236px; }
    .v2-speaker { width: 118px; }
    .v2-speaker .v2-ava { width: 104px; height: 104px; }
    .v2-group-head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .v2-feature-inner { padding-top: 200px; }
    .v2-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media screen and (min-width: 1440px) {
    .v2-card { width: 310px; }
}
