:root {
  --primary-color: #1e293b;
  --secondary-color: #0f172a;
  --accent-color:  #fafafa;
  --text-color: #f8fafc;
  --button-color: #c084fc;
  --button-hover: #22c55e;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body.disabled, body.desactivated {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  height: 100vh;
}

body.disabled h1, body.desactivated h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

body.disabled p, body.desactivated p {
  font-size: 1rem;
  opacity: 0.8;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  z-index: -1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.95));
  z-index: -1;
  opacity: 0.3
}

.header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.status-badge {
  background-color: rgba(139, 92, 246, 0.2);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.status-badge i {
  margin-right: 0.5rem;
}

.status-live {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.cover-container {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 10px 30px var(--shadow-color);
}

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

.song-info {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 300px;
}

.song-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.artist-name {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 300;
}

.now-playing {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 1rem;
  font-weight: 300;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 300px;
}

.control-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
  margin: 0 1rem;
  opacity: 0.8;
  transition: all 0.2s;
}

.control-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--text-color);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: all 0.2s;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--shadow-color);
}

.volume-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1rem;
}

.volume-icon {
  margin-right: 1rem;
  font-size: 1rem;
  opacity: 0.8;
}

.volume-control {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.volume-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-color);
  cursor: pointer;
}

.timer {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  font-weight: 300;
}

.social-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--button-color);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0.5rem;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: var(--secondary-color);
  z-index: 1000;
  padding: 2rem 1rem;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px var(--shadow-color);
  overflow-y: auto;
}

.menu.show {
  right: 0;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.menu-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
}

.menu-section {
  margin-bottom: 2rem;
}

.menu-section-title {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.menu-links {
  list-style: none;
}

.menu-link {
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.menu-link:hover {
  opacity: 1;
  transform: translateX(5px);
}

.menu-link i {
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.history-item {
  padding: 0.8rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.8rem;
}

.history-title {
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.history-artist {
  font-size: 0.75rem;
  opacity: 0.7;
  font-weight: 300;
}

.history-time {
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 0.3rem;
  text-align: right;
  font-weight: 300;
}

.watermark {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.7rem;
  opacity: 0.5;
  z-index: 100;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--secondary-color);
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-content {
  margin-bottom: 1rem;
}

.about-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
}

.about-text {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.share-option {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.share-option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.share-text {
  font-size: 0.9rem;
}

.share-url-container {
  margin-top: 1rem;
  position: relative;
}

.share-url {
  width: 100%;
  padding: 0.8rem;
  padding-right: 70px;
  border-radius: 8px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  font-size: 0.8rem;
}

.copy-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  background-color: var(--button-color);
  color: var(--primary-color);
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: var(--button-hover);
}

.offline-alert {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ef4444;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2000;
}

/* Responsive styles */
@media (min-width: 768px) {
  .main-content {
    max-width: 500px;
    padding: 2rem;
  }

  .cover-container {
    width: 220px;
    height: 220px;
  }

  .song-title {
    font-size: 1.3rem;
  }

  .artist-name {
    font-size: 1rem;
  }

  .play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .control-btn {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .main-content {
    max-width: 600px;
  }

  .cover-container {
    width: 250px;
    height: 250px;
  }
}

@media (max-height: 700px) {
  .cover-container {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
  }

  .song-info {
    margin-bottom: 1rem;
  }

  .controls {
    margin-bottom: 1rem;
  }
}

@media (max-height: 600px) {
  .cover-container {
    width: 120px;
    height: 120px;
  }
}
