/* ===========================
   Mini Venue Preview (Ad Cards)
   =========================== */

.mini-venue {
  position: relative;
  height: 140px;
  overflow: hidden;
}

/* ステージ背景 */
.mini-venue-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a0e1a 0%, #141a2e 40%, #1a1228 100%);
}
.mini-venue-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,193,7,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* スクリーン（サムネイル） */
.mini-venue-screen {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  max-width: 130px;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255,193,7,0.3);
  box-shadow: 0 0 12px rgba(255,193,7,0.15), 0 0 30px rgba(255,193,7,0.05);
  z-index: 1;
}
.mini-venue-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(1.1);
}
.mini-venue-screen-fallback {
  width: 100%;
  height: 100%;
  background: #2d2d44;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,193,7,0.4);
  font-size: 1rem;
}

/* リアクションデコレーション散布 */
.mini-venue-decos {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 0 6px 24px;
  z-index: 2;
  pointer-events: none;
}

.mini-venue-icon {
  font-size: 0.6rem;
  filter: drop-shadow(0 0 3px currentColor);
  opacity: 0.8;
  animation: mini-venue-twinkle 2.5s ease-in-out infinite;
}
.mini-venue-icon:nth-child(2n) { animation-delay: 0.8s; }
.mini-venue-icon:nth-child(3n) { animation-delay: 1.6s; }
.mini-venue-icon:nth-child(5n) { animation-delay: 0.4s; }

.mini-venue-pixel {
  display: inline-flex;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
  opacity: 0.85;
  animation: mini-venue-twinkle 3s ease-in-out infinite;
}
.mini-venue-pixel:nth-child(2n) { animation-delay: 1s; }
.mini-venue-pixel:nth-child(3n) { animation-delay: 2s; }

@keyframes mini-venue-twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* タイマー */
.mini-venue-timer {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  z-index: 3;
}

/* LIVEバッジ */
.mini-venue-live-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(220,53,69,0.9);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  z-index: 3;
  letter-spacing: 0.5px;
}

/* --- Mini Venue Compact (play_typing recommend) --- */
.mini-venue-compact {
  position: relative;
  width: 56px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0e1a 0%, #1a1228 100%);
  flex-shrink: 0;
}
.mini-venue-compact-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}
.mini-venue-compact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-venue-compact-icon {
  position: absolute;
  font-size: 0.45rem;
  bottom: 4px;
  filter: drop-shadow(0 0 2px currentColor);
  opacity: 0.9;
  animation: mini-venue-twinkle 2.5s ease-in-out infinite;
}
.mini-venue-compact-icon:nth-child(2) { left: 8px; bottom: 6px; animation-delay: 0.5s; }
.mini-venue-compact-icon:nth-child(3) { left: 24px; bottom: 3px; animation-delay: 1.2s; }
.mini-venue-compact-icon:nth-child(4) { right: 8px; bottom: 7px; animation-delay: 0.8s; }
.mini-venue-compact-pixel {
  position: absolute;
  bottom: 3px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
  opacity: 0.85;
}
.mini-venue-compact-pixel:nth-child(2) { left: 6px; }
.mini-venue-compact-pixel:nth-child(3) { left: 22px; }
.mini-venue-compact-pixel:nth-child(4) { right: 6px; }
.mini-venue-compact-live {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.45rem;
  color: #dc3545;
  filter: drop-shadow(0 0 2px rgba(220,53,69,0.6));
}

/* ===========================
   Host Event History Cards
   =========================== */

.my-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.my-event-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color, #333);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.my-event-card:hover {
  border-color: rgba(var(--accent-rgb, 139,26,26), 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

/* ミニ会場プレビュー（カード用） */
.mini-venue-compact-card {
  position: relative;
  height: 100px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0e1a 0%, #141a2e 60%, #1a1228 100%);
}
.mini-venue-compact-card-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
}
.mini-venue-compact-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(2px);
}
.mini-venue-compact-card-stage {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 20%, rgba(255,193,7,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* リアクションアイコン散布 */
.mini-venue-compact-card-icon {
  position: absolute;
  font-size: 0.55rem;
  filter: drop-shadow(0 0 3px currentColor);
  opacity: 0.85;
  animation: mini-venue-twinkle 2.5s ease-in-out infinite;
}
.mini-venue-compact-card-icon:nth-of-type(1) { bottom: 20px; left: 12%; animation-delay: 0s; }
.mini-venue-compact-card-icon:nth-of-type(2) { bottom: 28px; left: 30%; animation-delay: 0.7s; }
.mini-venue-compact-card-icon:nth-of-type(3) { bottom: 16px; left: 50%; animation-delay: 1.4s; }
.mini-venue-compact-card-icon:nth-of-type(4) { bottom: 24px; left: 65%; animation-delay: 0.3s; }
.mini-venue-compact-card-icon:nth-of-type(5) { bottom: 30px; left: 80%; animation-delay: 1.1s; }
.mini-venue-compact-card-icon:nth-of-type(6) { bottom: 18px; right: 8%; animation-delay: 0.5s; }

.mini-venue-compact-card-pixel {
  position: absolute;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
  opacity: 0.85;
  animation: mini-venue-twinkle 3s ease-in-out infinite;
}
.mini-venue-compact-card-pixel:nth-of-type(1) { bottom: 20px; left: 15%; animation-delay: 0.2s; }
.mini-venue-compact-card-pixel:nth-of-type(2) { bottom: 26px; left: 35%; animation-delay: 1s; }
.mini-venue-compact-card-pixel:nth-of-type(3) { bottom: 14px; left: 55%; animation-delay: 1.8s; }
.mini-venue-compact-card-pixel:nth-of-type(4) { bottom: 22px; left: 72%; animation-delay: 0.6s; }
.mini-venue-compact-card-pixel:nth-of-type(5) { bottom: 30px; right: 10%; animation-delay: 1.3s; }
.mini-venue-compact-card-pixel:nth-of-type(6) { bottom: 18px; right: 25%; animation-delay: 0.8s; }

/* ステータスバッジ */
.my-event-status-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.my-event-status-success { background: rgba(40,167,69,0.9); color: #fff; }
.my-event-status-failed  { background: rgba(220,53,69,0.85); color: #fff; }
.my-event-status-settling { background: rgba(255,193,7,0.9); color: #212529; }
.my-event-status-open { background: rgba(76,154,255,0.9); color: #fff; }

/* 充填率バー */
.my-event-fill-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
}
.my-event-fill-bar-inner {
  height: 100%;
  border-radius: 0 1px 0 0;
  transition: width 0.3s;
}

/* カード下部テキスト */
.my-event-card-body {
  padding: 0.5rem 0.6rem;
}
.my-event-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary, #eee);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.my-event-card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--text-secondary, #888);
}
.my-event-card-meta i {
  font-size: 0.65rem;
  margin-right: 0.1rem;
}
.my-event-card-beat {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #28a745;
}
.my-event-card-beat i {
  color: #d4a017;
  font-size: 0.7rem;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .mini-venue-icon,
  .mini-venue-pixel,
  .mini-venue-compact-icon,
  .mini-venue-compact-card-icon,
  .mini-venue-compact-card-pixel {
    animation: none;
    opacity: 0.8;
  }
}
