:root{
  --mw-hover-bg:#f2f2f2;
  --mw-text:#000;
  --mw-logo-yellow:#FCE500;
  --hover-ease:cubic-bezier(.2,0,0,1);
}

.mw-video-block{
  color:var(--mw-text);
}

/* =========================
   HEADER
========================= */
.mw-video-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:1em 0 1em;
  padding: 0 12px;
}

.mw-video-title{
  display:flex;
  align-items:center;
  gap:18px;
  text-align:left;
}

.mw-video-icon{width:80px;flex-shrink:0}
.mw-video-icon path{fill:#db011c}

.mw-video-title h2{
  margin:0;
  font-family:Oswald,Arial Black,sans-serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.8px;
  line-height:1.05;
  font-size:clamp(36px,2.8vw,32px);
  color:var(--mw-text);
}

.mw-video-title h2 span{font-weight:800}

.mw-video-title h2 strong{
  display:block;
  margin-top:4px;
  font-weight:400;
  font-size:.65em;
  letter-spacing:2.5px;
  opacity:.7;
}

/* =========================
   SUBSCRIBE BUTTON
========================= */
.mw-video-cta{
  font-family:"Roboto",Arial,sans-serif;
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  font-weight:800;
  text-decoration:none;
  color:#fff;
  background:#db011c;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid #db011c;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
  transition:background .18s var(--hover-ease),color .18s var(--hover-ease),transform .18s var(--hover-ease),box-shadow .18s var(--hover-ease),border-color .18s var(--hover-ease);
  white-space:nowrap;
}

.mw-video-cta::after{
  content:"";
  width:0;height:0;
  border-left:10px solid #fff;
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  transform:translateY(1px);
  transition:border-left-color .18s var(--hover-ease);
}

.mw-video-cta:hover{
  background:#fff;
  color:#000;
  border-color:#000;
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(0,0,0,.16);
}

.mw-video-cta:hover::after{border-left-color:#000}
.mw-video-cta:focus{outline:2px solid #111;outline-offset:2px}

/* Desktop only */
.mw-video-cta--desktop{display:inline-flex}

/* =========================
   VIDEO CARDS
========================= */

.mw-video-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}
.mw-video-card{
  font-family:"Roboto",Arial,sans-serif;
  max-width:none;
  border-radius:12px;
  padding:12px;
  background:transparent;
  color:var(--mw-text);
  transition:background .18s var(--hover-ease),box-shadow .18s var(--hover-ease),transform .18s var(--hover-ease);
  will-change:transform,box-shadow;
}

.mw-video-card:hover{
  background:var(--mw-hover-bg);
  box-shadow:0 1px 2px rgba(0,0,0,.08),0 6px 18px rgba(0,0,0,.14);
  transform:translateY(-1px);
}


.mw-video-card:hover .mw-video-embed{filter:saturate(.95) contrast(.95)}

.mw-video-card:hover,
.mw-video-card:hover .mw-video-card-title,
.mw-video-card:hover .mw-video-card-title a,
.mw-video-card:hover .mw-video-handle,
.mw-video-card:hover .mw-video-handle a,
.mw-video-card:hover .mw-upload-date{
  color:var(--mw-text);
}

.mw-video-embed{
  position:relative;
  padding-top:56.25%;
  border-radius:10px;
  overflow:hidden;
  background:#000;
  cursor:default;
}

.mw-video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.mw-video-meta{display:flex;gap:12px;padding-top:12px;align-items:flex-start;cursor:pointer}

.mw-video-logo{
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--mw-logo-yellow);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 40px;
  transition:transform .18s var(--hover-ease),box-shadow .18s var(--hover-ease);
  cursor:pointer;
}

.mw-video-logo img{width:26px;height:auto;display:block}

.mw-video-card:hover .mw-video-logo{
  transform:scale(1.04);
  box-shadow:0 2px 8px rgba(0,0,0,.18);
}

.mw-video-content{flex:1;min-width:0}

.mw-video-card-title{
  font-size:14px;
  font-weight:700;
  line-height:1.3;
  margin:0 0 4px 0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

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

.mw-video-handle{font-size:14px;font-weight:500;opacity:.9;margin:0 0 4px 0}
.mw-video-handle a{color:inherit;text-decoration:none}
.mw-video-handle a:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}

.mw-video-card .mw-upload-date{font-size:14px;opacity:.75;margin:0;text-align:left}

/* =========================
   MOBILE BEHAVIOUR
========================= */
@media (max-width:552px){
  .mw-video-header{
    flex-direction:column;
    align-items:center;
    gap:16px;
  }

  .mw-video-grid { 
    grid-template-columns: 1fr; 
  }

  .mw-video-title{
    width:100%;
    max-width:420px;
    text-align:left;
    display:flex;
    flex-direction:row;
    justify-content:center;
  }

  .mw-video-cta--desktop{display:none}
}

@media (max-width:552px){
  .mw-video-cta{
    margin:14px auto 0;
    display:flex;
    justify-content:center;
    font-size:16px;
    padding:12px 20px;
    box-shadow:0 14px 28px rgba(0,0,0,.22);
  }

  .mw-video-cta::after{
    border-left-width:12px;
    border-top-width:8px;
    border-bottom-width:8px;
  }
}

@media (max-width:360px){
  .mw-video-card{padding:10px}
  .mw-video-meta{gap:10px}
}

/* =========================
   FORCE HIDE (BigCommerce/theme override protection)
========================= */
@media (max-width:552px){
  .mw-video-block a.mw-video-cta.mw-video-cta--desktop{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
  }
}

/* =========================
   MOBILE GRID OVERRIDE
========================= */
@media (max-width:552px){
  .mw-video-block .mw-video-grid{
    grid-template-columns:1fr !important;
  }
}

/* =========================
   TABLET/MOBILE GRID OVERRIDE
========================= */
@media (max-width:992px){
  .mw-video-block .mw-video-grid{
    grid-template-columns:1fr !important;
  }
}

@media (max-width:552px){
  .mw-video-title h2{font-size:clamp(28px,6vw,32px)}
  .mw-video-icon{width:64px}
  .mw-video-title{gap:14px}
}

.mw-video-block{
  font-weight:700;
}
