*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --text: #e8e6f0;
  --text-dim: #7a7891;
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.06);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === HEADER === */
header {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  position: relative;
  z-index: 10;
}

header h1 {
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00ffff;
}

header p {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ============================================
   LIVE NOW SECTION
   ============================================ */
.live-section {
  display: none;
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.live-section.visible {
  display: block;
  animation: cardIn 0.6s ease forwards;
}

.live-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Dela Gothic One", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: #ff2d55;
  text-transform: uppercase;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #ff2d55;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px #ff2d55;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

.live-subtitle {
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 300;
}

.live-streams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1px;
}

.live-stream-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 45, 85, 0.15);
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.5s ease forwards;
}

.live-stream-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #ff2d55;
  opacity: 0.8;
  z-index: 2;
}

.live-stream-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
}

.live-stream-info {
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-stream-name {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.live-stream-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff2d55;
  font-weight: 600;
  flex-shrink: 0;
}

.live-stream-label .live-dot {
  width: 6px;
  height: 6px;
}

/* Pulsing live dot added to grid card names */
.grid-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff2d55;
  border-radius: 50%;
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px #ff2d55;
}

/* ============================================
   TALENT GRID
   ============================================ */
.talent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* === CARD === */
.talent-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: cardIn 0.6s ease forwards;
}

.talent-card:nth-child(1) {
  animation-delay: 0.1s;
}
.talent-card:nth-child(2) {
  animation-delay: 0.18s;
}
.talent-card:nth-child(3) {
  animation-delay: 0.26s;
}
.talent-card:nth-child(4) {
  animation-delay: 0.34s;
}
.talent-card:nth-child(5) {
  animation-delay: 0.42s;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accent glow line at top */
.talent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.talent-card:hover::before {
  opacity: 1;
}

/* Corner glow on hover */
.talent-card::after {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.talent-card:hover::after {
  opacity: 0.08;
}

.talent-card:hover {
  background: rgba(255, 255, 255, 0.035);
}

/* === IMAGE === */
.talent-image-wrap {
  position: relative;
  width: clamp(160px, 55%, 280px);
  aspect-ratio: 3 / 4;
  margin-bottom: 1.5rem;
  z-index: 1;
}

.talent-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(
    0 0 25px color-mix(in srgb, var(--accent) 40%, transparent)
  );
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.talent-image-wrap .placeholder {
  width: 100%;
  height: 100%;
  border: 2px dashed var(--text-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
}

/* === TALENT INFO === */
.talent-name {
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  color: var(--accent);
  z-index: 1;
}

.talent-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  z-index: 1;
}

/* === SOCIAL LINKS === */
.socials {
  display: flex;
  gap: 0.7rem;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 20%, transparent);
  transform: translateY(-3px);
}

/* Tooltip */
.socials a::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.socials a:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   EXPANDABLE CARDS + DETAIL PANEL
   ============================================ */
.talent-card {
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.talent-card.selected {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 30px color-mix(in srgb, var(--accent) 8%, transparent),
    inset 0 0 30px color-mix(in srgb, var(--accent) 3%, transparent);
}

.talent-card.selected::before {
  opacity: 1;
  height: 3px;
}

.talent-card.selected::after {
  opacity: 0.1;
}

/* Detail panel — inserted into grid, spans full width */
.detail-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
  border-left: 1px solid var(--card-border);
  border-right: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    var(--card-bg) 100%
  );
  position: relative;
}

.detail-panel.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.detail-panel-overflow {
  overflow: hidden;
}

/* Accent line on top edge of panel */
.detail-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.detail-panel-inner {
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease 0.15s,
    transform 0.35s ease 0.15s;
}

.detail-panel.open .detail-panel-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Close button */
.detail-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all 0.2s ease;
}

.detail-close:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
}

/* Bio side */
.detail-bio {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-label {
  font-family: "Dela Gothic One", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

.detail-bio-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text);
  font-weight: 300;
  white-space: pre-wrap;
}

.detail-no-bio {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

/* YouTube side */
.detail-yt {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-yt-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.detail-yt-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.detail-yt-title {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
  font-weight: 300;
}

.detail-yt-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.detail-yt-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.detail-yt-fallback a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.detail-yt-fallback a:hover {
  opacity: 0.7;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  position: relative;
  z-index: 1;
}

footer p {
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* === RESPONSIVE === */
@media (max-width: 700px) {
  .talent-grid {
    grid-template-columns: 1fr;
  }
  .talent-card {
    padding: 2rem 1rem;
  }
  .talent-image-wrap {
    width: clamp(180px, 60%, 260px);
  }
  .detail-panel-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.2rem;
  }
}

.yt-facade {
  position: relative;
  cursor: pointer;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  padding-left: 4px; /* optical center for play icon */
}

.yt-facade:hover .yt-play-btn {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.1);
}

.yt-title {
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #fff;
  border-radius: 0 0 6px 6px;
  pointer-events: none;
}

.yt-title-inner {
  display: inline;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 1rem;
}
