@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
*::before,
*::after {
  padding: 0;
  margin: 0;
}
:root {
  --pink: #ff74a4;
  --violet: #9f6ea3;
  --lightblack: #515C6F;
  --white: #ffffff;
  --darkwhite: #cecaca;
  --pinkshadow: #ffcbdd;
  --lightbshadow: rgba(0, 0, 0, 0.15);
}
html {
  -webkit-text-size-adjust: 100%;
  height: -webkit-fill-available;
  min-height: 100%;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-attachment: fixed;
  transition: background 0.5s ease;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
.wrapper {
  width: 380px;
  padding: 25px 30px;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0px 6px 15px var(--lightbshadow);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.wrapper i {
  cursor: pointer;
}
.top-bar,
.progress-area .song-timer,
.controls,
.music-list .header,
.music-list ul li,
.request-menu .header,
.settings-menu .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar i {
  font-size: 30px;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.top-bar i:first-child {
  margin-left: -7px;
}
.top-bar span {
  font-size: 18px;
  margin-left: -3px;
  color: var(--lightblack);
  transition: color 0.5s ease;
}
.img-area {
  width: 100%;
  margin-top: 25px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.img-area img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 15px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.song-details {
  text-align: center;
  margin: 30px 0;
  position: relative;
  padding: 0 35px;
}
.song-details p {
  color: var(--lightblack);
  transition: color 0.5s ease;
}
.song-details .name {
  font-size: 21px;
  transition: opacity 0.3s ease;
}
.song-details .artist {
  font-size: 18px;
  opacity: 0.9;
  line-height: 35px;
  transition: opacity 0.3s ease;
}
.song-details .favorite-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--lightblack);
  cursor: pointer;
  transition: all 0.3s ease;
}
.song-details .favorite-icon:hover {
  transform: translateY(-50%) scale(1.1);
}
.song-details .favorite-icon.favorited {
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.progress-area {
  height: 6px;
  width: 100%;
  border-radius: 50px;
  background: #f0f0f0;
  cursor: pointer;
  position: relative;
  transition: background 0.5s ease;
}
.progress-area .progress-bar {
  height: inherit;
  width: 0%;
  position: relative;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink) 0%, var(--violet) 100%);
}
.progress-bar::before {
  content: "";
  position: absolute;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  top: 50%;
  right: -5px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  background: inherit;
  transition: opacity 0.2s ease;
}
.progress-area:hover .progress-bar::before {
  opacity: 1;
  pointer-events: auto;
}
.progress-area .song-timer {
  margin-top: 2px;
}
.song-timer span {
  font-size: 13px;
  color: var(--lightblack);
  transition: color 0.5s ease;
}
.controls {
  margin: 40px 0 5px 0;
  justify-content: center; /* Center play/pause and volume */
  gap: 20px;
}
.controls i {
  font-size: 28px;
  user-select: none;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.controls .play-pause {
  height: 54px;
  width: 54px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(var(--white) 0%, var(--darkwhite) 100%);
  box-shadow: 0px 0px 5px var(--pink);
  position: relative;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.play-pause::before {
  position: absolute;
  content: "";
  height: 43px;
  width: 43px;
  border-radius: inherit;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
}
.play-pause i {
  height: 43px;
  width: 43px;
  line-height: 43px;
  text-align: center;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: absolute;
}
/* --- Volume Slider Panel --- */
.volume-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.volume-wrapper i {
  font-size: 28px;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.volume-panel {
  position: absolute;
  bottom: -20px; /* above the button */
  left: -30%;
  transform: translateX(-50%) translateY(10px);
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.volume-wrapper.show .volume-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.volume-panel input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink) 0%, var(--violet) 100%);
  cursor: pointer;
}

.volume-panel input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--pink);
  cursor: pointer;
  margin-top: -4px;
}

.volume-panel input[type="range"]::-moz-range-thumb {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--pink);
  cursor: pointer;
}


.music-list {
  position: absolute;
  background: var(--white);
  width: 100%;
  left: 0;
  bottom: -55%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease-out, background 0.5s ease, box-shadow 0.5s ease;
}
.music-list.show {
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}
.header .row {
  display: flex;
  align-items: center;
  font-size: 19px;
  color: var(--lightblack);
  transition: color 0.5s ease;
}
.header .row i {
  cursor: default;
}
.header .row span {
  margin-left: 5px;
}
.header #close {
  font-size: 22px;
  color: var(--lightblack);
  transition: color 0.5s ease;
}
.music-list ul {
  margin: 10px 0;
  max-height: 260px;
  overflow: auto;
}
.music-list ul::-webkit-scrollbar {
  width: 0px;
}
.music-list ul li {
  list-style: none;
  display: flex;
  cursor: pointer;
  padding-bottom: 10px;
  margin-bottom: 5px;
  color: var(--lightblack);
  border-bottom: 1px solid #E5E5E5;
  transition: color 0.5s ease, border-bottom 0.5s ease;
}
.music-list ul li:last-child {
  border-bottom: 0px;
}
.music-list ul li .row span {
  font-size: 17px;
}
.music-list ul li .row p {
  opacity: 0.9;
}
ul li .audio-duration {
  font-size: 16px;
}
ul li.playing {
  pointer-events: none;
  color: var(--violet);
}

/* --- Song Request Menu --- */
.request-menu {
  position: absolute;
  background: var(--white);
  width: 100%;
  left: 0;
  bottom: -55%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease-out, background 0.5s ease, box-shadow 0.5s ease;
}
.request-menu.show {
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}
.request-menu .request-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 3px solid var(--pink);
  transition: background 0.5s ease, border-color 0.5s ease;
}
.request-menu .request-info i {
  font-size: 20px;
  color: var(--pink);
  flex-shrink: 0;
  margin-top: 2px;
}
.request-menu .request-info-text {
  flex: 1;
}
.request-menu .request-info-text p {
  font-size: 13px;
  color: var(--lightblack);
  line-height: 1.5;
  margin: 0 0 5px 0;
  transition: color 0.5s ease;
}
.request-menu .request-info-text p:last-child {
  margin-bottom: 0;
}
.request-menu .request-info-text strong {
  font-weight: 600;
  color: var(--violet);
}
.request-menu .search-area {
  margin: 15px 0;
}
.request-menu .search-area input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  font-size: 15px;
  color: var(--lightblack);
  outline: none;
  transition: border-color 0.3s ease, background 0.5s ease, color 0.5s ease;
}
.request-menu .search-area input:focus {
  border-color: var(--pink);
}
.request-menu ul {
  margin: 10px 0;
  max-height: 260px;
  overflow: auto;
}
.request-menu ul::-webkit-scrollbar {
  width: 0px;
}
.request-menu ul li {
  list-style: none;
  display: flex;
  cursor: pointer;
  padding: 10px 5px;
  margin-bottom: 5px;
  color: var(--lightblack);
  border-bottom: 1px solid #E5E5E5;
  transition: background 0.2s ease, color 0.5s ease, border-bottom 0.5s ease;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.request-menu ul li:nth-child(1) { animation-delay: 0.05s; }
.request-menu ul li:nth-child(2) { animation-delay: 0.1s; }
.request-menu ul li:nth-child(3) { animation-delay: 0.15s; }
.request-menu ul li:nth-child(4) { animation-delay: 0.2s; }
.request-menu ul li:nth-child(5) { animation-delay: 0.25s; }
.request-menu ul li:nth-child(6) { animation-delay: 0.3s; }
.request-menu ul li:nth-child(7) { animation-delay: 0.35s; }
.request-menu ul li:nth-child(8) { animation-delay: 0.4s; }
.request-menu ul li:nth-child(9) { animation-delay: 0.45s; }
.request-menu ul li:nth-child(10) { animation-delay: 0.5s; }
.request-menu ul li:hover {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px 8px;
}
.request-menu ul li:last-child {
  border-bottom: 0px;
}
.request-menu ul li .row {
  flex: 1;
  min-width: 0;
}
.request-menu ul li .row span {
  font-size: 16px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.request-menu ul li .row p {
  opacity: 0.9;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.request-menu ul li .favorite-icon {
  font-size: 22px;
  color: var(--lightblack);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.request-menu ul li .favorite-icon:hover {
  transform: scale(1.2);
}
.request-menu ul li .favorite-icon.favorited {
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.request-menu ul li .request-btn {
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.request-menu ul li .request-btn:hover {
  transform: scale(1.05);
}
.request-menu ul li .request-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --- Settings Menu --- */
.settings-menu {
  position: absolute;
  background: var(--white);
  width: 100%;
  left: 0;
  bottom: -55%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease-out, background 0.5s ease, box-shadow 0.5s ease;
}
.settings-menu.show {
  bottom: 0;
  opacity: 1;
  pointer-events: auto;
}
.settings-content {
  margin-top: 15px;
}
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.setting-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lightblack);
  transition: color 0.5s ease;
}
.setting-label i {
  font-size: 24px;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.setting-label span {
  font-size: 17px;
  font-weight: 500;
}
.setting-divider {
  height: 1px;
  background: #E5E5E5;
  margin: 5px 0;
  transition: background 0.5s ease;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
input:checked + .slider {
  background: linear-gradient(90deg, var(--pink) 0%, var(--violet) 100%);
}
input:checked + .slider:before {
  transform: translateX(24px);
}

/* About Section */
.about-section {
  padding-bottom: 10px;
}
.about-content {
  padding: 10px 0;
  color: var(--lightblack);
  transition: color 0.5s ease;
}
.about-content .version {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--violet);
}
.about-content .description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
  opacity: 0.9;
}
.about-content .copyright {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 10px;
}


/* Dark Mode Styles */
body.dark-mode {
  background: linear-gradient(#2d1b3d 0%, #1a1a2e 100%);
}
body.dark-mode .wrapper {
  background: #1e1e1e;
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
}
body.dark-mode .top-bar i,
body.dark-mode .top-bar span,
body.dark-mode .song-details p,
body.dark-mode .song-timer span,
body.dark-mode .setting-label,
body.dark-mode .about-content,
body.dark-mode .header .row,
body.dark-mode #close,
body.dark-mode #close-request,
body.dark-mode #close-settings {
  color: #e0e0e0;
}
body.dark-mode .song-details .favorite-icon,
body.dark-mode .request-menu ul li .favorite-icon {
  color: #e0e0e0;
}
body.dark-mode .progress-area {
  background: #2a2a2a;
}
body.dark-mode .play-pause {
  background: linear-gradient(#2a2a2a 0%, #1e1e1e 100%);
  box-shadow: 0px 0px 5px var(--violet);
}
body.dark-mode .music-list,
body.dark-mode .request-menu,
body.dark-mode .settings-menu {
  background: #1e1e1e;
  box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.5);
}
body.dark-mode .music-list ul li,
body.dark-mode .request-menu ul li {
  color: #e0e0e0;
  border-bottom: 1px solid #333;
}
body.dark-mode .request-menu ul li:hover {
  background: #2a2a2a;
}
body.dark-mode .request-menu .search-area input {
  background: #2a2a2a;
  color: #e0e0e0;
  border-color: #333;
}
body.dark-mode .request-menu .search-area input:focus {
  border-color: var(--violet);
}
body.dark-mode .request-menu .request-info {
  background: #2a2a2a;
  border-left-color: var(--violet);
}
body.dark-mode .request-menu .request-info i {
  color: var(--violet);
}
body.dark-mode .request-menu .request-info-text p {
  color: #e0e0e0;
}
body.dark-mode .request-menu .request-info-text strong {
  color: var(--pink);
}
body.dark-mode .setting-divider {
  background: #333;
}

/* --- Trans Flag Theme (Easter Egg) --- */
body.trans-theme {
  background: linear-gradient(#5BCEFA 0%, #F5A9B8 100%);
}
body.dark-mode.trans-theme {
  background: linear-gradient(#4A9AC7 0%, #C77A91 100%);
}
/* Update all pink/violet gradients to trans flag colors */
body.trans-theme .top-bar i,
body.trans-theme .song-details .favorite-icon.favorited,
body.trans-theme .request-menu ul li .favorite-icon.favorited,
body.trans-theme .setting-label i,
body.trans-theme .controls i,
body.trans-theme .volume-wrapper i,
body.trans-theme .success-notification i {
  background: linear-gradient(#5BCEFA 0%, #F5A9B8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.trans-theme .progress-area .progress-bar,
body.trans-theme .request-menu ul li .request-btn,
body.trans-theme input:checked + .slider,
body.trans-theme .warning-content button,
body.trans-theme .patch-notes-body::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #5BCEFA 0%, #F5A9B8 100%);
}
body.trans-theme .play-pause::before {
  background: radial-gradient(circle, #5BCEFA 0%, #F5A9B8 100%);
}
body.trans-theme .play-pause {
  box-shadow: 0px 0px 5px #5BCEFA;
}
body.trans-theme .request-menu .search-area input:focus {
  border-color: #5BCEFA;
}
body.trans-theme .request-menu .request-info {
  border-left-color: #5BCEFA;
}
body.trans-theme .request-menu .request-info i {
  color: #5BCEFA;
}
body.trans-theme .request-menu .request-info-text strong {
  color: #F5A9B8;
}
body.trans-theme .about-content .version {
  color: #5BCEFA;
}
body.trans-theme .warning-content i,
body.trans-theme .warning-content p span {
  background: linear-gradient(#5BCEFA 0%, #F5A9B8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.trans-theme .patch-notes-content .header h2 i,
body.trans-theme .patch-note h3 {
  background: linear-gradient(#5BCEFA 0%, #F5A9B8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.trans-theme .volume-panel input[type="range"] {
  background: linear-gradient(90deg, #5BCEFA 0%, #F5A9B8 100%);
}
body.trans-theme .volume-panel input[type="range"]::-webkit-slider-thumb {
  border-color: #5BCEFA;
}
body.trans-theme .volume-panel input[type="range"]::-moz-range-thumb {
  border-color: #5BCEFA;
}
/* Dark mode trans theme adjustments */
body.dark-mode.trans-theme .request-menu .search-area input:focus {
  border-color: #5BCEFA;
}
body.dark-mode.trans-theme .request-menu .request-info {
  border-left-color: #5BCEFA;
}
body.dark-mode.trans-theme .request-menu .request-info i {
  color: #5BCEFA;
}
body.dark-mode.trans-theme .request-menu .request-info-text strong {
  color: #F5A9B8;
}
body.dark-mode.trans-theme .play-pause {
  box-shadow: 0px 0px 5px #5BCEFA;
}

/* --- Cooldown Warning Popup --- */
.warning-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.warning-popup.show {
  opacity: 1;
  pointer-events: auto;
}
.warning-content {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease, background 0.5s ease;
}
.warning-popup.show .warning-content {
  transform: scale(1);
}
.warning-content i {
  font-size: 48px;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}
.warning-content h3 {
  font-size: 22px;
  color: var(--lightblack);
  margin-bottom: 10px;
  transition: color 0.5s ease;
}
.warning-content p {
  font-size: 16px;
  color: var(--lightblack);
  margin-bottom: 20px;
  line-height: 1.5;
  transition: color 0.5s ease;
}
.warning-content p span {
  font-weight: 600;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.warning-content button {
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  color: var(--white);
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.warning-content button:hover {
  transform: scale(1.05);
}
.warning-content button:active {
  transform: scale(0.95);
}

/* Dark mode for warning popup */
body.dark-mode .warning-content {
  background: #1e1e1e;
}
body.dark-mode .warning-content h3,
body.dark-mode .warning-content p {
  color: #e0e0e0;
}

/* --- Success Notification --- */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--white);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px;
  z-index: 2000;
  opacity: 0;
  transform: translateX(400px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.success-notification.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.success-notification i {
  font-size: 32px;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.notification-text {
  flex: 1;
}
.notification-text strong {
  display: block;
  font-size: 16px;
  color: var(--lightblack);
  margin-bottom: 4px;
  transition: color 0.5s ease;
}
.notification-text p {
  font-size: 13px;
  color: var(--lightblack);
  opacity: 0.8;
  line-height: 1.4;
  margin: 0;
  transition: color 0.5s ease;
}

/* Dark mode for notification */
body.dark-mode .success-notification {
  background: #1e1e1e;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}
body.dark-mode .notification-text strong,
body.dark-mode .notification-text p {
  color: #e0e0e0;
}

/* --- Patch Notes Modal --- */
.patch-notes-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.patch-notes-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.patch-notes-content {
  background: var(--white);
  border-radius: 15px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease, background 0.5s ease;
  overflow: hidden;
}
.patch-notes-modal.show .patch-notes-content {
  transform: scale(1);
}
.patch-notes-content .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 2px solid #f0f0f0;
  transition: border-color 0.5s ease;
}
.patch-notes-content .header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  color: var(--lightblack);
  margin: 0;
  transition: color 0.5s ease;
}
.patch-notes-content .header h2 i {
  font-size: 28px;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.patch-notes-content .header #close-patch-notes {
  font-size: 28px;
  color: var(--lightblack);
  cursor: pointer;
  transition: color 0.5s ease, transform 0.2s ease;
}
.patch-notes-content .header #close-patch-notes:hover {
  transform: scale(1.1);
}
.patch-notes-body {
  padding: 20px 25px;
  overflow-y: auto;
  flex: 1;
}
.patch-notes-body::-webkit-scrollbar {
  width: 8px;
}
.patch-notes-body::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
.patch-notes-body::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  border-radius: 10px;
}
.patch-note {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  transition: border-color 0.5s ease;
}
.patch-note:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.patch-note h3 {
  font-size: 20px;
  color: var(--lightblack);
  margin: 0 0 5px 0;
  background: linear-gradient(var(--pink) 0%, var(--violet) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: color 0.5s ease;
}
.patch-note .date {
  font-size: 14px;
  color: var(--lightblack);
  opacity: 0.7;
  margin: 0 0 10px 0;
  transition: color 0.5s ease;
}
.patch-note .description {
  font-size: 15px;
  color: var(--lightblack);
  opacity: 0.85;
  margin: 0 0 15px 0;
  line-height: 1.5;
  font-style: italic;
  transition: color 0.5s ease;
}
.patch-note ul {
  margin: 0;
  padding-left: 20px;
}
.patch-note li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--lightblack);
  margin-bottom: 8px;
  transition: color 0.5s ease;
}
.patch-note li:last-child {
  margin-bottom: 0;
}

/* Patch notes button styling */
.setting-item#patch-notes-btn {
  cursor: pointer;
  transition: background 0.2s ease;
}
.setting-item#patch-notes-btn:hover {
  background: #f9f9f9;
  border-radius: 8px;
}
.setting-item#patch-notes-btn i:last-child {
  color: var(--lightblack);
  opacity: 0.5;
  font-size: 24px;
  transition: color 0.5s ease;
}

/* Dark mode for patch notes */
body.dark-mode .patch-notes-content {
  background: #1e1e1e;
}
body.dark-mode .patch-notes-content .header {
  border-bottom-color: #333;
}
body.dark-mode .patch-notes-content .header h2,
body.dark-mode .patch-notes-content .header #close-patch-notes,
body.dark-mode .patch-note .date,
body.dark-mode .patch-note .description,
body.dark-mode .patch-note li {
  color: #e0e0e0;
}
body.dark-mode .patch-notes-body::-webkit-scrollbar-track {
  background: #2a2a2a;
}
body.dark-mode .patch-note {
  border-bottom-color: #333;
}
body.dark-mode .setting-item#patch-notes-btn:hover {
  background: #2a2a2a;
}

/* --- Mobile Optimization --- */
@media only screen and (max-width: 768px) {
  html {
    height: 100%;
  }
  
  body {
    padding: 0;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    align-items: flex-start;
  }
  
  .wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    margin: 0;
  }
  
  .top-bar {
    padding: 5px 0 10px 0;
  }
  
  .top-bar i {
    font-size: 28px;
  }
  
  .top-bar span {
    font-size: 16px;
  }
  
  .img-area {
    margin-top: 20px;
    max-height: 40vh;
  }
  
  .img-area img {
    max-height: 40vh;
    width: auto;
    max-width: 100%;
  }
  
  .song-details {
    margin: 20px 0;
    padding: 0 30px 0 0;
  }
  
  .song-details .name {
    font-size: 19px;
  }
  
  .song-details .artist {
    font-size: 16px;
  }
  
  .song-details .favorite-icon {
    font-size: 24px;
    right: -5px;
  }
  
  .controls {
    margin: 30px 0 5px 0;
  }
  
  .controls i {
    font-size: 26px;
  }
  
  .play-pause {
    height: 50px !important;
    width: 50px !important;
  }
  
  .play-pause::before {
    height: 40px !important;
    width: 40px !important;
  }
  
  .play-pause i {
    height: 40px !important;
    width: 40px !important;
    line-height: 40px !important;
  }
  
  .volume-panel {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 100px;
  }
  
  .volume-wrapper.show .volume-panel {
    transform: translateX(-50%) translateY(0);
  }
  
  /* Adjust menus for mobile */
  .music-list,
  .request-menu,
  .settings-menu {
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .music-list.show,
  .request-menu.show,
  .settings-menu.show {
    bottom: 0;
  }
  
  .header .row span {
    font-size: 17px;
  }
  
  .music-list ul,
  .request-menu ul {
    max-height: 50vh;
  }
  
  .request-menu .search-area input {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .request-menu ul li .row span {
    font-size: 14px;
  }
  
  .request-menu ul li .row p {
    font-size: 12px;
  }
  
  .request-menu ul li .favorite-icon {
    font-size: 20px;
  }
  
  .request-btn {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  
  .setting-item {
    padding: 12px 0;
  }
  
  .setting-label span {
    font-size: 16px;
  }
  
  .about-content .version {
    font-size: 14px;
  }
  
  .about-content .description {
    font-size: 13px;
  }
  
  .about-content .copyright {
    font-size: 12px;
  }
  
  /* Warning popup adjustments */
  .warning-content {
    max-width: 90%;
    padding: 25px 20px;
  }
  
  .warning-content i {
    font-size: 40px;
  }
  
  .warning-content h3 {
    font-size: 20px;
  }
  
  .warning-content p {
    font-size: 15px;
  }
  
  .warning-content button {
    padding: 10px 35px;
    font-size: 15px;
  }
  
  /* Notification adjustments */
  .success-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 12px 15px;
  }
  
  .success-notification i {
    font-size: 28px;
  }
  
  .notification-text strong {
    font-size: 15px;
  }
  
  .notification-text p {
    font-size: 12px;
  }
  
  /* Patch notes modal adjustments */
  .patch-notes-modal {
    padding: 10px;
  }
  
  .patch-notes-content {
    max-height: 90vh;
  }
  
  .patch-notes-content .header {
    padding: 15px 20px;
  }
  
  .patch-notes-content .header h2 {
    font-size: 20px;
  }
  
  .patch-notes-content .header h2 i {
    font-size: 24px;
  }
  
  .patch-notes-content .header #close-patch-notes {
    font-size: 24px;
  }
  
  .patch-notes-body {
    padding: 15px 20px;
  }
  
  .patch-note h3 {
    font-size: 18px;
  }
  
  .patch-note .date {
    font-size: 13px;
  }
  
  .patch-note li {
    font-size: 14px;
  }
}

/* Extra small devices */
@media only screen and (max-width: 380px) {
  .wrapper {
    padding: 15px;
  }
  
  .song-details {
    padding: 0 25px 0 0;
  }
  
  .top-bar i {
    font-size: 26px;
  }
  
  .top-bar span {
    font-size: 15px;
  }
  
  .song-details .name {
    font-size: 18px;
  }
  
  .song-details .artist {
    font-size: 15px;
  }
  
  .song-details .favorite-icon {
    font-size: 22px;
  }
  
  .play-pause {
    height: 46px !important;
    width: 46px !important;
  }
  
  .play-pause::before {
    height: 37px !important;
    width: 37px !important;
  }
  
  .play-pause i {
    height: 37px !important;
    width: 37px !important;
    line-height: 37px !important;
  }
  
  .controls i {
    font-size: 24px;
  }
}

/* Landscape orientation on mobile */
@media only screen and (max-height: 600px) and (orientation: landscape) {
  .wrapper {
    min-height: 100vh;
  }
  
  .img-area {
    max-height: 30vh;
  }
  
  .img-area img {
    max-height: 30vh;
  }
  
  .song-details {
    margin: 15px 0;
  }
  
  .controls {
    margin: 20px 0 5px 0;
  }
  
  .music-list,
  .request-menu,
  .settings-menu {
    max-height: 80vh;
  }
}
