:root {
  --bg-main: #0d0d13;
  --bg-soft: #15151d;

  --glass-bg: rgba(18, 18, 26, 0.75);
  --glass-border: rgba(255,255,255,0.08);
  --glass-highlight: rgba(255,255,255,0.05);

  --text-main: #ffffff;
  --text-muted: #9a9aa1;
  --accent: linear-gradient(135deg, #12d6c9, #0bbcd6);
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 14px 16px;
}

.top-spacer {
  flex: 1;
}

.icon-btn {
  background: var(--bg-soft);
  border: none;
  border-radius: 12px;
  padding: 10px;
  color: white;
  cursor: pointer;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 26px;
  opacity: 0.9;
}

.content {
  padding: 0 16px 240px;
}

.title {
  font-size: 26px;
  margin: 18px 0 20px;
}

.hidden {
  display: none !important;
}

i[data-lucide] {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.featured {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.featured-card {
  min-width: 260px;
  height: 150px;
  border-radius: 24px;
  background: #0f2e32;
  position: relative;
  flex-shrink: 0;
}

.featured-text {
  position: absolute;
  left: 18px;
  bottom: 18px;
}

.featured-title {
  font-size: 16px;
  font-weight: 500;
}

.featured-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.play-circle {
  position: absolute;
  right: 18px;
  bottom: 18px;

  width: 42px;
  height: 42px;
  border-radius: 50%;

  border: none;
  background: var(--accent);
  color: #000;

  display: grid;
  place-items: center;
  cursor: pointer;
}

.play-circle i {
  width: 18px;
  height: 18px;
}

.tags {
  display: flex;
  gap: 10px;
  margin: 20px 0 14px;
}

.tag {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;

  background: var(--bg-soft);
  color: var(--text-muted);

  cursor: pointer;
  user-select: none;
}

.tag.active {
  background: var(--accent);
  color: #000;
}

.section-title {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-soft);
  flex-shrink: 0;
}

.list-info {
  display: flex;
  flex-direction: column;
}

.list-title {
  font-size: 15px;
  line-height: 1.2;
}

.list-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.heart {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.heart.active {
  color: #ffffff;
}

.mini-player {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 80px;
  height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;

  background: var(--glass-bg);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);

  border-radius: 30px 30px 0 0;
  border: 1px solid var(--glass-border);
  border-bottom: none;

  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 18px 44px rgba(0,0,0,0.45);

  opacity: 0;
  transform: translateY(28px) scaleY(0.85);
  transform-origin: bottom;
  pointer-events: none;

  transition:
    opacity .25s ease,
    transform .45s cubic-bezier(.2,.8,.2,1),
    backdrop-filter .45s ease,
    border-radius .35s ease;

  z-index: 20;
}

.mini-player.active {
  opacity: 1;
  transform: translateY(0) scaleY(1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: auto;
}

.mini-player::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.mini-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent);
}

.mini-info {
  display: flex;
  flex-direction: column;
}

.mini-title {
  font-size: 15px;
}

.mini-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mini-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;

  background: transparent;
  display: grid;
  place-items: center;

  color: white;
  cursor: pointer;
}

.mini-controls button:active {
  transform: scale(0.9);
}

#loop-btn.active {
  color: #00cf94;
}

.mini-controls i {
  width: 20px;
  height: 20px;
}

.mini-player.active {
  bottom: calc(8px + 72px);
}

.bottom-nav.with-player {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.expanded-player {
  position: fixed;
  inset: 0;
  z-index: 50;

  background: radial-gradient(
    circle at top,
    rgba(0,179,197,0.35),
    rgba(13,13,19,0.95) 70%
  );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);

  transition:
    transform .55s cubic-bezier(.2,.8,.2,1),
    opacity .35s ease;
}

.expanded-player.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.expanded-grabber {
  position: absolute;
  top: 12px;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.expanded-wave {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  margin-bottom: 32px;
  position: relative;
}

.expanded-wave::before,
.expanded-wave::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  opacity: 0;
}

.expanded-player.playing .expanded-wave::before {
  animation: wavePulse 2.2s ease-in-out infinite;
  opacity: 1;
}

.expanded-player.playing .expanded-wave::after {
  animation: wavePulse 2.2s ease-in-out infinite 1.1s;
  opacity: 1;
}

@keyframes wavePulse {
  0% {
    transform: scale(0.95);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.35;
  }
}

.expanded-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.expanded-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.expanded-controls {
  display: flex;
  gap: 28px;
}

.expanded-controls button {
  width: 56px;
  height: 56px;
  border-radius: 50%;

  background: rgba(255,255,255,0.12);
  border: none;

  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.expanded-controls i {
  width: 26px;
  height: 26px;
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 72px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid var(--glass-border);

  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 -10px 30px rgba(0,0,0,0.6);

  z-index: 10;
}

.bottom-nav:not(.with-player) {
  border-radius: 32px;
}

.bottom-nav.with-player {
  border-radius: 0 0 32px 32px;
  border-top: none;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.bottom-nav.with-player::before {
  opacity: 0;
}

.bottom-nav span {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.bottom-nav span.active {
  color: white;
}

.bottom-nav i {
  width: 22px;
  height: 22px;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;

  background: #0b0b0f;
  background-image:
    radial-gradient(circle at top, rgba(0,179,197,0.12), transparent 60%);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);

  transition:
    opacity .25s ease,
    transform .35s ease;
}

.login-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.login-grabber {
  position: absolute;
  top: 14px;
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.login-box {
  width: calc(100% - 48px);
  max-width: 380px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  text-align: center;
  background: transparent;
}

.login-logo {
  width: 180px;
  margin: -20px auto 60px;
}

.login-box label {
  text-align: left;
  font-size: 11px;
  letter-spacing: 1px;
  color: #bdbdbd;
  text-transform: uppercase;
  margin-bottom: -4px;
}

.login-box input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 14px 16px;

  color: white;
  font-size: 15px;
  outline: none;

  transition: border .25s ease;
}

.login-box input::placeholder {
  color: rgba(255,255,255,0.5);
}

.login-box input:focus {
  border: 1px solid transparent;
  background-image:
    linear-gradient(#0b0b0f, #0b0b0f),
    linear-gradient(90deg, #00b3c5, #00cf94);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.login-box button {
  margin-top: 22px;
  padding: 14px;
  border-radius: 6px;
  border: none;

  background: white;
  color: black;

  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.login-error {
  font-size: 13px;
  color: #ff4d4d;
  margin-top: 8px;
}

.login-footer {
  position: absolute;
  bottom: 18px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 75;

  background: #0b0b0f;
  background-image:
    radial-gradient(circle at top, rgba(0,179,197,0.12), transparent 60%);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);

  transition:
    opacity .25s ease,
    transform .35s ease;
}

.profile-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-grabber {
  position: absolute;
  top: 14px;
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.profile-box {
  width: calc(100% - 48px);
  max-width: 380px;

  display: flex;
  flex-direction: column;
  gap: 18px;

  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 6px;

  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
}

.profile-avatar i {
  width: 30px;
  height: 30px;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
}

.profile-role {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.profile-btn {
  padding: 14px;
  border-radius: 10px;

  background: rgba(255,255,255,0.12);
  border: none;

  color: white;
  font-size: 15px;
  cursor: pointer;
}

.profile-logout {
  margin-top: 24px;
  background: transparent;
  border: none;

  color: #ff6b6b;
  font-size: 14px;
  cursor: pointer;
}

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;

  background: #0b0b0f;
  background-image:
    radial-gradient(circle at top, rgba(0,179,197,0.12), transparent 60%);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);

  transition:
    opacity .25s ease,
    transform .35s ease;
}

.upload-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.upload-grabber {
  position: absolute;
  top: 14px;
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.upload-box {
  width: calc(100% - 48px);
  max-width: 380px;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-box h2 {
  text-align: center;
  margin-bottom: 6px;
}

.upload-box label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #bdbdbd;
}

.upload-box input {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 14px;

  color: white;
  font-size: 15px;
}

.upload-box input:focus {
  border: 1px solid transparent;
  background-image:
    linear-gradient(#0b0b0f, #0b0b0f),
    linear-gradient(90deg, #00b3c5, #00cf94);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.upload-box button {
  margin-top: 16px;
  padding: 14px;
  border-radius: 6px;
  border: none;

  background: white;
  color: black;

  font-weight: 600;
  cursor: pointer;
}

.upload-error {
  text-align: center;
  font-size: 13px;
  color: #ff4d4d;
}

.add-sound-card {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px;
  margin-bottom: 18px;

  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.25);

  cursor: pointer;
}

.add-sound-card:hover {
  background: rgba(255,255,255,0.08);
}

.add-sound-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;

  background: var(--accent);

  display: grid;
  place-items: center;

  color: black;
  flex-shrink: 0;
}

.add-sound-icon i {
  width: 22px;
  height: 22px;
}

.add-sound-text {
  display: flex;
  flex-direction: column;
}

.add-sound-title {
  font-size: 15px;
}

.add-sound-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.category-picker {
  position: relative;
}

.category-selected {
  padding: 14px 16px;
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border: 1px solid rgba(255,255,255,0.18);

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
}

.category-selected i {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.category-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);

  box-shadow:
    0 12px 32px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.06);

  overflow: hidden;
  z-index: 120;
}

.category-item {
  position: relative;

  padding: 14px 52px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 14px;
  cursor: pointer;
}

.category-item:hover {
  background: rgba(255,255,255,0.04);
}

.category-item .edit-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);

  width: 18px;
  height: 18px;

  opacity: 0.6;
  cursor: pointer;
  pointer-events: auto;
}

.category-item .edit-icon:hover {
  opacity: 1;
}

.category-item.new-category {
  justify-content: center;
  align-items: center;
  gap: 4px;

  padding-top: 20px; 
  padding-right: 20px;

  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

.category-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}

.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.bottom-sheet.active {
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity .3s ease;
}

.bottom-sheet.active .sheet-backdrop {
  opacity: 1;
}

.sheet-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  background: rgba(18,18,26,0.78);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);

  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px 28px 0 0;

  padding: 20px 20px 26px;

  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.bottom-sheet.active .sheet-container {
  transform: translateY(0);
}

.sheet-grabber {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  margin: 0 auto 18px;
}

.sheet-container h3 {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 22px;
}

#sheet-input {
  width: 100%;
  background: transparent;

  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);

  padding: 12px 2px 10px;
  margin-bottom: 26px;

  font-size: 17px;
  text-align: center;
  color: white;

  outline: none;
}

#sheet-input::placeholder {
  color: rgba(255,255,255,0.35);
}

#sheet-input:focus {
  border-bottom-color: rgba(255,255,255,0.5);
}

.sheet-primary {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  padding: 8px 20px;
  border-radius: 999px;

  background: #ffffff;
  color: #000;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

.file-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.25);

  cursor: pointer;
}

.file-picker i {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.file-picker span {
  font-size: 14px;
  opacity: 0.85;
}

.file-name {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

.sheet-primary {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  padding: 8px 20px;
  border-radius: 999px;

  background: #ffffff;
  color: #000;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
}

.bottom-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);

  transition:
    opacity .25s ease,
    transform .25s ease;
}

body.sheet-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.sheet-actions {
  position: relative;
  margin-top: 24px;
  height: 40px;
}

.sheet-primary {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  padding: 8px 20px;
  border-radius: 999px;

  background: #ffffff;
  color: #000;

  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sheet-delete {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  background: transparent;
  border: none;

  display: flex;
  align-items: center;
  gap: 6px;

  color: #ff5f57;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.list-item.selected {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
}

.list-item {
  position: relative;
}

.list-item.selected {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
}

.select-icon {
  margin-left: auto;
  display: grid;
  place-items: center;
  color: #00cf94;
}

.select-icon i {
  width: 20px;
  height: 20px;
}

.select-icon.hidden {
  display: none;
}
.list-item {
  display: flex;
  align-items: center;
}

.list-item.selected {
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
}

.select-icon {
  margin-left: auto;
  color: #00cf94;
  display: grid;
  place-items: center;
}

.select-icon i {
  width: 20px;
  height: 20px;
}

.select-icon.hidden {
  display: none;
}
.select-icon {
  margin-left: auto;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.6);
}

.list-item.selected .select-icon {
  color: #ffffff;
}

.select-icon i {
  width: 18px;
  height: 18px;
}

.heart {
  opacity: 1;
}


#sounds-list .list-item:hover .heart,
#sounds-list .list-item.playing .heart {
  opacity: 1;
}

#favorites-sounds .heart,
#favorites-playlists .heart {
  opacity: 1;
  pointer-events: auto;
}

#playlists-list .heart {
  opacity: 1;
  pointer-events: auto;
}

#playlists-list .list-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
}

#favorites-view .list {
  gap: 18px;
}

#favorites-view .list-item {
  padding: 6px 0;
}

#favorites-view .section-title {
  margin-top: 32px;
  margin-bottom: 14px;
}
#playlists-list .heart {
  opacity: 1 !important;
  pointer-events: auto;
}

#favorites-playlists .list-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
}

#favorites-playlists .heart {
  opacity: 1;
  pointer-events: auto;
}

.edit-icon {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.edit-icon:hover {
  color: #ffffff;
}

#sounds-list .edit-icon {
  margin-left: auto;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}


.list-item .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-item .icon-btn {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-item .icon-btn svg {
  width: 18px;
  height: 18px;
}

.list-item {
  display: flex;
  align-items: center;
}

.list-item .actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.list-item .icon-btn,
.list-item .heart {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
}

.list-item .heart {
  background: transparent;
}

.list-item svg {
  width: 18px;
  height: 18px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;

  background: radial-gradient(
    circle at top,
    rgba(0,179,197,0.35),
    rgba(13,13,19,0.95) 70%
  );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  display: flex;
  flex-direction: column;
  padding-top: calc(env(safe-area-inset-top) + 12px);

  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);

  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.2,.8,.2,1);
}

.search-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-grabber {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  margin: 0 auto 16px;
}

.search-box {
  width: calc(100% - 32px);
  max-width: 420px;
  margin: 0 auto;

  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 16px;
  padding: 14px 16px;

  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box i {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;

  color: white;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.search-box input::placeholder {
  color: rgba(255,255,255,0.45);
}

.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.search-section {
  margin-top: 20px;
}

.search-section h4 {
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 10px;
}

.search-section .list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-section .list-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}

.search-section .list-item:hover {
  background: rgba(255,255,255,0.1);
}

body.overlay-open {
  overflow: hidden;
  touch-action: none;
}
.overlay,
.login-overlay,
.upload-overlay,
.profile-overlay,
.search-overlay {
  touch-action: pan-y;
}
:root {
  --bg-main: #0d0d13;
  --bg-soft: #15151d;

  --glass-bg: rgba(18,18,26,0.75);
  --glass-border: rgba(255,255,255,0.08);
  --glass-highlight: rgba(255,255,255,0.05);

  --text-main: #ffffff;
  --text-muted: #9a9aa1;

  --accent: linear-gradient(135deg, #12d6c9, #0bbcd6);
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
}

.hidden {
  display: none !important;
}

i[data-lucide] {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 14px 16px;
}

.top-spacer {
  flex: 1;
}

.icon-btn {
  background: var(--bg-soft);
  border: none;
  border-radius: 12px;
  padding: 10px;
  color: white;
  cursor: pointer;
}

.logo img {
  height: 26px;
  opacity: .9;
}

.content {
  padding: 0 16px 220px;
}

.title {
  font-size: 26px;
  margin: 18px 0 20px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-soft);
}

.list-title {
  font-size: 15px;
}

.list-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.heart {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
}

.heart.active {
  color: white;
}

.upload-overlay,
.login-overlay,
.profile-overlay,
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;

  display: flex;
  justify-content: center;
  align-items: center;

  padding:
    calc(env(safe-area-inset-top) + 24px)
    16px
    calc(env(safe-area-inset-bottom) + 32px);

  background: radial-gradient(
    circle at top,
    rgba(0,179,197,.15),
    rgba(13,13,19,.95) 70%
  );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);

  transition:
    opacity .25s ease,
    transform .35s ease;
}

.upload-overlay.active,
.login-overlay.active,
.profile-overlay.active,
.search-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.upload-grabber,
.login-grabber,
.profile-grabber,
.search-grabber {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);

  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}

.upload-box,
.login-box,
.profile-box {
  width: 100%;
  max-width: 380px;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-box h2,
.login-box h2 {
  text-align: center;
  margin-bottom: 6px;
}

.upload-box label,
.login-box label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #bdbdbd;
}

.upload-box input,
.login-box input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 14px;

  color: white;
  font-size: 15px;
  outline: none;
}

.upload-box button,
.login-box button {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  border: none;

  background: white;
  color: black;
  font-weight: 600;
  cursor: pointer;
}

.category-picker {
  position: relative;
}

.category-selected {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);

  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.category-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;

  background: rgba(255,255,255,.06);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
  z-index: 120;
}

.file-picker {
  width: 100%;
  padding: 14px;
  border-radius: 14px;

  background: rgba(255,255,255,.06);
  border: 1px dashed rgba(255,255,255,.25);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  cursor: pointer;
}

.file-name {
  font-size: 12px;
  text-align: center;
  color: var(--text-muted);
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 72px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  background: var(--glass-bg);
  backdrop-filter: blur(14px);

  border: 1px solid var(--glass-border);
  border-radius: 32px;

  z-index: 10;
}

.bottom-nav span {
  color: rgba(255,255,255,.6);
}

.bottom-nav span.active {
  color: white;
}

.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.bottom-sheet.active {
  pointer-events: auto;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.sheet-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  background: rgba(18,18,26,.78);
  backdrop-filter: blur(28px);

  border-radius: 28px 28px 0 0;
  padding: 20px;

  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}

.bottom-sheet.active .sheet-container {
  transform: translateY(0);
}

.upload-box,
.login-box,
.profile-box {
  width: 100%;
  max-width: 380px;
  padding: 0 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

.upload-box input,
.login-box input,
.category-selected,
.file-picker,
.upload-box button {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.upload-box * {
  max-width: 100%;
}

.upload-grabber,
.login-grabber,
.profile-grabber,
.search-grabber {
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 480px) {

  .upload-overlay,
  .login-overlay,
  .profile-overlay {
    align-items: stretch;
  }

  .upload-box,
  .login-box,
  .profile-box {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    margin: 0;
    box-sizing: border-box;
  }

  .upload-box input,
  .upload-box button,
  .category-selected,
  .file-picker {
    width: 100%;
    max-width: 100%;
  }
}

.upload-grabber,
.login-grabber,
.profile-grabber {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 480px) {

  .search-box {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 14px;
  }

  .search-overlay {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-box input {
    width: 100%;
  }
}
.inline-search input {
  width: 100%;
  max-width: none;

  padding: 14px 16px;
  border-radius: 14px;

  background: rgba(255,255,255,0.12);
  border: none;

  color: white;
  font-size: 15px;

  outline: none;
}
.expanded-player {
  touch-action: none;
}

.expanded-player {
  touch-action: none;
  pointer-events: auto;
}
