/* ===== Streamer Page ===== */

.streamer-page {
  background: #0a0a0c;
}

.streamer-main {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  overflow: visible;
}

.team-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.team-category {
  display: none;
  width: 100%;
}

.team-category.is-active {
  display: block;
  animation: team-fade-in 0.22s ease;
}

@keyframes team-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*  override home.css countdown-panel (480px) บนหน้าทีม */
.streamer-page .team-panel.countdown-panel {
  width: 100%;
  max-width: 100%;
  padding: 8px;
}

.streamer-page .team-panel .panel-frame {
  gap: 12px;
}

.team-panel-body {
  padding: 8px 6px 12px;
  width: 100%;
}

.team-panel-head {
  text-align: center;
  margin-bottom: 16px;
  padding: 14px 16px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 2px solid var(--main_1);
  border-radius: 8px;
}

.team-panel-head iconify-icon {
  display: block;
  font-size: 22px;
  color: var(--main_1);
  margin-bottom: 6px;
}

.team-panel-head h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.team-panel-head p {
  font-size: 12px;
  color: var(--text-muted);
}

.team-panel-head--dev {
  border-top-color: var(--main_1);
  box-shadow: inset 0 6px 20px rgba(0, 163, 255, 0.05);
}

.team-panel-head--admin {
  border-top-color: #3DDC84;
  box-shadow: inset 0 6px 20px rgba(61, 220, 132, 0.05);
}

.team-panel-head--admin iconify-icon {
  color: #3DDC84;
}

.team-panel-head--admin .team-accent {
  color: #3DDC84;
  text-shadow: 0 0 16px rgba(61, 220, 132, 0.4);
}

.streamer-hero {
  text-align: center;
  margin-bottom: 36px;
}

.team-panel-head--admin .team-accent {
  color: #3DDC84;
  text-shadow: 0 0 16px rgba(61, 220, 132, 0.4);
}

.team-word {
  color: #fff;
}

.team-accent {
  color: var(--main_1);
  text-shadow: 0 0 20px rgba(0, 163, 255, 0.45);
}

.streamer-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.streamer-hero p {
  font-size: 14px;
  color: var(--text-muted);
}

.streamer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin-bottom: 0;
}

.streamer-loading,
.streamer-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.streamer-loading iconify-icon,
.streamer-empty iconify-icon {
  font-size: 22px;
  color: var(--main_1);
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----- Card ----- */
.streamer-card {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14, 14, 18, 0.95);
  border: 1px solid rgba(0, 163, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.streamer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 163, 255, 0.15);
}

.streamer-card-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.streamer-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.streamer-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
}

.streamer-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main_1);
  margin-bottom: 4px;
}

.streamer-role iconify-icon {
  font-size: 12px;
}

.streamer-name {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  word-break: break-word;
}

.streamer-card-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.streamer-card-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.12s ease;
}

.streamer-card-social a iconify-icon {
  font-size: 16px;
}

.streamer-card-social a:hover {
  border-color: var(--main_1);
  color: var(--main_1);
  background: rgba(0, 163, 255, 0.1);
}

/* ----- CTA ----- */
.streamer-cta {
  display: flex;
  gap: 0;
  background: rgba(18, 18, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.cta-accent {
  width: 4px;
  flex-shrink: 0;
  background: var(--main_1);
  box-shadow: 0 0 12px var(--main_1);
}

.cta-body {
  padding: 24px 28px;
  flex: 1;
}

.cta-body h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-body h2 iconify-icon {
  font-size: 22px;
  color: var(--main_1);
}

.cta-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

.cta-body strong {
  color: #fff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--main_1);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 163, 255, 0.35);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.cta-btn iconify-icon {
  font-size: 18px;
}

.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .streamer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .streamer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .streamer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .streamer-card-visual {
    aspect-ratio: 1 / 1;
  }

  .streamer-name {
    font-size: 13px;
  }
}
