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

body {
  background-color: #121212;
  color: #9e9e9e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 660px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* Header & Logo */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  user-select: none;
}

.logo-arrow {
  width: 92px;
  height: 26px;
  margin-bottom: -8px;
}

.logo-text {
  font-size: 27px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-xari {
  color: #0084ff;
}

.logo-music {
  color: #ffffff;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: #0084ff;
}

/* Converter Card */
.converter-card {
  background-color: #212121;
  border: 1px solid #303030;
  border-radius: 7px;
  padding: 24px 22px 28px;
  margin-bottom: 24px;
  min-height: 162px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-state {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* Input State */
.input-label {
  display: block;
  color: #9e9e9e;
  font-size: 14px;
  margin-bottom: 12px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  flex: 1;
  background-color: #141414;
  border: 1px solid #383838;
  border-radius: 5px;
  color: #ffffff;
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-group input:focus {
  border-color: #0084ff;
}

.input-group input::placeholder {
  color: #666666;
}

/* Search Results State */
.search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.btn-back {
  background-color: #181818;
  color: #9e9e9e;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-back:hover {
  border-color: #555555;
  color: #ffffff;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.search-results-list::-webkit-scrollbar {
  width: 5px;
}
.search-results-list::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: #181818;
  border: 1px solid #2d2d2d;
  border-radius: 6px;
  padding: 8px 12px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.search-item:hover {
  border-color: #3d3d3d;
  background-color: #1b1b1b;
}

.search-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.search-thumb {
  width: 58px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #121212;
  flex-shrink: 0;
}

.search-meta {
  min-width: 0;
  flex: 1;
}

.search-item-title {
  color: #e5e5e5;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-sub {
  color: #777777;
  font-size: 12px;
  margin-top: 2px;
}

.search-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #242424;
  color: #cccccc;
  border: 1px solid #383838;
  border-radius: 5px;
  padding: 6px 11px;
  font-size: 12.5px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-watch:hover {
  background-color: #2c2c2c;
  border-color: #ff3333;
  color: #ff4d4d;
}

.btn-row-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #0084ff;
  color: #ffffff;
  border: 1px solid #0084ff;
  border-radius: 5px;
  padding: 6px 15px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-row-download:hover {
  background-color: #0073e0;
}

/* Result & Loading State */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.watch-video-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff4d4d;
  font-size: 13px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.25);
  transition: all 0.15s ease;
}

.watch-video-link:hover {
  background-color: rgba(255, 77, 77, 0.2);
  color: #ff6666;
}

.song-title {
  color: #9e9e9e;
  font-size: 14.5px;
  font-weight: 400;
  word-break: break-word;
}

.result-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.btn-primary,
.btn-download {
  background-color: #0084ff;
  color: #ffffff;
  border: 1px solid #0084ff;
  min-width: 120px;
}

.btn-primary:hover,
.btn-download:hover {
  background-color: #0073e0;
  border-color: #0073e0;
}

.btn-secondary {
  background-color: #212121;
  color: #9e9e9e;
  border: 1px solid #3a3a3a;
  min-width: 128px;
}

.btn-secondary:hover {
  border-color: #555555;
  color: #ffffff;
}

/* Sola Doğru Axan Son Yüklənən Mahnılar Lentası (Ticker / Marquee) */
.recent-songs-section {
  margin-bottom: 38px;
}

.recent-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #888888;
  margin-bottom: 8px;
  font-weight: 500;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #0084ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #0084ff;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

.ticker-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  padding: 6px 0;
  user-select: none;
}

/* Sol və sağ tərəflərə yumşaq qaranlıq kölgə (fade effekti) */
.ticker-wrapper::before,
.ticker-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}

.ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #121212, transparent);
}

.ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #121212, transparent);
}

.ticker-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: scrollLeft 190s linear infinite;
}

/* Siçanı üstünə gətirəndə axma dayansın ki, rahat seçib yükləyə bilsinlər */
.ticker-wrapper:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ticker-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 3px 0;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

.ticker-card:hover {
  background: transparent;
  opacity: 0.9;
}

.ticker-thumb {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
  background: #1a1a1a;
  flex-shrink: 0;
}

.ticker-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0084ff;
  font-size: 13px;
  flex-shrink: 0;
}

.ticker-info {
  display: flex;
  flex-direction: column;
  max-width: 220px;
}

.ticker-title {
  color: #dddddd;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-dl-icon-btn {
  background: transparent;
  color: #0084ff;
  border: none;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.ticker-dl-icon-btn:hover {
  transform: scale(1.18);
  color: #38a5ff;
}

/* Spinner */
.loader-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0 4px;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid #383838;
  border-top-color: #0084ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.error-msg {
  margin-top: 12px;
  color: #ff5252;
  font-size: 13px;
}

/* Info Section */
.info-section h1 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 18px;
}

.info-section h2 {
  color: #9e9e9e;
  font-size: 14px;
  font-weight: 400;
  margin: 22px 0 14px;
}

.info-section p {
  margin-bottom: 16px;
  line-height: 1.75;
}

.info-section a {
  color: #9e9e9e;
  text-decoration: underline;
}

.info-section a:hover {
  color: #ffffff;
}

.steps-list {
  list-style-position: inside;
  margin-bottom: 20px;
}

.steps-list li {
  margin-bottom: 12px;
  line-height: 1.75;
}

.thanks-text {
  margin-top: 18px;
}

/* Footer */
.footer {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid #222222;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer a {
  color: #9e9e9e;
  text-decoration: none;
  font-size: 12.5px;
}

.footer a:hover {
  color: #ffffff;
}

/* MODAL POPUPS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #1e1e1e;
  border: 1px solid #333333;
  border-radius: 9px;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  transform: translateY(14px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2d2d2d;
}

.modal-header h3 {
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #888888;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-body {
  padding: 20px;
  color: #b5b5b5;
  font-size: 13.5px;
  line-height: 1.65;
}

.modal-body p {
  margin-bottom: 14px;
}

.modal-body a {
  color: #0084ff;
  text-decoration: underline;
}

.modal-body a:hover {
  color: #38a5ff;
}

.faq-item {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #262626;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h4 {
  color: #e6e6e6;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.faq-item p {
  color: #9e9e9e;
  font-size: 13px;
  margin-bottom: 0;
}

.addon-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #252525;
  border: 1px solid #383838;
  border-radius: 7px;
  padding: 14px;
  margin: 16px 0;
}

.addon-icon {
  font-size: 28px;
}

.muted-note {
  font-size: 12px;
  color: #777777;
}

.bookmarklet-box {
  margin: 18px 0;
  text-align: center;
}

.bookmarklet-pill {
  display: inline-block;
  background: #0084ff;
  color: #ffffff !important;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 20px;
  text-decoration: none !important;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.4);
  transition: background 0.15s ease;
}

.bookmarklet-pill:hover {
  background: #0073e0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #252525;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #333333;
}

.contact-icon {
  font-size: 20px;
}

.contact-item strong {
  color: #ffffff;
  display: block;
  font-size: 12.5px;
}

.contact-item p {
  margin: 0;
  font-size: 13px;
}

.modal-bullets {
  padding-left: 18px;
  margin-bottom: 14px;
}

.modal-bullets li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.modal-bullets strong {
  color: #ffffff;
}

@media (max-width: 520px) {
  .header {
    flex-direction: column;
    gap: 16px;
  }

  .input-group {
    flex-direction: column;
  }

  .search-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-item-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 6px;
  }

  .result-actions {
    flex-direction: column;
    width: 100%;
  }

  .result-actions .btn {
    width: 100%;
  }
}
