/* ===== Shared wrapper ===== */
.mm-v10-wrap{
  position:relative;
  --mm-accent: #ffd24a;
  --mm-footer-bg: #071427;
  max-width:1240px;
  margin:0 auto;
  padding:28px 16px 84px;
  background: radial-gradient(900px 420px at 15% 0%, rgba(90,150,255,.10), transparent 60%),
              radial-gradient(780px 420px at 90% 10%, rgba(255,40,70,.08), transparent 55%),
              linear-gradient(135deg,#0c1f3f,#111b33);
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  color:#e9f0ff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.mm-v10-wrap::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-1px;
  height:130px;
  background: linear-gradient(to bottom,
    rgba(7,20,39,0) 0%,
    rgba(7,20,39,.55) 45%,
    rgba(7,20,39,1) 85%,
    rgba(7,20,39,1) 100%
  );
  pointer-events:none;
  border-radius: 0 0 18px 18px;
}
.mm-v10-titlebar{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:14px;
}
.mm-v10-title{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  position:relative; overflow:hidden;
  font-weight:900; letter-spacing:-.02em;
}
.mm-v10-title::before{
  content:""; position:absolute; inset:0; width:52%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(255,40,70,.20),
    rgba(90,150,255,.18),
    rgba(255,255,255,.16),
    rgba(255,255,255,0)
  );
  transform: translateX(-120%);
  opacity:.75;
  mix-blend-mode:screen;
  animation:mmV10Sweep 3.2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes mmV10Sweep{
  0%{transform:translateX(-120%);opacity:0}
  12%{opacity:.75}
  70%{transform:translateX(240%);opacity:0}
  100%{transform:translateX(240%);opacity:0}
}
.mm-v10-eye{
  width:7px;height:7px;border-radius:999px;
  background: rgba(255,40,70,.95);
  box-shadow: 0 0 12px rgba(90,150,255,.18);
  animation:mmV10Eye 2.2s ease-in-out infinite;
}
@keyframes mmV10Eye{
  0%,100%{transform:scale(1);opacity:.70}
  45%{transform:scale(1.75);opacity:1}
}

/* Hide the "wrong" layout if UA detection is off: CSS fallback by width */
.mm-v10-desktop{ display:block; }
.mm-v10-mobile { display:none; }
@media (max-width: 1024px){
  .mm-v10-desktop{ display:none; }
  .mm-v10-mobile { display:block; }
}

/* ===== Desktop V10 ===== */
.mm-v10-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin: 8px 0 14px;
}

/* Smaller sub-category pills */
.mm-v10-tab{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  color: rgba(233,240,255,.88);
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  font-size:11px;
  letter-spacing:.10em;
  text-transform:uppercase;
  cursor:pointer;
  line-height:1;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease, color .16s ease;
}

.mm-v10-tab[aria-selected="true"]{
  border-color: rgba(90,150,255,.34);
  background: rgba(90,150,255,.14);
  color: rgba(233,240,255,.98);
}

@media (hover:hover){
  .mm-v10-tab:hover{
    transform: translateY(-1px);
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
  }
  .mm-v10-tab[aria-selected="true"]:hover{
    border-color: rgba(90,150,255,.46);
    background: rgba(90,150,255,.18);
  }
}

.mm-v10-tab:focus-visible{
  outline: 2px solid rgba(90,150,255,.55);
  outline-offset: 3px;
}

.mm-v10-grid{
  display:grid;
  grid-template-columns: 1.35fr 1fr 0.9fr;
  gap:16px;
  align-items:stretch;
}
.mm-v10-card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius:18px;
  overflow:hidden;
  position:relative;
  text-decoration:none;
  color:inherit;
}
.mm-v10-thumb{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.mm-v10-featured .mm-v10-thumb{ height: 330px; }
.mm-v10-category .mm-v10-thumb{ height: 330px; }

.mm-v10-overlay{
  position:absolute; left:0; right:0; bottom:0;
  padding:12px 14px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.78) 28%, rgba(0,0,0,.92) 100%);
}
.mm-v10-kicker{
  display:flex; align-items:center; gap:8px;
  color: rgba(233,240,255,.66);
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mm-v10-dot{
  width:7px;height:7px;border-radius:999px;
  background: rgba(90,150,255,.75);
}
.mm-v10-rt::before{ content:"⏱ "; opacity:.95; }
.mm-v10-h3{
  margin:8px 0 0;
  font-size:18px;
  line-height:1.15;
  font-weight:900;
  letter-spacing:-.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,.65), 0 1px 0 rgba(0,0,0,.35);
}
.mm-v10-desc{
  margin:8px 0 0;
  color: rgba(233,240,255,.74);
  font-size:13px;
  line-height:1.35;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.mm-v10-badge{
  position:absolute; top:12px; left:12px;
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background: linear-gradient(90deg, rgba(255,40,70,.92), rgba(90,150,255,.80));
  border:1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}

.mm-v10-middle{
  display:flex; flex-direction:column; gap:12px;
  height:100%;
  justify-content:center; /* vertically center the 4 middle rows vs left/right columns */
}

/* Middle column titles should NOT be bold */
.mm-v10-desktop .mm-v10-middle .mm-v10-v5title{ font-weight:500; }

/* Make middle rows feel clickable */
.mm-v10-v5row{ cursor:pointer; }
.mm-v10-divider{
  height: 12px;
  border-radius: 999px;
  max-width: 240px;
  margin: 2px auto 2px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0),
    rgba(90,150,255,.14),
    rgba(255,255,255,.10),
    rgba(255,40,70,.10),
    rgba(90,150,255,.12),
    rgba(255,255,255,0)
  );
  opacity: .85;
}

.mm-v10-v5row{
  display:flex; align-items:center; gap:10px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration:none;
  color:inherit;
}
.mm-v10-v5row:active{
  transform: translateY(1px);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.18);
}
.mm-v10-strip{
  width:4px; align-self:stretch; border-radius:999px;
  background: linear-gradient(180deg, rgba(255,40,70,.65), rgba(90,150,255,.60));
}
.mm-v10-miniThumb{
  width:76px; height:62px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.12);
  background-size:cover;
  background-position:center;
  box-shadow: 0 12px 22px rgba(0,0,0,.20);
  flex:0 0 auto;
}
.mm-v10-v5txt{ min-width:0; display:flex; flex-direction:column; }
.mm-v10-v5meta{
  display:flex; align-items:center; gap:6px;
  color: rgba(233,240,255,.56);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mm-v10-v5meta .mm-v10-dot{ opacity:.70; }
.mm-v10-v5cat{
  max-width: 11em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  display:inline-block;
}
.mm-v10-v5title{
  margin-top:6px;
  font-size:14.5px;
  line-height:1.22;
  font-weight:700;
  color: rgba(233,240,255,.96);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.mm-v10-cta{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(90,150,255,.22);
  background: rgba(90,150,255,.10);
  color: rgba(210,230,255,.96);
  font-weight:900;
  font-size:12px;
  width: fit-content;
}
.mm-v10-category:active .mm-v10-cta{
  background: rgba(90,150,255,.14);
  border-color: rgba(90,150,255,.30);
}

/* ===== Mobile/Tablet V10 ===== */
.mm-mob-stack{ display:flex; flex-direction:column; gap:12px; }
.mm-mob-card{ border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); text-decoration:none; color:inherit; position:relative; }
.mm-mob-thumb{ background-size:cover; background-position:center; height: clamp(176px, 32vw, 256px); }
.mm-mob-thumb.small{ height: clamp(112px, 20.8vw, 160px); }
.mm-mob-overlay{
  position:absolute; left:0; right:0; bottom:0;
  padding:10px 12px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 24%, rgba(0,0,0,.92) 100%);
}

/* --- Unified hover for ALL cards/rows (featured, middle rows, category, mobile cards) --- */
.mm-v10-card,
.mm-v10-v5row,
.mm-mob-card{
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease, background-color .18s ease;
  will-change: transform;
}

@media (hover:hover){
  .mm-v10-card:hover,
  .mm-mob-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 52px rgba(0,0,0,.55);
    border-color: rgba(90,150,255,.32);
    filter: saturate(1.06) brightness(1.04);
  }

  .mm-v10-card:hover .mm-v10-overlay,
  .mm-mob-card:hover .mm-mob-overlay{
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.76) 24%, rgba(10,20,40,.95) 100%);
  }

  .mm-v10-v5row:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(0,0,0,.46);
    background: linear-gradient(90deg, rgba(90,150,255,.10), rgba(255,40,70,.06));
    border-color: rgba(90,150,255,.34);
  }

  .mm-v10-v5row:hover::after{
    opacity:1;
    transform: translateY(-50%) translateX(0);
    color: rgba(233,240,255,.92);
  }

  .mm-v10-v5row:hover .mm-v10-miniThumb{
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 18px 34px rgba(0,0,0,.30);
  }
}

/* Row affordance: subtle arrow appears on hover/focus */
.mm-v10-v5row{ position:relative; }
.mm-v10-v5row::after{
  content:"→";
  position:absolute;
  right:12px;
  top:50%;
  transform: translateY(-50%) translateX(-4px);
  opacity:0;
  font-weight:900;
  color: rgba(233,240,255,.70);
  transition: opacity .18s ease, transform .18s ease, color .18s ease;
}

/* Better keyboard focus */
.mm-v10-card:focus-visible,
.mm-v10-v5row:focus-visible,
.mm-mob-card:focus-visible{
  outline: 2px solid rgba(90,150,255,.55);
  outline-offset: 4px;
  border-color: rgba(90,150,255,.34);
}

.mm-v10-v5row:focus-visible::after{ opacity:1; transform: translateY(-50%) translateX(0); color: rgba(233,240,255,.92); }

/* Keep tabs tighter on smaller desktops */
@media (max-width: 1220px){
  .mm-v10-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .mm-v10-tabs::-webkit-scrollbar{ display:none; }
}


.mm-v10-mobileTitle{font-size:14px;}
.mm-v10-mobileDescMuted{color:rgba(233,240,255,.62);}
