:root{
  --bg: #0b0c10;
  --panel: #11131a;
  --panel2: #0f1117;
  --text: #e8eaf0;
  --muted: #a7adbd;
  --line: rgba(255,255,255,.10);
  --accent: #7c5cff;
  --accent2: #37d6c5;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 10%, rgba(124,92,255,.18), transparent 55%),
              radial-gradient(900px 600px at 80% 15%, rgba(55,214,197,.14), transparent 50%),
              var(--bg);
  color: var(--text);
}

.home-link{
  display:flex;
  justify-content:center;
  padding: 14px 18px 0;
}
.home-btn{
  display:inline-block;
  text-decoration:none;
}

.app{
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.header h1{
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: .2px;
}
.sub{
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.card{
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}

.card.alt{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

.row{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

label{
  color: var(--muted);
  font-size: 14px;
}

select, input[type="file"]{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}

select:disabled, button:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.controls{
  display: flex;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.btn{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .06s ease, border-color .15s ease, background .15s ease;
  user-select: none;
}

.btn:hover{
  border-color: rgba(255,255,255,.18);
  background: rgba(0,0,0,.30);
}
.btn:active{ transform: translateY(1px); }

.btn.primary{
  border-color: rgba(124,92,255,.45);
  background: rgba(124,92,255,.16);
}

.meta{
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress{
  flex: 1;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  overflow: hidden;
}

.bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.time{
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 110px;
  text-align: right;
}

.description{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text);
  line-height: 1.4;
  min-height: 44px;
}

.hint{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer{
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}


.count{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

select option{
  color: #0b0c10;
  background: #f1f3f7;
}

select option:checked{
  background: #1b66d9;
  color: #ffffff;
}

select option.played{
  color: #b21d1d;
  font-weight: 600;
}
select option.played:checked{
  background: #7a1010;
  color: #ffffff;
}
