* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #a78bfa;
  --accent-2: #c084fc;
  --glass: rgba(10, 10, 16, 0.55);
  --border: rgba(255, 255, 255, 0.12);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

/* ── Tam Ekran Video ── */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ── Arkaplan Karartma ── */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* ── Giriş Ekranı (siyah + blur) ── */
.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.enter-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: fadeUp 0.9s ease both;
}

.enter-icon-wrapper {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
  transition: transform 0.3s ease, background 0.3s ease;
}

.enter-screen:hover .enter-icon-wrapper {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.14);
}

.enter-icon {
  font-size: 30px;
  margin-left: 5px;
}

.enter-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.25); }
  50%      { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   Sağ Alt Ses / Video Kontrol Dock'ı
   ══════════════════════════════════════ */
.music-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 10px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.music-dock.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dönen plak */
.music-disc {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.music-disc.spinning {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Başlık + ekolayzır */
.music-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 46px;
}

.music-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.equalizer .bar {
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transition: height 0.3s ease;
}

.equalizer.playing .bar {
  animation: eq 0.9s ease-in-out infinite;
}

.equalizer.playing .bar:nth-child(2) { animation-delay: 0.15s; }
.equalizer.playing .bar:nth-child(3) { animation-delay: 0.3s; }
.equalizer.playing .bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes eq {
  0%, 100% { height: 3px; }
  50%      { height: 14px; }
}

/* Ses çubuğu */
.volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  font-size: 12px;
  opacity: 0.7;
}

.volume-slider {
  --fill: 100%;
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 5px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(to right,
      var(--accent) 0%,
      var(--accent) var(--fill),
      rgba(255, 255, 255, 0.22) var(--fill),
      rgba(255, 255, 255, 0.22) 100%);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  cursor: pointer;
}

.volume-slider::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: transparent;
}

/* Butonlar */
.music-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.music-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

.music-btn.active {
  background: rgba(167, 139, 250, 0.25);
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.35);
}

/* ══════════════════════════════════════
   Profil Kartı (Ortadaki Dikdörtgen)
   ══════════════════════════════════════ */
.card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: min(380px, calc(100vw - 32px));
  padding: 36px 30px 28px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  overflow: hidden;
  opacity: 0;
  translate: -50% -50%;
  transform: perspective(1000px) rotateX(0) rotateY(0) scale3d(0.95, 0.95, 0.95);
  transition: opacity 0.7s ease 0.35s, transform 0.15s ease-out;
  will-change: transform;
}

.card.visible {
  opacity: 1;
}

/* Fareyi takip eden ışık */
.card-border-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    380px circle at var(--mouse-x) var(--mouse-y),
    rgba(167, 139, 250, 0.18),
    transparent 45%
  );
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), #60a5fa, #f472b6, var(--accent));
  animation: spin 4s linear infinite;
  filter: blur(0.4px);
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0b0b12;
}

.avatar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.status-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid #0b0b12;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
  z-index: 2;
}

/* İsim */
.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.verified-badge {
  color: #60a5fa;
  font-size: 18px;
}

.username {
  margin-top: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}

.divider {
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Linkler */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.link > i:first-child {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.link span {
  flex: 1;
  text-align: left;
}

.link .arrow {
  font-size: 12px;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.link:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: rgba(124, 58, 237, 0.7);
  transform: translateX(4px);
}

.link:hover .arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ══════════════════════════════════════
   Responsive — Telefon / Tablet / PC / TV
   ══════════════════════════════════════ */

/* Kartın hiçbir ekranda taşmaması için (dar/yatık ekranlar) */
.card {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}

/* ── Tablet (≤ 1024px): dokunma dostu, biraz daha ferah ── */
@media (max-width: 1024px) {
  .card {
    width: min(420px, calc(100vw - 40px));
  }

  .link {
    padding: 15px 18px;
    font-size: 15px;
  }

  .music-btn {
    width: 44px;
    height: 44px;
  }
}

/* ── Telefon (≤ 560px) ── */
@media (max-width: 560px) {
  .card {
    width: calc(100vw - 24px);
    padding: 30px 22px 24px;
    border-radius: 20px;
  }

  .avatar-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 14px;
  }

  .name {
    font-size: 21px;
  }

  .divider {
    margin: 18px 0;
  }

  .link {
    padding: 14px 16px;
  }

  .music-dock {
    right: 12px;
    bottom: 12px;
    gap: 10px;
    padding: 8px;
  }

  .music-info {
    display: none;
  }

  .volume-slider {
    width: 70px;
  }
}

/* ── Küçük telefon (≤ 380px) ── */
@media (max-width: 380px) {
  .card {
    padding: 26px 18px 20px;
  }

  .avatar-wrapper {
    width: 88px;
    height: 88px;
  }

  .name {
    font-size: 19px;
  }

  .link {
    font-size: 13.5px;
    gap: 10px;
    padding: 12px 14px;
  }

  .volume-container {
    display: none;
  }
}

/* ── Yatık / kısa ekran (landscape telefon): kart içi kaydırma ── */
@media (max-height: 520px) {
  .card {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .avatar-wrapper {
    width: 76px;
    height: 76px;
    margin-bottom: 10px;
  }

  .divider {
    margin: 14px 0;
  }
}

/* ── Geniş ekran / TV (≥ 1600px): uzaktan okunabilirlik için büyüt ── */
@media (min-width: 1600px) {
  .card {
    width: 520px;
    padding: 52px 44px 40px;
    border-radius: 32px;
  }

  .avatar-wrapper {
    width: 156px;
    height: 156px;
    margin-bottom: 24px;
  }

  .status-dot {
    width: 24px;
    height: 24px;
  }

  .name {
    font-size: 34px;
  }

  .verified-badge {
    font-size: 24px;
  }

  .username {
    font-size: 18px;
  }

  .divider {
    margin: 30px 0;
  }

  .links {
    gap: 14px;
  }

  .link {
    padding: 18px 22px;
    font-size: 18px;
    border-radius: 18px;
  }

  .link > i:first-child {
    font-size: 22px;
    width: 28px;
  }

  .music-dock {
    right: 40px;
    bottom: 40px;
    gap: 18px;
    padding: 14px 18px 14px 14px;
    border-radius: 24px;
  }

  .music-disc {
    width: 56px;
    height: 56px;
    font-size: 40px;
  }

  .music-title {
    font-size: 15px;
  }

  .volume-slider {
    width: 150px;
  }

  .music-btn {
    width: 52px;
    height: 52px;
    font-size: 19px;
  }
}

/* ── Çok geniş / 4K TV (≥ 2560px): bir kademe daha ── */
@media (min-width: 2560px) {
  .card {
    width: 680px;
    padding: 68px 58px 52px;
  }

  .avatar-wrapper {
    width: 200px;
    height: 200px;
  }

  .name {
    font-size: 44px;
  }

  .username {
    font-size: 22px;
  }

  .link {
    padding: 22px 28px;
    font-size: 22px;
  }

  .link > i:first-child {
    font-size: 28px;
    width: 34px;
  }
}
