.mm-app-grid-section {
  padding: 20px 0;
  font-family: 'DM Sans', sans-serif;
  background: #fff;
}

.mm-app-grid-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.mm-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Card Container */
.mm-app-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: flex-end;
  background: #000;
}

/* Full Background Video */
.mm-app-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Label (New/Updated) */
.mm-app-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcdcdc;
  color: #000;
  z-index: 2;
}
.mm-app-label.new {
  background: #dcdcdc;
}
.mm-app-label.updated {
  background: #e0e0e0;
}

/* Overlay Meta Box */
.mm-app-overlay {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 16px;
  margin: 16px;
  border-radius: 12px;
  width: calc(100% - 32px);
}

/* Meta Content */
.mm-app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mm-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.mm-app-info {
  display: flex;
  flex-direction: column;
}

.mm-app-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.mm-app-subtitle {
  font-size: 13px;
  color: #444;
  margin-top: 2px;
}

.mm-audio-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mm-audio-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .mm-app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .mm-app-card {
    aspect-ratio: 9 / 16;
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  .mm-app-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mm-app-grid-section {
    padding: 15px 0;
  }

  .mm-app-grid-container {
    padding: 0 20px;
  }

  .mm-app-card {
    aspect-ratio: 9 / 16;
    border-radius: 14px;
  }
}


/* -------------- Dark Mode Support Start--------------*/

/* Dark mode section background */
body.dark-mode .mm-app-grid-section {
  background: #1a1a1a;
}

/* Dark mode label badge (optional: subtle tweak) */
body.dark-mode .mm-app-label.new {
  background: #1a1a1a;
  color: #fff;
}
body.dark-mode .mm-app-label.updated {
  background: #555;
  color: #fff;
}

/* Dark mode card overlay */
body.dark-mode .mm-app-overlay {
  background: #1a1a1a;
}

/* Dark mode text inside cards */
body.dark-mode .mm-app-name {
  color: #fff;
}
body.dark-mode .mm-app-subtitle {
  color: #ccc;
}

/* -------------- Dark Mode Support End--------------*/
