/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #121212;
  color: #fff;

}
/* ===== Sidebar Desktop ===== */
/* ===== Sidebar Modern ===== */
.sidebar {
  width: 220px;
  background: linear-gradient(180deg, #111111, #000000);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  box-shadow: 2px 0 10px rgba(0,0,0,0.5);
  z-index: 100;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
}

.sidebar-top .logo {
  max-width: 80%;
  margin-bottom: 30px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  color: #b3b3b3;
  font-size: 17px;
  margin-bottom: 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.sidebar-nav a i {
  font-size: 20px;
  width: 25px;
}

.sidebar-nav a span {
  flex: 1;
}

.sidebar-nav a:hover {
  background: #e60000;
  color: #fff;
}

.sidebar-nav a.active {
  background: #e60000;
  color: #fff;
}

.sidebar-bottom {
  font-size: 12px;
  text-align: center;
  color: #777;
}


/* ===== Main Content ===== */
.main {
  flex: 1;
 margin-left: 230px; /* نفس عرض sidebar */
  padding: 20px;
}
.header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.logo-box span {
  color: #e60000;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: lowercase;
}

/* ===== Search ===== */
.search-box {
  margin-bottom: 20px;
}
/* ===== Search Results Style ===== */
/* Hidden by default so it doesn't reserve space when empty. JS will add the `show` class to reveal it. */
#searchResults {
  display: none; /* completely removed from layout when hidden */
  margin-bottom: 0;
}

.search-cards.show {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 120px; /* present only when visible */
}

/* Mobile */
@media (max-width: 1000px) {
  .main {

 margin-left: 0; /* نفس عرض sidebar */
  
}

  .search-cards.show .card {
    width: 100%;
    flex: 0 0 auto;
  }
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 16px;
  background: #181818;
  color: #fff;
}

#searchResults {
  display: none;
}



/* ===== Section Titles ===== */
.section-title {
  font-size: 22px;
  margin: 20px 0 10px;
}

/* When search is active we hide the normal sections and titles via a class - avoids inline styles */
.section.hidden-by-search,
.section-title.hidden-by-search {
  display: none !important;
}


.artists-row {
  display: flex;
  gap: 25px;
  padding: 20px;
  overflow-x: auto;
}

.artist-circle {
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-family: sans-serif;
}

.artist-circle img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #b11226; /* أحمر ناعم */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-circle:hover img {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(177, 18, 38, 0.5);
}

.artist-circle span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.artists-section {
  padding: 30px 20px;
}

.artists-title {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  border-left: 4px solid #b11226; /* أحمر ناعم */
  padding-left: 12px;
  font-family: sans-serif;
}



/* ===== Cards ===== */
.cards {
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.card {
  background: #181818;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: .3s;
}

.card:hover {
  background: #252525;
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
}

.card h3 {
  font-size: 16px;
  margin: 8px;
}

.card p {
  font-size: 14px;
  opacity: .7;
  margin: 0 15px;
}

/* Special magical styling for the 7elmet Ado section cards */
.special-7elmet .card {
  background: linear-gradient(180deg, #6b0f0f 0%, #9c0404 40%, #7e1111ab 100%);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,80,80,0.12);
  box-shadow: 0 8px 30px rgba(183,28,28,0.18), 0 2px 6px rgba(0,0,0,0.6) inset;
  transition: transform 280ms cubic-bezier(.2,.9,.2,1), box-shadow 280ms ease, filter 280ms ease;
}

.special-7elmet .card::before {
  /* subtle shining gradient swept across the card */
  content: '';
  position: absolute;
  left: -60%;
  top: -40%;
  width: 220%;
  height: 180%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06), rgba(255,255,255,0) 20%),
              linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  transform: rotate(-18deg) translateX(0);
  pointer-events: none;
  mix-blend-mode: screen;
  transition: transform 1.8s ease-in-out, opacity 1s;
  opacity: 0.95;
}

.special-7elmet .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 50px rgba(183,28,28,0.28), 0 6px 18px rgba(0,0,0,0.65);
  filter: saturate(1.05) drop-shadow(0 6px 18px rgba(183,28,28,0.18));
}

.special-7elmet .card:hover::before {
  transform: rotate(-18deg) translateX(60%);
  opacity: 0.6;
}

.special-7elmet .card img {
  transition: transform 360ms ease, filter 360ms ease;
  transform-origin: center center;
  filter: saturate(1.05) contrast(1.03);
}

.special-7elmet .card:hover img {
  transform: scale(1.06) translateY(-4px);
}

.special-7elmet .card h3 {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.special-7elmet .card p {
  color: rgba(255,230,230,0.9);
}

/* small sparkle animation (very subtle) */
@keyframes raindrop-sparkle {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  40% { opacity: 0.6; }
  100% { transform: translateY(-6px) scale(1); opacity: 0; }
}

/* optional : add tiny sparkles using pseudo-elements on larger cards */
.special-7elmet .card[data-spark]::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #fff 0%, #ffd1d1 60%, transparent 61%);
  border-radius: 50%;
  opacity: 0;
  animation: raindrop-sparkle 2.2s ease-in-out infinite;
  pointer-events: none;
}/* ===== Search Cards Layout ===== */
.search-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  padding: 10px;
}

/* ===== Card Style ===== */
.search-cards .card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
      background: linear-gradient(307deg, #171515, #171717);
  transition: 0.3s;
}

.search-cards .card:hover {
  transform: scale(1.02);
}

/* ===== Image ===== */
.search-cards .card img {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  object-fit: cover;
}

/* ===== Text ===== */
.search-cards .card .info {
  display: flex;
  flex-direction: column;
}

.search-cards .card .title {
  font-size: 15px;
  font-weight: bold;
}

.search-cards .card .artist {
  font-size: 13px;
  opacity: 0.7;
}
/* نتائج البحث فقط */
#searchResults {
  display: grid;
  grid-template-columns: 1fr;

}

@media (max-width: 600px) {
  .search-cards {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .search-cards .card {
    width: 100%;
  }
  /* نتائج البحث فقط */

  #searchResults {
    grid-template-columns: 1fr !important;
  
}

}
@media (max-width: 900px) {
  #searchResults,
  #searchResults.show,
  .search-cards,
  .search-cards.show {
    grid-template-columns: 1fr !important;
  }
}





.top10-section {
  color: #fff;
}

.top10-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.top10-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.top10-item {
  display: grid;
  grid-template-columns: 70px 90px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: linear-gradient(90deg, #0f0f0f, #151515);
  border-radius: 18px;
  cursor: pointer;
  transition: 0.35s ease;
  position: relative;
}

.top10-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, transparent, rgba(29,185,84,0.15), transparent);
  opacity: 0;
  transition: 0.35s;
}

.top10-item:hover::after {
  opacity: 1;
}

.top10-item:hover {
  transform: translateX(12px);
}

.top10-rank {
  font-size: 36px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px #1db954;
  text-align: center;
}

/* COVER */
.top10-cover {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
}

.top10-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top10-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  opacity: 0;
  transition: 0.3s;
}

.top10-item:hover .top10-play {
  opacity: 1;
}

/* INFO */
.top10-info h3 {
  font-size: 17px;
  margin: 0;
}

.top10-info p {
  font-size: 14px;
  color: #b3b3b3;
  margin-top: 6px;
}



/* ===== Player ===== */
/* Player Fixed Bottom */
.player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 95px;
  background: linear-gradient(180deg, #121212, #1c1c1c);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 9999;
  border-top: 2px solid #b91d1d;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.7);
  color: #fff;
  gap: 20px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  opacity: 0;           /* مخفي بصرياً */
  pointer-events: none;  /* لا يمكن التفاعل معه */
  transition: opacity 0.4s ease;
}

.player.show {
  opacity: 1;
  pointer-events: auto;
}


/* Left side: cover + info */
.player-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

#player-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

#player-img.playing {
  transform: scale(1.05);
}

.song-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.song-info p {
  margin: 0;
  font-size: 13px;
  color: #b3b3b3;
}

/* Center: controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.control-btn:hover {
  color: #b91d1d;
}

#play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ac0303;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgb(255, 0, 0);
  transition: 0.3s;
}

#play:hover {
  transform: scale(1.1);
}

/* Right: progress + time */
.player-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

#current-time, #duration {
  font-size: 12px;
  color: #b3b3b3;
}

#progress {
  width: 160px;
  cursor: pointer;
  accent-color: #ff0101;
  height: 4px;
  border-radius: 2px;
}


/* Mini Player */
#player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  z-index: 1000;
}

#player .player-left {
  display: flex;
  align-items: center;
  cursor: pointer;
}

#player img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin-right: 10px;
}

.player-controls button {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin: 0 5px;
  cursor: pointer;
}


/* =========================
   FULL PLAYER – SPOTIFY STYLE (MOBILE)
========================= */
/* 
@media (min-width: 768px) {
  #full-player {
    display: none !important;
  }
} */

#full-player {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 16px 16px 24px;
  z-index: 2000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;

  background:
    linear-gradient(
      to bottom,
      var(--fp-color-1, #8b0000) 0%,
      var(--fp-color-2, #3a0000) 45%,
      #121212 85%
    );

  transition: background 0.6s ease;
}

/* Dark overlay سفلي */
#full-player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.35) 60%,
    #121212 100%
  );
  z-index: -1;
}

/* ================= HEADER ================= */

.fp-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 8px;
}

#fp-back,
#fp-options {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  opacity: 0.85;
}

#fp-source {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ================= COVER ================= */

.fp-cover-container {
  margin: 24px 0;
  display: flex;
  justify-content: center;
}

.fp-cover-container img {
  width: 78%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.55);
}

/* ================= INFO ================= */

.fp-song-info {
  margin-top: 12px;
}

.fp-song-info h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.fp-song-info p {
  font-size: 14px;
  margin-top: 4px;
  color: rgba(255,255,255,0.7);
}

/* ================= PROGRESS ================= */

.fp-progress-container {
  margin-top: 20px;
}

.fp-progress-container input[type=range] {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.25);
  accent-color: #552121;;
  border-radius: 2px;
}

#fp-current-time,
#fp-total-time {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

/* ================= CONTROLS ================= */

.fp-main-controls {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.fp-btn-large {
  width: 60px;
  height: 60px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-btn-small {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  opacity: 0.85;
}

/* ================= FOOTER ================= */

.fp-footer {
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}
.fp-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.fp-progress-container span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  min-width: 38px;
  text-align: center;
}

#fp-progress {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  cursor: pointer;
}

/* الدائرة */
#fp-progress::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .2s;
}

#fp-progress:hover::-webkit-slider-thumb {
  opacity: 1;
}

/* Firefox styling for range filled track */
#fp-progress::-moz-range-track {
  background: rgba(255,255,255,0.25);
  height: 3px;
  border-radius: 2px;
}
#fp-progress::-moz-range-progress {
  background: #ffffff;
  height: 3px;
  border-radius: 2px;
}
#fp-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: none;
}

/* Blur Background Layer */
.fp-blur-bg {
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(40px) saturate(130%);
  transform: scale(1.2);
  z-index: 0;
}

/* Dark overlay (Spotify style) */
.fp-blur-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* Ensure content is above blur */
#full-player > *:not(.fp-blur-bg) {
  position: relative;
  z-index: 2;
}



/* Body padding to avoid covering content */
body {
  padding-bottom: 110px;
}

/* Optional: responsive adjustments */
@media (max-width: 768px) {
   #player {
    bottom: 70px; /* ارفع الـ player فوق قائمة الهاتف */
  }

  /* إذا أردت، يمكنك تقليل ارتفاعه على الهاتف */
  #player {
    height: 80px;
  }
  #progress {
    width: 100px;
  }
  .song-info h4 {
    font-size: 13px;
  }
  .song-info p {
    font-size: 11px;
  }
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  display: none;
}

.bottom-nav a {
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease, transform .12s ease;
}

.bottom-nav a svg {
  width: 24px;
  height: 24px;
  transition: transform .18s ease, color .18s ease;
}

.bottom-nav a:hover {
  color: #e60000;
  background: rgba(230,0,0,.06);
  transform: translateY(-3px);
}

.bottom-nav a:active {
  transform: translateY(-1px);
}

/* ===== Mobile ===== */
@media (max-width: 1000px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 80px 10px 120px;
  }

  .cards {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .card {
    width: 130px;
    flex: 0 0 auto;
  }

.player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 9999;
  border-top: 1px solid #1db954;
}

/* Left */
.player-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

#player-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.song-info h4 {
  font-size: 14px;
  margin: 0;
}

.song-info p {
  font-size: 12px;
  color: #b3b3b3;
  margin-top: 4px;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.control-btn:hover {
  color: #1db954;
}

/* Play button special */
#play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1db954;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav a:hover {
  color: #e60000;
  background: rgba(230,0,0,.06);
  transform: translateY(-3px);
}

  .player-left img {
    width: 50px;
    height: 50px;
  }

  .player-controls .control-btn {
    padding: 6px 10px;
    font-size: 14px;
  }

  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #181818;
    border-top: 2px solid #30030398;
    padding: 8px 0;
  }
}
