@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

*{ margin:0; padding:0; box-sizing:border-box; }

:root {
  --red:   #ff0000;
  --red2:  #cc0000;
  --red3:  #880000;
  --dim:   #7a0000;
  --dark:  #3a0000;
  --bg:    #000000;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--red);
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 19px;
  line-height: 1.45;
}


body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.28) 2px,
    rgba(0,0,0,0.28) 3px
  );
}


body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 8999;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0,0,0,0.8) 100%);
}


#intro {
  position: fixed; inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#intro-box {
  text-align: center;
  user-select: none;
}

#intro-logo {
  font-family: 'VT323', monospace;
  font-size: 72px;
  color: #ff0000;
  text-shadow: 0 0 20px #ff0000, 0 0 50px rgba(255,0,0,0.4);
  letter-spacing: 6px;
  line-height: 1;
}
#intro-logo span { color: #880000; }

#intro-sub {
  color: #7a0000;
  font-size: 18px;
  letter-spacing: 3px;
  margin: 12px 0 32px;
}

#intro-blink {
  color: #ff0000;
  font-size: 24px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px #ff0000;
  animation: blink 1.1s step-end infinite;
}

#intro-note {
  color: #3a0000;
  font-size: 14px;
  margin-top: 24px;
  letter-spacing: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


#wrap {
  min-height: 100vh;
  padding: 14px 20px 60px;
  margin-right: 43ch;
}

#terminal {
  white-space: pre-wrap;
  word-break: break-word;
}


.prompt { color: var(--red);   text-shadow: 0 0 6px var(--red); }
.cmd    { color: #ff6666;      text-shadow: 0 0 5px #ff6666; }
.dir    { color: #ff0000;      text-shadow: 0 0 5px #ff0000; }
.exe    { color: #ff4444;      text-shadow: 0 0 5px #ff0000; }
.err    { color: #ff3300;      text-shadow: 0 0 5px #ff2200; }
.dim    { color: var(--dim); }
.hi     { color: #ffffff;      text-shadow: 0 0 8px #ff0000; }
.ok     { color: #ff4444;      text-shadow: 0 0 5px #ff0000; }
.info   { color: var(--red2); }
.art    {
  color: #ff0000;
  line-height: 1.08;
  font-size: 15px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #ff0000, 0 0 18px rgba(255,0,0,0.3);
}


#sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 42ch;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 10;
  border-left: 1px solid #2a0000;
  background: #000;
}


#player {
  display: block;
  flex-shrink: 0;
  pointer-events: all;
  padding: 7px 10px 6px;
  border-bottom: 1px solid #2a0000;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.35;
  background: #000;
  position: relative;
}


#player::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, #cc0000, transparent);
  opacity: 0.5;
}

#player-header {
  color: #880000;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#player-title {
  color: #ff0000;
  text-shadow: 0 0 5px #ff0000;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

#player-artist {
  color: #cc0000;
  font-size: 13px;
  margin-bottom: 5px;
  min-height: 1em;
}

#player-bar-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #7a0000;
  margin-bottom: 4px;
}

#player-bar {
  flex: 1;
  height: 5px;
  background: #1a0000;
  border: 1px solid #3a0000;
  overflow: hidden;
}

#player-bar-fill {
  height: 100%;
  background: #ff0000;
  box-shadow: 0 0 6px #ff0000;
  width: 0%;
}

#player-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

#player-status {
  color: #cc0000;
  font-size: 13px;
}

#player-tracknum {
  color: #5a0000;
  font-size: 12px;
}

#player-controls {
  color: #3a0000;
  font-size: 11px;
  letter-spacing: 0.5px;
}


#art-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 6px;
}

#sidebar pre {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.08;
  letter-spacing: 0.5px;
  white-space: pre;
  color: #990000;
  text-shadow: 0 0 4px #660000, 0 0 10px rgba(150,0,0,0.2);
  margin: 0;
}


#inputRow {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 6px 20px 8px;
  background: var(--bg);
  border-top: 1px solid var(--dark);
  display: flex;
  align-items: center;
  z-index: 100;
  margin-right: 43ch;
}

#inputRow::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--red2), transparent);
  opacity: 0.4;
}

#prompt-span {
  color: var(--red);
  white-space: nowrap;
  margin-right: 6px;
  text-shadow: 0 0 6px var(--red);
  flex-shrink: 0;
}
#prompt-span .pu { color: #ff8888; }
#prompt-span .ph { color: var(--red2); }
#prompt-span .pp { color: #ff0000; }

#input {
  background: transparent;
  border: none;
  color: #ff6666;
  font-family: inherit;
  font-size: inherit;
  outline: none;
  flex: 1;
  caret-color: var(--red);
  text-shadow: 0 0 4px #ff0000;
}