/* ===== Missav風 ダークグリッド(同一枠内スライドショー版) ===== */

body {
  background: #0d0d12 !important;
}

.mv-grid-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
}

.mv-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.mv-nav-item {
  color: #ccc !important;
  background: #1c1c24;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
.mv-nav-item.active {
  background: #e6297a;
  color: #fff !important;
}

.mv-nav-sub {
  margin-top: -6px;
  margin-bottom: 16px;
}
.mv-nav-item-sub {
  background: transparent;
  border: 1px solid #333;
  font-size: 12px;
  padding: 6px 12px;
}
.mv-nav-item-sub.active {
  background: #e6297a;
  border-color: #e6297a;
}

.mv-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.mv-term-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1c1c24;
  color: #eee !important;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
}
.mv-term-badge:active {
  background: #e6297a;
}
.mv-term-count {
  background: rgba(255,255,255,0.12);
  color: #ccc;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
}

.mv-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mv-search-input {
  flex: 1;
  background: #1c1c24;
  border: 1px solid #333;
  color: #eee;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 20px;
  outline: none;
}
.mv-search-input::placeholder {
  color: #777;
}
.mv-search-btn {
  background: #e6297a;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
}

.mv-tag-heading {
  color: #eee;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
}

.mv-sale-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff3860;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 2;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: start;
}

@media (min-width: 640px) {
  .mv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .mv-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1200px) {
  .mv-grid { grid-template-columns: repeat(5, 1fr); }
}

.mv-item {
  background: #16161d;
  border-radius: 6px;
  overflow: hidden;
}

.mv-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #222;
  cursor: pointer;
}

/* スライドショー中(サンプル画像表示中)は、切り抜かずに画像の縦幅に合わせて全体を表示する
   (枠の高さは画像の実際の比率に合わせて自動調整される) */
.mv-thumb.slideshow {
  aspect-ratio: auto !important;
  overflow: visible !important;
}
.mv-thumb.slideshow .mv-slide-img {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}
.mv-thumb:active {
  filter: brightness(0.92);
}

.mv-thumb img,
.mv-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mv-play-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(230, 41, 122, 0.9);
  color: #fff;
  font-size: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mv-tag-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  z-index: 2;
}

.mv-title {
  color: #eee;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 8px 10px;
}

.mv-pagination {
  text-align: center;
  margin: 24px 0;
}
.mv-pagination a, .mv-pagination span {
  color: #eee !important;
  background: #222;
  padding: 6px 12px;
  margin: 0 3px;
  border-radius: 4px;
  display: inline-block;
}
.mv-pagination .current {
  background: #e6297a;
}

.mv-empty {
  color: #eee;
  text-align: center;
  padding: 40px 0;
}

/* ===== 枠内スライドショー ===== */

.mv-close-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.mv-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  font-size: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  cursor: pointer;
}
.mv-slide-prev { left: 4px; }
.mv-slide-next { right: 4px; }

.mv-slide-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  z-index: 3;
}
.mv-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.mv-dot.active {
  background: #e6297a;
}

.mv-cta-mini {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(230,41,122,0.92) 60%);
  color: #fff !important;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  padding: 18px 4px 6px;
  z-index: 2;
  text-decoration: none;
}
