@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda+SC:wght@400;500;600&display=swap');

:root {
  --bg-color: #0a0a0a;
  --card-bg: rgba(255, 255, 255, 0.03);
  --accent-color: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-color: #ffffff;
  --glow-opacity: 0;
  --spot-opacity: 0;
}

/* Light Mode Variables */
body.light-mode {
  --bg-color: #f5f5f5;
  --card-bg: rgba(0, 0, 0, 0.03);
  --accent-color: #000000;
  --border-color: rgba(0, 0, 0, 0.1);
  --text-dim: rgba(0, 0, 0, 0.5);
  --text-color: #000000;
}

body.light-mode #formatSelect {
  color: #000;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode #formatSelect option {
  background: #fff;
  color: #000;
}

body.light-mode {
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at top center, #e0e0e0 0%, #f5f5f5 100%);
  color: var(--text-color);
}

body.light-mode .container {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode #cursor-glow {
  background: radial-gradient(
    circle,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.08) 25%,
    transparent 65%
  );
}

/* Light mode metin ve element renkleri */
body.light-mode header h1,
body.light-mode header h1 span {
  color: #000 !important;
  -webkit-text-stroke: 0;
}

body.light-mode header p {
  color: rgba(0,0,0,0.5);
}

body.light-mode .upload-box label {
  color: #000;
}

body.light-mode .upload-box label small {
  color: rgba(0,0,0,0.5);
}

body.light-mode .option {
  color: #000;
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.03);
}

body.light-mode .option.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

body.light-mode select,
body.light-mode .format-box label {
  color: #000;
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.15);
}

body.light-mode select option {
  background: #fff;
  color: #000;
}

body.light-mode #processBtn {
  background: #000;
  color: #fff;
  border-color: #000;
}

body.light-mode .remove-btn {
  color: rgba(0,0,0,0.5);
  border-color: rgba(0,0,0,0.15);
}

body.light-mode #progressText {
  color: rgba(0,0,0,0.6);
}

body.light-mode .progress-wrapper {
  background: rgba(192, 132, 252, 0.1);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
}

body.light-mode .progress-bar {
  background: linear-gradient(90deg, #c084fc, #e0e7ff, #a78bfa, #e0e7ff, #c084fc);
  background-size: 200% 100%;
  animation: progressShimmer 2s linear infinite;
}

body.light-mode .results button {
  color: #000;
  border-color: rgba(0,0,0,0.2);
  background: transparent;
}

body.light-mode .results button.active {
  background: #000;
  color: #fff;
}

body.light-mode .file-card {
  border-color: rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.03);
  color: #000;
}

body.light-mode .file-card-size {
  color: rgba(0,0,0,0.5);
}

/* Language selector light mode */
body.light-mode .language-btn {
  color: #000;
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.03);
}

body.light-mode .language-dropdown {
  background: #fff;
  border-color: rgba(0,0,0,0.15);
}

body.light-mode .lang-option {
  color: #000;
}

body.light-mode .lang-option:hover {
  background: rgba(0,0,0,0.05);
}

body.light-mode .lang-text,
body.light-mode #currentLang {
  color: #000;
}


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

body {
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at top center, #1a1a1a 0%, #0a0a0a 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s ease-out;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========================= */
/* MODERN THEME TOGGLE       */
/* style.css'deki theme toggle bloğunu bu ile değiştir */
/* ========================= */

.theme-toggle {
  position: fixed;
  top: 24px;
  right: 200px;
  z-index: 1000;
}

.toggle-track {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 4px;
  overflow: visible;
}

.toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 100px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.toggle-track[data-theme="light"] .toggle-slider {
  transform: translateX(100%);
}

.toggle-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  z-index: 1;
  min-width: 80px;
}

.toggle-option span:first-child {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.toggle-option.active {
  color: #fff;
  font-weight: 500;
}

.toggle-option.active span:first-child {
  transform: scale(1.1);
}

.toggle-option span:last-child {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Light mode styling */
body.light-mode .toggle-track {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .toggle-slider {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.1));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-mode .toggle-option {
  color: rgba(0, 0, 0, 0.4);
}

body.light-mode .toggle-option.active {
  color: #000;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .theme-toggle {
    top: 2.5vw;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  
  .toggle-track {
    padding: 2px;
    border-width: 0.5px;
  }
  
  .toggle-slider {
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
  }
  
  .toggle-option {
    padding: 1.2vw 2.5vw;
    font-size: 2.2vw;
    min-width: 12vw;
    gap: 1vw;
  }
  
  .toggle-option span:first-child {
    font-size: 3vw;
  }
  
  .toggle-option span:last-child {
    display: none;
  }
  
  .language-selector {
    top: 2.5vw;
    right: 2.5vw;
  }
}

/* ========================= */
/* LANGUAGE SELECTOR         */
/* ========================= */
.language-selector {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
}

html[lang="ar"] {
  direction: rtl;
}

html[lang="ar"] .language-selector {
  left: 24px;
  right: auto;
}

html[lang="ar"] .language-dropdown {
  left: 0;
  right: auto;
}

#logo {
  direction: ltr !important;
  unicode-bidi: embed;
}

header {
  direction: ltr !important;
}

header p {
  direction: inherit;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.language-btn .flag {
  font-size: 18px;
  line-height: 1;
}

.language-btn .lang-text {
  letter-spacing: 0.5px;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.language-dropdown::-webkit-scrollbar {
  width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.language-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
  background: rgba(255, 255, 255, 0.12);
}

.lang-option .flag {
  font-size: 20px;
  line-height: 1;
}

header {
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
  animation: fadeIn 0.8s ease-out;
}

header h1 {
  font-family: 'Bodoni Moda SC', serif;
  font-size: clamp(28px, 8vw, 52px);
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 8px;
  white-space: nowrap;
  position: relative;
}

header p {
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  z-index: 2;
  animation: slideUp 0.7s ease-out;
}

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

.upload-box label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  padding: 60px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-box label:hover {
  border-color: var(--accent-color);
  background: rgba(255,255,255,0.02);
}

.upload-box span {
  font-size: 18px;
  margin-bottom: 8px;
  white-space: nowrap;
}

.upload-box small {
  color: var(--text-dim);
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option {
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.option:hover {
  background: rgba(255,255,255,0.05);
}

.option.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}

#processBtn {
  width: 100%;
  padding: 18px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  background: #222;
  color: #555;
  cursor: not-allowed;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#processBtn.enabled {
  background: #fff;
  color: #000;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

#processBtn.enabled:active {
  transform: scale(0.98);
}

.progress-wrapper {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fff, #888);
  transition: width 0.3s ease;
}

.results {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.results.single {
  justify-content: center !important;
}

.results.double {
  justify-content: center !important;
}

.results button {
  min-width: 0;
  flex: 1 1 calc(50% - 12px);
  max-width: calc(50% - 6px);
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.results button.active {
  border-color: var(--accent-color);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,255,255,0.08);
}

.results button.active:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}


#logo {
  position: relative;
  cursor: default;
  user-select: none;
  display: inline-block;
}

#logo span {
  position: relative;
  display: inline-block;
  color: #fff;
  transition: transform 0.18s ease, color 0.18s ease, filter 0.18s ease, -webkit-text-stroke 0.18s ease;
}

#logo span.hovered {
  color: transparent;
  -webkit-text-stroke: 1px #fff;
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

#logo::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25px;
  transform: translateX(-50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.25) 0%, transparent 70%);
  filter: blur(8px);
}

#logo span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 140%;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.45), transparent 65%);
  opacity: var(--spot-opacity, 0);
  filter: blur(14px);
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 25%, transparent 65%);
  filter: blur(12px);
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.25s ease;
  z-index: 9999;
  mix-blend-mode: screen;
}

.format-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.format-box label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

#formatSelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

#formatSelect:hover {
  border-color: rgba(255,255,255,0.6);
  background-color: rgba(255,255,255,0.04);
}

#formatSelect:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
}

#formatSelect option {
  background: #0a0a0a;
  color: #fff;
}

body.drag-active .upload-box label {
  transform: scale(1.04);
  border-color: #fff;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4);
}

.file-card {
  display: none;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
}

.file-card.visible {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.file-card-icon {
  font-size: 22px;
  opacity: 0.6;
  flex-shrink: 0;
}

.file-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.file-card-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-size {
  font-size: 12px;
  color: var(--text-dim);
}

.remove-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.25s ease;
}

.remove-btn:hover {
  border-color: #fff;
  color: #fff;
}

.remove-btn:active {
  transform: scale(0.98);
}

.player-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.player-section.open {
  max-height: 300px;
  opacity: 1;
}

.player-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 20px;
}

.player-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.player-tab {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.player-tab.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}

.waveform-wrap {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

#waveform {
  width: 100%;
  min-height: 64px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-btn {
  padding: 10px 28px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.play-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.player-time {
  font-size: 13px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

/* ========================= */
/* MOBILE (max 480px)        */
/* ========================= */
@media (max-width: 480px) {
  body {
    padding: 0 3vw;
  }

  .language-selector {
    top: 2.5vw;
    right: 2.5vw;
  }

  .language-btn {
    padding: 1.7vw 2.5vw;
    font-size: 2.7vw;
  }

  .language-btn .flag {
    font-size: 3.3vw;
  }

  .language-dropdown {
    max-height: 62.5vw;
  }

  header {
    padding: 11.7vw 2.5vw 6.7vw;
  }

  header h1 {
    font-size: 6.7vw;
    letter-spacing: 0.2vw;
  }

  header p {
    font-size: 2.1vw;
    letter-spacing: 0.5vw;
  }

  .container {
    max-width: 100%;
    margin: 0 auto 5vw;
    padding: 4.2vw;
    border-radius: 4.2vw;
    gap: 4.2vw;
  }

  .upload-box label {
    padding: 7.5vw 3.3vw;
  }

  .upload-box span {
    font-size: 3.3vw;
  }

  .upload-box small {
    font-size: 2.5vw;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 2.5vw;
  }

  .option {
    padding: 2.5vw;
    font-size: 2.9vw;
    border-radius: 2.5vw;
  }

  #processBtn {
    padding: 3.3vw;
    font-size: 3.1vw;
    border-radius: 2.9vw;
  }

  .results {
    display: flex;
    justify-content: center;
    gap: 2.5vw;
    margin-top: 4.2vw;
    width: 100%;
    flex-wrap: wrap;
  }

  .results button {
    min-width: 0;
    flex: 1 1 calc(50% - 1.25vw);
    max-width: calc(50% - 1.25vw);
    padding: 2.9vw 2.5vw;
    border-radius: 2.5vw;
    font-size: 2.7vw;
  }

  #formatSelect {
    padding: 2.9vw;
    font-size: 2.9vw;
    border-radius: 2.9vw;
  }

  .format-box label {
    font-size: 2.5vw;
    letter-spacing: 0.4vw;
  }

  .file-card {
    padding: 3.3vw 4.2vw;
    border-radius: 2.9vw;
  }

  .file-card-icon {
    font-size: 4.6vw;
  }

  .file-card-name {
    font-size: 2.9vw;
  }

  .file-card-size {
    font-size: 2.5vw;
  }

  .remove-btn {
    padding: 2.5vw;
    font-size: 2.7vw;
    border-radius: 2.5vw;
  }

  .progress-wrapper {
    height: 1vw;
  }

  #progressText {
    font-size: 2.7vw;
    margin-top: 1.7vw;
  }

  #cursor-glow {
    opacity: 0.35;
  }

  #logo span {
    transform: none !important;
    filter: none !important;
  }
  

  .analysis-cards {
    gap: 2.5vw;
  }

  .analysis-card {
    padding: 2.5vw 2.1vw 2.1vw;
    border-radius: 3.3vw;
  }

  .analysis-card-icon {
    font-size: 3.3vw;
  }

  .analysis-card-label {
    font-size: 1.9vw;
    letter-spacing: 0.6vw;
  }

  .analysis-card-value {
    font-size: 4.6vw;
    min-height: 5.8vw;
  }

  .analysis-card-sub {
    font-size: 2.1vw;
  }

  .player-section.open {
    max-height: 62.5vw;
  }

  .player-tab {
    padding: 1.25vw 3.3vw;
    font-size: 2.7vw;
    border-radius: 4.2vw;
  }

  .play-btn {
    padding: 2.1vw 5.8vw;
    font-size: 2.9vw;
    border-radius: 4.2vw;
  }

  .player-time {
    font-size: 2.7vw;
  }

  .waveform-wrap {
    padding: 2.5vw;
    border-radius: 2.5vw;
  }


  #waveform {
    min-height: 13.3vw;
  }
}




@media (max-width: 768px) {
  header h1 {
    font-size: 44px;
  }

  .container {
    padding: 32px;
  }

  .upload-box label {
    padding: 48px 20px;
  }
}

/* ========================= */
/* PROGRESS BAR ANİMASYON    */
/* ========================= */
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c084fc, #e0e7ff, #a78bfa, #e0e7ff, #c084fc);
  background-size: 200% 100%;
  transition: width 0.3s ease;
  animation: progressShimmer 2s linear infinite;
  border-radius: 10px;
}

@keyframes progressShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-wrapper {
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.2);
}

/* ========================= */
/* MIXER SLIDER RENKLERİ     */
/* ========================= */

/* Vocals - mor */
.mixer-track[data-stem="vocals"] .mixer-track-slider {
  accent-color: #a855f7;
}
.mixer-track[data-stem="vocals"] .mixer-track-slider::-webkit-slider-thumb {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}
.mixer-track[data-stem="vocals"] .mixer-track-slider::-moz-range-thumb {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}
.mixer-track[data-stem="vocals"] .mixer-track-label {
  color: #a855f7;
}

/* Instrumental - mavi */
.mixer-track[data-stem="instrumental"] .mixer-track-slider {
  accent-color: #3b82f6;
}
.mixer-track[data-stem="instrumental"] .mixer-track-slider::-webkit-slider-thumb {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.mixer-track[data-stem="instrumental"] .mixer-track-slider::-moz-range-thumb {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.mixer-track[data-stem="instrumental"] .mixer-track-label {
  color: #3b82f6;
}

/* Drums - sarı */
.mixer-track[data-stem="drums"] .mixer-track-slider {
  accent-color: #eab308;
}
.mixer-track[data-stem="drums"] .mixer-track-slider::-webkit-slider-thumb {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}
.mixer-track[data-stem="drums"] .mixer-track-slider::-moz-range-thumb {
  background: #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}
.mixer-track[data-stem="drums"] .mixer-track-label {
  color: #eab308;
}

/* Bass - kırmızı */
.mixer-track[data-stem="bass"] .mixer-track-slider {
  accent-color: #ef4444;
}
.mixer-track[data-stem="bass"] .mixer-track-slider::-webkit-slider-thumb {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
.mixer-track[data-stem="bass"] .mixer-track-slider::-moz-range-thumb {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
.mixer-track[data-stem="bass"] .mixer-track-label {
  color: #ef4444;
}

/* ========================= */
/* MUTE BUTONU               */
/* ========================= */
.mixer-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mute-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: var(--text-dim);
}

.mute-btn:hover {
  border-color: #fff;
  color: #fff;
}

.mute-btn.muted {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* Stem renklerine göre mute hover */
.mixer-track[data-stem="vocals"] .mute-btn:hover    { border-color: #a855f7; color: #a855f7; }
.mixer-track[data-stem="instrumental"] .mute-btn:hover { border-color: #3b82f6; color: #3b82f6; }
.mixer-track[data-stem="drums"] .mute-btn:hover     { border-color: #eab308; color: #eab308; }
.mixer-track[data-stem="bass"] .mute-btn:hover      { border-color: #ef4444; color: #ef4444; }

/* Slider fill rengi için track arka planı */
.mixer-track-slider {
  position: relative;
}

/* Light mode uyumu */
body.light-mode .mute-btn {
  color: rgba(0,0,0,0.4);
  border-color: rgba(0,0,0,0.15);
}

body.light-mode .mute-btn:hover {
  border-color: #000;
  color: #000;
}

/* ========================= */
/* ANALYSIS CARDS (BPM+KEY)  */
/* Bu bloğu style.css'in     */
/* sonuna ekle               */
/* ========================= */

.analysis-cards {
  display: none;  /* görünmez ve alan kaplamaz */
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.analysis-cards.visible {
  display: grid;  /* sadece visible olunca alan kaplar */
  opacity: 1;
  transform: translateY(0);
}

.analysis-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 12px 12px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.analysis-card.loaded {
  border-color: rgba(192, 132, 252, 0.3);
  background: rgba(192, 132, 252, 0.05);
}

.analysis-card.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(227, 152, 61, 0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: cardShimmer 1.4s linear infinite;
  border-radius: 16px;
}

@keyframes cardShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.analysis-card-icon {
  font-size: 16px;
  line-height: 1;
  color: rgba(192, 132, 252, 0.6);
  margin-bottom: 2px;
  transition: color 0.3s ease;
}

.analysis-card.loaded .analysis-card-icon {
  color: #c084fc;
}

.analysis-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.analysis-card-label {
  font-size: 9px;  
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

.analysis-card-value {
  font-family: 'Bodoni Moda SC', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1;
  transition: color 0.3s ease;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.analysis-card.loaded .analysis-card-value {
  color: #c084fc;
}

.analysis-card-sub {
  font-size: 10px; 
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-top: 2px;
  min-height: 16px;
}

/* Light mode uyumu */
body.light-mode .analysis-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .analysis-card.loaded {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(192, 132, 252, 0.06);
}

body.light-mode .analysis-card-value {
  color: #c4781e;
}

body.light-mode .analysis-card.loaded .analysis-card-value {
  color: #a855f7;
}

/* Mobile */
@media (max-width: 480px) {
  .analysis-card-value {
    font-size: 26px;
  }

  .analysis-card {
    padding: 16px 12px 14px;
  }
}

.mixer-seekbar-wrap {
  margin-bottom: 14px;
}

#mixerSeekbar {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#mixerSeekbar::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c084fc;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.6);
  margin-top: -5px;
}

#mixerSeekbar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c084fc;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.6);
}

#mixerSeekbar::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}


/* Light mode - Player & Mixer (DESKTOP) */
body.light-mode .waveform-wrap {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.1);
}

body.light-mode .play-btn {
  color: #000;
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.03);
}

body.light-mode .play-btn:hover {
  background: rgba(0,0,0,0.06);
  border-color: #000;
}

body.light-mode .player-time {
  color: rgba(0,0,0,0.6);
}

body.light-mode .player-tab {
  color: rgba(0,0,0,0.5);
  border-color: rgba(0,0,0,0.2);
}

body.light-mode .player-tab.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

body.light-mode .mixer-header {
  color: rgba(0,0,0,0.5);
}

body.light-mode .mixer-play-btn {
  color: #000;
  border-color: rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.03);
}

body.light-mode .mixer-play-btn:hover {
  background: rgba(0,0,0,0.06);
  border-color: #000;
}
/* ========================= */
/* YOUTUBE CONVERTER BUTTON  */
/* ========================= */
.youtube-converter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 24px;
  max-width: 600px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.youtube-converter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 0, 0, 0.05) 50%, 
    transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.youtube-converter-btn:hover::before {
  transform: translateX(100%);
}

.youtube-converter-btn:hover {
  border-color: rgba(255, 0, 0, 0.3);
  background: rgba(255, 0, 0, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.1);
}

.yt-icon {
  font-size: 20px;
  filter: grayscale(0.7);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.youtube-converter-btn:hover .yt-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.yt-text {
  letter-spacing: 0.5px;
}

/* Light mode */
body.light-mode .youtube-converter-btn {
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .youtube-converter-btn:hover {
  border-color: rgba(255, 0, 0, 0.3);
  background: rgba(255, 0, 0, 0.03);
}

/* Mobile */
@media (max-width: 480px) {
  .youtube-converter-btn {
    margin: 0 16px 20px;
    padding: 12px 24px;
    font-size: 13px;
  }

  .yt-icon {
    font-size: 18px;
  }
}

/* ========================= */
/* YOUTUBE CONVERTER UI      */
/* ========================= */
.youtube-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.4s ease;
}

.youtube-input-box {
  display: flex;
  gap: 12px;
}

.youtube-url-input {
  flex: 1;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 14px;
  transition: all 0.3s ease;
}

.youtube-url-input:focus {
  outline: none;
  border-color: rgba(255, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.youtube-url-input::placeholder {
  color: var(--text-dim);
}

.youtube-fetch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.youtube-fetch-btn:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.youtube-preview {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  animation: slideUp 0.4s ease;
}

.youtube-thumbnail-wrap {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
}

.youtube-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.youtube-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.youtube-info h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.youtube-info p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.youtube-convert-btn,
.youtube-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideUp 0.4s ease;
}

.youtube-convert-btn {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.3);
}

.youtube-convert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 0, 0, 0.4);
}

.youtube-download-btn {
  background: #fff;
  color: #000;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.youtube-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.2);
}

.youtube-progress {
  animation: fadeIn 0.4s ease;
}

/* Light Mode */
body.light-mode .youtube-url-input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .youtube-preview {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Mobile */
@media (max-width: 600px) {
  .youtube-preview {
    flex-direction: column;
  }

  .youtube-thumbnail-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}

/* YouTube Header & Description */
.youtube-header {
  text-align: center;
  margin-bottom: 32px;
}

.youtube-header h2 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-color);
}

.youtube-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-align: left;
}

.youtube-how-it-works {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.youtube-how-it-works h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-color);
  text-align: center;
}

.youtube-how-it-works ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

.youtube-how-it-works li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.youtube-terms-notice {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.youtube-terms-notice a {
  color: rgba(255, 0, 0, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.youtube-terms-notice a:hover {
  color: rgba(255, 0, 0, 1);
  text-decoration: underline;
}

/* Light mode */
body.light-mode .youtube-how-it-works {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .youtube-terms-notice {
  border-top-color: rgba(0, 0, 0, 0.1);
}

/* Floating Coffee Button */
.floating-coffee-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #FFDD00 0%, #FBB034 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 221, 0, 0.4);
  z-index: 9999;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Yukarı-aşağı float animasyonu */
  animation: float 3s ease-in-out infinite;
}
 
.coffee-emoji {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}
 
/* Hover efekti */
.floating-coffee-btn:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 30px rgba(255, 221, 0, 0.6);
  background: linear-gradient(135deg, #FBB034 0%, #FFDD00 100%);
}
 
.floating-coffee-btn:hover .coffee-emoji {
  transform: rotate(-5deg);
  animation: wiggle 0.5s ease-in-out;
}
 
/* Active (click) efekti */
.floating-coffee-btn:active {
  transform: scale(0.95);
}
 
/* Float animasyonu - yukarı-aşağı sallanma */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}
 
/* Wiggle animasyonu - kahve sallama */
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}
 
/* Pulse ring efekti (dikkat çekmek için) */
.floating-coffee-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid rgba(255, 221, 0, 0.5);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}
 
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}
 
/* Light mode uyumu */
body.light-mode .floating-coffee-btn {
  box-shadow: 0 6px 20px rgba(251, 176, 52, 0.4);
}
 
body.light-mode .floating-coffee-btn:hover {
  box-shadow: 0 8px 30px rgba(251, 176, 52, 0.6);
}
 
/* Mobile - biraz daha küçük */
@media (max-width: 600px) {
  .floating-coffee-btn {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  
  .coffee-emoji {
    font-size: 28px;
  }
  
  /* Mobilde float daha az belirgin */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
  }
}
 
/* Tablet */
@media (max-width: 768px) and (min-width: 601px) {
  .floating-coffee-btn {
    width: 60px;
    height: 60px;
    bottom: 24px;
    right: 24px;
  }
  
  .coffee-emoji {
    font-size: 30px;
  }
}
 
/* Accessibility - keyboard navigation */
.floating-coffee-btn:focus {
  outline: 3px solid rgba(255, 221, 0, 0.8);
  outline-offset: 4px;
}
 
/* Smooth appearance on page load */
.floating-coffee-btn {
  animation: float 3s ease-in-out infinite, 
             fadeInScale 0.6s ease-out 2s backwards;
}
 
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}