:root{
  --bg: #06080a;
  --ink: #e9eef2;
  --muted: rgba(233,238,242,.75);
  --line: rgba(233,238,242,.35);
  --panel: rgba(0,0,0,.65);
  --shadow: rgba(0,0,0,.65);
  --accent: rgba(233,238,242,.95);
}

/* base */
*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* repeating matrix background */
.bg{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.06), transparent 55%),
    url("assets/bg-matrix.png");
  background-repeat: repeat;
  background-size: auto, 420px auto;
  filter: contrast(1.05) brightness(.9);
  opacity: .9;
  z-index: -2;
}

/* center frame */
.wrap{
  width: min(680px, 92vw);
  margin: 18px auto 28px;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  box-shadow: 0 20px 60px var(--shadow);
}

/* header */
.header{
  padding: 10px 10px 6px;
  border-bottom: 1px solid var(--line);
}

.brand{
  display: grid;
  place-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.brand__logo{
  width: 100px;
  height: 100px;
  image-rendering: pixelated;
}

.brand__title{
  letter-spacing: .35em;
  font-size: 14px;
}

.nav{
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 6px 0 2px;
}

.nav__link{
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .12em;
  font-size: 11px;
}

.nav__link:hover{ color: var(--ink); }
.nav__link.is-active{ color: var(--ink); text-decoration: underline; }

/* panels */
.panel{
  border: 2px solid rgba(233,238,242,.6);
  background: var(--panel);
}

.panel__title{
  padding: 6px 8px;
  border-bottom: 1px solid rgba(233,238,242,.35);
}

.panel__body{
  padding: 10px 10px 12px;
}

.mono{ letter-spacing: .02em; }
.small{ font-size: 11px; }

/* player */
.player{
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: rgba(0,0,0,.55);
}

/* The background image/GIF fills the whole panel */
.player::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
  z-index: 0;
}

/* Optional dark overlay to keep text/buttons readable */
.player::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.05), rgba(0,0,0,.35));
  z-index: 1;
}

/* Title and controls sit above */
.player .panel__title{
  position: relative;
  z-index: 2;
}

/* Background video layer (when used) */
.player__bgvideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  z-index: 0;
  display: none; /* only shown when a track uses video */
}

/* Controls overlay */
.player__controls{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;

  display:flex;
  gap: 10px;
  align-items:center;
}

/* mid row */
.mid{
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 12px;
  margin-top: 12px;
}

/* section title */
.section-title{
  margin: 12px 0 8px;
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .18em;
  color: rgba(233,238,242,.5);
  font-size: 20px;
  text-transform: lowercase;
}

/* about row */
.about{
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.about img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* CRT overlay */
.crt{
  position: relative;
}

.crt::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,.15),
      rgba(0,0,0,.15) 1px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0) 4px
    );
  mix-blend-mode: multiply;
  opacity: .55;
  z-index: 5;
}

.crt::after{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.06), transparent 58%);
  opacity: .6;
  z-index: 6;
}

/* responsive */
@media (max-width: 720px){
  .mid{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .about img{ height: auto; }
}
