/**
 * ExtraCoins — Show Time
 * Mixed floor energy that still respects light and dark store chrome.
 * No forced nightclub overlay. Honors prefers-reduced-motion.
 */

body.ec-mode-showtime {
  --ec-show-gold: #b45309;
  --ec-show-gold-soft: rgba(180, 83, 9, 0.14);
  --ec-show-gold-line: rgba(180, 83, 9, 0.38);
  --ec-show-page: #f6f1e6;
  --ec-show-card: #fffdf8;
  --ec-show-ink: #1c1917;
  --ec-show-muted: #57534e;
  --ec-show-stage: #fff7e8;
  --ec-show-dot: #dc2626;
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(245, 158, 11, 0.12), transparent 58%),
    var(--ec-show-page);
  color: var(--ec-show-ink);
}

html[data-theme="dark"] body.ec-mode-showtime,
html.ec-dark body.ec-mode-showtime {
  --ec-show-gold: #e7c56a;
  --ec-show-gold-soft: rgba(231, 197, 106, 0.12);
  --ec-show-gold-line: rgba(231, 197, 106, 0.38);
  --ec-show-page: var(--ec-bg, #070b14);
  --ec-show-card: var(--ec-bg-elevated, #121826);
  --ec-show-ink: var(--ec-text, #e8eef9);
  --ec-show-muted: var(--ec-text-muted, #94a3b8);
  --ec-show-stage: #12101a;
  --ec-show-dot: #f87171;
  background:
    radial-gradient(1000px 480px at 8% -12%, rgba(231, 197, 106, 0.1), transparent 55%),
    var(--ec-show-page) !important;
  color: var(--ec-show-ink) !important;
}

body.ec-mode-showtime h1 {
  color: var(--ec-show-ink) !important;
  letter-spacing: -0.025em;
}
body.ec-mode-showtime .text-slate-500,
body.ec-mode-showtime .text-slate-600,
html[data-theme="dark"] body.ec-mode-showtime .text-slate-500,
html[data-theme="dark"] body.ec-mode-showtime .text-slate-600 {
  color: var(--ec-show-muted) !important;
}

body.ec-mode-showtime .ec-mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}
@media (min-width: 640px) {
  body.ec-mode-showtime .ec-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  body.ec-mode-showtime .ec-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Ticket strip */
body.ec-mode-showtime .ec-showtime-stage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin: 0 0 1.2rem;
  padding: 0.7rem 1rem 0.7rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid var(--ec-show-gold-line);
  background: var(--ec-show-stage);
  box-shadow: inset 4px 0 0 var(--ec-show-gold);
}
body.ec-mode-showtime .ec-showtime-stage-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
body.ec-mode-showtime .ec-showtime-stage-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--ec-show-dot);
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45);
}
@media (prefers-reduced-motion: no-preference) {
  body.ec-mode-showtime.ec-mode-showtime-live .ec-showtime-stage-dot {
    animation: ec-show-pulse 1.8s ease-out infinite;
  }
}
@keyframes ec-show-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
body.ec-mode-showtime .ec-showtime-stage-label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ec-show-gold);
}
body.ec-mode-showtime .ec-showtime-stage-text {
  font-size: 0.88rem;
  color: var(--ec-show-muted);
  flex: 1 1 12rem;
  line-height: 1.4;
}

/* Cards sit in the current theme, gold edge instead of white plates */
body.ec-mode-showtime .ec-showtime-card,
html[data-theme="dark"] body.ec-mode-showtime .product-card.ec-showtime-card {
  position: relative;
  background: var(--ec-show-card) !important;
  color: var(--ec-show-ink);
  border: 1px solid var(--ec-show-gold-line) !important;
  border-radius: 1.05rem;
  box-shadow: 0 10px 28px -22px rgba(28, 25, 23, 0.45) !important;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
html[data-theme="dark"] body.ec-mode-showtime .ec-showtime-card {
  box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.7) !important;
}

body.ec-mode-showtime .ec-showtime-card:hover,
body.ec-mode-showtime .ec-showtime-card.ec-showtime-focus,
html[data-theme="dark"] body.ec-mode-showtime .product-card.ec-showtime-card:hover,
html[data-theme="dark"] body.ec-mode-showtime .product-card.ec-showtime-card.ec-showtime-focus {
  transform: translateY(-3px);
  border-color: var(--ec-show-gold) !important;
  box-shadow:
    0 0 0 1px var(--ec-show-gold-soft),
    0 18px 36px -18px rgba(180, 83, 9, 0.35) !important;
}

@media (prefers-reduced-motion: no-preference) {
  body.ec-mode-showtime .ec-showtime-card.ec-showtime-focus::after {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 2px var(--ec-show-gold);
    opacity: 0.9;
  }
}

body.ec-mode-showtime .ec-showtime-card .font-semibold,
body.ec-mode-showtime .ec-showtime-card a.font-semibold {
  color: var(--ec-show-ink) !important;
}
body.ec-mode-showtime .ec-showtime-card a.font-semibold:hover {
  color: var(--ec-show-gold) !important;
}
body.ec-mode-showtime .ec-showtime-card .price,
body.ec-mode-showtime .ec-showtime-card [data-ec-live-price] {
  color: var(--ec-show-ink) !important;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
body.ec-mode-showtime .ec-showtime-card .text-slate-500 {
  color: var(--ec-show-muted) !important;
}

body.ec-mode-showtime .ec-catalog-toolbar,
html[data-theme="dark"] body.ec-mode-showtime .ec-catalog-toolbar {
  background: var(--ec-show-card) !important;
  border-color: var(--ec-show-gold-line) !important;
  color: var(--ec-show-ink);
  box-shadow: none !important;
}
body.ec-mode-showtime .ec-catalog-toolbar .text-slate-600,
body.ec-mode-showtime .ec-catalog-toolbar .text-slate-800,
html[data-theme="dark"] body.ec-mode-showtime .ec-catalog-toolbar .font-medium {
  color: var(--ec-show-ink) !important;
}
body.ec-mode-showtime .ec-catalog-sort-select,
html[data-theme="dark"] body.ec-mode-showtime .ec-catalog-sort-select {
  background: var(--ec-show-card) !important;
  color: var(--ec-show-ink) !important;
  border-color: var(--ec-show-gold-line) !important;
}
body.ec-mode-showtime a.ec-catalog-chip,
html[data-theme="dark"] body.ec-mode-showtime a.ec-catalog-chip {
  background: var(--ec-show-gold-soft);
  border-color: var(--ec-show-gold-line);
  color: var(--ec-show-ink);
}
body.ec-mode-showtime a.ec-catalog-chip.is-active,
html[data-theme="dark"] body.ec-mode-showtime a.ec-catalog-chip.is-active {
  background: var(--ec-show-gold);
  border-color: var(--ec-show-gold);
  color: #1c1917;
}

body.ec-mode-showtime .ec-shop-pagination,
html[data-theme="dark"] body.ec-mode-showtime .ec-shop-pagination {
  background: var(--ec-show-card) !important;
  border-color: var(--ec-show-gold-line) !important;
  color: var(--ec-show-ink);
}
body.ec-mode-showtime .ec-shop-pagination a:hover {
  background: var(--ec-show-gold-soft) !important;
}

body.ec-mode-showtime .rounded-3xl.bg-white,
html[data-theme="dark"] body.ec-mode-showtime .rounded-3xl.bg-white {
  background: var(--ec-show-card) !important;
  color: var(--ec-show-ink) !important;
  border-color: var(--ec-show-gold-line) !important;
}

body.ec-mode-showtime .ec-showtime-card .ec-volume-breaks,
html[data-theme="dark"] body.ec-mode-showtime .ec-showtime-card .ec-volume-breaks {
  background: var(--ec-show-gold-soft) !important;
  border-color: var(--ec-show-gold-line) !important;
  color: var(--ec-show-muted) !important;
}

body.ec-mode-showtime .ec-product-image-wrap {
  background: rgba(28, 25, 23, 0.04);
}
html[data-theme="dark"] body.ec-mode-showtime .ec-product-image-wrap {
  background: rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  body.ec-mode-showtime .ec-showtime-card,
  body.ec-mode-showtime .ec-showtime-card:hover,
  body.ec-mode-showtime .ec-showtime-card.ec-showtime-focus {
    transition: none;
    transform: none;
  }
}
