body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #121212;
  font-family: Vazirmatn, sans-serif;
  overflow: auto;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* هدر */
.header {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0;
  text-align: right;
  background: transparent;
}

.header h1 {
  color: rgba(255, 255, 255, 1);
  font-size: 3.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.header a {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.header a:hover {
  color: rgba(100, 150, 255, 1);
}

/* محتوای آلبوم */
.album-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.album-container {
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.album-top-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
  margin-bottom: 3rem;
  align-items: center;
}

.album-image-container {
  display: flex;
  justify-content: flex-end;
}

.album-image {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.album-image:hover {
  transform: scale(1.02);
}

.album-info {
  text-align: right;
}

.album-title {
  color: #ffc800;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.album-composer {
  color: rgba(255, 255, 255, 1);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* بخش قطعات */
.tracks-section {
  width: 100%;
  margin-top: 2rem;
}

.tracks-title {
  color: rgba(255, 255, 255, 1);
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  text-align: right;
}

.track-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.track-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.track-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-10px);
}

.track-item.active {
  background: rgba(100, 150, 255, 0.2);
  border-color: rgba(100, 150, 255, 0.5);
}

.track-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.track-number {
  color: rgba(255, 255, 255, 1);
  font-weight: 300;
  margin-left: 1rem;
  width: 30px;
  text-align: center;
}

.track-name {
  color: rgba(255, 255, 255, 1);
  font-weight: 400;
  flex-grow: 1;
}

.track-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.track-duration {
  color: rgba(255, 255, 255, 1);
  font-size: 0.9rem;
}

.track-download-btn {
  background: rgba(76, 175, 80, 0.3);
  border: none;
  color: rgba(255, 255, 255, 0.8);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.track-download-btn:hover {
  background: rgba(76, 175, 80, 0.6);
  transform: scale(1.1);
}

/* پلیر سفارشی - چیدمان جدید */
.custom-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.player-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* دکمه‌های کنترل در سمت راست (همتراز با سمت راست لیست) */
.player-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  order: 3;
}

.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 0.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.control-btn:active {
  transform: scale(0.95);
}

.play-btn {
  background: rgba(100, 150, 255, 0.8);
  width: 50px;
  height: 50px;
}

.play-btn:hover {
  background: rgba(100, 150, 255, 1);
}

/* نوار پیشرفت در وسط */
.progress-container {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0 1.5rem;
  order: 2;
  min-width: 0;
  direction: ltr;
}

.time-display {
  color: rgba(255, 255, 255, 1);
  font-size: 0.8rem;
  min-width: 40px;
  white-space: nowrap;
}

.progress-bar {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin: 0 1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 100px;
  direction: ltr;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #64b5f6);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.progress-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #64b5f6;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-bar:hover .progress-handle {
  opacity: 1;
}

/* نام قطعه در سمت چپ (همتراز با سمت چپ لیست) */
.player-info {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  order: 1;
  min-width: 200px;
  justify-content: flex-start;
}

.current-track-info {
  text-align: left;
}

.current-track-name {
  color: rgba(255, 255, 255, 1);
  font-weight: 500;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.current-track-composer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.player-actions {
  display: none;
}

/* فودر */
.footer {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
  text-align: center;
  background: transparent;
  margin-bottom: 0px;
}

.footer p {
  color: #97f8ff;
  margin: 0;
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.footerinfo {
  position: relative;
  z-index: 2;
  background: transparent;
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}

.footerinfo .album-container {
  text-align: right;
}

.footerinfo p {
  color: #ffc197;
  margin-bottom: 5px;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  width: 100%;
}

/* موبایل - تک ستونه */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .album-content {
    padding: 1rem 0;
    min-height: calc(100vh - 140px);
  }

  .album-top-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .album-info {
    text-align: center;
  }

  .album-title {
    font-size: 2.2rem;
  }

  .album-composer {
    font-size: 1.3rem;
  }

  .album-image-container {
    justify-content: center;
  }

  .album-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .tracks-title {
    font-size: 1.5rem;
  }

  .track-item:hover {
    transform: translateY(-5px);
  }

  .custom-player {
    padding: 0.8rem 1rem;
  }

  .player-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .player-controls, .progress-container, .player-info {
    width: 100%;
    justify-content: center;
    order: unset;
  }

  .progress-container {
    order: 1;
    margin: 0;
  }

  .player-controls {
    order: 2;
  }

  .player-info {
    order: 3;
    justify-content: center;
    text-align: center;
    min-width: unset;
  }

  .current-track-info {
    text-align: center;
  }

  .current-track-name {
    max-width: 100%;
  }

  .footer {
    margin-bottom: 0px;
  }
}

/* موبایل‌های کوچک */
@media (max-width: 480px) {
  .album-title {
    font-size: 1.8rem;
  }

  .album-composer {
    font-size: 1.1rem;
  }

  .album-image {
    max-width: 320px;
  }

  .track-item {
    padding: 0.8rem 1rem;
  }

  .track-actions {
    gap: 0.5rem;
  }

  .control-btn {
    margin: 0 0.2rem;
  }

  .player-container {
    gap: 0.5rem;
  }
}

.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
  transition: all 0.3s ease;
}

.logo-image {
  display: block;
  width: 70px;
  height: 29px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  opacity: 0.5;
}
@media (max-width: 768px) {
  .logo-container {
      top: 15px;
      left: 15px;
  }

  .logo-image {
      width: 60px;
      height: 25px;
      opacity: 0.5;
  }
}













/* استایل بخش آلبوم بعدی */
.next-album-section {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, rgba(25, 25, 35, 0.8) 0%, rgba(15, 15, 25, 0.9) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
}

.next-album-container {
  max-width: 800px;
  margin: 0 auto;
}

.next-album-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.next-album-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.next-album-card:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.next-album-card:hover::before {
  opacity: 1;
}

.next-album-image {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.4);
}

.next-album-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.next-album-card:hover .next-album-img {
  transform: scale(1.1);
}

.next-album-info {
  flex: 1;
}

.next-album-name {
  color: #4CAF50;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.next-album-artist {
  color: #4CAF50;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.next-album-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
  .next-album-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .next-album-image {
    width: 80px;
    height: 80px;
  }
  
  .next-album-name {
    font-size: 1rem;
  }
  
  .next-album-title {
    font-size: 1.5rem;
  }
}







/* استایل بخش دانلود کل آلبوم */
.download-album-section {
  padding: 2rem 0;
  background: transparent;
}

.download-album-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-album-btn {
  background: rgba(234, 132, 255, 0.3);
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.download-album-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.download-album-btn:hover {
  transform: translateY(-3px);
  background: rgba(234, 132, 255, 0.6);
}

.download-album-btn:hover::before {
  left: 100%;
}

.download-album-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(234, 132, 255, 0.3);
}

.download-album-btn i {
  font-size: 1.2rem;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
  .download-album-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .download-album-btn i {
    font-size: 1.1rem;
  }
}