@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  cursor: none;
  font-family: 'VT323', monospace;
}

#cv {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
}

#scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.45) 0px,
    rgba(0,0,0,.45) 1px,
    transparent 1px,
    transparent 3px
  );
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 65% at 50% 50%,
    transparent 30%, rgba(0,0,0,.9) 100%);
}

#flash {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}

#cur {
  position: fixed;
  z-index: 9999;
  width: 10px;
  height: 10px;
  background: #aaa;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (pointer: coarse) {
  #cur { display: none; }
}

.lbl {
  position: fixed;
  z-index: 20;
  font-size: clamp(.7rem, 2.2vw, .95rem);
  letter-spacing: .1em;
  color: rgba(160,160,160,.55);
}

#lbl-tl { top: 14px; left: 16px; }
#lbl-tr { top: 14px; right: 16px; animation: bl 1s step-end infinite; }
#lbl-bl { bottom: 14px; left: 16px; }

@keyframes bl {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

#ui {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#btn {
  font-family: 'VT323', monospace;
  font-size: clamp(2.6rem, 11vw, 6rem);
  letter-spacing: .1em;
  color: #c8c8c8;
  background: transparent;
  border: 2px solid rgba(180,180,180,.5);
  padding: .2em .75em;
  cursor: none;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-shadow: 0 0 20px rgba(255,255,255,.35);
  transition: color .1s, border-color .1s, text-shadow .1s;
}

#btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.85);
  text-shadow: 0 0 30px rgba(255,255,255,.6);
}

#btn:active { opacity: .5; }

#nik {
  position: fixed;
  bottom: clamp(16px, 4vh, 30px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  font-size: clamp(1.1rem, 3.8vw, 1.7rem);
  letter-spacing: .22em;
  color: rgba(190,190,190,.85);
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,255,255,.15);
  user-select: none;
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(.6rem, 2vh, 1.2rem);
}

#overlay.on { display: flex; }

#content-wrap {
  width: min(92vw, 960px);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 0;
  max-height: 90vh;
  overflow-y: auto;
}

#vid-title {
  font-family: 'VT323', monospace;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: .15em;
  color: rgba(220,220,220,.9);
  text-align: center;
  text-shadow: 0 0 12px rgba(255,255,255,.25);
  padding: .2em 0;
  border-bottom: 1px solid rgba(180,180,180,.2);
}

#vid-wrap {
  position: relative;
  width: 100%;
}

#vid {
  width: 100%;
  max-height: 60vh;
  display: block;
  outline: none;
  background: #000;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(180,180,180,.15);
}

#vcv {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

#cbtn {
  font-family: 'VT323', monospace;
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: .14em;
  color: rgba(180,180,180,.7);
  background: transparent;
  border: 1px solid rgba(180,180,180,.3);
  padding: .4em 2em;
  cursor: none;
  align-self: center;
  transition: color .15s, border-color .15s;
}

#cbtn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

#comments-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

#comments-header {
  font-family: 'VT323', monospace;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: .1em;
  color: rgba(200,200,200,.8);
  padding: .2em 0;
  border-bottom: 1px solid rgba(180,180,180,.15);
}

#comment-form {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: .6rem;
  background: rgba(20,20,20,.3);
  border: 1px solid rgba(180,180,180,.1);
}

#comment-author,
#comment-text {
  font-family: 'VT323', monospace;
  font-size: clamp(.85rem, 2.5vw, 1rem);
  letter-spacing: .06em;
  color: rgba(220,220,220,.85);
  background: rgba(30,30,30,.5);
  border: 1px solid rgba(180,180,180,.2);
  padding: .35em .6em;
  outline: none;
  cursor: none;
  transition: border-color .2s;
}

#comment-author:focus,
#comment-text:focus {
  border-color: rgba(220,220,220,.4);
}

#comment-text {
  min-height: 50px;
  resize: none;
}

#comment-submit {
  font-family: 'VT323', monospace;
  font-size: clamp(.8rem, 2.3vw, .95rem);
  letter-spacing: .1em;
  color: rgba(200,200,200,.75);
  background: rgba(40,40,40,.4);
  border: 1px solid rgba(180,180,180,.25);
  padding: .3em 1em;
  cursor: none;
  align-self: flex-start;
  transition: all .2s;
}

#comment-submit:hover {
  color: rgba(240,240,240,.9);
  border-color: rgba(220,220,220,.5);
  background: rgba(50,50,50,.5);
}

#comments-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: .3rem;
}

#comments-list::-webkit-scrollbar {
  width: 4px;
}
#comments-list::-webkit-scrollbar-track {
  background: rgba(40,40,40,.3);
}
#comments-list::-webkit-scrollbar-thumb {
  background: rgba(180,180,180,.3);
  border-radius: 2px;
}

.comment {
  padding: .5rem .6rem;
  background: rgba(10,10,10,.25);
  border-left: 2px solid rgba(180,180,180,.2);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
}

.comment-author {
  font-family: 'VT323', monospace;
  font-size: clamp(.9rem, 2.6vw, 1.05rem);
  color: rgba(210,210,210,.8);
}

.comment-date {
  font-size: clamp(.75rem, 2.2vw, .85rem);
  color: rgba(130,130,130,.5);
}

.comment-text {
  font-size: clamp(.85rem, 2.5vw, 1rem);
  line-height: 1.3;
  color: rgba(180,180,180,.75);
  word-wrap: break-word;
}