:root{
  --bg1:#0b0b0f;
  --bg2:#1b0530;
  --card:rgba(255,255,255,0.06);
  --stroke:rgba(255,255,255,0.10);
  --text:#ffffff;
  --muted:rgba(255,255,255,0.75);

  --good:#00ff99;
  --warn:#ffcc00;
  --bad:#ff4444;

  --shadow: 0 14px 40px rgba(0,0,0,0.55);
  --radius: 16px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, rgba(255,0,200,0.18), transparent 60%),
              radial-gradient(1100px 800px at 80% 40%, rgba(60,80,255,0.18), transparent 55%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
  min-height:100vh;
}

a{ color:inherit; }

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 34px;
}

.top{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 16px;
  flex-wrap:wrap;
}

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

.brand-mark{
  width:44px;
  height:44px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255,0,204,0.9), rgba(51,51,255,0.9));
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 10px 26px rgba(255,0,200,0.18);
}

.brand-title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-sub{
  font-size: 13px;
  opacity: 0.8;
}

.stats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.stat{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: 14px;
  min-width: 110px;
  text-align:center;
}

.stat-num{
  font-weight: 900;
  font-size: 18px;
}

.stat-label{
  font-size: 12px;
  opacity: 0.75;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 980px){
  .grid{ grid-template-columns: 420px 1fr; }
}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h2{
  margin:0 0 8px;
  font-size: 18px;
}

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 8px;
}

.pill{
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
}

.muted{ color: var(--muted); }

.form{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 12px;
}

label span{
  display:block;
  font-size: 12px;
  opacity: 0.85;
  margin: 2px 0 6px;
}

input, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,15,0.65);
  color: white;
  outline: none;
}

input::placeholder{ color: rgba(255,255,255,0.45); }

input:focus, select:focus{
  border-color: rgba(255,0,204,0.55);
  box-shadow: 0 0 0 4px rgba(255,0,204,0.12);
}

.btn{
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg,#ff00cc,#3333ff);
  color: white;
  transition: transform .18s ease, filter .18s ease;
}

.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.hint{
  font-size: 12px;
  opacity: 0.75;
  margin-top: 6px;
}

.toast{
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}

.toast-success{
  background: linear-gradient(90deg, rgba(0,255,153,0.95), rgba(0,204,102,0.95));
  color: #00130a;
  font-weight: 900;
  animation: pop .5s ease;
}

.toast-error{
  background: rgba(255, 68, 68, 0.14);
  border-color: rgba(255, 68, 68, 0.35);
  color: #ffbcbc;
}

@keyframes pop{
  0%{ transform: scale(.96); opacity: .6; }
  100%{ transform: scale(1); opacity: 1; }
}

.list{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.row{
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.title{
  font-weight: 850;
  letter-spacing: 0.1px;
}

.meta{
  margin-top: 8px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.link{
  text-decoration:none;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(77,166,255,0.14);
  border: 1px solid rgba(77,166,255,0.35);
}

.badge{
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.badge.waiting{
  color: #2b2200;
  background: linear-gradient(90deg, rgba(255,204,0,0.95), rgba(255,153,0,0.95));
  border-color: rgba(255,204,0,0.55);
}

.badge.played{
  color: #00130a;
  background: linear-gradient(90deg, rgba(0,255,153,0.95), rgba(0,204,102,0.95));
  border-color: rgba(0,255,153,0.55);
}

.badge.rejected{
  color: #2b0000;
  background: linear-gradient(90deg, rgba(255,68,68,0.95), rgba(204,0,0,0.95));
  border-color: rgba(255,68,68,0.55);
}

.empty{
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.18);
  opacity: 0.8;
}

.table{
  width:100%;
  border-collapse:collapse;
  margin-top:10px;
}

.table th,.table td{
  padding:10px 8px;
  border-bottom:1px solid rgba(255,255,255,0.10);
  text-align:left;
  font-size:14px;
}

.table th{ opacity:0.8; font-weight:800; }

.actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn-mini{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
}

.btn-mini.play{ background: rgba(0,255,153,0.18); border-color: rgba(0,255,153,0.35); }
.btn-mini.played{ background: rgba(0,255,153,0.18); border-color: rgba(0,255,153,0.35); }
.btn-mini.reject{ background: rgba(255,204,0,0.18); border-color: rgba(255,204,0,0.35); }
.btn-mini.delete{ background: rgba(255,68,68,0.18); border-color: rgba(255,68,68,0.35); }

.foot{
  margin-top: 16px;
  text-align:center;
  opacity: 0.9;
}

.footlink{
  font-weight: 900;
}
body{
background:linear-gradient(90deg,#0d0b14,#1b1426);
font-family:Segoe UI,Arial;
color:#fff;
margin:0;
}

.container{
max-width:1200px;
margin:auto;
padding:20px;
}

.admin-container h2{
margin-bottom:20px;
}

.admin-btn{
padding:12px 18px;
border-radius:8px;
border:none;
font-weight:600;
cursor:pointer;
}

.btn-back{
background:#3a2f50;
color:white;
text-decoration:none;
display:inline-block;
margin-bottom:15px;
}

.admin-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
}

.admin-column{
background:rgba(0,0,0,0.2);
padding:20px;
border-radius:12px;
min-height:500px;
}

.admin-column h3{
margin-top:0;
margin-bottom:20px;
font-size:20px;
}

.song{
padding:14px;
margin-bottom:16px;
background:#15111f;
border-radius:10px;
position:relative;
border-bottom:1px solid rgba(255,255,255,0.1);
}

.song strong{
font-size:16px;
color:#ddd;
}

/* link */

.admin-song-link{
display:inline-block;
margin-top:8px;
color:#4a7cff;
text-decoration:none;
font-size:14px;
}

.admin-song-link:hover{
text-decoration:underline;
}

/* NOWA PIOSENKA */

.new-live{
border:2px solid #00ff9c;
box-shadow:0 0 10px rgba(0,255,156,0.6);
}

/* ZAGRANA */

.played-song{
border-left:4px solid #2ecc71;
}

/* ODRZUCONA */

.rejected-song{
border-left:4px solid #ff5b5b;
opacity:.85;
}

/* PRZYCISKI */

.admin-actions{
margin-top:12px;
display:flex;
gap:10px;
}

.admin-btn{
flex:1;
padding:12px;
border-radius:10px;
font-size:15px;
font-weight:700;
transition:all .2s;
}

.admin-btn:hover{
transform:scale(1.05);
}

/* ZAGRANA */

.btn-play{
background:linear-gradient(90deg,#00d084,#14e39a);
color:#002b17;
}

/* ODRZUĆ */

.btn-reject{
background:linear-gradient(90deg,#ffcc00,#ff9900);
color:#3a2200;
}

/* USUŃ */

.btn-delete{
background:linear-gradient(90deg,#ff3b3b,#d10000);
color:white;
}

/* PRZYWRÓĆ */

.btn-restore{
background:linear-gradient(90deg,#2e86ff,#1b5fff);
color:white;
}