:root{
  --card-bg: rgba(18, 18, 22, 0.72);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted2: rgba(255,255,255,0.55);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

.bg{
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.65)),
    url("assets/bg.jpg") center/cover no-repeat;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}

.vignette{
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.10), rgba(0,0,0,0.70));
  pointer-events: none;
}

.card{
  position: relative;
  width: min(900px, calc(100% - 28px));
  margin: 26px auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 18px 18px 14px;
}

.header{
  display:flex;
  gap: 14px;
  align-items:center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.logo{
  width: 62px;
  height: 62px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.titleblock h1{
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.subtitle{
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.instructions{
  padding: 12px 6px 6px;
}
.instructions h2{
  margin: 6px 0 8px;
  font-size: 16px;
}
.instructions ol{
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}
.note{
  margin: 10px 0 0;
  color: var(--muted2);
  font-size: 13px;
}

.player{
  margin-top: 10px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
}

.row{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.btn{
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.btn:hover{
  background: rgba(255,255,255,0.12);
}
.btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.primary{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.18);
}

.volwrap{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: auto;
  min-width: 220px;
}
.volLabel{
  color: var(--muted);
  font-size: 13px;
}
input[type="range"]{
  width: 180px;
}

.status{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}
.dot.playing{ background: rgba(120, 255, 190, 0.85); box-shadow: 0 0 0 4px rgba(120, 255, 190, 0.18); }
.dot.paused{ background: rgba(255, 220, 120, 0.85); box-shadow: 0 0 0 4px rgba(255, 220, 120, 0.18); }
.dot.error{ background: rgba(255, 120, 120, 0.85); box-shadow: 0 0 0 4px rgba(255, 120, 120, 0.18); }
.dot.idle{ background: rgba(255,255,255,0.25); }

.small{
  margin-top: 10px;
  color: var(--muted2);
  font-size: 12.5px;
}

.footer{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
