/* Force load FontAwesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/*** AG PERDE EFFEKTI ***/
*, *::before, *::after {
  box-sizing: border-box;
}

/* ============================================
   azmp3 - Modern Professional MP3 Platform CSS
   Theme: Day/Night | Layout: Responsive
   User Experience: Smooth & Beautiful
   ============================================ */

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* --- COLOR VARIABLES --- */
:root {
  /* Light mode */
  --bg: #f8f9fa;
  --bg-secondary: #f0f2f5;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e5e7eb;
  --card-bg: #fff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --primary: #f6546a;
  --primary-hover: #f6546a;
  --primary-light: #fce4e6;
  --accent: #ff6b6b;
  --success: #27ae60;
  --warning: #f39c12;
}

.dark {
  --bg: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --text: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #909090;
  --border: #2d2d2d;
  --card-bg: #1a1a1a;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
  --primary: #f6546a;
  --primary-hover: #ff7b85;
  --primary-light: rgba(246, 84, 106, 0.15);
  --accent: #ff7777;
  --success: #2ecc71;
  --warning: #f1c40f;
}

/* --- REMOVE ALL HOVER OVERLAY EFFECTS --- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Universal: remove all ::before overlay effects on hover */
.btn::before,
.btn::after,
button::before,
button::after,
a.btn::before,
a.btn::after,
input[type="button"]::before,
input[type="button"]::after,
input[type="submit"]::before,
input[type="submit"]::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  content: none !important;
}

/* Universal hover styles - minimal */
.btn:hover,
button:hover,
a.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  transform: none !important;
  opacity: 1 !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1530px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SONG ITEM - SINGLE CLEAN SET ===== */
.result-item,
.recent-item,
.top-item {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 14px;
  margin: 0 0 12px 0;
  max-width: 100%;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.result-actions {
  margin-right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blacklist-btn {
  color: rgb(255, 59, 59);
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  transition: opacity 0.2s;
  display: inline-block;
  background-color: transparent !important;
}

.blacklist-btn:hover {
  opacity: 0.7;
}

@media (max-width: 480px) {
  .blacklist-btn {
    font-size: 13px !important;
  }
}

.result-item:hover,
.recent-item:hover,
.top-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 1px rgba(0,102,204,0.15);
  border-color: var(--primary);
}

.result-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;

  min-width: 0;
}

.result-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  white-space: normal;
  word-break: break-word;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.result-title:hover {
  color: var(--primary);
  font-weight: 600;
}

.result-meta {
  margin-top: 8px;
}

.meta-item {
  font-size: 12px;
  color: var(--text-secondary);
  margin-right: 12px;
  margin-top: -32px;
  
}

.meta-item i {
  margin-right: 4px;
  font-size:15px;
   
}

/* ===== SONG DETAILS PAGE ===== */
.song-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

.song-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-label i {
  color: var(--primary);
  font-size: 16px;
}

.detail-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* Download Row */
.download-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
  border-radius: 12px;
  border: 1px solid var(--border);
}

.mp3-player.player-below-table {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(246, 84, 106, 0.1);
}

.download-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-secondary) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.song-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-label i {
  color: var(--primary);
  font-size: 16px;
}

.detail-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* Download Row */
.download-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
  border-radius: 12px;
  border: 1px solid var(--border);
}

.download-row .download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(246, 84, 106, 0.35);
  transition: all 0.3s ease;
}

.download-row .download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(246, 84, 106, 0.45);
}

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

.download-row .like-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f6546a;
  border: 1px solid #f6546a;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.download-row .like-btn.liked {
  background: #f6546a;
  border-color: #f6546a;
  color: #fff;
}

.download-row .like-btn:hover {
  background: #f6546a;
  border-color: #f6546a;
  color: #fff;
}

#bitrate_select {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  min-width: 120px;
}

.bitrate-like-row {
  display: flex !important;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-bottom: 16px;
  flex-wrap: nowrap !important;
}

.bitrate-like-row #bitrate_select {
  flex: 1 1 180px;
  min-width: 0;
}

.bitrate-like-row .like-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .bitrate-like-row {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  
  .bitrate-like-row #bitrate_select {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  
  .bitrate-like-row .like-btn {
    flex: none !important;
    width: 100% !important;
  }
}

/* ===== END SONG DETAILS ===== */

/* ===== END SONG ITEM ===== */


/* --- HEADER --- */
header.header {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
  border-bottom: 3px solid var(--primary);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.header-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo .site-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo .site-title a {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo .site-title a:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav a:hover::after {
  width: 80%;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

/* Unified header icon styles - see header section above */

/* --- HEADER ADS --- */
.header-ads {
  background: var(--bg-secondary);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.header-ads-track {
  display: flex;
  transition: transform 0.5s ease;
}

.header-ad {
  flex: 0 0 100%;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.header-ad img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
}

.header-ad-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.header-ads-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 8px 0;
  background: var(--bg-secondary);
}

.header-ads-dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: 0.3s ease;
}

.header-ads-dots button.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
  color: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(246, 84, 106, 0.25);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  box-shadow: 0 6px 20px rgba(246, 84, 106, 0.35);
  transform: translateY(-3px);
}

.btn-plain {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  padding: 8px 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* ===== HEADER ICONS - GOZEL DESIGN ===== */

/* Theme, Login, Logout buttons - circular icons */
.btn-theme,
.btn-login,
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none !important;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  background: #f6546a;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(246, 84, 106, 0.3);
  flex-shrink: 0;
}

.btn-theme:hover,
.btn-login:hover,
.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(246, 84, 106, 0.5);
}

.logout-btn:hover {
  background: #f6546a;
}

/* Profile Link - pill shape with avatar */
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border: none !important;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  background: #f6546a;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(246, 84, 106, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(246, 84, 106, 0.5);
}

/* Profile Avatar */
.header-avatar,
.header-avatar-initial {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.header-avatar-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6546a;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}

.profile-name {
  font-weight: 500;
  color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-actions {
    gap: 6px;
  }
  .btn-theme,
  .btn-login,
  .logout-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .profile-link {
    padding: 3px 10px 3px 3px;
    font-size: 13px;
  }
  .header-avatar,
  .header-avatar-initial {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .profile-name {
    display: none;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .header-right {
    gap: 4px;
  }
  .header-actions {
    gap: 4px;
  }
  .btn-theme,
  .btn-login,
  .logout-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .profile-link {
    padding: 2px 6px 2px 2px;
    font-size: 11px;
  }
  .header-avatar,
  .header-avatar-initial {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* CARDS & CONTAINERS */

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #f6546a, #f6546a) !important;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* --- CARDS & CONTAINERS --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* --- TABLE STYLING --- */
.song-info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.song-info-table tr {
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
}

.song-info-table tr:last-child {
  border-bottom: none;
}

.song-info-table tr:hover {
  background: var(--primary-light);
  transform: scale(1.01);
  transform-origin: center;
}

.song-info-table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.song-info-table td {
  padding: 16px 20px;
  color: var(--text);
  font-size: 0.95rem;
}

.song-info-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

.meta-value {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary-light);
  border-radius: 6px;
  font-weight: 600;
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

/* --- DETAILS PAGE --- */
.details-inner {
  max-width: 100%;
  margin: 0;
  width: 100%;
}

.mp3-player {
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(246, 84, 106, 0.1);
  width: 100%;
  box-sizing: border-box;
}

.mp3-player audio {
  width: 100% !important;
  border-radius: 8px;
}

.download-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--card-bg), var(--bg-secondary));
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}

.download-row select {
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.download-row select:hover,
.download-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-light) 100%);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(246, 84, 106, 0.3);
  position: relative;
  overflow: hidden;
}

.download-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.download-btn:active:not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(246, 84, 106, 0.25);
}

.download-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- COMMENTS SECTION --- */
#commentsSection {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

#commentsSection h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#commentsSection h4::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 28px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 2px;
}

#comment-<?php echo $song['song_id']; ?> {
  margin-bottom: 12px;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#commentsList > div {
  padding: 16px;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#commentsList > div:hover {
  box-shadow: 0 4px 12px rgba(246, 84, 106, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.comment-body {
  margin-top: 12px;
  padding: 12px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
}

.reply-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reply-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.comment-form {
  padding: 18px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--primary-light) 100%);
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-top: 24px;
  box-shadow: 0 4px 12px rgba(246, 84, 106, 0.08);
}

.comment-form textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 110px;
  transition: all 0.3s ease;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-light);
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-light) 100%);
}

.comment-form .actions {
  margin-top: 12px;
  text-align: right;
}

.comment-form .btn {
  padding: 10px 24px;
  border-radius: 8px;
}

/* SEARCH BOX --- */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: stretch;
}

.search-input,
.search-select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: inherit;
}

.search-input {
  flex: 1;
  min-width: 200px;
}

.search-select {
  min-width: 140px;
  cursor: pointer;
}

.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-light);
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-light) 100%);
}

.search-box button {
  min-width: 120px;
  padding: 12px 28px !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 14px rgba(246, 84, 106, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(246, 84, 106, 0.4);
  border-color: var(--primary);
}

.search-box button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(246, 84, 106, 0.3);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-dropdown .no-results {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.autocomplete-dropdown .suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.autocomplete-dropdown .suggestion-item:last-child {
  border-bottom: none;
}

.autocomplete-dropdown .suggestion-item:hover {
  background: var(--primary-light);
}

.autocomplete-dropdown .suggestion-item i {
  color: var(--primary);
  font-size: 14px;
}

.autocomplete-dropdown .suggestion-item .title {
  flex: 1;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-box {
  position: relative;
}

/* --- LOADING SPINNER --- */
#loading,
.loader-inline {
  display: none !important;
  padding: 32px 24px;
  margin: 24px 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
  border-radius: 14px;
  border: 2px solid var(--primary-light);
  text-align: center;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

#loading.show,
.loader-inline.show {
  display: block !important;
  animation: fadeIn 0.3s ease;
}

.loader-heading {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loader-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

/* Spinner Animation - Enhanced */
.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  position: relative;
  display: inline-block;
}

.spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-right-color: var(--primary-hover);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-pulse::after {
  animation: spin-pulse 1.5s ease-in-out infinite;
}

@keyframes spin-pulse {
  0%, 100% { transform: rotate(0) scale(1); opacity: 1; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 0.7; }
}

/* --- RESULTS LIST --- */
.results-list {
  list-style: none;
  max-width: 1200px;
  margin: 24px auto;
  padding: 0;
}

#results {
  padding: 0 20px;
}

/* --- RESULTS TABLE (hidden by default) --- */

#loadMore {
  display: none !important;
  margin: 28px auto !important;
  padding: 14px 32px !important;
  background: linear-gradient(135deg, #f6546a, #f6546a) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(246, 84, 106, 0.25) !important;
  transition: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

#recentLoadMore, #topLoadMore {
  margin: 28px auto !important;
  padding: 14px 32px !important;
  background: linear-gradient(135deg, #f6546a, #f6546a) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 99999 !important;
  position: relative !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  box-shadow: 0 4px 12px rgba(246, 84, 106, 0.25) !important;
  transition: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  outline: none !important;
}

#recentLoadMore:focus, #topLoadMore:focus {
  outline: 2px solid #fff !important;
  outline-offset: 2px !important;
}

#loadMore::before, #recentLoadMore::before, #topLoadMore::before {
  display: none !important;
}

#loadMore.show-btn, #recentLoadMore.show-btn, #topLoadMore.show-btn {
  display: inline-block !important;
}

#loadMore:hover {
  background: linear-gradient(135deg, #f6546a, #f6546a) !important;
  box-shadow: 0 6px 16px rgba(246, 84, 106, 0.35) !important;
}

#loadMore:active {
  transform: none !important;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- RECENT SEARCHES --- */
.recent-searches {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 30px 20px 0;
  border-top: 2px solid var(--border);
}

.recent-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 700 !important;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.recent-title i {
  color: var(--primary);
}

.progress-bar {
  width: 100%;
  height: 19px;               /* sənin verdiyin hündürlük */
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 16px;
}

.progress-inner {
  height: 100%;
  width: 100%;
  background: var(--border);
  border-radius: 3px;
  position: relative;
}

#progressFill {
  height: 100%;
  width: 1%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
  
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}
/* --- FORMS --- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* --- PROFILE --- */
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.profile-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}

.profile-header .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-email {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.profile-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.profile-tabs {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.tab {
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
  bottom: -2px;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --- PANELS/LISTS --- */
.panel-items {
  list-style: none;
}

.panel-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: 0.2s ease;
}

.panel-items li:hover {
  padding-left: 8px;
}

.panel-items li:last-child {
  border-bottom: none;
}

.panel-left {
  flex: 1;
  min-width: 0;
}

.panel-right {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.panel-title {
  display: block;
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
  transition: 0.2s ease;
}

.panel-title:hover {
  color: var(--primary);
}

.panel-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.panel-icon {
  color: var(--primary);
  font-size: 1.2rem;
}

/* --- COMMENTS --- */
.comment-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* --- EMPTY STATE --- */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 12px;
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- FOOTER --- */
footer {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--card-bg) 100%);
  border-top: 3px solid var(--primary);
  padding: 40px 20px 32px;
  margin-top: 50px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

footer div {
  margin-bottom: 10px;
  line-height: 1.6;
}

footer div:first-child {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

footer a {
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

footer a:hover {
  color: var(--primary-hover);
}

footer a:hover::after {
  width: 100%;
}

/* ===== SECTION TITLES - BOLD ===== */
.recent-title,
.top-title,
.panel-header {
  font-weight: 700 !important;
  font-size: 20px !important;
  color: var(--text);
  margin-top: 30px !important;
  margin-bottom: 20px !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
  border-bottom: 1px solid var(--border);
}

/* ===== SONG LIST ITEMS - CLEAN & SIMPLE ===== */
.results-list,
.recent-list,
.top-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== OXŞAR MAHNILAR SECTION ===== */
.similar-songs-container {
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.similar-songs-container h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.similar-songs-container h4 i {
  color: var(--primary);
}

.similar-songs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.similar-song-item {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.similar-song-item:last-child {
  border-bottom: none;
}

.similar-song-item:hover {
  background: var(--primary-light);
  border-radius: 6px;
}

.similar-song-item a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  flex: 1;
  min-width: 150px;
  font-size: 14px;
}

.similar-song-item a:hover {
  color: var(--primary);
}

/* Mobile responsive for similar songs */
@media (max-width: 480px) {
  .similar-songs-container {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
  }
  
  .similar-songs-container h4 {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  
  .similar-song-item {
    padding: 10px 4px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .similar-song-item a {
    font-size: 13px;
    min-width: auto;
    width: 100%;
    word-break: break-word;
  }
}

.similar-song-item .result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.similar-song-item .btn-download {
  padding: 6px 10px !important;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  background: linear-gradient(135deg, #f6546a, #f6546a) !important;
  color: #fff !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet: 768px and below */
@media (max-width: 768px) {
  body { 
    font-size: 15px; 
    overflow-x: hidden;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .container { 
    padding: 0 15px; 
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .recent-searches,
  .top-mp3s { padding: 30px 0 0; }
  
  .header-wrapper {
    gap: 12px;
    padding: 0 15px;
    flex-wrap: wrap;
  }
  
  .header-left {
    flex: 1 0 auto;
    min-width: 120px;
  }
  
  .header-center {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  
  .header-right {
    order: 2;
  }
  
  .logo .site-title { font-size: 1.3rem; }
  
  .profile-name {
    display: none;
  }
  
  .btn-login {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .nav {
    flex-basis: 100%;
    justify-content: flex-start;
    order: 3;
    margin-top: 10px;
  }
  
  .header-actions {
    order: 2;
    gap: 8px;
  }
  
  .search-box {
    flex-direction: column;
    gap: 8px;
  }
  
  .search-box input,
  .search-box select,
  .search-box button {
    width: 100%;
    padding: 12px 14px !important;
  }
  
  .search-box button {
    min-width: unset;
    font-size: 0.9rem;
  }

  .autocomplete-dropdown {
    max-height: 250px;
  }

  .autocomplete-dropdown .suggestion-item {
    padding: 12px 14px;
  }

  .autocomplete-dropdown .suggestion-item .title {
    font-size: 15px;
  }
  
  #results {
    padding: 0 15px;
  }

  .blacklist-btn {
    display: inline-block !important;
    margin: 4px 8px !important;
    padding: 2px 6px !important;
    min-width: auto;
    min-height: auto;
    background: none !important;
    background-color: transparent !important;
    border-radius: 4px;
    text-align: center;
    line-height: 1;
    font-size: 14px !important;
    opacity: 1 !important;
    color: rgb(255, 59, 59) !important;
  }
  
  .result-item,
  .recent-item,
  .top-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }
  
  .result-left {
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
  }
  
  .result-actions {
    width: 100% !important;
    flex-direction: row;
    margin-left: 0 !important;
    margin-top: auto;
    box-sizing: border-box;
  }

  .recent-item .result-actions {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: auto;
  }

  .top-item .result-actions {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: auto;
  }
  


  .recent-item {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .top-item {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  
  .result-actions {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
  }

  .recent-item .result-actions {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
  }

  .top-item .result-actions {
    width: 100%;
    margin-top: 12px;
    margin-left: 0;
  }
  
  .result-actions .btn-download {
    width: 100%;
    justify-content: center;
    padding: 12px 16px !important;
  }

  .blacklist-btn {
    display: inline-block !important;
    margin: 4px 8px !important;
    padding: 2px 6px !important;
    min-width: auto;
    min-height: auto;
    background: none !important;
    background-color: transparent !important;
    border-radius: 4px;
    text-align: center;
    line-height: 1;
    font-size: 14px !important;
    opacity: 1 !important;
    color: rgb(255, 59, 59) !important;
  }
  
  /* Mobil üçün hover effekti sil */
  .result-item:hover,
  .recent-item:hover,
  .top-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
  }
  
  .card {
    padding: 16px;
    margin-top: 30px;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-header .avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }
  
  .profile-actions {
    width: 100%;
    justify-content: center;
  }
  
  .tabs-header {
    gap: 4px;
  }
  
  .tab-button {
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
  body { font-size: 14px; }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  
  .container { padding: 0 12px; }

  .recent-searches,
  .top-mp3s { padding: 30px 0 0; }
  
  header.header {
    padding: 10px 0;
  }
  
  .header-wrapper {
    gap: 8px;
    padding: 0 12px;
  }
  
  .header-left {
    flex: 1 0 auto;
    min-width: 100px;
  }
  
  .header-center {
    order: 3;
    flex-basis: 100%;
    gap: 10px;
  }
  
  .header-right {
    order: 2;
  }
  
  .logo .site-title { 
    font-size: 1.1rem;
    font-weight: 700;
  }
  
  .btn-theme {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  
  .header-actions {
    gap: 6px;
  }
  
  .btn-login {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
  
  .logout-btn {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
  
  .header-avatar {
    width: 32px;
    height: 32px;
  }
  
  .header-avatar-initial {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .nav {
    gap: 4px;
    font-size: 0.85rem;
  }
  
  .nav a {
    padding: 6px 12px;
  }
  
  .header-actions .btn,
  .header-actions .btn-plain {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .search-box {
    gap: 8px;
  }
  
  .search-box input,
  .search-box select {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  #results {
    padding: 0 12px;
  }
  
  .result-item,
  .recent-item,
  .top-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .result-title {
    font-size: 0.95rem;
  }
  
  .result-left {
    flex: 1;
    margin-bottom: 12px;
  }
  
  .btn-download {
    width: 100%;
    padding: 11px 14px !important;
    font-size: 0.85rem;
    margin-top: 8px;
    box-sizing: border-box;
  }
  
  .meta-item {
    font-size: 14px !important;
	
  }
  
  .result-actions {
    width: 100% !important;
    flex-direction: column;
    margin: 0 !important;
    margin-top: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .recent-item .result-actions {
    width: 100% !important;
    margin: 0 !important;
    margin-top: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  .top-item .result-actions {
    width: 100% !important;
    margin: 0 !important;
    margin-top: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  
  .recent-title { font-size: 1rem; }
  
  .recent-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .tab-button {
    padding: 9px 12px;
    font-size: 12px;
  }
  
  .tabs-header {
    gap: 2px;
    margin-bottom: 14px;
  }
  
  .profile-header {
    padding-bottom: 16px;
  }
  
  .profile-name { font-size: 1.25rem; }
  
  .profile-tabs {
    gap: 12px;
  }
  
  .tab { font-size: 0.9rem; }
  
  .card { 
    padding: 12px;
    margin-top: 20px;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .actions .btn {
    width: 100%;
  }
  
  /* Details page mobile */
  .download-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .download-row > div {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }
  
  .download-row select {
    width: 100%;
    padding: 11px 12px;
  }
  
  .download-btn {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 0.9rem;
  }
  
  .details-inner {
    max-width: 100%;
  }
  
  .song-info-table {
    font-size: 0.85rem;
  }
  
  .song-info-table th,
  .song-info-table td {
    padding: 12px 14px;
  }
  
  #commentsSection h4 {
    font-size: 1.2rem;
  }
  
  .comment-avatar {
    width: 38px;
    height: 38px;
  }
  
  .comment-form {
    padding: 14px;
  }
  
  .comment-form textarea {
    padding: 12px;
    min-height: 90px;
    font-size: 0.9rem;
  }
  
  .reply-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}

/* ============================================
   DARK MODE - SYSTEM PREFERENCE
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root:not(.dark) {
    --bg: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #909090;
    --border: #2d2d2d;
    --card-bg: #1a1a1a;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
    --primary: #f6546a;
    --primary-hover: #ff7b85;
    --primary-light: rgba(246, 84, 106, 0.15);
  }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.4s ease;
}

/* --- TABS SYSTEM - MODERN --- */
.tabs-container {
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  pointer-events: auto !important;
}

.tabs-container .results-list,
.tabs-container .recent-list,
.tabs-container .top-list {
  padding: 16px;
}

.tabs-header {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  border-bottom: 3px solid var(--border);
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 16px 32px;
background: linear-gradient(145deg, var(--card-bg), var(--bg-secondary));
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px 12px 0 0;
  margin-bottom: 4px;
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.recent-searches,
.top-mp3s {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 0;
}
  padding: 30px 0 0;
}

.recent-title,
.top-title {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-weight: 700 !important;
  font-size: 18px !important;
}

/* --- SMOOTH TRANSITIONS --- */
* {
  -webkit-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

button, a {
  -webkit-transition: all 0.3s ease;
}

/* ===== TAB BADGE COUNT ===== */
.tab-count {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* ===== LIKE BUTTON LIKED STATE ===== */
.like-btn.liked {
  background: #f6546a;
  color: #fff;
}

/* ===== ADMIN PANEL STYLES ===== */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-icon {
  font-size: 28px;
  color: var(--primary);
}

.admin-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.admin-nav-link:hover {
  background: var(--card-bg);
  color: var(--primary);
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--primary);
  color: #fff;
}

.admin-btn:hover {
  background: var(--primary-dark);
}

.admin-btn-logout {
  background: #f6546a;
}

.admin-btn-logout:hover {
  background: #f6546a;
}

.admin-btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.admin-notice {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-stat-card-wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .admin-stat-card-wide {
    grid-column: span 1;
  }
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.admin-top-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.admin-top-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-top-item:hover {
  background: var(--border);
}

.admin-top-title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.admin-top-count {
  font-size: 13px;
  color: var(--primary);
}

.admin-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-section-header i {
  font-size: 18px;
  color: var(--primary);
}

.admin-section-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.admin-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-input-search {
  flex: 1;
  min-width: 200px;
}

.admin-input-tags {
  width: 180px;
}

.admin-file {
  padding: 8px;
  font-size: 14px;
}

.admin-form-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.admin-search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-hint,
.admin-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin: 0 -20px -20px;
  padding: 0 20px 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: var(--bg);
}

.admin-table-title {
  font-weight: 500;
  color: var(--text);
}

.admin-table-muted {
  color: var(--muted);
  font-size: 13px;
}

.admin-table-tags {
  color: var(--muted);
  font-size: 13px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table-actions {
  display: flex;
  gap: 8px;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-action-btn:hover {
  background: var(--primary);
  color: #fff;
}

.admin-action-delete:hover {
  background: #f6546a;
  color: #fff;
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 500px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}

.profile-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-card .avatar:not([src]) {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
}

.profile-info {
  flex: 1;
}

.profile-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-email {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-meta {
  font-size: 14px;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ===== TABS WITH BADGE COUNT ===== */
.profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.profile-tabs .tab {
  padding: 12px 20px;
  color: var(--muted);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  display: inline-block;
}

.profile-tabs .tab:hover {
  color: var(--primary);
}

.profile-tabs .tab.active {
  color: var(--primary);
  font-weight: 400;
  border-bottom-color: var(--primary);
}

.tab-count {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* ===== PANEL ITEMS ===== */
.panel-items {
  display: flex;
  flex-direction: column;
}

.panel-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.panel-items li:last-child {
  border-bottom: none;
}

.panel-left {
  flex: 1;
  min-width: 0;
}

.panel-title {
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.panel-title:hover {
  color: var(--primary);
}

.panel-right {
  flex-shrink: 0;
  margin-left: 12px;
}

/* ===== ADMIN PANEL STYLES ===== */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-icon {
  font-size: 28px;
  color: var(--primary);
}

.admin-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.admin-nav-link:hover {
  background: var(--card-bg);
  color: var(--primary);
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  background: var(--primary);
  color: #fff;
}

.admin-btn:hover {
  background: var(--primary-dark);
}

.admin-btn-primary {
  background: var(--primary);
}

.admin-btn-logout {
  background: #f6546a;
}

.admin-btn-logout:hover {
  background: #f6546a;
}

.admin-btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.admin-notice {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-stat-card-wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .admin-stat-card-wide {
    grid-column: span 1;
  }
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.admin-top-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.admin-top-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-top-item:hover {
  background: var(--border);
}

.admin-top-title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.admin-top-count {
  font-size: 13px;
  color: var(--primary);
}

.admin-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-section-header i {
  font-size: 18px;
  color: var(--primary);
}

.admin-section-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.admin-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-input-search {
  flex: 1;
  min-width: 200px;
}

.admin-input-tags {
  width: 180px;
}

.admin-file {
  padding: 8px;
  font-size: 14px;
}

.admin-form-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.admin-search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-hint,
.admin-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin: 0 -20px -20px;
  padding: 0 20px 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: var(--bg);
}

.admin-table-title {
  font-weight: 500;
  color: var(--text);
}

.admin-table-muted {
  color: var(--muted);
  font-size: 13px;
}

.admin-table-tags {
  color: var(--muted);
  font-size: 13px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table-actions {
  display: flex;
  gap: 8px;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-action-btn:hover {
  background: var(--primary);
  color: #fff;
}

.admin-action-delete:hover {
  background: #f6546a;
  color: #fff;
}

/* ===== LIKE BUTTON IN PROFILE ===== */
.like-btn.liked {
  background: #f6546a;
  color: #fff;
}
/* Admin Panel Styles */
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-icon {
  font-size: 28px;
  color: var(--primary);
}

.admin-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.admin-nav-link:hover {
  background: var(--card);
  color: var(--primary);
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-btn-primary {
  background: var(--primary);
  color: #fff;
}

.admin-btn-primary:hover {
  background: var(--primary-dark);
}

.admin-btn-logout {
  background: #f6546a;
  color: #fff;
}

.admin-btn-logout:hover {
  background: #f6546a;
}

.admin-btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.admin-btn-secondary:hover {
  background: var(--border);
}

.admin-notice {
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.admin-stat-card-wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .admin-stat-card-wide {
    grid-column: span 1;
  }
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-stat-label {
  font-size: 13px;
  color: var(--muted);
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.admin-stat-empty {
  font-size: 14px;
  color: var(--muted);
}

.admin-top-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.admin-top-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-top-item:hover {
  background: var(--border);
}

.admin-top-title {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.admin-top-count {
  font-size: 13px;
  color: var(--primary);
  white-space: nowrap;
}

.admin-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.admin-section-header i {
  font-size: 18px;
  color: var(--primary);
}

.admin-section-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.admin-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-input-search {
  flex: 1;
  min-width: 200px;
}

.admin-input-tags {
  width: 180px;
}

.admin-file {
  padding: 8px;
  font-size: 14px;
}

.admin-form-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.admin-search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-hint,
.admin-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
  margin: 0 -20px -20px;
  padding: 0 20px 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: var(--bg);
}

.admin-table-title {
  font-weight: 500;
  color: var(--text);
}

.admin-table-muted {
  color: var(--muted);
  font-size: 13px;
}

.admin-table-tags {
  color: var(--muted);
  font-size: 13px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-table-actions {
  display: flex;
  gap: 8px;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-action-btn:hover {
  background: var(--primary);
  color: #fff;
}

.admin-action-delete:hover {
  background: #f6546a;
  color: #fff;
}

/* ===== UNIVERSAL HOVER OVERLAY REMOVER ===== */
/* Profile.php, details.php ve bütün səhifələr üçün */

/* Bütün button və link hover-lərdə overlay sil */
a:hover,
a:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.btn:hover,
.btn:focus,
.like-btn:hover,
.like-btn:focus,
.tab:hover,
.tab:focus,
.tab-button:hover,
.tab-button:focus,
.panel-title:hover,
.panel-title:focus,
.result-title:hover,
.result-title:focus,
.admin-btn:hover,
.admin-btn:focus,
.admin-action-btn:hover,
.admin-action-btn:focus,
.admin-action-delete:hover,
.admin-action-delete:focus {
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ::before və ::after overlay-lərini hamıdan sil */
a::before,
a::after,
button::before,
button::after,
.btn::before,
.btn::after,
.like-btn::before,
.like-btn::after,
.tab::before,
.tab::after,
.tab-button::before,
.tab-button::after,
.panel-title::before,
.panel-title::after,
.result-title::before,
.result-title::after,
.admin-btn::before,
.admin-btn::after,
.admin-action-btn::before,
.admin-action-btn::after,
.admin-action-delete::before,
.admin-action-delete::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Tab button xüsusi */
.tab,
.tab-button {
  position: relative;
  overflow: visible;
}

.tab::before,
.tab-button::before {
  display: none !important;
}

/* Panel title və result title */
.panel-title,
.result-title {
  position: relative;
  overflow: visible;
}

/* Like button xüsusi */
.like-btn,
.like-btn.liked {
  position: relative;
  overflow: visible;
}

/* Admin buttons */
.admin-btn,
.admin-action-btn,
.admin-action-delete {
  position: relative;
  overflow: visible;
}

/* ===== FINAL HOVER OVERLAY REMOVE ===== */
/* Bu hissə bütün qalan hover effektlərini silir */

/* Filter və brightness removal */
*:hover,
*:focus,
*::before,
*::after {
  filter: none !important;
  brightness: 1 !important;
}

/* Button elements */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
selectbutton {
  position: relative;
  overflow: hidden;
}

button::before,
button::after,
input[type="button"]::before,
input[type="button"]::after,
input[type="submit"]::before,
input[type="submit"]::after {
  display: none !important;
}

/* Reply button and similar */
.reply-btn,
.reply-btn:hover,
.reply-btn:focus,
.btn-plain,
.btn-plain:hover,
.btn-plain:focus {
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  transform: none !important;
  background: transparent !important;
}

.reply-btn::before,
.reply-btn::after,
.btn-plain::before,
.btn-plain::after {
  display: none !important;
}

/* All links with any class */
a[class*="btn"]:hover,
a[class*="btn"]:focus,
a[class*="btn"]:active {
  opacity: 1 !important;
  filter: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Mobile touch states */
@media (hover: none) {
  *:hover {
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Şərh yaz button - ag perde silindi */
#commentSubmit,
#commentSubmit:hover,
#commentSubmit:focus,
#commentSubmit:active {
  background: #f6546a !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Profile səhifəsi Admin, Yüklə, Düzəlt button-lar - göy arxa plan */
.profile-actions .btn,
.profile-actions .btn:hover,
.profile-actions .btn:focus,
.profile-actions .btn:active,
.profile-actions a.btn,
.profile-actions a.btn:hover,
.profile-actions a.btn:focus,
.profile-actions a.btn:active {
  background: #f6546a !important;
  background-color: #f6546a !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  overflow: visible !important;
  color: #fff !important;
}

.profile-actions .btn.primary,
.profile-actions .btn.primary:hover,
.profile-actions .btn.primary:focus,
.profile-actions .btn.primary:active {
  background: #f6546a !important;
  background-color: #f6546a !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
  overflow: visible !important;
  color: #fff !important;
}

/* All buttons - remove white overlay */
.btn::before,
.btn::after,
a.btn::before,
a.btn::after {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  content: none !important;
  background: none !important;
}

.header-ads {
  width: 100%;
    max-width: 100%;
  display: flex;
  justify-content: center; /* Ortala */
  background-color: #f9f9f9; /* Arxa fon */
  padding: 10px 0;
  box-sizing: border-box;
}

.header-ads-track {
	
  display: flex;
  overflow-x: auto; /* Mobil üçün sürüşdürmə */
  scroll-behavior: smooth;
  gap: 15px; /* Reklamlar arasındakı məsafə */
}

.header-ad {
  flex: 0 0 auto; /* Sürüşən element */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  background-color: #fff;
  min-width: 200px; /* Mobil üçün minimum ölçü */
    max-width: 100%;
  
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.header-ad:hover {
  transform: scale(1.05); /* Hover effekt */
}

.header-ad img {
    width: 100%;
    max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.header-ad-text {
  margin-top: 6px;
  font-size: 14px;
  font-weight: bold;
}

.header-ad-text a {
  color: #333;
  text-decoration: none;
}

.header-ad-text a:hover {
  color: #f6546a; /* Hover rəngi */
}

/* Mobil optimallaşdırma */
@media (max-width: 768px) {
  .header-ads-track {
    gap: 10px;
    padding: 0 10px;
  }

  .header-ad {
    min-width: 150px;
    padding: 6px;
  }

  .header-ad-text {
    font-size: 12px;
  }
}

/* Oxşar Mahnılar - index-dəki Ən Çox Axtarılan ilə eyni stil */
#similar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}



