/* ============================================================
   Repair & Care — premium Back Market-style page
   Class prefix: .bmr-* (Back-market Repair)
   ============================================================ */

.bm-repair {
    --bmr-ink: #0f1216;
    --bmr-text: #1a1d24;
    --bmr-muted: #57617c;
    --bmr-faint: #8b95a6;
    --bmr-bg: #ffffff;
    --bmr-bg-soft: #f6f7fa;
    --bmr-bg-warm: #faf8f4;
    --bmr-border: #e8eaf0;
    --bmr-border-soft: #eef0f4;
    --bmr-accent: #97D700;
    --bmr-accent-deep: #6e9d00;
    --bmr-tr: 240ms cubic-bezier(.2,.7,.2,1);
    --bmr-radius: 16px;
    --bmr-radius-lg: 22px;
    --bmr-radius-pill: 999px;
    background: var(--bmr-bg);
    color: var(--bmr-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.bm-repair .container { max-width: 1240px; }
.bm-repair section { padding: 88px 0; }

/* Shared typography */
.bmr-h2 {
    font-size: 40px;
    line-height: 1.12;
    letter-spacing: -0.015em;
    font-weight: 700;
    color: var(--bmr-ink);
    margin: 0 0 14px;
}
.bmr-h2--light { color: #fff; }
.bmr-section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.bmr-section-head--light p, .bmr-section-head--light .bmr-section-sub { color: rgba(255,255,255,0.7); }
.bmr-section-sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--bmr-muted);
    margin: 0;
}

/* Buttons */
.bmr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--bmr-radius-pill);
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform var(--bmr-tr), background var(--bmr-tr), color var(--bmr-tr), border-color var(--bmr-tr);
    cursor: pointer;
}
.bmr-btn:hover { transform: translateY(-1px); text-decoration: none; }
.bmr-btn--dark {
    background: var(--bmr-ink);
    color: #fff;
    border-color: var(--bmr-ink);
}
.bmr-btn--dark:hover { background: #000; color: #fff; }
.bmr-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.bmr-btn--ghost:hover { background: #fff; color: var(--bmr-ink); border-color: #fff; }

/* Empty state */
.bmr-empty {
    background: #fff;
    border: 1px dashed var(--bmr-border);
    border-radius: var(--bmr-radius-lg);
    padding: 72px 24px;
    text-align: center;
    color: var(--bmr-faint);
}
.bmr-empty svg { display: block; margin: 0 auto 12px; color: #cdd3df; }
.bmr-empty p { margin: 0; font-size: 15px; }

/* ============================================================
   1. HERO
   ============================================================ */
.bmr-hero {
    background: var(--bmr-bg-warm);
    padding-top: 80px;
    padding-bottom: 80px;
    text-align: center;
}
.bmr-hero-title {
    font-size: clamp(36px, 4.8vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--bmr-ink);
    margin: 0 0 16px;
}
.bmr-hero-sub {
    max-width: 640px;
    margin: 0 auto 6px;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.5;
    color: var(--bmr-text);
}
.bmr-hero-sub--muted { color: var(--bmr-muted); }

/* ============================================================
   2. DIY REPAIR
   ============================================================ */
.bmr-diy { background: #fff; padding-left: 80px; padding-right: 80px; }
.bmr-diy-grid {
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 72px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
}
.bmr-diy-body h2 { margin-bottom: 16px; font-size: clamp(28px, 3vw, 40px); }
.bmr-diy-text { font-size: 16px; line-height: 1.6; color: var(--bmr-muted); margin: 0 0 24px; max-width: 48ch; }
.bmr-diy-media {
    aspect-ratio: 5 / 4;
    border-radius: 22px;
    overflow: hidden;
    background: var(--bmr-bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px -30px rgba(20,24,36,0.18);
}
.bmr-diy-img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--bmr-tr); }
.bmr-diy-media:hover .bmr-diy-img { transform: scale(1.02); }
.bmr-diy-placeholder {
    color: #cdd3df;
    background: linear-gradient(135deg, #f4f6f0 0%, #ecefe0 100%);
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
/* Smaller, more premium CTA in the DIY column */
.bmr-diy-body .bmr-btn {
    padding: 12px 20px;
    font-size: 14.5px;
    border-radius: var(--bmr-radius-pill);
    transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.bmr-diy-body .bmr-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -16px rgba(15, 18, 22, 0.45);
}

/* ============================================================
   3. STARTER KITS SLIDER (uses real product cards via aiz-carousel)
   ============================================================ */
.bmr-kits { background: var(--bmr-bg-soft); }
.bmr-section-head--with-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: 100%;
    text-align: left;
}
.bmr-section-head--with-nav .bmr-section-head-text { max-width: 760px; }
.bmr-kits-nav { display: flex; gap: 8px; flex-shrink: 0; }
.bmr-kits-carousel .carousel-box { padding: 6px 8px; }
.bmr-kits-carousel .bm-pcard { height: 100%; }
@media (max-width: 767px) {
    .bmr-section-head--with-nav { flex-direction: column; align-items: flex-start; gap: 16px; text-align: left; }
    .bmr-kits-nav { align-self: flex-end; }
}
.bmr-slider { position: relative; }
.bmr-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 24px;
    margin: -4px -4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bmr-slider-track::-webkit-scrollbar { display: none; }
.bmr-slider-track > * { scroll-snap-align: start; flex-shrink: 0; }
.bmr-slider-controls {
    position: absolute;
    top: -64px;
    right: 0;
    display: flex;
    gap: 8px;
}
.bmr-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bmr-border);
    background: #fff;
    color: var(--bmr-ink);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--bmr-tr), border-color var(--bmr-tr), transform var(--bmr-tr);
}
.bmr-arrow:hover { background: var(--bmr-ink); border-color: var(--bmr-ink); color: #fff; transform: translateY(-1px); }

.bmr-kit-card {
    width: 280px;
    background: #fff;
    border: 1px solid var(--bmr-border);
    border-radius: var(--bmr-radius);
    padding: 18px 18px 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--bmr-tr), box-shadow var(--bmr-tr), border-color var(--bmr-tr);
}
.bmr-kit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -26px rgba(20,24,36,0.18);
    border-color: #d8dde8;
    text-decoration: none;
}
.bmr-kit-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: var(--bmr-bg-soft);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    color: #cdd3df;
}
.bmr-kit-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bmr-kit-body { display: flex; flex-direction: column; flex: 1; }
.bmr-kit-cat {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bmr-faint);
    margin-bottom: 6px;
    font-weight: 700;
}
.bmr-kit-title {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--bmr-ink);
    margin: 0 0 14px;
}
.bmr-kit-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14.5px;
}
.bmr-kit-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--bmr-muted);
    font-weight: 600;
}
.bmr-kit-rating svg { color: #f5b400; }
.bmr-kit-price {
    color: var(--bmr-ink);
    font-weight: 800;
    font-size: 16px;
}

/* ============================================================
   4. FAQ ACCORDION — Back Market-style separated cards
   ============================================================ */
.bmr-faq { background: #fff; }
.bmr-faq-container { max-width: 1240px; }
.bmr-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.bmr-acc-item {
    background: #fff;
    border-radius: 14px;
    transition: background var(--bmr-tr), box-shadow var(--bmr-tr);
}
.bmr-acc-item:hover { background: var(--bmr-bg-soft); }
.bmr-acc-item.is-open { background: var(--bmr-bg-soft); }
.bmr-acc-trigger {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 14px;
    transition: color var(--bmr-tr);
}
.bmr-acc-trigger:focus { outline: none; }
.bmr-acc-q {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bmr-ink);
    letter-spacing: -0.005em;
}
.bmr-acc-icon {
    flex-shrink: 0;
    color: var(--bmr-ink);
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform var(--bmr-tr);
}
.bmr-acc-item.is-open .bmr-acc-icon { transform: rotate(180deg); }
.bmr-acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--bmr-tr) ease;
}
.bmr-acc-item.is-open .bmr-acc-panel { max-height: 1200px; }
.bmr-acc-body {
    padding: 0 32px 28px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--bmr-muted);
}

/* ============================================================
   5. LEARN TECH CARE (media slider)
   ============================================================ */
.bmr-media { background: var(--bmr-bg-soft); }
.bmr-media-card {
    position: relative;
    width: 280px;
    aspect-ratio: 3 / 4.4;
    background: #2a1f4a;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--bmr-tr), box-shadow var(--bmr-tr);
    display: flex; flex-direction: column;
}
.bmr-media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -28px rgba(20,24,36,0.35);
    text-decoration: none;
}
.bmr-media-thumb {
    width: 100%;
    flex: 1 1 auto;
    background: #2a1f4a;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.bmr-media-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.18);
}
.bmr-media-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: #fff;
    color: #1a1326;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 22px rgba(0,0,0,0.28);
    transition: transform var(--bmr-tr), background var(--bmr-tr);
}
.bmr-media-card:hover .bmr-media-play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.bmr-media-body {
    position: relative;
    padding: 16px 18px 18px;
    background: transparent;
    color: #fff;
}
.bmr-media-cat {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}
.bmr-media-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0;
}
.bmr-media-card[style*="background-image"] .bmr-media-thumb,
.bmr-media-thumb[style*="background-image"] {
    flex: 1 1 60%;
}
.bmr-media-card .bmr-media-thumb::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(42,31,74,0) 0%, rgba(42,31,74,0.85) 70%, rgba(42,31,74,0.95) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--bmr-tr);
}
.bmr-media-thumb[style*="background-image"]::after {
    opacity: 1;
}

/* ============================================================
   6. FAST TECH CTA — editorial, light, 3-up dark cards
   ============================================================ */
.bmr-cta {
    background: #f4f4f4;
    color: #111;
    padding: 96px 0 104px;
}
.bmr-cta-head {
    text-align: center;
    margin-bottom: 56px;
}
.bmr-cta-heading {
    font-family: "Times New Roman", Georgia, "Cambria", serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #000;
    margin: 0;
}
.bmr-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}
.bmr-cta-card {
    background: #000;
    color: #fff;
    border-radius: 12px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.bmr-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.35);
}
.bmr-cta-card-top {
    margin-bottom: 32px;
}
.bmr-cta-title {
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
}
.bmr-cta-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}
.bmr-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    padding: 0 18px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.bmr-cta-btn:hover,
.bmr-cta-btn:focus {
    background: #e5e5e5;
    color: #000;
    text-decoration: none;
}
@media (max-width: 991px) {
    .bmr-cta {
        padding: 72px 0 80px;
    }
    .bmr-cta-head {
        margin-bottom: 40px;
    }
    .bmr-cta-heading {
        font-size: 42px;
    }
    .bmr-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .bmr-cta-card {
        min-height: 220px;
    }
}
@media (max-width: 575px) {
    .bmr-cta {
        padding: 56px 0 64px;
    }
    .bmr-cta-heading {
        font-size: 34px;
    }
    .bmr-cta-grid {
        grid-template-columns: 1fr;
    }
    .bmr-cta-card {
        min-height: 200px;
    }
}

/* ============================================================
   7. NEWS SLIDER — compact editorial cards, left-aligned header
   ============================================================ */
.bm-repair .bmr-news {
    background: var(--bmr-bg-soft);
    padding: 64px 0 80px;
}
.bmr-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    max-width: 100%;
    text-align: left;
}
.bmr-news-heading {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: #111;
    margin: 0;
}
.bmr-news-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.bmr-news-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e4e6ea;
    background: #f5f6f8;
    color: #6c7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.bmr-news-arrow:hover {
    background: #e7e9ed;
    color: #111;
    border-color: #d6d9de;
}
.bmr-news-arrow--filled {
    background: #111;
    border-color: #111;
    color: #fff;
}
.bmr-news-arrow--filled:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}
.bmr-news-card {
    width: 360px;
    min-height: 240px;
    background: #fff;
    border: 1px solid #ececef;
    border-radius: 10px;
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bmr-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -18px rgba(20, 24, 36, 0.18);
    border-color: #d9dbe0;
    text-decoration: none;
}
.bmr-news-top {
    width: 100%;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececef;
    margin-bottom: 18px;
}
.bmr-news-logo {
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
}
.bmr-news-publisher-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #7a8190;
    font-weight: 700;
}
.bmr-news-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1 1 auto;
}
.bmr-news-headline {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
    color: #111;
    margin: 0 0 10px;
    letter-spacing: -0.003em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bmr-news-date {
    margin-top: auto;
    font-size: 13px;
    color: #6e7484;
    font-weight: 400;
}
@media (max-width: 991px) {
    .bm-repair .bmr-news {
        padding: 48px 0 60px;
    }
    .bmr-news-card {
        width: 300px;
    }
}
@media (max-width: 575px) {
    .bmr-news-card {
        width: 260px;
        padding: 18px 18px 16px;
    }
    .bmr-news-top {
        height: 80px;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    .bmr-news-logo {
        max-height: 48px;
        max-width: 140px;
    }
}

/* ============================================================
   8. NEWSLETTER — Back Market-style clean layout
   ============================================================ */
.bmr-newsletter {
    background: #fff;
    padding: 80px 0 64px;
    border-top: 1px solid var(--bmr-border);
}
.bmr-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}
.bmr-news-text h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.005em;
}
.bmr-news-text .bmr-section-sub {
    font-size: 15px;
    line-height: 1.55;
    color: var(--bmr-muted);
    margin: 0;
}
.bmr-news-form {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
}
.bmr-news-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.bmr-news-input {
    width: 100%;
    height: 56px;
    background: #fff;
    border: 1px solid var(--bmr-border);
    border-radius: 10px;
    padding: 0 48px 0 18px;
    font-size: 15.5px;
    color: var(--bmr-ink);
    font-family: inherit;
    transition: border-color var(--bmr-tr), box-shadow var(--bmr-tr);
}
.bmr-news-input::placeholder { color: var(--bmr-faint); }
.bmr-news-input:focus {
    outline: none;
    border-color: var(--bmr-ink);
    box-shadow: 0 0 0 4px rgba(15,18,22,0.08);
}
.bmr-news-input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--bmr-muted);
    pointer-events: none;
    display: inline-flex;
}
.bmr-news-btn {
    flex-shrink: 0;
    height: 56px;
    border-radius: 10px;
    padding: 0 28px;
    font-size: 15.5px;
    font-weight: 700;
}
.bmr-news-btn:hover { transform: none; }
.bmr-news-learnmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bmr-ink);
    text-decoration: none;
    transition: color var(--bmr-tr);
}
.bmr-news-learnmore:hover { color: var(--bmr-accent-deep); text-decoration: none; }
.bmr-news-learnmore svg { transition: transform var(--bmr-tr); }
.bmr-news-learnmore:hover svg { transform: translateY(1px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    .bm-repair section { padding: 64px 0; }
    .bmr-hero { padding-top: 64px; padding-bottom: 64px; }
    .bmr-diy { padding-left: 40px; padding-right: 40px; }
    .bmr-diy-grid { grid-template-columns: 1fr; gap: 32px; }
    .bmr-news-grid { grid-template-columns: 1fr; gap: 24px; }
    .bmr-slider-controls { position: static; margin-top: -8px; margin-bottom: 16px; justify-content: flex-end; }
}
@media (max-width: 575px) {
    .bm-repair section { padding: 56px 0; }
    .bmr-hero { padding-top: 52px; padding-bottom: 52px; }
    .bmr-diy { padding-left: 20px; padding-right: 20px; }
    .bmr-kit-card { width: 240px; }
    .bmr-media-card { width: 270px; }
    .bmr-acc-q { font-size: 17px; }
    .bmr-acc-trigger { padding: 22px 20px; }
    .bmr-acc-body { padding: 0 20px 22px; }
    .bmr-news-form { flex-direction: column; gap: 12px; max-width: none; margin-left: 0; }
    .bmr-news-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   MEDIA CARD: IN-APP VIDEO PLAYER (inline <video> + iframe modal)
   ============================================================ */
.bmr-media-card { cursor: pointer; text-decoration: none; }
.bmr-media-card:focus { outline: 2px solid #1a1d24; outline-offset: 2px; }
.bmr-media-thumb { position: relative; overflow: hidden; }

/* Video-only variant — no title/category, thumb fills the whole card */
.bmr-media-card--video-only .bmr-media-thumb,
.bmr-media-card--video-only .bmr-media-thumb[style*="background-image"] {
    flex: 1 1 100%;
    height: 100%;
}
.bmr-media-card--video-only .bmr-media-thumb::after { display: none !important; }
.bmr-media-inline-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    z-index: 5;
}
.bmr-media-card.is-playing .bmr-media-thumb { background-color: #000; }

#bmr-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}
#bmr-video-modal.is-open { display: flex; }
.bmr-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 15, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.bmr-video-modal-content {
    position: relative;
    width: min(1100px, 92vw);
    max-height: 90vh;
}
.bmr-video-modal-iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.bmr-video-modal-iframe-wrap iframe,
.bmr-video-modal-iframe-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.bmr-video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #1a1d24;
    border: 0;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 180ms ease, background 180ms ease;
}
.bmr-video-modal-close:hover { background: #d8ef63; transform: scale(1.08); }

@media (max-width: 575px) {
    .bmr-video-modal-content { width: 96vw; }
    .bmr-video-modal-iframe-wrap { border-radius: 10px; }
    .bmr-video-modal-close { top: -42px; right: 4px; width: 34px; height: 34px; font-size: 22px; }
}
