:root {
  --blue-bubble: #bbe6f3;
  --small-b-bubble: #bae5f2;
  --pink-bubble: #ebc7e5;
  --font-color: #063064;
}

* {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

html,
body {
  overflow-y: hidden;
}

.container {
  -moz-box-shadow: 1px 2px 29px 2px #dcf4fa;
}

.app-ui {
  background-color: #fff;
  max-width: 450px;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  border-radius: 30px;
  /* box-shadow: 2px 14px 40px -20px rgba(0, 0, 0, 0.2); */
}

.left-ui {
  overflow: hidden;
}

.right-ui {
  /* left: 260px; */
  background-color: #bbe6f3;
  /* height: 100%; */
  width: 100%;
  /* display: flex; */
}

.inside-right {
  left: 0;
  top: 70px;
  height: 80%;
  display: flex;
  align-items: center;
}

.header {
  font-family: "Fjalla One", sans-serif;
  color: var(--font-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 235px;
  padding: 27px 27px 21px 27px;
  font-size: 22px;
}

.menu-line {
  border: 1px solid var(--font-color);
  width: 25px;
  border-radius: 50px;
}

.menu-line:before {
  content: "";
  position: absolute;
  top: 45px;
  left: 197px;
  border: 0.05em solid;
  width: 8px;
  border-radius: 50px;
}

.menu-line:after {
  content: "";
  position: absolute;
  top: 45px;
  left: 190px;
  border: 0.05em solid;
  width: 3px;
  border-radius: 50px;
}

.left-menu-bar {
  position: relative;
  font-family: "Roboto", sans-serif;
  color: var(--font-color);
  left: -5px;
}

.ur-playlist {
  font-size: 11px;
  font-weight: 500;
  transform: rotate(270deg);
  position: absolute;
  left: 2px;
  top: 40px;
  cursor: pointer;
}

.playlist-icon {
  width: 11px;
  position: absolute;
  left: 28px;
  top: -6px;
  cursor: pointer;
}

.like-recent {
  position: absolute;
  top: 110px;
}

.recent {
  left: 18px;
  top: 90px;
}

.recent-detail {
  width: 4px;
  height: 4px;
  background-color: var(--font-color);
  position: absolute;
  top: 95px;
  left: 15px;
  border-radius: 50%;
}

.like {
  left: 25px;
  top: 140px;
  color: #aeb8cc;
}

.like:hover {
  color: var(--font-color);
}

.album-img {
  position: relative;
  background-image: url("https://images.unsplash.com/photo-1535392432937-a27c36ec07b5?ixlib=rb-1.2.1&auto=format&fit=crop&w=934&q=80");
  width: 85%;
  height: 165px;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 20px;
  margin-left: 40px;
  box-shadow: -10px 10px 30px -20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  /* display: flex; */
}

.album-img:hover {
  transform: scale(1.02);
}

.relax {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.btn {
  background-color: #ffffff;
  position: absolute;
  width: 27px;
  height: 27px;
  right: 10px;
  bottom: 10px;
  border-radius: 9px;
  transition: all 100ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0px 1px 2px white, 0px 2px 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: none;
}

.btn:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  z-index: 2;
}

.btn:active {
  box-shadow: 0 5px 50px rgba(0, 0, 0, 0.02);
}

.btn:active:after {
  box-shadow: inset 0px 2px 3px white, inset 0px 2px 0px rgba(0, 0, 0, 0.1);
}

.btn.active.play-pause .icon.pause {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.btn.active.play-pause .icon.play {
  opacity: 0;
}

.play {
  width: 13px;
  position: absolute;
  top: 7px;
  left: 8px;
}

.play svg {
  stroke-width: 5;
}

.pause {
  width: 12px;
  opacity: 0;
  position: absolute;
  left: 14px;
  top: 15px;
}

.flowers-img {
  background-image: url("https://images.unsplash.com/photo-1490823670292-6699d9edbb7d?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=933&q=80");
  background-repeat: no-repeat;
  background-size: cover;
  height: 135px;
  width: 120px;
  position: absolute;
  right: -88px;
  top: 90px;
  border-radius: 20px;
  transform: rotate(180deg);
  box-shadow: -10px 10px 30px -20px rgba(0, 0, 0, 0.5);
}

.flowers-img:hover {
  cursor: pointer;
  -webkit-transform: rotate(180deg) scale(1.03);
}

.music-list {
  position: relative;
  padding-top: 20px;
  cursor: pointer;
  margin-left: 0px;
  margin-top: 20px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 8px;
}

.song {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.song:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.song.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.song-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 16px;
  flex-shrink: 0;
}

.song-img>img {
  background-repeat: no-repeat;
  background-size: cover;
  width: 30px;
  height: 30px;
  border-radius: 360px;
  margin-right: 10px;
}

.song-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-detail {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.artist {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav svg {
  width: 17px;
}

.nav {
  position: absolute;
  bottom: 0;
  color: #c5c7da;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
  height: 52px;
}

.nav-first {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  height: 52px;
}

/* Navegación activa */
.nav-first svg {
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-first svg:hover {
  transform: scale(1.1);
  color: #063064;
}

.nav-first svg.active {
  color: #063064;
  transform: scale(1.1);
}

.player-bg {
  position: absolute;
  bottom: 35px;
  /* left: 0; */
  background-color: #bae6f2;
  height: 80px;
  width: 100%;
  border-radius: 25px 25px 0 0;
}

.player-info {
  position: absolute;
  /* top: 394px; */
  /* left: 0; */
  bottom: 75px;
}

.player-cover img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  margin: 10px 0 10px 25px;
  border: 2px solid #fff;
  box-shadow: 0px 15px 30px -6px rgba(0, 0, 0, 0.5);
}

.pointer {
  position: absolute;
  top: 27px;
  width: 9px;
  height: 9px;
  margin: -6px 0 0 37px;
  background-color: #a5c8e3;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.7px #fff;
}

.player-info .song-detail {
  margin: -42px 0 0 65px;
}

.play-artist {
  color: #6590ad;
  margin-top: 5px;
  font-size: 8px;
}

.player-info svg {
  width: 12px;
  position: absolute;
  right: -50px;
  top: 22px;
}

.player-bg .btn {
  bottom: 40px;
  width: 24px;
  height: 23px;
  right: 25px;
}

.small-play {
  width: 10px;
  top: 5px;
  left: 8px;
}

.small-pause {
  width: 10px;
  left: 12px;
  top: 13px;
}

@media only screen and (max-width: 768px) {
  .container {
    /* transform: scale(0.8); */
    /* right: 60px; */
    /* margin-top: -40px; */
  }
}

@media only screen and (max-width: 480px) {
  .container {
    /* transform: scale(0.6); */
    /* right: 200px; */
  }
}

.play-action {
  display: flex;
  margin-top: 40px;
  justify-content: space-between;
  align-items: center;
}

.dot {
  border-radius: 50%;
  width: 3px;
  height: 3px;
  background-color: #043165;
  margin-right: 5px;
}

.what-play {
  font-family: "Roboto", sans-serif;
  color: var(--font-color);
  font-weight: 500;
  font-size: 10px;
}

.double-dot {
  display: flex;
  margin-right: 15px;
}

.line {
  width: 20px;
  height: 2px;
  margin-left: 20px;
  border-radius: 10px;
  background-color: #043165;
}

.other-line {
  position: absolute;
  width: 10px;
  height: 2px;
  top: 44px;
  left: 19px;
  border-radius: 5px;
  background-color: #043165;
  transform: rotate(-30deg);
}

.half-arrow {
  margin-top: 2px;
}

.bigPlay img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid #fff;
  position: relative;
  left: 37px;
  top: 30px;
  object-fit: cover;
  object-position: top right;
  animation: rotateImg 3s linear 0s infinite forwards;
  animation-play-state: paused;
}

.bigPlay img.active {
  animation-play-state: running;
}

@keyframes rotateImg {
  0% {
    transform: rotateZ(0);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

.bigPlay {
  position: absolute;
  display: flex;
  /* align-content: center; */
  flex-direction: column;
}

.bigPlay .btn {
  top: 90px;
  left: 96px;
  width: 44px;
  height: 44px;
  border-radius: 18px;
}

.icon.play.bigger-play {
  width: 22px;
  top: 11px;
  left: 13px;
}

.icon.pause.bigger-pause {
  width: 20px;
  left: 22px;
  top: 23px;
}

.right-detail {
  margin: 50px 0;
  text-align: center;
}

.right-song {
  font-size: 20px;
  font-family: "Fjalla One", sans-serif;
}

.right-artist {
  font-size: 12px;
  color: #aeb8cc;
}

.lines {
  border-left: 2px solid var(--font-color);
  margin-left: -55px;
  height: 5px;
  transition: all 0.1s ease;
}

.lines.grey {
  border-left: 2px solid #e8e9f4;
}

.line-wrapper {
  margin-top: -20px;
  margin-left: 62px;
}

.heart {
  width: 18px;
  cursor: pointer;
}

.heart :hover {
  fill: #E52121;
}

.heart:hover {
  transform: scale(1.2);
}

.heart.active {
  fill: #E52121 !important;
}

.heart.active path {
  fill: #E52121 !important;
}

.heart.active:hover {
  fill: #ff0000 !important;
  transform: scale(1.2);
}

.heart.active:hover path {
  fill: #ff0000 !important;
}

.addTo {
  width: 16px;
  cursor: pointer;
}

.menu {
  width: 16px;
  cursor: pointer;
}

.left-bar-wrapper {
  display: flex;
  justify-content: space-evenly;
  margin-top: 35px;
}

.blue-heart:hover {
  fill: #063064;
  cursor: pointer;
  transform: scale(1.2);
}

.blue-heart.active {
  fill: #E52121 !important;
  stroke: #E52121 !important;
}

.blue-heart.active:hover {
  fill: #ff0000 !important;
  stroke: #ff0000 !important;
  transform: scale(1.2);
}

.second svg {
  width: 11px;
  transform: rotate(-45deg);
  margin: 0 4px 0 4px;
}

.second {
  margin: 20px 60px 0 90px;
  display: flex;
  align-items: center;
  font-size: 9px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  color: #c9cade;
}

.second .listened {
  color: var(--font-color);
}

.grey-detail {
  background-color: #eff3f8;
  width: 205px;
  height: 90px;
  border-radius: 50%;
  margin-top: -100px;
  margin-left: 13px;
}

.grey-detail-sec {
  background-color: #dae3f0;
  width: 176px;
  height: 130px;
  border-radius: 50%;
  margin-top: -110px;
  margin-left: 29px;
}

/* Estilos mínimos necesarios para la funcionalidad dinámica */

/* Búsqueda */
.search-container {
  position: relative;
  margin-bottom: 10px;
  padding: 0 20px;
  transition: all 0.3s ease;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.search-container.visible {
  opacity: 1;
  height: auto;
  margin-bottom: 15px;
  padding-top: 10px;
}

#radio-search {
  width: 100%;
  padding: 8px 35px 8px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #063064;
  background-color: #f8f9fa;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #063064;
  width: 12px;
  height: 12px;
  opacity: 0.7;
  pointer-events: none;
}

/* Scroll infinito */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #666;
  font-size: 12px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #063064;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Heart icons para favoritos */
.favorite-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
}

.heart-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #063064;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all 0.2s ease;
}

.heart-icon:hover {
  stroke: #EBC7E5;
  transform: scale(1.1);
}

.heart-icon.active {
  fill: #EBC7E5;
  stroke: #EBC7E5;
}

/* Mantener el contenedor original para las estaciones */
.music-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}