:root {
  color-scheme: dark;
  --cerejeira: #ff63c6;
  --cerejeira-claro: #ffc0e7;
  --cerejeira-fundo: rgba(16, 8, 27, .94);
  --cerejeira-linha: rgba(255, 133, 211, .24);
  --cerejeira-texto: #fff4fb;
  --cerejeira-suave: #d5c4d6;
}

body {
  color: var(--cerejeira-texto);
  background:
    radial-gradient(ellipse at 50% 0, rgba(116, 25, 101, .3), transparent 58%),
    linear-gradient(rgba(10, 4, 19, .76), rgba(10, 4, 19, .86)),
    url("/creperia.png") center / cover fixed,
    #100817 !important;
}

main {
  background: var(--cerejeira-fundo) !important;
  border-color: var(--cerejeira-linha) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55), 0 0 60px rgba(221, 40, 164, .08);
}

header {
  min-height: 77px;
  padding: 12px 26px;
  border-bottom-color: rgba(255, 255, 255, .09);
  background: linear-gradient(90deg, rgba(48, 16, 48, .62), rgba(18, 12, 31, .48));
}

.brand {
  color: #fff8fc;
  font-size: 1.02rem;
  letter-spacing: .035em;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 206, 235, .4);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #f34caf, #982bba) !important;
  box-shadow: 0 5px 20px rgba(241, 61, 174, .28);
  font-size: 0;
}

.mark::before {
  content: "\273F";
  font-size: 25px;
  line-height: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: var(--cerejeira-suave);
  background: rgba(9, 6, 17, .48);
  font-size: .84rem;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a89bad;
  content: "";
}

.status.live {
  border-color: rgba(255, 99, 198, .32);
  color: var(--cerejeira-claro);
  background: rgba(91, 22, 75, .3);
}

.status.live::before {
  background: var(--cerejeira);
  box-shadow: 0 0 12px var(--cerejeira);
}

.videos {
  padding: 0 !important;
  background:
    linear-gradient(rgba(10, 4, 19, .72), rgba(10, 4, 19, .82)),
    url("/creperia.png") center / cover no-repeat,
    #100817 !important;
}

.grid {
  gap: 16px;
}

.empty {
  max-width: 560px;
  justify-self: center;
  padding: 42px 36px;
  border: 1px solid rgba(255, 190, 231, .18);
  border-radius: 22px;
  background: rgba(19, 9, 27, .72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  color: var(--cerejeira-suave);
  text-shadow: none;
  backdrop-filter: blur(12px);
}

.empty::before {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(255, 151, 216, .32);
  border-radius: 18px;
  color: var(--cerejeira-claro);
  background: rgba(218, 46, 159, .15);
  content: "\273F";
  font-size: 28px;
}

.empty b {
  color: #fff7fc;
  font-size: 1.25rem;
  letter-spacing: -.015em;
}

.tile {
  border-color: rgba(255, 157, 218, .28);
  border-radius: 18px;
  background: #09050e;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tile:hover {
  border-color: rgba(255, 128, 207, .72);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .44), 0 0 24px rgba(236, 57, 175, .12);
  transform: translateY(-2px);
}

.tile:focus-visible {
  outline: 3px solid var(--cerejeira-claro);
  outline-offset: 3px;
}

.tile span {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(18, 9, 25, .76);
  color: #fff3fa;
  backdrop-filter: blur(8px);
}

button,
.quick-share {
  border: 1px solid rgba(255, 202, 233, .2);
  background: linear-gradient(135deg, #e943a8, #a53bc4) !important;
  box-shadow: 0 8px 24px rgba(226, 49, 161, .2);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

button:hover,
.quick-share:hover {
  background: linear-gradient(135deg, #fa62bd, #bd55d8) !important;
  box-shadow: 0 11px 28px rgba(226, 49, 161, .3);
  filter: saturate(1.08);
}

button:active,
.quick-share:active {
  transform: translateY(1px) scale(.99);
}

button:focus-visible,
.quick-share:focus-visible {
  outline: 3px solid var(--cerejeira-claro);
  outline-offset: 3px;
}

button:disabled {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(94, 75, 98, .55) !important;
  box-shadow: none;
  filter: none;
}

.quick-share {
  margin-left: auto;
}

.view-controls {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.view-controls .quick-share {
  margin-left: 0;
}

.tile.ampliada {
  position: fixed !important;
  z-index: 1001 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100dvh;
  border: 0 !important;
  border-radius: 0 !important;
  background: #050308;
}

.tile.ampliada video {
  width: 100% !important;
  height: 100% !important;
  max-height: 100dvh !important;
  object-fit: contain;
}

@media (max-width: 620px) {
  header {
    min-height: 70px;
    padding: 8px 16px;
  }

  .quick-share {
    padding: 9px 11px;
    font-size: .78rem;
  }
}

.note,
.mobile-help {
  border: 1px solid rgba(255, 156, 216, .14);
  border-left: 3px solid var(--cerejeira);
  background: rgba(46, 17, 47, .72) !important;
  color: #ead7e8;
}

label.options {
  color: #f5e7f2;
}

#webcam {
  background: rgba(104, 47, 116, .75) !important;
}

#webcam:hover {
  background: rgba(137, 57, 145, .9) !important;
}

#stop {
  background: rgba(116, 45, 76, .7) !important;
}

#stop:hover {
  background: rgba(158, 52, 94, .9) !important;
}

.panel p,
.status {
  color: var(--cerejeira-suave);
}

@media (max-width: 620px) {
  body {
    background-attachment: scroll !important;
  }

  header {
    min-height: 70px;
    gap: 10px;
    padding: 8px 16px;
  }

  .brand {
    gap: 9px;
    font-size: .94rem;
  }

  .mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .status {
    min-height: 31px;
    padding: 0 9px;
    font-size: .75rem;
  }

  .quick-share {
    padding: 9px 11px;
    font-size: .78rem;
  }

  .empty {
    margin: 16px;
    padding: 32px 22px;
  }

  .tile:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
