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

html, body {
  height: 100%;
  width: 100%;
  background-color: #ffa500;
  font-family: Arial, sans-serif;
  color: #fff;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.player-container {
  width: 100%;
  max-width: 480px;
  height: 89vh;
  background-color: #ffa500;
  border: 0px solid orange;
  border-radius: 0px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.logo {
  width: 90px;
  margin: 0 auto 10px;
}

.filters {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.filter-btn {
  flex: 1;
  padding: 6px;
  background-color: #000000;
  border: 1px solid black;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
  background: #ffffff;
  color: black;
}

.controls {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.control {
  flex: 1;
  padding: 8px;
  margin: 0 2px;
  background-color: #000000;
  border: 1px solid orange;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.control i {
  font-size: 15px;
}

.control:hover {
  background-color: #ff5200;
  color: #ffffff;
}

#trackInfo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
  text-align: center;
}

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

.meta {
  margin: 10px 0;
}

.meta .title {
  font-size: 18px;
  font-weight: bold;
}

.meta .artist {
  font-size: 14px;
  color: #ffffff;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

#progress {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background-color: #000;
  appearance: none;
}

#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: orange;
  border-radius: 50%;
  cursor: pointer;
}

#timestamp {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
}

.track-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 5px;
  padding-left: 4px;
  direction: rtl;
}

.track-item {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #000000;
  margin-bottom: 6px;
  padding: 8px 12px;
  border: 1px solid orange;
  border-radius: 5px;
  cursor: move;
  user-select: none;
  font-size: 13px;
  transition: background 0.2s;
}

.track-item.dragging {
  opacity: 0.5;
  background-color: #222;
}

.drag-handle {
  font-size: 16px;
  color: #ffa500;
  padding-left: 10px;
  cursor: grab;
  margin-left: auto;
}

.track-title {
  flex: 1;
  padding-right: 10px;
}

.track-item:hover {
  background-color: #ff5200;
}

.social-share {
  margin-top: 30px;
  text-align: center;
}

.social-share span {
  font-weight: bold;
  color: #000000;
}

.social-share a {
  color: #ffffff;
  margin: 0 10px;
  text-decoration: none;
}

@media (max-width: 600px) {
  .controls {
    gap: 10px;
  }

  .control i {
    font-size: 20px;
  }

  #cover-img {
    max-width: 90%;
  }

  .filter-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .track-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #000000;
    border: 1px solid #ffa500;
    border-radius: 5px;
    color: white;
  }
}