:root {
  --shadow: drop-shadow(0px 2px 0px #ffffff0f) drop-shadow( 0px -2px 0px #0000000f);
  font-family: system-ui;
  background: #ccc;
}

*, :after, :before {
  box-sizing: border-box;
}

body {
  display: grid;
  justify-content: center;
}

.tv {
  width: 35rem;
  padding: 1.5rem;
  background: #2f363a;
  border-radius: 1rem;
  border: 0.4rem solid #24231f;
  display: grid;
  gap: 1.5rem;
}
.tv__frame {
  position: relative;
  border-radius: 1rem;
  background-color: #24231f;
  padding: 2rem;
  filter: var(--shadow);
}
.tv__frame:after {
  content: "";
  border-radius: 5%/100%;
  position: absolute;
  inset: 1.4rem 2rem;
  z-index: 1;
  animation: scanlines 0.5s linear infinite;
  background-image: repeating-linear-gradient(transparent, transparent 5px, rgba(0, 0, 0, 0.02) 5px, rgba(0, 0, 0, 0.02) 10px);
  box-shadow: inset 6px 5px 20px 11px #24231f57;
}
.tv__screen {
  position: relative;
  border-radius: 100%/5%;
  z-index: 1;
  padding: 0;
}
.tv__screen:after, .tv__screen:before {
  content: "";
  background: #4e5e55;
  border-radius: 5%/100%;
  position: absolute;
  inset: 0;
  z-index: -1;
}
.tv__screen:after {
  inset: -0.6rem 0.7rem;
  border-radius: 100%/5%;
}
.tv__screen-inner {
  width: 100%;
  height: 60%;
  aspect-ratio: 5/4;
}
.tv__bottom {
  display: flex;
  justify-content: space-between;
}
.tv__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tv__button {
  display: block;
  background: none;
  color: inherit;
  border: 1px solid black;
  border-radius: 50%;
  line-height: 0;
  font-weight: 100;
  aspect-ratio: 1;
  width: 1.5rem;
  height: 1.5rem;
  filter: var(--shadow);
}
.tv__speaker {
  background-image: radial-gradient(black 0.1rem, transparent 0);
  background-size: 0.5rem 0.5rem;
  width: 8rem;
  padding: 2rem;
  filter: var(--shadow);
}

.logo {
  color: #fff;
  display: inline-block;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color);
  animation: colorChange 42s infinite;
  animation-timing-function: steps(1, end);
  opacity: 0.5;
}
.logo:after {
  display: block;
  font-size: 0.3em;
  font-weight: normal;
  letter-spacing: 0.2em;
  background-color: var(--color);
  color: #4e5e55;
  padding-block: 0.2em;
  border-radius: 50%;
  text-transform: uppercase;
  content: "Video";
}

@keyframes scanlines {
  to {
    background-position-y: 10px;
  }
}
@keyframes colorChange {
  0% {
    --color: #ffffff;
  }
  10% {
    --color: #ff0000;
  }
  20% {
    --color: #00ff00;
  }
  30% {
    --color: #0000ff;
  }
  40% {
    --color: #ffff00;
  }
  50% {
    --color: #00ffff;
  }
  60% {
    --color: #ff00ff;
  }
  70% {
    --color: #ffa500;
  }
  80% {
    --color: #800080;
  }
  90% {
    --color: #1e90ff;
  }
  100% {
    --color: #ffffff;
  }
}