
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body {
  background: #000;
  color: white;
  padding-top: 80px;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
}

.logo-text {
  font-weight: bold;
  font-size: 16px;
  line-height: 1.1;
  color: white;
}

.logo-text span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #ccc;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
}

.menu li a {
  text-decoration: none;
  color: #eee;
  font-size: 14px;
  transition: 0.3s;
}

.menu li a:hover { color: #a855f7; }
.menu li a.active { color: #a855f7; }

.btn-action {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 10px 20px;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 12px;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn-action:hover {
  opacity: 0.85;
  box-shadow: 0 0 15px rgba(99,102,241,0.5);
}

.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
  padding: 4px;
}

.page-hero {
  background: radial-gradient(ellipse at 60% 40%, rgba(99,102,241,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.15) 0%, transparent 50%),
              #020617;
  padding: 60px 60px 50px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-hero h1 span {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 28px;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.search-input:focus { border-color: #6366f1; }
.search-input::placeholder { color: #475569; }

.sort-select {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 12px 16px;
  color: #94a3b8;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.filters-bar {
  padding: 16px 60px;
  background: #020617;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.chip {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #1e293b;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.chip:hover { border-color: #6366f1; color: #6366f1; }
.chip.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; color: white; }

.stats-bar {
  padding: 10px 60px;
  background: #020617;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: #475569;
  display: flex;
  gap: 20px;
}

.stats-bar strong { color: #94a3b8; }

.table-header {
  display: grid;
  grid-template-columns: 40px 3fr 80px 1.2fr 1fr 1fr 160px;
  gap: 12px;
  padding: 12px 60px;
  background: #020617;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 80px;
  z-index: 50;
}

#virtual-container {
  position: relative;
  background: #020617;
}

.track-row {
  display: grid;
  grid-template-columns: 40px 3fr 80px 1.2fr 1fr 1fr 160px;
  gap: 12px;
  align-items: center;
  padding: 0 60px;
  height: 72px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.2s;
  position: absolute;
  left: 0; right: 0;
}

.track-row:hover { background: rgba(99,102,241,0.06); }

.track-row.playing {
  background: rgba(99,102,241,0.1);
  border-left: 3px solid #6366f1;
}

.track-num {
  font-size: 13px;
  color: #475569;
  text-align: center;
}
.track-row.playing .track-num { color: #6366f1; }

.track-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.track-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #1e293b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(99,102,241,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 8px;
}

.track-row:hover .play-overlay { opacity: 1; }

.play-overlay svg { width: 16px; height: 16px; fill: white; }

.track-meta { min-width: 0; }
.track-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist { font-size: 12px; color: #64748b; margin-top: 2px; }

.waveform-mini {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 28px;
}
.waveform-mini .bar {
  width: 2.5px;
  border-radius: 1px;
  background: #1e293b;
}
.track-row.playing .waveform-mini .bar { background: #6366f1; opacity: 0.8; }

.track-bpm {
  font-size: 13px;
  color: #e2e8f0;
}
.track-bpm span {
  display: block;
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.genre-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.genre-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #64748b;
}

.track-price {
  font-size: 14px;
  font-weight: 700;
  color: #a78bfa;
}
.track-price.free { color: #22c55e; font-size: 12px; }

.track-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: transparent;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  flex-shrink: 0;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { border-color: #6366f1; color: #6366f1; background: rgba(99,102,241,0.1); }
.icon-btn.liked { border-color: #ec4899; color: #ec4899; }

.dl-btn {
  padding: 7px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.dl-btn:hover {
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
  transform: scale(1.02);
}

.mini-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(2,6,23,0.97);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(99,102,241,0.3);
  display: flex;
  align-items: center;
  padding: 0 60px;
  gap: 24px;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mini-player.visible { transform: translateY(0); }

.player-info { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.player-thumb {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: #1e293b;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.player-name { font-size: 13px; font-weight: 600; }
.player-artist { font-size: 11px; color: #64748b; }

.player-controls { display: flex; align-items: center; gap: 12px; }

.ctrl-btn {
  background: none; border: none;
  cursor: pointer; color: #64748b;
  display: flex; align-items: center;
  padding: 4px; transition: color 0.2s;
}
.ctrl-btn:hover { color: white; }

.ctrl-btn.play-pause {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn.play-pause:hover { opacity: 0.85; }

.player-progress { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.prog-bar-wrap {
  height: 3px; background: #1e293b;
  border-radius: 2px; cursor: pointer;
}
.prog-bar-fill {
  height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px; width: 0%; transition: width 0.1s;
}
.prog-times {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #475569;
}

.player-vol { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.vol-slider {
  flex: 1; -webkit-appearance: none; height: 3px;
  border-radius: 2px; background: #1e293b; outline: none;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: #6366f1; cursor: pointer;
}

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  width: 100%; max-width: 460px;
  display: flex;
  transform: scale(0.93) translateY(20px);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
  margin: 0 16px;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-left { flex: 1; padding: 2.5rem; }

.modal-right {
  width: 45%;
  background: linear-gradient(135deg, #020617, #0f172a);
  position: relative;
  overflow: hidden;
}
.modal-right::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.5), transparent);
  top: 20%; left: 10%;
  filter: blur(60px);
}
.modal-right-content {
  position: relative; z-index: 1;
  padding: 2.5rem 1.5rem;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.modal-right-content h3 { font-size: 18px; margin-bottom: 12px; }
.modal-right-content p { font-size: 13px; color: #94a3b8; line-height: 1.6; }
.modal-right-content ul { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.modal-right-content ul li { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.modal-right-content ul li::before { content: '✓'; color: #22c55e; font-weight: 700; }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: #475569;
  cursor: pointer; font-size: 1.2rem;
  transition: color 0.2s;
}
.modal-close:hover { color: white; }

.modal-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.modal-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.modal-logo-text { font-size: 13px; font-weight: 700; }
.modal-logo-text span { display: block; font-size: 9px; color: #64748b; letter-spacing: 1.5px; }

.modal-left h2 { font-size: 20px; margin-bottom: 6px; }
.modal-sub { font-size: 13px; color: #64748b; margin-bottom: 20px; }
.modal-sub strong { color: #a78bfa; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: #94a3b8; margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px;
  background: #1e293b; border: 1px solid #334155;
  border-radius: 10px; color: white; font-size: 14px; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: #6366f1; }

.btn-green {
  width: 100%; padding: 12px; border: none;
  border-radius: 20px; background: #22c55e;
  color: white; font-weight: bold;
  cursor: pointer; transition: 0.3s; font-size: 14px; margin-top: 4px;
}
.btn-green:hover { background: #16a34a; }

.modal-divider { text-align: center; font-size: 12px; color: #475569; margin: 12px 0; }

.btn-google {
  width: 100%; padding: 11px; border-radius: 10px;
  background: #1e293b; border: 1px solid #334155;
  color: white; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: 0.2s;
}
.btn-google:hover { border-color: #6366f1; }

.modal-footer { text-align: center; font-size: 12px; color: #475569; margin-top: 16px; }
.modal-footer a { color: #6366f1; cursor: pointer; text-decoration: none; }

.toast {
  position: fixed; bottom: 90px; right: 2rem;
  background: #0f172a; border: 1px solid #6366f1;
  border-radius: 10px; padding: 12px 18px;
  font-size: 13px; z-index: 600;
  display: flex; align-items: center; gap: 8px;
  transform: translateX(130%);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 300px;
}
.toast.show { transform: translateX(0); }

.footer { background: #000; color: white; padding: 60px 60px 20px; margin-bottom: 0; }
.footer.player-open { margin-bottom: 72px; }

.footer-container {
  max-width: 1200px; margin: auto;
  display: flex; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer-left { max-width: 350px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.footer-logo img {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: contain;
}
.footer-logo-text { font-size: 14px; font-weight: 700; }
.footer-logo-text span { display: block; font-size: 9px; color: #64748b; letter-spacing: 2px; }
.footer-desc { font-size: 14px; color: #64748b; line-height: 1.7; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h3 { font-size: 14px; margin-bottom: 6px; }
.footer-links a { color: #cbd5f5; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #60a5fa; }

.footer-bottom {
  text-align: center; margin-top: 40px;
  border-top: 1px solid #1e293b;
  padding-top: 20px; font-size: 13px; color: #475569;
}

.track-card-mobile {
  display: none;
}

@media(max-width: 900px) {
  .navbar { padding: 15px 20px; }
  .nav-right { position: static; flex: unset; gap: 8px; }
  .menu {
    position: absolute; top: 70px; right: 0;
    background: #020617; width: 220px;
    flex-direction: column; display: none;
    border-radius: 10px;
    border: 1px solid #1e293b;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .menu.show { display: flex; }
  .menu li { padding: 14px 20px; border-bottom: 1px solid #1e293b; }
  .menu li:last-child { border-bottom: none; }
  .btn-action { display: none; }
  .hamburger { display: block; }
  
  /* Akun btn disembunyikan di mobile, diganti section dalam hamburger */
  .nav-akun-btn { display: none !important; }

  .page-hero { padding: 30px 20px 24px; }
  .page-hero h1 { font-size: 26px; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
  .sort-select { width: 100%; }

  .filters-bar { padding: 12px 16px; overflow-x: auto; flex-wrap: nowrap; }
  .filters-bar::-webkit-scrollbar { height: 0; }
  .stats-bar { padding: 10px 16px; }

  
  .table-header { display: none; }

  
  .track-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    height: auto;
    gap: 10px;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .track-num { width: 22px; flex-shrink: 0; font-size: 12px; text-align: center; }
  .track-thumb { width: 42px; height: 42px; flex-shrink: 0; }
  .track-info { flex: 1; min-width: 0; gap: 8px; }
  .track-meta { min-width: 0; }
  .track-name { font-size: 13px; }
  .track-artist { font-size: 11px; }

  .waveform-cell,
  .track-bpm,
  .genre-tags { display: none; }

  
  .track-price { font-size: 12px; white-space: nowrap; }
  .track-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
  }
  .dl-btn { font-size: 11px; padding: 6px 10px; }

  
  #virtual-container {
    position: static !important;
    height: auto !important;
  }

  .mini-player {
    padding: 0 16px;
    gap: 10px;
    height: 64px;
  }

  .player-info { min-width: 0; flex: 1; }
  .player-vol { display: none; }
  .player-progress { flex: 1.5; }

  .footer { padding: 40px 20px 20px; }
  .modal { flex-direction: column; max-width: 360px; }
  .modal-right { display: none; }
  .modal-left { padding: 1.8rem; }
}

@media(max-width: 480px) {
  .page-hero h1 { font-size: 22px; }
  .page-hero p { font-size: 13px; }

  .track-row {
    padding: 10px 12px;
    grid-template-columns: 42px 1fr auto;
  }

  .track-thumb { width: 40px; height: 40px; }
  .track-name { font-size: 13px; }
  .track-artist { font-size: 11px; }
  .track-price { font-size: 12px; }

  .chip { font-size: 12px; padding: 5px 12px; }
  .filter-label { display: none; }

  .toast { right: 1rem; left: 1rem; max-width: 100%; }

  .footer-container { flex-direction: column; gap: 24px; }
}

.dl-btn.in-cart {
  background: #0f172a;
  border: 1px solid #22c55e;
  color: #22c55e;
}
.dl-btn.in-cart:hover {
  background: rgba(34,197,94,0.1);
}

@media(max-width:480px){
  .page-hero{padding:60px 16px 30px !important}
  .page-hero h1{font-size:24px !important}
  .search-row{flex-direction:column !important;gap:8px}
  .search-wrap{width:100%}
  .sort-select{width:100%}
  .filters-bar{padding:0 14px 12px !important;gap:6px}
  .stats-bar{padding:8px 14px !important;flex-direction:column;gap:4px}
  .table-header{display:none !important}
  .mini-player{padding:10px 12px;flex-wrap:wrap;gap:6px}
  .player-progress{width:100%;order:4}
  .player-vol{display:none}
}
