@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');



/* Main Genius Music Layout */
.search-container { display: flex; align-items: center; width: 100%; height: 100%; gap: 10px; }
#music-search { flex: 1; border: none; background: transparent; font-size: 16px; color: #374151; outline: none; padding: 5px; }
.search-icon { cursor: pointer; font-size: 20px; padding: 5px; }
.music-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 5000; display: flex; align-items: center; justify-content: center; }
.no-results { padding: 30px; text-align: center; color: #6b7280; font-size: 1.1rem; }
.music-overlay-content { background: #fff; width: 90%; max-width: 500px; max-height: 70vh; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.music-overlay-header { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.close-overlay { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.music-results { overflow-y: auto; flex: 1; padding: 10px; }
.music-item { display: flex; align-items: center; padding: 10px; gap: 15px; cursor: pointer; border-radius: 8px; transition: background 0.2s; }
.music-item:hover { background: #f3f4f6; }
.music-item img { width: 80px; height: 50px; object-fit: cover; border-radius: 4px; }
.item-info { display: flex; flex-direction: column; }
.item-title { font-weight: 600; font-size: 0.95rem; color: #1f2937; }
.item-artist { font-size: 0.8rem; color: #6b7280; }




/* New Player Design Integration */
#mini-player-container { 
    position: relative; 
    margin-top: -200px;
    bottom: 40px; 
    left: 62%; 
    transform: translateX(-50%) scale(0.50); 
    z-index: 4000; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom center;
}


#mini-player-container.playing { transform: translateX(-50%) scale(0.50); }
#mini-player-container.hidden { display: none; }


.music-player {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  width: 780px;
  height: 372px;
  border-radius: 43px;
  border: 2px solid #1A1A1A;
  background: linear-gradient(380deg, #1a1a1a 0%, #3C3C3C 100%);
  box-shadow: 0 20px 60px -20px #000;
  color: white;
  font-family: 'Source Sans Pro', sans-serif;
  overflow: visible;
}


.music-player::before {
    content: "";
    z-index: -2;
    width: 98%;
    height: 18%;
    border-radius: 20px;
    opacity: 0.3;
    filter: blur(4px);
    background: linear-gradient(180deg, #727272 0%, rgba(115, 115, 115, 0.00) 100%);
    position: absolute;
    bottom: -16%;
}


.texture {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: url(https://upload.wikimedia.org/wikipedia/commons/9/9a/512x512_Dissolve_Noise_Texture.png);
  background-clip: border-box;
  mix-blend-mode: multiply;
  opacity: 0.25;
  pointer-events: none;
}


.mp-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 98%;
  height: 96%;
  border-radius: 37px;
  background: linear-gradient(180deg, #1b1b1b 0%, #212121 11.2%, #3A3A3A 100%);
  z-index: 2;
}


.album-artwork {
  position: relative;
  z-index: 2;
  width: 345px;
  height: 313px;
  border-radius: 28px;
  border: 4px solid #1E1E1E;
  background-size: cover;
  background-position: center;
  transition: background-image 0.2s ease-in-out; 
}


.album-border {
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  filter: blur(1.0px);
}


.album-reflection {
  position: absolute;
  width: 30%;
  height: 100%;
  opacity: 0.4;
  transform: translateX(128px) skewX(-30deg);
  filter: blur(2.4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.00) 100%);
  pointer-events: none;
}


.albmu-scrn-fx {
  position: absolute;
  display:flex;
  gap: 2px;
  border-radius: 30px;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


.scrn-fx-line {
  width:4px;
  height: 100%;
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.10) 0%, rgba(2, 2, 2, 0.00) 100%);
  filter: blur(0.5px);
}


.album-text {
  position: absolute;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, rgba(2, 2, 2, 0.0) 0%, rgba(2, 2, 2, 0.90) 100%);
  bottom: 0;
  filter: blur(0.6px);
  opacity: 0.89;
  border-radius: 0px 0px 24px 24px;
  padding: 10px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.album-text h1 {
  font-size: 24px;
  margin: 0;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-text p {
  font-size: 18px;
  margin: 4px 0 0;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.40);
  opacity: 0.7;
}


.button-controls {
  display:flex;
  justify-content: center;
  align-items: center;
  width: 254px;
  height: 254px;
  margin-right: 10px;
  background: linear-gradient(180deg, #292929 0%, #1F1F1F 100%);
  border: 4px solid #0D0D0D;
  border-radius: 50%;
  perspective: 120em;
  position: relative;
}


.btn-overlay {
  position: relative;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  background: linear-gradient(175deg, #1F1F1F 3.94%, #2D2D2D 44.59%, #3D3D3D 81.99%);
  box-shadow: 0px 4px 7px 1px rgba(255, 255, 255, 0.11) inset;
  transition: transform 0.1s ease;
}


.btn-overlay.left { transform: rotateY(-6deg) skew(1deg, -1deg) ; box-shadow: 0px 4px 7px 1px rgba(255, 255, 255, 0.11) inset, 16px 4px 14px 0px rgba(0, 0, 0, 0.05) inset; filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)); }
.btn-overlay.right { transform: rotateY(6deg) skew(-1deg, 1deg) ; box-shadow: 0px 4px 7px 1px rgba(255, 255, 255, 0.11) inset, -16px 4px 14px 0px rgba(0, 0, 0, 0.05) inset; filter: drop-shadow(0px 4px -4px rgba(0, 0, 0, 0.25)); }
.btn-overlay.up { transform: rotateX(8deg); box-shadow: 0px 4px 7px 1px rgba(255, 255, 255, 0.09) inset, 0px -4px 14px 0px rgba(0, 0, 0, 0.05) inset; filter: drop-shadow(0px 4px -4px rgba(0, 0, 0, 0.25)); }
.btn-overlay.down { transform: rotateX(-8deg); box-shadow: 0px 4px 7px 1px rgba(255, 255, 255, 0.1) inset, 0px -14px 14px 0px rgba(0, 0, 0, 0.05) inset; filter: drop-shadow(0px 4px -4px rgba(0, 0, 0, 0.25)); }


.play-btn-shadow {
  position: absolute;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  background: rgba(0, 0, 0, 0.70);
  filter: blur(1.5px);
}


.play-btn {
  cursor: pointer;
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  background: linear-gradient(180deg, #292929 0%, #1F1F1F 100%);
  transition: transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}


.play-btn:active, .play-btn.pressed { transform: translate(-50%, -50%) scale(0.96); }


.play-btn-overlay {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(189deg, #1F1F1F 6.91%, #2D2D2D 50.27%, #393939 83.66%);
  box-shadow: 0px 1px 2px 0px rgba(255, 255, 255, 0.12) inset;
  pointer-events: none;
}


.play-icon { font-size: 32px; z-index: 5; text-shadow: 0 0 10px rgba(255,255,255,0.2); }


.skip-left, .skip-right, .vol-up, .vol-down {
  cursor: pointer;
  position: absolute;
  transition: transform 0.2s ease, opacity 0.2s;
}


.skip-left:active, .skip-right:active { transform: translate(-50%, -50%) scale(0.9); }
.skip-left img, .skip-right img, .vol-up img, .vol-down img { width: 30px; height: 30px; opacity: 0.7; }
.skip-left img:hover, .skip-right img:hover, .vol-up img:hover, .vol-down img:hover { opacity: 1; }

.skip-left { top: 52%; left: 15%; transform: translate(-50%, -50%); }
.skip-right { top: 52%; right: -2%; transform: translate(-50%, -50%); }
.vol-up { top: 15%; left: 50%; transform: translate(-50%, -50%); }
.vol-down { top: 85%; left: 50%; transform: translate(-50%, -50%); }


.player-search-overlay { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    background: #fff; 
    padding: 0; 
    border-radius: 0 0 43px 43px; 
    box-shadow: 0 -5px 25px rgba(0,0,0,0.3); 
    display: flex; 
    flex-direction: column; 
    z-index: 50; 
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    transform: translateY(0);
    opacity: 1;
}


.player-search-overlay.hidden {
    display: flex; /* Keep in DOM for transition */
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}


.player-search-input-wrapper { display: flex; width: 100%; height: 75px; }
.player-search-overlay input { border: none; border-radius: 0; padding: 0 25px; outline: none; font-size: 22px; flex: 1; color: #333; height: 100%; background: transparent; }
.player-search-overlay button { background: #1a1a1a; color: white; border: none; padding: 0 30px; border-radius: 0; cursor: pointer; transition: background 0.2s; font-size: 26px; height: 100%; display: flex; align-items: center; justify-content: center; }
#player-suggestions { width: 100%; background: #ffffff; border-top: 1px solid #e5e7eb; border-radius: 0; overflow: hidden; max-height: 150px; overflow-y: auto; }
.loading-more-indicator { padding: 15px; text-align: center; color: #000; font-size: 0.9rem; font-weight: 500; }
.no-more-songs-hint { padding: 20px; text-align: center; color: #6b7280; font-size: 0.85rem; font-style: italic; }

#player-close-btn { transition: transform 0.2s, color 0.2s; }
#player-search-action:hover { transform: translate(-50%, -50%) scale(1.1); }
#player-stop-action:hover { transform: translate(-50%, -50%) scale(1.1); }
#player-close-btn:hover { color: #fff; transform: scale(1.2); }




/*Marquee fallback for title if long*/
.album-text h1.marquee { animation: marquee_new 10s linear infinite; display: inline-block; padding-left: 100%; }
@keyframes marquee_new { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

.suggestion-item { padding: 10px 15px; cursor: pointer; font-size: 14px; color: #374151; background: #ffffff; }
.suggestion-item:hover { background: #f9fafb; }
.search-wrapper { position: relative; flex: 1; }
#music-suggestions { position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 0 0 12px 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 100; overflow: hidden; }
body .hidden { display: none; }
