/* Gameify Twitch · partner-presentation (dark, grön accent) */

.gtw {
  --gtw-green: var(--primary);
  --gtw-bg: #131313;
  --gtw-elev: #1d1d1d;
  --gtw-line: rgba(255, 255, 255, .08);
  --gtw-ink: #f2f2f2;
  --gtw-ink-muted: #b0b0b0;
  --gtw-purple: #9146ff;

  width: 100%;
  color: var(--gtw-ink);
  box-sizing: border-box;
}
.gtw *, .gtw *::before, .gtw *::after { box-sizing: border-box; }

/* ── Head ─────────────────────────────────────────────────────────── */
.gtw__head {
  display: flex;
  align-items: center;
  gap: var(--space-m, 1rem);
  margin-bottom: var(--space-m, 1rem);
}
.gtw__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gtw-line);
  object-fit: cover;
  flex-shrink: 0;
}
.gtw__head-text { flex: 1; min-width: 0; }
/* Replikerar sajtens globala .eyebrow-stil (Bricks global-klass laddas ej på icke-Bricks-sidor) */
.gtw__partner-label {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: var(--space-xs);
  color: var(--gtw-green);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
}
.gtw__partner-label::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gtw-green);
  flex-shrink: 0;
}
.gtw__name {
  margin: .15rem 0 0;
  font-size: var(--h3, 1.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--gtw-ink);
}

/* ── Badge ────────────────────────────────────────────────────────── */
.gtw__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--gtw-line);
  background: var(--gtw-elev);
  font-size: var(--text-xs, .75rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gtw-ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.gtw__badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6a6a6a;
  flex-shrink: 0;
}
.gtw.is-live .gtw__badge {
  color: #0a0a0a;
  background: var(--gtw-green);
  border-color: var(--gtw-green);
}
.gtw.is-live .gtw__badge-dot {
  background: #0a0a0a;
  animation: gtwPulse 1.4s ease-in-out infinite;
}
@keyframes gtwPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

/* ── Stage: player + side ─────────────────────────────────────────── */
.gtw__stage {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
  gap: var(--container-gap);
  align-items: start;
}
@media (max-width: 900px) {
  .gtw__stage { grid-template-columns: 1fr; }
}

.gtw__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-xxl);
  overflow: hidden;
  border: 1px solid var(--gtw-line);
}
.gtw__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Side ─────────────────────────────────────────────────────────── */
.gtw__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-m, 1rem);
  background: var(--gtw-elev);
  border: 1px solid var(--gtw-line);
  border-radius: var(--radius-xxl);
  padding: var(--space-m, 1.25rem);
}

.gtw__live-meta { display: flex; flex-direction: column; gap: .65rem; }
.gtw__meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.gtw__meta-label {
  font-size: var(--text-xs, .75rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gtw-ink-muted);
}
.gtw__meta-value { font-weight: 700; color: var(--gtw-ink); text-align: right; }
.gtw__stream-title {
  margin: .25rem 0 0;
  font-size: var(--text-s, .9rem);
  color: var(--gtw-ink-muted);
  line-height: 1.4;
}

/* ── Offline ──────────────────────────────────────────────────────── */
.gtw__offline { display: flex; flex-direction: column; gap: var(--space-s, .75rem); }
.gtw__offline-text {
  margin: 0;
  font-size: var(--text-s, .9rem);
  color: var(--gtw-ink-muted);
  line-height: 1.5;
}
.gtw__vod-label {
  font-size: var(--text-xs, .75rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gtw-green);
  font-weight: 700;
  margin-bottom: .4rem;
}
.gtw__player--vod { aspect-ratio: 16 / 9; }
.gtw__vod-clip {
  position: relative;
  display: block;
  border-radius: var(--radius-xs, 4px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.gtw__vod-clip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtw__vod-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  transition: background .2s ease;
}
.gtw__vod-clip:hover .gtw__vod-play { background: rgba(0, 0, 0, .15); }

/* ── Follow button ────────────────────────────────────────────────── */
.gtw__follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .85rem 1.25rem;
  background: var(--gtw-green);
  color: #0a0a0a;
  border-radius: var(--radius-xs, 4px);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity .15s ease, transform .1s ease;
  margin-top: auto;
}
.gtw__follow,
.gtw__follow:hover,
.gtw__follow:focus,
.gtw__follow:active { color: #0a0a0a; }
.gtw__follow:hover { opacity: .9; }
.gtw__follow:active { transform: translateY(1px); }
.gtw__follow svg { flex-shrink: 0; }

[data-gtw] [hidden] { display: none !important; }

/* Tangentbords-fokus (a11y) */
.gtw__follow:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
