/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #000000;
  --surface:  #0a0a0a;
  --surface2: #111111;
  --border:   rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.18);
  --text:     #ffffff;
  --muted:    #666666;
  --muted2:   #333333;
  --green:    #22c55e;
  --r:        16px;
  --r-sm:     12px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ─── WRAPPER ─── */
.wrapper {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── HEADER ─── */
.header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 28px;
  text-align: center;
}

.header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.25em;
  font-weight: 400;
  color: #fff;
}

.type-cursor {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #fff;
  margin-left: 2px;
  animation: cursor-blink 0.75s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ─── CONTENT ROW ─── */
.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 400px;
}

/* ═══════════════════════════════════
   STREAM CARD (left)
═══════════════════════════════════ */
.stream-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  transition: border-color 0.35s, box-shadow 0.35s;
}

.stream-card.online {
  border-color: rgba(34,197,94,0.5);
  box-shadow: 0 0 28px rgba(34,197,94,0.12);
  cursor: pointer;
}

/* Badge */
.stream-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 6px;
  flex-shrink: 0;
  display: none;
  animation: blink 1.6s ease-in-out infinite;
}

.stream-card.online .badge-dot { display: block; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.badge-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  transition: color 0.35s;
  white-space: pre-line;
}

.stream-card.online .badge-text { color: var(--green); }

.badge-platform {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stream-card.online .badge-platform {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Aki image */
.aki-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.aki-img {
  position: absolute;
  bottom: 0;
  right: -10px;
  height: 105%;
  width: auto;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.1);
  display: block;
  transition: transform 0.6s cubic-bezier(.22,.68,0,1.2);
}

.stream-card:hover .aki-img {
  transform: scale(1.04) translateY(-4px);
}

.aki-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--surface) 0%,
    var(--surface) 28%,
    rgba(10,10,10,0.75) 52%,
    transparent 75%
  );
  z-index: 3;
}

/* Stream socials */
.stream-socials {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.s-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.s-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.s-link:hover { color: #fff; }

/* ═══════════════════════════════════
   RIGHT CARDS COLUMN
═══════════════════════════════════ */
.cards-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Single link card ─── */
.link-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition:
    border-color  0.25s ease,
    background    0.25s ease,
    transform     0.25s cubic-bezier(.22,.68,0,1.2),
    box-shadow    0.25s ease;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: var(--r-sm);
  z-index: 1;
  pointer-events: none;
}

.link-card:hover {
  border-color: var(--border-h);
  background: var(--surface2);
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
}

.link-card:hover::before { opacity: 1; }

.link-card:active {
  transform: translateY(-1px) scale(1.006);
}

/* Left — ícone + label */
.card-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  position: relative;
  z-index: 2;
}

.card-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.25s, transform 0.3s cubic-bezier(.22,.68,0,1.4);
}

.link-card:hover .card-icon {
  color: #fff;
  transform: scale(1.2) rotate(-8deg);
}

.card-icon svg { width: 100%; height: 100%; }

.card-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  transition: letter-spacing 0.25s;
}

.link-card:hover .card-label { letter-spacing: 0.16em; }

/* ── Thumb — base: imagem à DIREITA (cards 1 e 3) ── */
.card-thumb {
  width: 88px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  order: 2;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) brightness(0.65);
  display: block;
  transition: filter 0.35s ease, transform 0.5s cubic-bezier(.22,.68,0,1.2);
}

.link-card:hover .card-thumb img {
  filter: grayscale(1) brightness(0.9);
  transform: scale(1.12);
}

/* Fade da esquerda cobrindo borda da thumb (imagem à direita) */
.card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--surface) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
  transition: background 0.25s;
}

.link-card:hover .card-thumb::before {
  background: linear-gradient(to right, var(--surface2) 0%, transparent 55%);
}

/* ── Cards PARES (2º e 4º): imagem à ESQUERDA ── */
.link-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* Fade da direita cobrindo borda da thumb (imagem à esquerda) */
.link-card:nth-child(even) .card-thumb::before {
  background: linear-gradient(to left, var(--surface) 0%, transparent 55%);
}

.link-card:nth-child(even):hover .card-thumb::before {
  background: linear-gradient(to left, var(--surface2) 0%, transparent 55%);
}

/* ═══════════════════════════════════
   MUSIC PLAYER
═══════════════════════════════════ */
.player {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-cover {
  width: 48px;
  height: 48px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.player-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 100px;
  flex-shrink: 0;
}

.pm-now     { font-size: 0.58rem; color: var(--muted); letter-spacing: 0.1em; font-weight: 600; }
.pm-playing {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color 0.4s ease;
}
.pm-playing.is-playing {
  color: #22c55e;
  animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}
.pm-track   { font-size: 0.58rem; color: var(--muted); letter-spacing: 0.06em; margin-top: 1px; }

.player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Control buttons */
.player-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pb {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.pb:hover { color: #fff; background: rgba(255,255,255,0.07); transform: scale(1.15); }
.pb:active { transform: scale(0.92); }
.pb svg { width: 16px; height: 16px; }

.pb-play {
  width: 38px;
  height: 38px;
  background: #ffffff;
  color: #000;
  border-radius: 50%;
}

.pb-play:hover { background: #ddd; color: #000; transform: scale(1.1); }
.pb-play svg { width: 18px; height: 18px; }

/* Progress */
.progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ptime {
  font-size: 0.58rem;
  color: var(--muted);
  min-width: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.progress-track {
  flex: 1;
  height: 3px;
  background: var(--muted2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s;
}

.progress-track:hover { height: 5px; }

.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: #fff;
  border-radius: 3px;
  width: 0%;
  pointer-events: none;
  transition: width 0.4s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  left: 0%;
  pointer-events: none;
  transition: transform 0.15s, left 0.4s linear;
}

.progress-track:hover .progress-thumb { transform: translate(-50%, -50%) scale(1); }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .content-row { grid-template-columns: 1fr; }
  .stream-card { min-height: 280px; }
  .aki-img { height: 95%; right: -5px; }
  .player { flex-wrap: wrap; gap: 12px; }
  .player-cover { display: none; }
}

/* ─── LUZ CANTO SUPERIOR ESQUERDO ─── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 1100px;
  height: 1100px;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.20) 18%,
    rgba(255, 255, 255, 0.08) 38%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 2;
  transform-origin: top left;
}

/* ─── RAIN CANVAS ─── */
#rainCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Wrapper e tudo dentro sobem acima do canvas */
.wrapper        { position: relative; z-index: 1; }
.enter-overlay  { z-index: 9999; }
.enter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.enter-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.enter-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.75);
  animation: enter-pulse 2.2s ease-in-out infinite;
}

@keyframes enter-pulse {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 0.3; }
}

/* ─── CREDIT ─── */
.credit {
  display: block;
  text-align: center;
  width: 100%;
  padding: 18px 0 10px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  position: relative;
  z-index: 1;
  animation: credit-glow 2.4s ease-in-out infinite;
}

.credit:hover {
  animation: none;
  color: #ffffff;
}

@keyframes credit-glow {
  0%, 100% { color: rgba(255, 255, 255, 0.25); }
  50%       { color: rgba(255, 255, 255, 0.9);  }
}

.pm-playing.is-paused {
  color: var(--muted);
  animation: none;
}
.vol-widget {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  width: 52px;          /* só o botão visível */
  transition: width 0.35s cubic-bezier(.22,.68,0,1.2),
              border-color 0.25s;
}

.vol-widget:hover {
  width: 230px;
  border-color: rgba(255,255,255,0.2);
}

.vol-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: color 0.2s, background 0.2s;
}

.vol-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }
.vol-btn svg   { width: 22px; height: 22px; }

.vol-slider-wrap {
  flex: 1;
  padding: 0 14px 0 4px;
  opacity: 0;
  transition: opacity 0.25s 0.05s;
  min-width: 0;
  display: flex;
  align-items: center;
}

.vol-widget:hover .vol-slider-wrap {
  opacity: 1;
}

/* Slider styling */
.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: #333;
  outline: none;
  cursor: pointer;
  transition: height 0.15s;
}

.vol-slider:hover { height: 5px; }

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s;
}

.vol-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }

.vol-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

/* Preenche a parte esquerda do slider em branco via JS */
.vol-slider {
  background: linear-gradient(to right, #fff 100%, #333 100%);
}
