@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #06070e;
  --bg-soft: #0b0d1a;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(139, 92, 246, 0.5);
  --text: #eef0ff;
  --text-dim: #9fa3c4;
  --primary: #8b5cf6;
  --primary-2: #d946ef;
  --accent: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 0 34px rgba(139, 92, 246, 0.3);
  --font-head: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  animation: fadeIn 0.45s ease;
}

/* ── Aurora arka plan + ince grid dokusu ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(650px 450px at 12% -5%, rgba(139, 92, 246, 0.22), transparent 62%),
    radial-gradient(750px 520px at 88% 8%, rgba(34, 211, 238, 0.14), transparent 62%),
    radial-gradient(700px 560px at 50% 110%, rgba(217, 70, 239, 0.14), transparent 62%);
  animation: aurora 16s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

@keyframes aurora {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: hue-rotate(0deg);
  }
  50% {
    transform: translate3d(2%, -1.5%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-2%, 1.5%, 0) scale(1.02);
    filter: hue-rotate(18deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
}

/* ── Özel scrollbar ─────────────────────── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9d72ff, #e25bf7);
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

/* ── Navbar ─────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  background: rgba(6, 7, 14, 0.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.55), rgba(34, 211, 238, 0.4), transparent);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.85;
}

.brand .logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 13px;
  box-shadow: var(--glow);
  transition: transform 0.25s ease;
}

.brand:hover .logo {
  transform: rotate(-6deg) scale(1.05);
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.4);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.12);
}

.nav-toggle:active {
  transform: scale(0.94);
}

.conn-badge {
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.3px;
}

.conn-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.conn-badge.ready .dot {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ── Layout ─────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 22px 90px;
}

.page-title {
  text-align: center;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #fff 10%, #c4b5fd, #67e8f9 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {
  0%, 100% {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.12);
  }
  50% {
    text-shadow: 0 0 50px rgba(34, 211, 238, 0.2);
  }
}

.page-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.55);
}

.page-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 36px;
  font-size: 0.98rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.grid-2.cols-wide {
  grid-template-columns: 5fr 4fr;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-2.cols-wide {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(6, 7, 14, 0.97);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 15px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
  .navbar {
    padding: 10px 14px;
  }
  .conn-badge {
    display: none;
  }
}

/* ── Cards (glassmorphism) ──────────────── */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), transparent 38%, rgba(34, 211, 238, 0.32), transparent 78%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: var(--shadow), 0 0 40px rgba(139, 92, 246, 0.12);
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.card h3 .emoji {
  font-size: 1.2rem;
}

/* ── Form ───────────────────────────────── */
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin: 15px 0 7px;
  letter-spacing: 0.2px;
}

label:first-of-type {
  margin-top: 0;
}

input[type="text"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(6, 7, 14, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  background: rgba(6, 7, 14, 0.75);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16), 0 0 24px rgba(139, 92, 246, 0.12);
}

.char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 5px;
}

/* ── Toggle / switch ────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.toggle-row .hint {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.switch {
  position: relative;
  width: 48px;
  height: 27px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 2.5px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
}

.switch input:checked + .slider::before {
  transform: translateX(21px);
}

/* ── Segmented control (cinsiyet) ───────── */
.segmented {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  background: rgba(6, 7, 14, 0.55);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 4px;
}

.segmented button {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.22s;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

/* ── Buttons ────────────────────────────── */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.35);
  width: 100%;
  margin-top: 22px;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -80%;
  }
  55% {
    left: 140%;
  }
  100% {
    left: 140%;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(139, 92, 246, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.82rem;
  border-radius: 10px;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #04110c;
}

.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.22);
}

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ── Chips (prompt builder) ─────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.83rem;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}

.chip:hover {
  border-color: var(--primary);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.chip.selected {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(217, 70, 239, 0.3));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.prompt-category {
  margin-bottom: 24px;
}

.prompt-category h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.prompt-category .desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 9px;
}

/* ── Prompt output box ──────────────────── */
.prompt-box {
  background: rgba(6, 7, 14, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  min-height: 170px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.75;
}

.prompt-box:not(.placeholder) {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: inset 0 0 40px rgba(139, 92, 246, 0.05);
}

.prompt-box.placeholder {
  color: var(--text-dim);
  font-style: italic;
}

/* ── Progress / status ──────────────────── */
.progress-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 26px 0;
}

.ring-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 330px;
}

.timer {
  font-family: var(--font-head);
  font-size: 2.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 3px;
  background: linear-gradient(120deg, var(--accent), var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.35));
}

.timer-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.status-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.step {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.25s;
}

.step::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  transition: all 0.25s;
}

.step .step-icon {
  width: 22px;
  text-align: center;
}

.step.active {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
}

.step.active::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.step.done {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
}

.step.done::before {
  background: var(--success);
}

.step.error {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.4);
}

.step.error::before {
  background: var(--danger);
}

/* ── Result cards ───────────────────────── */
.song-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(11, 13, 26, 0.6));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 50px rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(14px);
  animation: popIn 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.song-card .cover {
  position: relative;
  aspect-ratio: 1.9 / 1;
  overflow: hidden;
}

.song-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.song-card:hover .cover img {
  transform: scale(1.05);
}

.song-card .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 14, 0.92), transparent 62%);
}

.song-card .badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  background: rgba(6, 7, 14, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  letter-spacing: 0.3px;
}

.song-card .meta {
  position: absolute;
  bottom: 11px;
  left: 15px;
  right: 15px;
  z-index: 2;
}

.song-card .meta h4 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.song-card .meta p {
  font-size: 0.76rem;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-card .body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

audio {
  width: 100%;
  height: 42px;
}

video {
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

audio::-webkit-media-controls-panel {
  background: var(--bg-soft);
}

/* ── History list ───────────────────────── */
.history-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  margin-bottom: 13px;
  transition: all 0.22s;
  backdrop-filter: blur(10px);
}

.history-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.history-item .h-cover {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
}

.history-item .h-info {
  flex: 1;
  min-width: 0;
}

.history-item .h-info h5 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-item .h-info p {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Paylaşım butonları ─────────────────── */
.h-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.share-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.share-btn:hover {
  transform: translateY(-2px);
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.share-btn:active {
  transform: scale(0.92);
}

.share-wa { color: #25d366; }
.share-tg { color: #229ed9; }
.share-ig { color: #e1306c; }
.share-yt { color: #ff3b3b; }

@media (max-width: 620px) {
  .h-actions {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    margin-top: 6px;
  }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-state .big {
  font-size: 3rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.35));
}

/* ── Toast ──────────────────────────────── */
.toast-container {
  position: fixed;
  top: 76px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(20, 22, 44, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 12px 18px;
  border-radius: 13px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  animation: slideIn 0.32s cubic-bezier(0.34, 1.3, 0.64, 1);
  max-width: 340px;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

@keyframes slideIn {
  from {
    transform: translateX(34px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

/* ── Global oynatıcı (sayfalar arası) ──── */
.floating-player {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 999;
  width: 370px;
  max-width: calc(100vw - 32px);
  padding: 14px 14px 12px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(23, 25, 50, 0.94), rgba(10, 12, 24, 0.96));
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 44px rgba(139, 92, 246, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  animation: popIn 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  overflow: hidden;
}

.floating-player::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 35%, var(--accent), transparent 75%, var(--primary-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.floating-player::after {
  content: "";
  position: absolute;
  top: -46px;
  left: 12%;
  right: 12%;
  height: 90px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.18) 55%, transparent 75%);
  filter: blur(6px);
  pointer-events: none;
}

.floating-player .fp-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Vinil disk / kapak */
.floating-player .fp-art {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: repeating-radial-gradient(circle at center, #191c33 0 2px, #0c0e1e 2px 4px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(139, 92, 246, 0.35);
  overflow: hidden;
}

.floating-player .fp-art::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px dashed rgba(34, 211, 238, 0.55);
  animation: fpSpin 7s linear infinite;
  animation-play-state: paused;
}

.floating-player .fp-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-player.playing .fp-art::after {
  animation-play-state: running;
}

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

/* Meta bilgiler */
.floating-player .fp-meta {
  flex: 1;
  min-width: 0;
}

.floating-player .fp-title {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 22px;
}

.floating-player .fp-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.floating-player .fp-status-text {
  transition: color 0.2s;
}

.floating-player.playing .fp-status-text {
  color: var(--accent);
}

/* Küçük equalizer çubukları */
.floating-player .fp-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.floating-player .fp-eq span {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--primary), var(--accent));
  animation: fpEq 1s ease-in-out infinite;
  animation-play-state: paused;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.5);
}

.floating-player.playing .fp-eq span {
  animation-play-state: running;
}

.floating-player .fp-eq span:nth-child(1) { animation-delay: 0s; }
.floating-player .fp-eq span:nth-child(2) { animation-delay: 0.2s; }
.floating-player .fp-eq span:nth-child(3) { animation-delay: 0.35s; }
.floating-player .fp-eq span:nth-child(4) { animation-delay: 0.1s; }

@keyframes fpEq {
  0%, 100% {
    height: 4px;
  }
  50% {
    height: 11px;
  }
}

/* Play / pause düğmesi */
.floating-player .fp-play {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-player .fp-play:hover {
  transform: scale(1.09);
  box-shadow: 0 8px 28px rgba(217, 70, 239, 0.7);
}

.floating-player .fp-play:active {
  transform: scale(0.95);
}

.floating-player.playing .fp-play {
  animation: fpPulse 2.2s ease-in-out infinite;
}

@keyframes fpPulse {
  0%, 100% {
    box-shadow: 0 6px 22px rgba(139, 92, 246, 0.55);
  }
  50% {
    box-shadow: 0 6px 34px rgba(217, 70, 239, 0.85), 0 0 18px rgba(34, 211, 238, 0.4);
  }
}

/* İlerleme çubuğu */
.floating-player .fp-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
}

.floating-player .fp-time {
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  min-width: 32px;
  letter-spacing: 0.3px;
}

.floating-player .fp-time-total {
  text-align: right;
}

.floating-player .fp-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.floating-player .fp-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.7);
  transition: width 0.25s linear;
}

/* Video kapsayıcı */
.floating-player .fp-video {
  position: relative;
  z-index: 1;
  margin-top: 11px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.2);
}

.floating-player .fp-video video {
  width: 100%;
  max-height: 220px;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Gizli ses kaynağı (audio elemanı görünmez) */
.floating-player .fp-src {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
  overflow: hidden;
}

/* Kapat düğmesi */
.floating-player .fp-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 3;
  width: 23px;
  height: 23px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 0.66rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: grid;
  place-items: center;
}

.floating-player .fp-close:hover {
  background: rgba(248, 113, 113, 0.28);
  color: var(--danger);
}

@media (max-width: 700px) {
  .floating-player {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: none;
  }
}

/* ── Settings ───────────────────────────── */
.setting-group {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
}

.setting-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.setting-group h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.setting-group .desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 700px) {
  .mode-cards {
    grid-template-columns: 1fr;
  }
}

.mode-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 17px;
  cursor: pointer;
  transition: all 0.22s;
  background: rgba(255, 255, 255, 0.03);
}

.mode-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.mode-card.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.09);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.2);
}

.mode-card .mode-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-card .mode-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hidden {
  display: none !important;
}

kbd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 0.78rem;
  font-family: Consolas, monospace;
}

.code {
  background: rgba(6, 7, 14, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.78rem;
  overflow-x: auto;
  color: var(--accent);
  font-family: Consolas, monospace;
  white-space: pre-wrap;
  margin: 8px 0;
}

.hint-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ── Equalizer animation ────────────────── */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
}

.eq span {
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(to top, var(--primary), var(--accent));
  animation: eq 1s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.eq span:nth-child(1) { animation-delay: 0s; }
.eq span:nth-child(2) { animation-delay: 0.12s; }
.eq span:nth-child(3) { animation-delay: 0.24s; }
.eq span:nth-child(4) { animation-delay: 0.36s; }
.eq span:nth-child(5) { animation-delay: 0.48s; }
.eq span:nth-child(6) { animation-delay: 0.2s; }
.eq span:nth-child(7) { animation-delay: 0.08s; }
.eq span:nth-child(8) { animation-delay: 0.4s; }

@keyframes eq {
  0%, 100% {
    height: 6px;
  }
  50% {
    height: 26px;
  }
}

/* ── Login overlay (ayarlar) ────────────── */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: rgba(6, 7, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.login-card {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(11, 13, 26, 0.7));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: var(--shadow), 0 0 60px rgba(139, 92, 246, 0.2);
  backdrop-filter: blur(16px);
  text-align: center;
  animation: popIn 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.login-logo {
  width: 66px;
  height: 66px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 20px;
  box-shadow: var(--glow);
  animation: pulse 3s ease-in-out infinite;
}

.login-card h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.login-card .login-sub {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.login-card input {
  margin-bottom: 10px;
}

.login-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 10px;
  min-height: 18px;
}

.login-hint {
  color: var(--text-dim);
  font-size: 0.72rem;
  margin-top: 14px;
}

/* ── Footer ─────────────────────────────── */
.footer {
  text-align: center;
  padding: 26px;
  color: var(--text-dim);
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 7, 14, 0.4);
  backdrop-filter: blur(8px);
}

/* ── Range slider (tempo) ───────────────── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  outline: none;
  margin: 14px 0 5px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.7);
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.7);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.tempo-value {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.92rem;
  margin-top: 7px;
}

/* ── Hareket azaltma tercihi ────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
