@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ================== GLOBAL ================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}

#wave-canvas { display:block; }

.theme-dark { background: #121212; color: #f5f5f5; }
.theme-light { background: #f5f5f5; color: #222; }

a { color: #ff9800; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 80px auto 80px;
  padding: 0 16px;
}

/* ================== TOPBAR (ONE SYSTEM ONLY) ==================
   - desktop: normal nav
   - mobile/tablet: right drawer + burger
   - hide on scroll (via JS adds .topbar-hidden)
=============================================================== */

body.nav-lock{ overflow:hidden; }

#site-header.top-bar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: #000;
  color: #fff;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  padding: 0 16px;
  z-index: 1000;

  border-bottom: 1px solid #191919;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);

  will-change: transform;
  transition: transform .22s ease;
  transform: translateY(0);
}

/* hide on scroll down */
#site-header.top-bar.topbar-hidden{
  transform: translateY(-110%);
}
/* kapag naka-open drawer, wag itago */
#site-header.nav-open.topbar-hidden{
  transform: translateY(0);
}

/* left side (logo) */
#site-header .top-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 1 1 auto;
  min-width: 0;
}

#site-header .logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  min-width: 0;
}

/* logo container fixed size */
#site-header .site-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 40px;
  width: 160px;
  max-width: 160px;

  overflow:hidden;
}

#site-header .site-logo img{
  height: 100%;
  width: 100%;
  object-fit: contain;
  display:block;
}

/* optional text */
#site-header .logo-text{
  font-weight:800;
  font-size:32px;
  color:#ff9800;
  line-height:1;
  white-space: nowrap;
}

/* hide text if may image mode */
#site-header .logo.has-image .logo-text{ display:none; }

/* right side icons */
#site-header .top-right{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

/* icon links (cart/user etc) */
#site-header .top-ico-link{
  position: relative;
  width:40px;
  height:40px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#f5f5f5;
  text-decoration:none;
  border:1px solid transparent;
}
#site-header .top-ico-link:hover{
  color:#ffc800;
  border-color:#222;
  background:#0f0f0f;
  text-decoration:none;
}
#site-header .top-ico-link.active{ color:#ffc800; }

#site-header .top-ico{
  width:22px;
  height:22px;
  display:block;
}

/* badge */
#site-header .ico-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:#ffc800;
  color:#000;
  font-size:11px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  border:2px solid #000;
}

/* desktop nav */
#site-header .site-nav{
  display:flex;
  align-items:center;
  gap:16px;
}

#site-header .site-nav a{
  position: relative;
  font-size: 14px;
  color: #f5f5f5;
  text-decoration: none;
  padding-bottom: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}
#site-header .site-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  height:2px;
  width:0;
  background:#ff9800;
  transition: width .18s ease;
}
#site-header .site-nav a:hover{ color:#ff9800; text-decoration:none; }
#site-header .site-nav a:hover::after{ width:100%; }


#site-header .site-nav a.active{ color:#ff9800; }
#site-header .site-nav a.active::after{ width:100%; }

#site-header .welcome{
  margin-left: 8px;
  color: #ccc;
  font-size: 13px;
}

/* burger */
#site-header .nav-toggle{
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid #222;
  background:transparent;
  color:#ffc800;
  cursor:pointer;
  display:none; /* desktop hidden */
  align-items:center;
  justify-content:center;
}
#site-header .nav-toggle svg{ width:22px; height:22px; display:block; }

/* backdrop */
#site-header .nav-backdrop{ display:none; }

/* right drawer */
#site-header .mobile-drawer{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(360px, 86vw);
  background:#0b0b0b;
  border-left:1px solid #222;
  box-shadow:-20px 0 60px rgba(0,0,0,.55);
  z-index:1200;
  transform: translateX(105%);
  transition: transform .22s ease;
  display:flex;
  flex-direction:column;
}
#site-header.nav-open .mobile-drawer{ transform: translateX(0); }

/* drawer head */
#site-header .drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
#site-header .drawer-brand{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:18px;
}
#site-header .drawer-brand:hover{ text-decoration:none; color:#ffc800; }

#site-header .drawer-close{
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid #222;
  background:#111;
  color:#ffc800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
#site-header .drawer-close svg{ width:20px; height:20px; display:block; }

/* ✅ drawer nav (RIGHT text + bigger) */
#site-header .drawer-nav{
  padding:12px 12px 16px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* row */
#site-header .drawer-nav a{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;

  padding:14px 12px;
  border-radius:12px;

  color:#eaeaea;
  text-decoration:none;
  border:1px solid transparent;

  /* ✅ RIGHT aligned text */
  text-align:right;

  /* ✅ bigger text */
  font-size:16px;
  font-weight:700;
  letter-spacing:.2px;
}

#site-header .drawer-nav a:hover{
  background:#141414;
  border-color:#222;
  text-decoration:none;
}
#site-header .drawer-nav a.active{
  color:#ffc800;
  background:#121212;
  border-color:#222;
}

/* icon stays left, text pushed right */
#site-header .drawer-ico{
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 22px;
  color: currentColor;

  margin-right:auto; /* ✅ pushes label to the right */
}
#site-header .drawer-ico svg{
  width:22px;
  height:22px;
  display:block;
}

#site-header .drawer-label{
  flex:1;
  display:block;
  text-align:right;
  font-size:16px;
  font-weight:700;
}

/* optional badge */
#site-header .drawer-badge{
  margin-left:10px;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:#ffc800;
  color:#000;
  font-size:12px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

#site-header .drawer-welcome{
  margin-top:10px;
  padding:12px 12px;
  color:#bdbdbd;
  font-size:14px;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:right;
}

/* open backdrop */
#site-header.nav-open .nav-backdrop{
  display:block;
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.55);
  z-index:1100;
}

/* responsive logo sizing */
@media (max-width: 900px){
  #site-header{ padding: 0 12px; }
  #site-header .site-logo{ height:34px; width:140px; max-width:140px; }
  #site-header .logo-text{ font-size:26px; }
}
@media (max-width: 480px){
  #site-header .site-logo{ height:28px; width:120px; max-width:120px; }
  #site-header .logo-text{ font-size:22px; }
}

/* ✅ On mobile/tablet:
   - hide desktop nav
   - show burger + drawer system
*/
@media (max-width: 900px){
  #site-header .site-nav{ display:none !important; }
  #site-header .nav-toggle{ display:inline-flex; }
}
/* desktop: hide drawer */
@media (min-width: 901px){
  #site-header .mobile-drawer{ display:none; }
  #site-header .nav-backdrop{ display:none !important; }
}

/* ================== LAYOUT: SIDEBAR + MAIN ================== */
.main-layout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.main-content { flex: 1 1 auto; min-width: 0; }

.sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid #333;
  padding-right: 14px;
  font-size: 13px;
}

.sidebar-section {
  margin-bottom: 18px;
  background: #151515;
  border-radius: 10px;
  padding: 10px 10px 8px;
}

.sidebar-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #ffc800;
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sidebar-list li:hover {
  background: #222;
  transform: translateX(2px);
}
.sidebar-rank {
  font-size: 11px;
  opacity: .7;
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}
.sidebar-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #222;
}
.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  min-width: 0;
}
.sidebar-link:hover { text-decoration: none; }
.sidebar-name {
  flex: 1;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-sub { font-size: 11px; opacity: .7; }

.sidebar-list li.active > a,
.sidebar-list li.active > .sidebar-link {
  color: #ffc800;
  font-weight: bold;
}

/* ✅ MAIN responsive */
@media (max-width: 900px) {
  .main-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-top: 1px solid #333;
    padding-right: 0;
    padding-top: 10px;
  }
}

/* ================== MOBILE/TABLET SIDEBAR DROPDOWNS ==================
   ✅ 1100px includes iPad/tablets
   ✅ works with JS toggling .open
*/
.sidebar-section .side-dd-btn{ display:none; }

@media (max-width: 1100px){
  .sidebar-section{
    padding: 0;
    overflow: hidden;
  }

  .sidebar-section h3{ display:none; }

  .sidebar-section .side-dd-btn{
    display:flex;
    width:100%;
    align-items:center;
    justify-content:space-between;
    gap:10px;

    padding:12px 12px;
    background:#151515;
    border:none;
    color:#ffc800;
    cursor:pointer;

    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-weight:600;
  }

  .sidebar-section .side-dd-btn:hover{ background:#1b1b1b; }

  .side-dd-btn .dd-icon{
    width:18px;
    height:18px;
    flex-shrink:0;
    transition: transform .18s ease;
    color:#ffc800;
  }

  .sidebar-section .side-dd-content{
    display:none;
    padding:8px 10px 12px;
    border-top:1px solid #222;
  }

  .sidebar-section.open .side-dd-content{ display:block; }
  .sidebar-section.open .side-dd-btn .dd-icon{ transform: rotate(180deg); }
}

/* ================== FILTER FORM ================== */
.filter-form {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.filter-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.filter-form input,
.filter-form select {
  padding: 4px 6px;
  font-size: 12px;
}
.filter-form button {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #ff9800;
  color: #000;
}

/* ================== TABLE ================== */
.table-wrapper { width: 100%; overflow-x: auto; }
.tracks-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tracks-table th, .tracks-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid #333;
  vertical-align: middle;
}
.tracks-table th { font-size: 12px; text-transform: uppercase; }

/* Leave space for bottom player */
main.container { padding-bottom: 110px; }

.col-num { font-size: 11px; color: #777; width: 36px; }
.track-avatar-cell { width: 46்பx; }
.track-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #222; }
.track-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.track-main { display: flex; flex-direction: column; }
.track-title { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.track-genre { font-size: 11px; color: #999; margin-top: 2px; }
.track-price { white-space: nowrap; }
.track-bpm { font-size: 12px; }
.track-cart, .track-play { text-align: center; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
}

.cart-btn { color: #fff; }
.cart-btn.in-cart {
  color: #ff9800;
  cursor: default;
  pointer-events: none;
}
.cart-btn:hover { transform: scale(1.05); }

/* preview button */
.preview-btn {
  background: #ffc800;
  border: none;
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-btn.playing { background: #000; color: #ffc800; }
.tracks-table tr.playing-row { background: rgba(255, 152, 0, 0.12); }

/* Responsive table */
@media (max-width: 768px) {
  .tracks-table th,
  .tracks-table td {
    padding: 4px 6px;
    font-size: 11px;
  }
  .tracks-table th:nth-child(1),
  .tracks-table td:nth-child(1),
  .tracks-table th:nth-child(5),
  .tracks-table td:nth-child(5) {
    display: none;
  }
  .tracks-table td:nth-child(3) {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .container {
    margin: 76px auto 80px;
    padding: 0 12px;
  }
}

/* ================== AUTH PAGES ================== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-card {
  width: 100%;
  max-width: 380px;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border: 1px solid #333;
}
.auth-card h1 { margin: 0 0 16px; font-size: 20px; text-align: center; }
.auth-card .error, .auth-card .success { margin-bottom: 12px; }
.auth-card form label { font-size: 13px; }
.auth-card form input[type="text"],
.auth-card form input[type="email"],
.auth-card form input[type="password"] { font-size: 13px; }
.auth-card form button { width: 100%; margin-top: 14px; }
.auth-extra-links { margin-top: 12px; font-size: 13px; text-align: center; }
.auth-extra-links a { text-decoration: none; }
.auth-extra-links a:hover { text-decoration: underline; }

/* ================== FORMS ================== */
form label { display: block; margin-bottom: 8px; }
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form select {
  width: 100%;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  box-sizing: border-box;
  margin-top: 3px;
}
form button {
  margin-top: 10px;
  padding: 6px 14px;
  background: #ff9800;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}
form button:hover { background: #ffa733; }

/* ================== FOOTER (keep your existing footer styles) ================== */
/* =========================
   FOOTER (Beatport-like) - RESTORE
   Paste this at the VERY END of style.css
========================= */

/* important: wag masapawan ng global a{color:orange} */
.site-footer,
.site-footer *{
  box-sizing: border-box;
}

.site-footer{
  background:#2b2b2b;
  color:#bdbdbd;
  margin-top:32px;
  padding:34px 0 18px;
  padding-bottom:120px; /* space for bottom player if fixed */
}

/* override global link color */
.site-footer a{
  color:#a9a9a9 !important;
  text-decoration:none !important;
}
.site-footer a:hover{
  color:#fff !important;
  text-decoration:none !important;
}

.site-footer .footer-inner{
  width:min(1200px, calc(100% - 32px));
  margin:0 auto;
}

.site-footer .footer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
}

.site-footer .footer-brand{ min-width:260px; }

/* logo link */
.site-footer .footer-logo{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:800;
  letter-spacing:.2px;
  font-size:22px;
}

/* ✅ FIX: prevent orange/big svg due to global styles */
.site-footer .footer-logo-mark{
  width:34px !important;
  height:34px !important;
  border-radius:10px !important;
  background:#111 !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  overflow:hidden !important;
  flex:0 0 auto;
}

.site-footer .footer-logo-mark svg{
  width:20px !important;
  height:20px !important;
  color:#fff !important;
  display:block !important;
}

.site-footer .footer-logo-mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.site-footer .footer-copy{
  margin-top:6px;
  font-size:12px;
  opacity:.9;
}

/* socials */
.site-footer .footer-social{
  display:flex;
  gap:14px;
  margin-top:14px;
  flex-wrap:wrap;
}

.site-footer .footer-social a{
  color:#fff !important;
  opacity:.9;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  text-decoration:none !important;
}

.site-footer .footer-social a:hover{
  opacity:1;
  background:rgba(255,255,255,.10);
}

/* app badges */
.site-footer .footer-apps{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.site-footer .app-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
  border-radius:10px;
  overflow:hidden;
  background:#111;
  border:1px solid rgba(255,255,255,.14);
  padding:10px 12px;
  min-width:168px;
}

.site-footer .app-badge:hover{
  border-color:rgba(255,255,255,.25);
}

.site-footer .badge-top{
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#cfcfcf;
  opacity:.9;
}

.site-footer .badge-main{
  margin-top:2px;
  font-size:16px;
  font-weight:800;
  color:#fff;
  line-height:1;
}

.site-footer .badge-sub{
  margin-top:2px;
  font-size:11px;
  color:#bdbdbd;
  opacity:.9;
}

/* links grid */
.site-footer .footer-links{
  display:grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap:22px;
  padding-top:6px;
  padding-bottom:14px;
}

.site-footer .footer-col h4{
  margin:0 0 10px;
  color:#fff;
  font-size:13px;
  font-weight:800;
}

.site-footer .footer-col ul{
  list-style:none;
  margin:0;
  padding:0;
}

.site-footer .footer-col li{ margin:6px 0; }

.site-footer .footer-col a{
  color:#a9a9a9 !important;
  text-decoration:none !important;
  font-size:13px;
}
.site-footer .footer-col a:hover{ color:#fff !important; }

/* bottom row */
.site-footer .footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:14px;
}

.site-footer .footer-legal{

  font-size:12px;
  opacity:.9;
}

.site-footer .footer-theme{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  color:#cfcfcf;
}

.site-footer .footer-theme button{
  background:transparent;
  color:#fff;
  border:1px solid rgba(255,255,255,.2);
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
}
.site-footer .footer-theme button:hover{
  border-color:rgba(255,255,255,.35);
}

/* Mobile */
@media (max-width: 820px){
  .site-footer .footer-top{
    flex-direction:column;
    align-items:flex-start;
  }
  .site-footer .footer-apps{
    width:100%;
    flex-wrap:wrap;
  }
  .site-footer .app-badge{
    flex:1;
    min-width:160px;
  }
  .site-footer .footer-links{
    grid-template-columns: 1fr;
    gap:18px;
  }
  .site-footer .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}
/* ✅ Logout icon desktop only */
.logout-desktop{ display:inline-flex; }

@media (max-width: 900px){
  .logout-desktop{ display:none !important; }
}

.success {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(0, 255, 120, 0.12);
  border: 1px solid rgba(0, 255, 120, 0.25);
}