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

/* 添加入场动画 */
@keyframes ey_fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ey_fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ey_scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ey_slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ey_slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ey_rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes ey_pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes ey_shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes ey_rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at 30% 30%, #a5b4fc, #4f46e5, #1e1b4b);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  position: relative;
  animation: ey_fadeIn 1s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMjAgMjBhMjAgMjAgMCAwIDEgMjAgMjAgMjAgMjAgMCAwIDEtNDAgMCAyMCAyMCAwIDAgMSAyMC0yMHoiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMykiLz48L3N2Zz4=');
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.ey_player {
  width: 440px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 40px;
  padding: 24px 24px 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  color: white;
  margin: 0 auto;
  position: relative;
  animation: ey_scaleIn 0.6s ease-out;
}

.ey_coverWrapper {
  border-radius: 24px;
  overflow: hidden;
  margin: 0 auto 22px auto;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: ey_rotateIn 0.8s ease-out;
}

.ey_cover {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 1;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.jay_intro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 240px);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 0 0 24px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  width: 100%;
}

.ey_coverWrapper:hover .jay_intro {
  max-height: 160px;
  opacity: 1;
}

.ey_rankSection {
  display: none;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  margin-top: 20px;
  width: 100%;
  position: relative;
  z-index: 3;
  height: auto;
  min-height: 280px;
  box-sizing: border-box;
  animation: ey_fadeInUp 0.9s ease-out;
}

.ey_rankCovers {
  display: flex;
  margin-bottom: 20px;
  position: relative;
  height: 90px;
  width: 100%;
}

.ey_rankCover {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.3);
  position: absolute;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: ey_fadeIn 1s ease;
}

.ey_rankCover:nth-child(1) { 
  left: 0; 
  z-index: 3; 
  animation: ey_slideInLeft 0.8s ease-out;
}

.ey_rankCover:nth-child(2) { 
  left: 50px;
  z-index: 2; 
  animation: ey_slideInLeft 0.9s ease-out 0.1s both;
}

.ey_rankCover:nth-child(3) { 
  left: 100px;
  z-index: 1; 
  animation: ey_slideInLeft 1s ease-out 0.2s both;
}

.ey_rankCover:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  z-index: 10;
}

.ey_rankHeader {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  width: 100%;
  height: 24px;
  animation: ey_fadeIn 1s ease 0.3s both;
}

.ey_rankPlay {
  display: none !important;
}

.ey_rankList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 140px;
}

.ey_rankItem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  min-height: 44px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  animation: ey_slideInRight 0.6s ease;
}

.ey_rankItem:nth-child(1) { animation-delay: 0.4s; animation-fill-mode: both; }
.ey_rankItem:nth-child(2) { animation-delay: 0.5s; animation-fill-mode: both; }
.ey_rankItem:nth-child(3) { animation-delay: 0.6s; animation-fill-mode: both; }

.ey_rankItem:last-child {
  border-bottom: none;
}

.ey_rankNum {
  font-size: 16px;
  font-weight: 700;
  color: white;
  width: 24px;
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
}

.ey_rankInfo {
  flex: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.ey_rankTitleText {
  font-size: 14px;
  color: white;
  line-height: 1.5;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  overflow: visible;
  text-overflow: unset;
  max-width: 220px;
  padding-right: 5px;
  font-weight: 400;
}

.ey_rankTitleText:hover {
  transform: translateX(5px);
  color: #ffd700;
}

.ey_rankUp {
  color: #ff4d4f;
  font-size: 14px;
  line-height: 1.4;
  flex-shrink: 0;
  width: 20px;
}

.ey_songInfoHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 40px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: ey_fadeInUp 0.7s ease-out;
}

.ey_songInfo {
  flex: 1;
}

.ey_songTitle {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
  transition: all 0.3s ease;
  position: relative;
}

.ey_singerName {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  transition: all 0.3s ease;
  position: relative;
}

/* 移除所有加载点的样式 - 只保留文字本身 */
.ey_loading {
  position: relative;
  display: inline-block;
}

/* 封面加载效果 */
.ey_cover.ey_loading {
  position: relative;
  background: linear-gradient(110deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.2) 25%, 
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.2) 75%,
    rgba(255,255,255,0.1) 100%);
  background-size: 200% 100%;
  animation: ey_shimmer 2s infinite linear;
  opacity: 0.8;
}

.ey_cover.ey_loading::after {
  content: '🎵';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: rgba(255,255,255,0.5);
  animation: ey_pulseGlow 1.5s infinite;
}

/* 歌词加载效果 */
.ey_loadingSpinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: ey_rotate 1s linear infinite;
  margin-bottom: 8px;
}

.ey_loadingText {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}

.ey_searchToggleBtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 30;
  animation: ey_pulse 2s infinite ease-in-out;
}

.ey_searchToggleBtn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
  animation: none;
}

.ey_guideArrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 40;
  opacity: 1;
  transition: opacity 0.5s ease;
  white-space: nowrap;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.ey_guideText {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  padding: 6px 14px;
  color: white;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 6px;
  animation: ey_gentleFloat 2s infinite ease-in-out;
}

.ey_guideDownArrow {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  animation: ey_arrowBounce 1.5s infinite ease-in-out;
}

@keyframes ey_gentleFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes ey_arrowBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.ey_guideArrow.ey_hide {
  opacity: 0;
  visibility: hidden;
}

.ey_timeInfo {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
  padding: 0 4px;
  animation: ey_fadeIn 0.8s ease 0.2s both;
}

.ey_progressBar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  margin-bottom: 28px;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  animation: ey_fadeIn 0.9s ease 0.3s both;
  overflow: hidden;
}

.ey_progressBar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: ey_shimmer 3s infinite;
}

.ey_progressFilled {
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #d9e6ff, #b1c6ff);
  border-radius: 99px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 2;
}

.ey_controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  animation: ey_fadeInUp 0.8s ease 0.4s both;
}

.ey_controlBtn {
  border: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 22px;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ey_controlBtn.ey_play {
  background: rgba(255, 255, 255, 0.4);
  width: 64px;
  height: 64px;
  font-size: 30px;
  border: 1.5px solid white;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
  animation: ey_pulse 3s infinite ease-in-out;
}

.ey_controlBtn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.07);
}

.ey_lyricsSection {
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px) saturate(200%);
  border-radius: 28px;
  padding: 18px 12px;
  height: 230px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  animation: ey_fadeInUp 1s ease 0.5s both;
}

.ey_lyricsPlaceholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  text-align: center;
  padding: 20px;
  flex-direction: column;
  gap: 12px;
}

.ey_lyricLine {
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease-out;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.5;
  animation: ey_fadeIn 0.5s ease;
}

.ey_lyricLine.ey_active {
  color: white;
  font-weight: 600;
  font-size: 18px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  transform: scale(1.02);
}

.ey_lyricsSection::-webkit-scrollbar {
  width: 6px;
}

.ey_lyricsSection::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.ey_lyricsSection::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}

.ey_searchPanel {
  position: absolute;
  top: 120px;
  right: 24px;
  width: 280px;
  background: rgba(20, 20, 40, 0.7);
  backdrop-filter: blur(20px) saturate(200%);
  border-radius: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.ey_searchPanel.ey_show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.ey_searchInputWrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 8px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ey_searchInputWrapper i {
  color: rgba(255, 255, 255, 0.6);
  margin-right: 8px;
  font-size: 14px;
}

#ey_searchInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 14px;
}

#ey_searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ey_searchResults {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.ey_resultItem {
  padding: 10px 12px;
  border-radius: 40px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ey_resultItem:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.ey_resultItem i {
  color: #ffd700;
  font-size: 12px;
  opacity: 0.7;
}

.ey_closeSearch {
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  color: white;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s;
}

.ey_closeSearch:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ey_searchResults::-webkit-scrollbar {
  width: 4px;
}

.ey_searchResults::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

@media (min-width: 769px) {
  .ey_player {
    width: 900px;
    padding: 32px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    box-sizing: border-box;
  }
  
  .ey_coverWrapper {
    width: 320px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .ey_rankSection {
    display: block;
  }
  
  .ey_rightWrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .ey_lyricsSection {
    height: 380px;
    max-height: 380px;
    min-height: unset;
    flex: unset;
    overflow-y: auto;
  }
  
  .ey_controls {
    margin-bottom: 12px;
  }
  
  .ey_progressBar {
    margin-bottom: 12px;
  }
  
  .jay_intro {
    bottom: calc(100% - 320px);
  }
  
  .ey_rankTitleText {
    max-width: 280px;
    font-size: 15px;
  }
  
  .ey_rankItem {
    min-height: 48px;
  }
  
  .ey_rankCover:nth-child(2) { 
    left: 60px;
  }
  
  .ey_rankCover:nth-child(3) { 
    left: 120px;
  }
}