/* iG Retro — UI mobile neon (referência) */

:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --panel: #121212;
  --line: #1f1f1f;
  --text: #fff;
  --muted: #9a9a9a;
  --neon: #00ff2a;
  --neon-dim: #00c220;
  --star: #ffd000;
  --radius: 10px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

/* ===== Header verde ===== */
.app-top-green {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  background: var(--neon);
  min-height: 48px;
  padding: 0 10px;
}

.ads-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #111;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
  color: #111;
  background: #fff;
  position: relative;
  text-decoration: none;
}
.ads-badge::after {
  content: "";
  position: absolute;
  inset: 8px -2px auto;
  height: 2px;
  background: #e11;
  transform: rotate(-28deg);
}

.app-logo {
  justify-self: center;
  width: 36px;
  height: 36px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.04em;
  border-radius: 4px;
}

.app-top-spacer { width: 34px; }

/* ===== Console carousel ===== */
.page-consoles {
  background: #1e5cff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-consoles .app-top-green { background: var(--neon); }

.console-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 40px;
  gap: 18px;
}

.console-hint {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.console-carousel {
  width: 100%;
  max-width: 520px;
  height: 260px;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.console-carousel.is-dragging { cursor: grabbing; }

.console-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.console-card {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: 0;
  translate: -50% -50%;
  border-radius: 8px;
  background: var(--card-color, #888);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}
.console-carousel.is-dragging .console-card {
  transition: none;
}
.console-card.is-center {
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
}
.console-card.is-side {
  filter: brightness(0.95);
}

.console-card-label {
  color: #fff;
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

.console-active-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
}

.btn-enter-catalog {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 22px;
  background: #111;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
}

/* ===== Toolbar + catálogo ===== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.toolbar-icon {
  color: #ddd;
  font-size: 18px;
  line-height: 1;
}
.badge-wrap { position: relative; }
.badge-wrap i {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--neon);
  color: #000;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.toolbar-flag { font-size: 14px; }

.toolbar-search {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.toolbar-search input {
  width: 96px;
  background: #151515;
  border: 1px solid #2a2a2a;
  color: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}
.toolbar-search button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.catalog-main {
  padding: 12px 8px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.catalog-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 6px 12px;
}
.catalog-title h1 {
  margin: 0;
  font-size: 16px;
  color: var(--neon);
  letter-spacing: 0.04em;
}
.catalog-title span { color: var(--muted); font-size: 12px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 8px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.catalog-card.is-active .catalog-art {
  outline: 3px solid var(--neon);
  outline-offset: 1px;
}

.catalog-plat {
  text-align: center;
  font-size: 10px;
  color: #bdbdbd;
  letter-spacing: 0.04em;
}

.catalog-art {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
}
.catalog-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip {
  position: absolute;
  top: 5px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.chip-views { left: 5px; }
.chip-rating { right: 5px; color: #fff; }
.chip-rating { color: #ffe082; }

.catalog-card h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-msg {
  color: var(--muted);
  text-align: center;
  padding: 40px 12px;
}

/* ===== Detalhe do jogo ===== */
.detail-hero {
  position: relative;
  padding: 14px 14px 18px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.92)),
    var(--hero-img) center/cover no-repeat;
}

.btn-voltar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.65);
  border: 1px solid #333;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

.detail-hero-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
}

.detail-cover {
  width: 110px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.detail-info h1 {
  margin: 0 0 8px;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1.15;
}

.detail-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.meta-green { color: var(--neon); font-weight: 700; }

.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars i { color: #444; font-style: normal; }
.stars i.on { color: var(--star); }
.stars b { margin-left: 4px; color: #fff; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 10px;
  color: var(--neon);
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 4px 7px;
  font-weight: 700;
}

.detail-actions {
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--neon);
  color: #041;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  border: 0;
  border-radius: 6px;
  padding: 14px 16px;
  cursor: pointer;
  text-transform: uppercase;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #2c2c2c;
  border-radius: 6px;
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}
.btn-secondary.is-on {
  border-color: var(--neon);
  color: var(--neon);
}

.detail-section {
  padding: 8px 14px 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 14px;
  font-size: 13px;
  color: var(--neon);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-title::before,
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--neon);
  opacity: 0.7;
}
.section-title span { white-space: nowrap; }

.about-text {
  margin: 0;
  color: #ddd;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.about-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.link-more {
  background: none;
  border: 0;
  color: var(--neon);
  font-weight: 800;
  font-size: 12px;
  margin-top: 8px;
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.shots-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.shots-row img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 6px;
  background: #1a1a1a;
}

.related-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.related-card {
  flex: 0 0 120px;
  position: relative;
}
.related-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  background: #1a1a1a;
}
.related-plat {
  position: absolute;
  left: 6px;
  top: 6px;
  font-size: 10px;
  background: rgba(0,0,0,0.7);
  padding: 2px 5px;
  border-radius: 3px;
}
.related-rating {
  position: absolute;
  right: 6px;
  top: 6px;
  font-size: 10px;
  color: var(--star);
  background: rgba(0,0,0,0.7);
  padding: 2px 5px;
  border-radius: 3px;
}
.related-card strong {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-card {
  background: #151515;
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.info-card small {
  display: block;
  color: var(--neon);
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.info-card strong {
  color: var(--neon);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.trailer-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.trailer-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.rate-label {
  color: #ddd;
  font-size: 12px;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.rate-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.rate-stars button {
  background: none;
  border: 0;
  color: #444;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
}
.rate-stars button.on { color: var(--star); }

.comment-form {
  display: grid;
  gap: 10px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 6px;
  padding: 12px;
}

/* ===== Player iframe ===== */
.page-play {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #000;
}

.play-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #0a0a0a;
  border-bottom: 1px solid #1f1f1f;
}
.play-bar .btn-voltar { margin: 0; }
.play-bar-info { flex: 1; min-width: 0; }
.play-bar-info strong {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-bar-info span { color: var(--muted); font-size: 11px; }
.btn-fs {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.play-frame-wrap {
  flex: 1;
  min-height: 0;
  background: #000;
}
.play-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.play-frame-wrap:fullscreen { width: 100%; height: 100%; }

@media (min-width: 720px) {
  .catalog-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .detail-hero-row { grid-template-columns: 160px 1fr; }
  .detail-cover { width: 160px; }
  .catalog-card h2 { font-size: 13px; }
}
