:root {
  --ink: #091114;
  --white: #ffffff;
  --soft: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.18);
  --teal: #08a0aa;
  --red: #e23d3d;
}

* {
  box-sizing: border-box;
}

body {
  background: #05090b;
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  margin: 0;
}

button {
  font: inherit;
}

.player-app {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(5, 9, 11, 0.1), rgba(5, 9, 11, 0.92)),
    url("assets/internet-hero-local.png") center / cover;
  display: flex;
  min-height: 100vh;
  padding: clamp(14px, 3vw, 34px);
}

.channel-shell {
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.channel-topbar,
.channel-footer {
  align-items: center;
  background: rgba(9, 17, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  backdrop-filter: blur(16px);
}

.channel-topbar {
  gap: 14px;
  justify-content: flex-start;
}

.channel-topbar img {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  height: 48px;
  object-fit: contain;
  padding: 5px 8px;
  width: 132px;
}

.channel-topbar div {
  display: grid;
  gap: 4px;
}

.channel-topbar strong {
  font-size: clamp(20px, 4vw, 34px);
  line-height: 1;
}

.live-pill {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
  width: fit-content;
}

.video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.channel-video {
  background: #000;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.video-state {
  align-items: center;
  background: linear-gradient(135deg, rgba(9, 17, 20, 0.86), rgba(8, 160, 170, 0.32));
  display: flex;
  flex-direction: column;
  gap: 16px;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: absolute;
  text-align: center;
}

.video-state.hidden {
  display: none;
}

.video-state p {
  color: var(--soft);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 700;
  margin: 0;
}

.loader {
  animation: spin 900ms linear infinite;
  border: 4px solid rgba(255, 255, 255, 0.26);
  border-top-color: var(--white);
  border-radius: 50%;
  height: 46px;
  width: 46px;
}

.channel-footer {
  gap: 14px;
}

.channel-footer p {
  color: var(--soft);
  font-weight: 700;
  margin: 0;
}

.sound-button {
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .player-app {
    align-items: flex-start;
  }

  .channel-topbar,
  .channel-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-topbar img {
    height: 42px;
    width: 116px;
  }

  .sound-button {
    width: 100%;
  }
}
