/**
 * G4melab — Team & profils streamers
 */

body.g4-page-team,
body.g4-page-streamer {
  background:
    radial-gradient(ellipse 60% 35% at 15% 0%, rgba(0, 229, 192, 0.06) 0%, transparent 55%),
    var(--g4-bg) !important;
}

/* ── Page Team ── */
.g4-team-hero {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
}

.g4-team-hero__watermark {
  position: absolute;
  left: -0.05em;
  top: 0.1em;
  margin: 0;
  font-family: var(--g4-font-display);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
}

.g4-team-hero__content {
  position: relative;
  z-index: 1;
}

.g4-team-hero__content h1 {
  margin: 0;
  font-family: var(--g4-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.g4-team-hero__content p {
  margin: 0.65rem 0 0;
  color: var(--g4-muted);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.g4-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.g4-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.15rem, 2vw, 1.45rem) clamp(0.75rem, 1.5vw, 1rem);
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(0, 229, 192, 0.28);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.g4-team-card__avatar-wrap {
  --g4-team-ring: var(--g4-cyan);
  width: clamp(88px, 8vw, 108px);
  height: clamp(88px, 8vw, 108px);
  margin-bottom: 0.85rem;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g4-team-ring), rgba(0, 229, 192, 0.35));
  box-shadow: 0 0 24px rgba(0, 229, 192, 0.18);
}

.g4-team-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0a1018;
}

.g4-team-card h2,
.g4-team-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--g4-font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.g4-team-card__role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  padding: 0.24rem 0.6rem;
  border: 1px solid rgba(0, 229, 192, 0.45);
  border-radius: 999px;
  background: rgba(0, 229, 192, 0.08);
  color: var(--g4-cyan);
  font-family: var(--g4-font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.g4-tag--team,
.g4-tag--profile {
  border-color: rgba(0, 229, 192, 0.35);
  color: #d9e7f5;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.62rem;
  padding: 0.22rem 0.5rem;
}

.g4-team-card__cta {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  padding: 0.45rem 0.65rem;
}

.g4-team-card__socials,
.g4-member-socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.g4-team-card__socials__link,
.g4-member-socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.g4-member-socials__link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.g4-member-socials__link--twitch { background: #9146ff; }
.g4-member-socials__link--youtube { background: #ff0033; }
.g4-member-socials__link--x { background: #111; border: 1px solid rgba(255,255,255,0.12); }
.g4-member-socials__link--instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.g4-member-socials__link--discord { background: #5865f2; }

/* ── Profil streamer (maquette) ── */
body.g4-page-streamer .g4-streamer-hero {
  position: relative;
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

body.g4-page-streamer .g4-streamer-hero__banner {
  position: relative;
  height: clamp(200px, 30vw, 280px);
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.05) 0%, rgba(4, 8, 16, 0.55) 55%, rgba(7, 13, 24, 0.98) 100%),
    var(--g4-streamer-banner, #0a1018) center / cover no-repeat;
}

body.g4-page-streamer .g4-streamer-hero__banner-tag {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: 1rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(0, 229, 192, 0.45);
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.72);
  color: var(--g4-cyan);
  font-family: var(--g4-font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body.g4-page-streamer .g4-streamer-hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  margin-top: clamp(-4.5rem, -8vw, -3.25rem);
  position: relative;
  z-index: 2;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(0, 229, 192, 0.22);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

body.g4-page-streamer .g4-streamer-hero__shell--solo {
  grid-template-columns: 1fr;
}

body.g4-page-streamer .g4-streamer-hero__profile {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 2vw, 1.35rem);
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

body.g4-page-streamer .g4-streamer-hero__avatar {
  width: clamp(108px, 11vw, 132px);
  height: clamp(108px, 11vw, 132px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--g4-cyan);
  box-shadow: 0 0 0 5px rgba(0, 229, 192, 0.12), 0 12px 32px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  background: #0a1018;
  margin-top: clamp(-2.5rem, -4vw, -1.75rem);
}

body.g4-page-streamer .g4-streamer-hero__info {
  min-width: 0;
  padding-top: 0.15rem;
}

body.g4-page-streamer .g4-streamer-hero__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--g4-font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

body.g4-page-streamer .g4-streamer-hero__tagline {
  margin: 0.4rem 0 0;
  color: var(--g4-cyan);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

body.g4-page-streamer .g4-streamer-hero__bio {
  margin: 0.75rem 0 0;
  max-width: 62ch;
  color: #c8d4e3;
  line-height: 1.7;
  font-size: 0.92rem;
}

body.g4-page-streamer .g4-streamer-hero__socials {
  justify-content: flex-start;
  margin-top: 0.9rem;
  gap: 0.55rem;
}

body.g4-page-streamer .g4-streamer-hero__socials .g4-member-socials__link {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
}

body.g4-page-streamer .g4-streamer-hero__tags {
  margin-top: 0.9rem;
}

body.g4-page-streamer .g4-streamer-hero__video {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.g4-streamer-video__title,
.g4-section-title {
  margin: 0 0 0.85rem;
  font-family: var(--g4-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.g4-streamer-video__card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.g4-streamer-video__card:focus-visible {
  outline: 2px solid var(--g4-cyan);
  outline-offset: 3px;
  border-radius: 10px;
}

.g4-streamer-video__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.g4-streamer-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g4-streamer-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 229, 192, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.g4-streamer-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #041018;
}

.g4-streamer-video__duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.g4-streamer-video__label {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #fff;
}

.g4-streamer-video__ago {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #8fa3b8;
}

/* ── Streamers associés (cartes horizontales) ── */
.g4-streamer-related {
  padding-bottom: 3rem;
}

.g4-streamer-related__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.g4-streamer-related-card {
  flex: 1 1 0;
  min-width: min(100%, 180px);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(0, 229, 192, 0.24);
  border-radius: 12px;
}

.g4-streamer-related-card__avatar-wrap {
  --g4-team-ring: var(--g4-cyan);
  width: 56px;
  height: 56px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g4-team-ring), rgba(0, 229, 192, 0.35));
}

.g4-streamer-related-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #0a1018;
}

.g4-streamer-related-card__meta {
  min-width: 0;
}

.g4-streamer-related-card__meta h3 {
  margin: 0;
  font-family: var(--g4-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g4-streamer-related-card__meta p {
  margin: 0.15rem 0 0;
  color: var(--g4-cyan);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g4-streamer-related-card__cta {
  white-space: nowrap;
  font-size: 0.62rem;
  padding: 0.4rem 0.55rem;
}

@media (max-width: 1200px) {
  .g4-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.g4-page-streamer .g4-streamer-hero__shell {
    grid-template-columns: 1fr;
  }

  body.g4-page-streamer .g4-streamer-hero__avatar {
    margin-top: 0;
  }

  .g4-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .g4-team-grid {
    grid-template-columns: 1fr;
  }

  .g4-streamer-related-card {
    flex: 1 1 100%;
  }

  body.g4-page-streamer .g4-streamer-hero__profile {
    flex-direction: column;
    align-items: flex-start;
  }

  .g4-streamer-related-card {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .g4-streamer-related-card__cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}
