@import url('https://solargentinotv.com.ar/assets/fonts/Gilroy/Gilroy.css');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

:root {
  color-scheme: dark;
  --chirp: #ef008a;
  --chirp-rgb: 239, 0, 138;
  --bg: #060209;
  --text: #fff7fc;
  --soft: rgba(255, 247, 252, 0.72);
  --glass: rgba(0, 0, 0, 0.42);
  --glass-strong: rgba(0, 0, 0, 0.64);
  --rail: rgba(var(--chirp-rgb), 0.25);
  --rail-strong: rgba(var(--chirp-rgb), 0.45);
  font-family: 'Google Sans';
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  background:
    radial-gradient(
      circle at 25% 0%,
      rgba(var(--chirp-rgb), 0.22),
      transparent 32rem
    ),
    radial-gradient(
      circle at 85% 20%,
      rgba(var(--chirp-rgb), 0.12),
      transparent 26rem
    ),
    linear-gradient(145deg, #120516 0%, var(--bg) 48%, #0d0310 100%);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
}

button,
.hit-target {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
.hit-target:focus-visible {
  outline: 2px solid var(--chirp);
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 48px);
}

.demo-frame {
  width: min(100%, 820px);
  display: grid;
  gap: 12px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--soft);
  font-size: 0.88rem;
}

.brand-line strong {
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--chirp);
}

.source-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(var(--chirp-rgb), 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.source-label {
  color: rgba(255, 247, 252, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.source-input {
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(var(--chirp-rgb), 0.26);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
}

.source-input::placeholder {
  color: rgba(255, 247, 252, 0.46);
}

.source-button {
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--chirp);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 140ms ease,
    background 140ms ease;
}

.source-button:hover {
  background: rgba(var(--chirp-rgb), 0.92);
  transform: translateY(-1px);
}

.source-button:active {
  transform: translateY(0) scale(0.98);
}

.source-help {
  margin: 0;
  color: rgba(255, 247, 252, 0.68);
  font-size: 0.82rem;
}

.source-help strong {
  color: #ffd0ec;
}

.caption {
  margin: 0;
  color: rgba(255, 247, 252, 0.74);
  line-height: 1.45;
}

.caption code {
  padding: 2px 6px;
  border: 1px solid rgba(var(--chirp-rgb), 0.28);
  border-radius: 8px;
  background: rgba(var(--chirp-rgb), 0.1);
  color: #ffd0ec;
}

.ChirpPlayer-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(var(--chirp-rgb), 0.28);
  border-radius: 9px;
  background: #000;
  transform: translateZ(0);
}

.ChirpPlayer-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
}

.ChirpPlayer-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

.ChirpPlayer-audio {
  object-fit: contain;
}

.is-audio .ChirpPlayer-video {
  opacity: 0;
  pointer-events: none;
}

.visual-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.16) 0%,
      transparent 28%,
      rgba(0, 0, 0, 0.84) 100%
    ),
    radial-gradient(
      circle at 50% 52%,
      rgba(var(--chirp-rgb), 0.16),
      transparent 28%
    );
  opacity: 0.96;
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.controls-hidden .visual-shade {
  opacity: 0.08;
}

.video-title {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(80%, 480px);
  pointer-events: none;
  transform: translate(-50%, -62%);
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.video-title strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.9rem, 7.4vw, 4.25rem);
  line-height: 0.88;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.video-title span {
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(0.55rem, 1.3vw, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.is-playing .video-title {
  opacity: 0;
  transform: translate(-50%, -66%);
}

.media-error {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 6;
  width: min(calc(100% - 32px), 460px);
  padding: 14px 16px;
  border: 1px solid rgba(var(--chirp-rgb), 0.36);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.center-play {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  width: clamp(48px, 7vw, 64px);
  height: clamp(48px, 7vw, 64px);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: var(--chirp);
  color: var(--chirp);
  cursor: pointer;
  transform: translate(-50%, -50%) scale(1);
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.center-play:hover {
  transform: translate(-50%, -50%) scale(1.055);
  background: rgba(var(--chirp-rgb), 0.92);
}

.center-play-icon {
  width: 26px !important;
  height: auto;
  margin-left: 3px;
  aspect-ratio: 1 / 1;
  background: #fff !important;
}

.loading-pulse {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--chirp);
  animation: loadingPulse 780ms ease-in-out infinite alternate;
}

@keyframes loadingPulse {
  from {
    opacity: 0.42;
    transform: scale(0.84);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.buffering-spinner {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 7;
  width: clamp(44px, 6vw, 58px);
  height: auto;
  aspect-ratio: 1 / 1;
  border: 4px solid rgba(var(--chirp-rgb), 0);
  border-top-color: var(--chirp);
  border-right-color: var(--chirp);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(0deg);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
  animation: bufferingSpin 680ms linear infinite;
}

@keyframes bufferingSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.ChirpPlayer-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 30px auto minmax(70px, 1fr) auto auto 34px 21px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px clamp(10px, 2.2vw, 18px) clamp(9px, 1.8vw, 15px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.52) 30%,
    rgba(0, 0, 0, 0.78) 100%
  );
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.controls-hidden .ChirpPlayer-controls {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.control-button {
  width: 24px;
  height: auto;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: transparent;
  color: var(--chirp);
  cursor: pointer;
  transition:
    background 140ms ease,
    transform 140ms ease,
    opacity 140ms ease;
}

.control-button:hover {
  background: rgba(var(--chirp-rgb), 0.14);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.icon-mask {
  width: 24px;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--chirp);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.time-label {
  color: var(--chirp);
  font-size: clamp(0.76rem, 1.8vw, 0.92rem);
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  user-select: none;
}

.current-time {
  min-width: 36px;
  text-align: right;
  opacity: 0.92;
}

.video-time {
  min-width: 42px;
  text-align: left;
}

.timebar {
  --progress: 0%;
  --buffered: 0%;
  position: relative;
  height: 22px;
  display: grid;
  align-items: center;
  margin: 0 0.5em;
  cursor: pointer;
  touch-action: none;
}

.timebar-rail {
  position: relative;
  height: 9px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(82 79 81 / 18%);
}

.timebar-buffer,
.timebar-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px 0 0 999px;
}

.timebar-buffer {
  width: var(--buffered);
  background: rgba(255, 255, 255, 0.34);
}

.timebar-fill {
  width: var(--progress);
  background: var(--chirp);
}

.timebar-thumb {
  position: absolute;
  top: 50%;
  left: var(--progress);
  z-index: 2;
  width: 17px !important;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--chirp);
  transform: translate(-50%, -50%) scale(0.96);
  transition: transform 130ms ease;
  display: none;
}

.timebar:hover .timebar-thumb,
.timebar:focus-visible .timebar-thumb {
  transform: translate(-50%, -50%) scale(1.14);
}

.volume-group {
  position: relative;
  width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
}

.volume-group.volume-open,
.volume-group:hover,
.volume-group:focus-within {
  width: 34px;
}

.volume-group .volume-button {
  flex: 0 0 34px;
  transform: none;
  transition:
    background 140ms ease,
    transform 140ms ease;
}

.volume-group.volume-open .volume-button,
.volume-group:hover .volume-button,
.volume-group:focus-within .volume-button {
  transform: none;
}

.volume-bar {
  --volume: 86%;
  position: absolute;
  right: 50%;
  bottom: calc(100% + 12px);
  z-index: 10;
  width: 36px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transform: translate(50%, 0);
  transform-origin: bottom center;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(var(--chirp-rgb), 0.16) inset;
  transition: opacity 120ms ease;
}

.volume-group.volume-open .volume-bar,
.volume-group:hover .volume-bar,
.volume-group:focus-within .volume-bar {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, 0);
}

.volume-rail {
  position: relative;
  width: 9px;
  height: 86px;
  display: block;
  overflow: visible;
  border-radius: 4px;
  background: rgb(65 65 65 / 44%);
  margin-bottom: -0.43em;
}

.volume-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--volume);
  border-radius: 999px;
  background: var(--chirp);
}

.volume-thumb {
  position: absolute;
  left: 50%;
  bottom: var(--volume);
  width: 15px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--chirp);
  box-shadow: 0px 3px 7px rgb(0 0 0);
  transform: translate(-50%, 50%);
}

.settings-group {
  position: relative;
  align-items: center;
  justify-content: center;
  display: grid;
  margin-left: -0.06em;
}

.speed-menu {
  position: absolute;
  right: -7px;
  bottom: calc(100% + 12px);
  width: 138px;
  padding: 7px;
  border-radius: 3px;
  background: #fff;
  color: var(--chirp);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.speed-menu::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: rotate(45deg);
}

.speed-menu span {
  display: block;
  padding: 7px 8px 5px;
  color: var(--chirp);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speed-menu button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 31px;
  padding: 0 9px;
  border-radius: 3px;
  background: transparent;
  color: var(--chirp);
  cursor: pointer;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 500;
}

.speed-menu button:hover,
.speed-menu button.active {
  background: var(--chirp);
  color: #fff;
}

.speed-menu button.active::after {
  content: '';
  position: absolute;
  right: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%);
}

@media (max-width: 620px) {
  .ChirpPlayer-controls {
    grid-template-columns: 32px auto minmax(44px, 1fr) auto 32px 32px;
    gap: 4px;
    padding-inline: 8px;
  }

  .control-button {
    width: 32px;
    height: 32px;
  }

  .icon-mask {
    width: 22px;
  }

  .current-time {
    min-width: 32px;
  }

  .video-time {
    min-width: 38px;
  }

  .volume-group {
    width: 32px;
  }

  .volume-group.volume-open,
  .volume-group:hover,
  .volume-group:focus-within {
    width: 32px;
  }

  .volume-group .volume-button {
    flex: 0 0 32px;
  }

  .volume-bar {
    bottom: calc(100% + 10px);
    width: 34px;
    height: 108px;
  }

  .volume-rail {
    height: 78px;
  }

  .video-title strong {
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .source-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .ChirpPlayer-controls {
    grid-template-columns: 30px auto minmax(42px, 1fr) auto 30px 30px;
  }

  .control-button {
    width: 30px;
    height: 30px;
  }

  .icon-mask {
    width: 17px;
    height: 17px;
  }

  .time-label {
    font-size: 0.72rem;
  }

  .current-time {
    min-width: 30px;
  }

  .video-time {
    min-width: 35px;
  }

  .volume-group {
    width: 30px;
  }

  .volume-group.volume-open,
  .volume-group:hover,
  .volume-group:focus-within {
    width: 30px;
  }

  .volume-group .volume-button {
    flex: 0 0 30px;
  }
}
