/* Shared base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(70, 50, 80, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(60, 45, 70, 0.4) 0%, transparent 50%),
    linear-gradient(165deg, #201820 0%, #281f28 40%, #1a1520 100%);
  color: #f8f6f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 25% 25%, rgba(220, 200, 180, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(200, 180, 220, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
  animation: breathe 12s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 85% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 45% 70%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 75% 85%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 25% 90%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 90% 55%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 60% 15%, rgba(255, 255, 255, 0.3), transparent);
  pointer-events: none;
  animation: sparkle 6s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.5; }
  25% { opacity: 0.9; }
  50% { opacity: 0.4; }
  75% { opacity: 0.85; }
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 40%, rgba(32, 24, 40, 0.4) 70%, rgba(26, 18, 32, 0.85) 100%),
    linear-gradient(to top, rgba(26, 18, 32, 0.6) 0%, transparent 15%),
    linear-gradient(to bottom, rgba(26, 18, 32, 0.6) 0%, transparent 15%),
    linear-gradient(to left, rgba(26, 18, 32, 0.6) 0%, transparent 15%),
    linear-gradient(to right, rgba(26, 18, 32, 0.6) 0%, transparent 15%);
  z-index: 0;
}

.container {
  width: 98vw;
  max-width: 1920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

h1 {
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #c0b8b0;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.video-wrap {
  width: min(95vw, calc((100vh - 250px) * 16 / 9));
  max-width: 1400px;
  aspect-ratio: 16/9;
  margin-right: 320px; /* Space for chat panel (280px + 25px + 15px gap) */
}

video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(145deg, #100c12 0%, #0a080c 100%);
  border-radius: 12px;
  border: none;
  display: block;
}

.room-code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  padding: 1rem 0;
  position: relative;
  background: linear-gradient(135deg, #f0e6d8 0%, #d4c4b0 25%, #c8b8a4 50%, #d4c4b0 75%, #f0e6d8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 5s linear infinite;
  filter: drop-shadow(0 0 20px rgba(220, 200, 180, 0.3));
}

@keyframes text-shimmer {
  to { background-position: 200% center; }
}

.room-code::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 150%;
  height: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: light-sweep 4s ease-in-out infinite;
  opacity: 0;
}

@keyframes light-sweep {
  0%, 100% { opacity: 0; left: 0%; }
  50% { opacity: 1; }
  99% { left: 100%; }
}

.label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #7a7068;
}

button {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  background: linear-gradient(145deg, rgba(30, 25, 35, 0.6), rgba(20, 15, 25, 0.8));
  color: #e8e0d8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 3rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  z-index: 10;
}

button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0.05) 50%, transparent 55%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

button::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.05));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

button:hover::before {
  transform: translateX(100%);
}

button:hover::after {
  opacity: 1;
}

button:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 50px rgba(220, 200, 180, 0.12),
    0 0 100px rgba(200, 180, 220, 0.06),
    inset 0 0 30px rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#status {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: #605850;
  text-transform: lowercase;
  transition: all 0.5s ease;
}

.resolution {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #7a7068;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-top: 0.5rem;
}

/* Viewers panel */
.viewers-panel {
  position: fixed;
  right: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 10;
}

.viewers-title {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #6a6058;
  margin-bottom: 0.5rem;
  padding-right: 0.25rem;
}

.viewer-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.viewer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateX(20px);
  animation: viewer-enter 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.viewer-item.leaving {
  animation: viewer-leave 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes viewer-enter {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes viewer-leave {
  to { opacity: 0; transform: translateX(20px) scale(0.9); }
}

.viewer-name {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #c8c0b8;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Green online indicator dot */
.viewer-gem {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%,
    #7fff7f 0%,
    #50e050 30%,
    #30c030 60%,
    #20a020 100%);
  border-radius: 50%;
  box-shadow:
    0 0 8px rgba(80, 224, 80, 0.8),
    0 0 16px rgba(50, 200, 50, 0.5),
    0 0 24px rgba(30, 180, 30, 0.3);
  animation: online-pulse 2s ease-in-out infinite;
  position: relative;
}

.viewer-gem::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(80, 224, 80, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: online-ring 2s ease-out infinite;
}

.viewer-gem::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  filter: blur(0.5px);
}

@keyframes online-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 8px rgba(80, 224, 80, 0.8),
      0 0 16px rgba(50, 200, 50, 0.5),
      0 0 24px rgba(30, 180, 30, 0.3);
  }
  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 12px rgba(100, 255, 100, 1),
      0 0 24px rgba(70, 230, 70, 0.7),
      0 0 36px rgba(50, 200, 50, 0.4);
  }
}

@keyframes online-ring {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

.viewer-item:nth-child(1) .viewer-gem { animation-delay: 0s; }
.viewer-item:nth-child(2) .viewer-gem { animation-delay: 0.4s; }
.viewer-item:nth-child(3) .viewer-gem { animation-delay: 0.8s; }
.viewer-item:nth-child(4) .viewer-gem { animation-delay: 1.2s; }
.viewer-item:nth-child(5) .viewer-gem { animation-delay: 1.6s; }
.viewer-item:nth-child(6) .viewer-gem { animation-delay: 2s; }

.viewer-item:nth-child(1) { animation-delay: 0s; }
.viewer-item:nth-child(2) { animation-delay: 0.1s; }
.viewer-item:nth-child(3) { animation-delay: 0.2s; }
.viewer-item:nth-child(4) { animation-delay: 0.3s; }
.viewer-item:nth-child(5) { animation-delay: 0.4s; }
.viewer-item:nth-child(6) { animation-delay: 0.5s; }

.viewers-empty {
  font-size: 0.6rem;
  font-style: italic;
  letter-spacing: 0.1em;
  color: #4a4440;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  font-style: italic;
  background: linear-gradient(135deg, #a0a0a8 0%, #d0d0d8 25%, #b8b8c0 50%, #d0d0d8 75%, #a0a0a8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: silver-shimmer 4s ease-in-out infinite;
  z-index: 100;
}

@keyframes silver-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hidden { display: none !important; }

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  position: relative;
  z-index: 10;
}

.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  margin: 0.75rem 0;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: divider-shine 4s ease-in-out infinite;
  opacity: 0;
}

@keyframes divider-shine {
  0%, 100% { opacity: 0; transform: scaleX(0.3); }
  50% { opacity: 0.8; transform: scaleX(1); }
}

/* Chat panel */
.chat-panel {
  position: fixed;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 600px;
  background: linear-gradient(145deg, rgba(25, 20, 30, 0.7), rgba(15, 10, 20, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0.9;
}

.chat-panel:hover { opacity: 1; }

.chat-header {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #7a7068;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }

.chat-msg { font-size: 0.7rem; color: #c0b8b0; word-wrap: break-word; }
.chat-msg .name { color: #9090a0; font-size: 0.6rem; margin-right: 0.3rem; }
.chat-msg .original { font-size: 0.55rem; color: #6a6460; font-style: italic; margin-top: 0.15rem; }

.chat-input-wrap {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  gap: 0.5rem;
}

.chat-input-wrap input {
  flex: 1;
  font-size: 0.7rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 4px;
  color: #e8e0d8;
  outline: none;
  width: 100%;
  letter-spacing: normal;
}

.chat-input-wrap input::placeholder { color: rgba(200, 190, 180, 0.3); }

.chat-input-wrap button {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 4px;
  color: #c0b8b0;
  cursor: pointer;
  margin-top: 0;
}

.chat-input-wrap button:hover { background: rgba(255, 255, 255, 0.12); }

/* Audio controls */
.audio-toggle {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-transform: uppercase;
  transition: all 0.3s;
  z-index: 100;
  margin-top: 0;
}

.audio-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}

.audio-meter {
  width: 100px;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-level {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  border-radius: 3px;
  transition: width 0.05s ease-out;
}

/* Theme dots */
.theme-dots {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 50;
  opacity: 0.25;
  transition: opacity 0.5s;
}

.theme-dots:hover { opacity: 0.7; }

.theme-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-dot:hover { transform: scale(1.4); }
.theme-dot.active { box-shadow: 0 0 8px currentColor; }

.theme-dot.amethyst { background: #3d2a4d; }
.theme-dot.obsidian { background: #1a1a1f; }
.theme-dot.sapphire { background: #1a2535; }
.theme-dot.rose { background: #2d1f2a; }
.theme-dot.emerald { background: #1a2520; }

/* Corners */
.corner {
  position: fixed;
  width: 60px;
  height: 60px;
  opacity: 0.4;
}

.corner::before, .corner::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg, #f0e6d8, #c8b8a4, #a09080);
}

.corner .diamond {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #fff 0%, #f8f4f0 25%, #f0e6d8 50%, #c8b8a4 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.8),
    0 0 25px rgba(220, 200, 180, 0.5);
  animation: corner-diamond 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.corner .diamond::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: corner-wave 3s ease-out infinite;
}

@keyframes corner-diamond {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

@keyframes corner-wave {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

.corner.tl { top: 25px; left: 25px; }
.corner.tl::before { width: 1px; height: 30px; }
.corner.tl::after { width: 30px; height: 1px; }
.corner.tl .diamond { top: -2px; left: -2px; animation-delay: 0s; }

.corner.tr { top: 25px; right: 25px; }
.corner.tr::before { width: 1px; height: 30px; right: 0; }
.corner.tr::after { width: 30px; height: 1px; right: 0; }
.corner.tr .diamond { top: -2px; right: -2px; animation-delay: 1s; }

.corner.bl { bottom: 25px; left: 25px; }
.corner.bl::before { width: 1px; height: 30px; bottom: 0; }
.corner.bl::after { width: 30px; height: 1px; bottom: 0; }
.corner.bl .diamond { bottom: -2px; left: -2px; animation-delay: 2s; }

.corner.br { bottom: 25px; right: 25px; }
.corner.br::before { width: 1px; height: 30px; bottom: 0; right: 0; }
.corner.br::after { width: 30px; height: 1px; bottom: 0; right: 0; }
.corner.br .diamond { bottom: -2px; right: -2px; animation-delay: 3s; }

/* Notification */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  padding: 1rem 1.5rem;
  background: linear-gradient(145deg, rgba(30, 25, 35, 0.9), rgba(20, 15, 25, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c0b8b0;
  opacity: 0;
  transform: translateY(-10px);
  animation: notifIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  z-index: 100;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.notification.live {
  border-color: rgba(255, 255, 255, 0.15);
  color: #e8e0d8;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(220, 200, 180, 0.1);
}

@keyframes notifIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Input styles */
input {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-align: center;
  background: linear-gradient(145deg, rgba(30, 25, 35, 0.4), rgba(20, 15, 25, 0.6));
  color: #e8e0d8;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  width: 150px;
  outline: none;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(5px);
}

input::placeholder {
  color: rgba(200, 190, 180, 0.3);
  letter-spacing: 0.2em;
}

input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 30px rgba(220, 200, 180, 0.1);
  background: linear-gradient(145deg, rgba(35, 30, 40, 0.5), rgba(25, 20, 30, 0.7));
}

/* Join form (watch page) */
.join-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Room info with copy button */
.room-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c8b8a4;
  padding: 0.4rem 0.6rem;
  font-size: 0.7rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-top: 0;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: none;
  box-shadow: none;
}

.copy-btn::before,
.copy-btn::after {
  display: none;
}

/* Dynamic starfield canvas */
#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Scattered gemstones */
.scattered-gems {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* Entry Requests Panel (Broadcaster) */
.entry-requests-panel {
  position: fixed;
  left: 25px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  z-index: 10;
  max-height: 40vh;
  overflow-y: auto;
}

.entry-requests-title {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #6a6058;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.entry-requests-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.entry-request-card {
  background: linear-gradient(145deg, rgba(30, 25, 35, 0.9), rgba(20, 15, 25, 0.95));
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: request-enter 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.entry-request-card.leaving {
  animation: request-leave 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes request-enter {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes request-leave {
  to { opacity: 0; transform: translateX(-20px) scale(0.9); }
}

.request-text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #c8c0b8;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.request-actions {
  display: flex;
  gap: 0.5rem;
}

.request-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(5px);
  margin-top: 0;
}

.request-btn.approve {
  background: linear-gradient(145deg, rgba(40, 80, 40, 0.6), rgba(30, 60, 30, 0.8));
  color: #a0e0a0;
  border-color: rgba(80, 180, 80, 0.2);
}

.request-btn.approve:hover {
  background: linear-gradient(145deg, rgba(50, 100, 50, 0.7), rgba(40, 80, 40, 0.9));
  border-color: rgba(100, 200, 100, 0.4);
  box-shadow: 0 0 20px rgba(80, 180, 80, 0.3);
  transform: translateY(-1px);
}

.request-btn.deny {
  background: linear-gradient(145deg, rgba(80, 40, 40, 0.6), rgba(60, 30, 30, 0.8));
  color: #e0a0a0;
  border-color: rgba(180, 80, 80, 0.2);
}

.request-btn.deny:hover {
  background: linear-gradient(145deg, rgba(100, 50, 50, 0.7), rgba(80, 40, 40, 0.9));
  border-color: rgba(200, 100, 100, 0.4);
  box-shadow: 0 0 20px rgba(180, 80, 80, 0.3);
  transform: translateY(-1px);
}

/* Entry Pending State (Viewer) */
.entry-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pending-gem {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(230, 240, 255, 0.9) 20%,
    rgba(200, 220, 240, 0.85) 50%,
    rgba(170, 190, 220, 0.7) 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: pending-gem-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 25px rgba(200, 220, 255, 0.5));
}

@keyframes pending-gem-pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 25px rgba(200, 220, 255, 0.5));
  }
  50% {
    transform: scale(1.2) rotate(45deg);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) drop-shadow(0 0 40px rgba(200, 220, 255, 0.8));
  }
}

.pending-text {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: #c0b8b0;
}

.pending-dots {
  display: flex;
  gap: 4px;
}

.pending-dots span {
  width: 4px;
  height: 4px;
  background: #c0b8b0;
  border-radius: 50%;
  animation: pending-dot 1.4s ease-in-out infinite;
}

.pending-dots span:nth-child(1) { animation-delay: 0s; }
.pending-dots span:nth-child(2) { animation-delay: 0.2s; }
.pending-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pending-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.3); }
}

/* Entry Denied State (Viewer) */
.entry-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: denied-fade-in 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes denied-fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.denied-icon {
  width: 24px;
  height: 24px;
  position: relative;
}

.denied-icon::before,
.denied-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, rgba(180, 80, 80, 0.8), rgba(200, 100, 100, 1), rgba(180, 80, 80, 0.8));
  border-radius: 1px;
}

.denied-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.denied-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.denied-text {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: #c0a0a0;
}

/* ============================================
   BROADCAST PAGE SPECIFIC STYLES
   ============================================ */

.page-broadcast .audio-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.page-broadcast .audio-meter {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

/* Gem for broadcast page - elaborate diamond */
.page-broadcast .gem {
  width: 20px;
  height: 20px;
  position: relative;
  animation: diamond-float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 25px rgba(200, 220, 255, 0.6));
}

.page-broadcast .gem .diamond-body {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(230, 240, 255, 0.9) 15%, rgba(200, 220, 240, 0.85) 30%, rgba(180, 200, 230, 0.8) 50%, rgba(160, 180, 210, 0.7) 70%, rgba(140, 160, 190, 0.6) 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: diamond-brilliance 2s ease-in-out infinite;
}

.page-broadcast .gem .facet-top {
  position: absolute;
  top: 0;
  left: 25%;
  width: 50%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(220, 235, 255, 0.7) 50%, transparent 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  animation: facet-shimmer 2.5s ease-in-out infinite;
}

.page-broadcast .gem .facet-left {
  position: absolute;
  top: 25%;
  left: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(90deg, rgba(180, 200, 240, 0.6) 0%, rgba(220, 235, 255, 0.8) 50%, transparent 100%);
  clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
  animation: facet-shimmer 2.5s ease-in-out infinite 0.3s;
}

.page-broadcast .gem .facet-right {
  position: absolute;
  top: 25%;
  right: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(-90deg, rgba(200, 180, 220, 0.5) 0%, rgba(235, 225, 255, 0.7) 50%, transparent 100%);
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  animation: facet-shimmer 2.5s ease-in-out infinite 0.6s;
}

.page-broadcast .gem .facet-bottom {
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 50%;
  background: linear-gradient(0deg, rgba(160, 170, 200, 0.4) 0%, rgba(200, 210, 230, 0.6) 50%, transparent 100%);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  animation: facet-shimmer 2.5s ease-in-out infinite 0.9s;
}

.page-broadcast .gem .diamond-fire {
  position: absolute;
  top: 35%;
  left: 35%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 240, 220, 0.8) 30%, rgba(255, 200, 150, 0.4) 60%, transparent 100%);
  border-radius: 50%;
  animation: fire-pulse 1.5s ease-in-out infinite;
}

.page-broadcast .gem .diamond-prism {
  position: absolute;
  inset: -2px;
  background:
    conic-gradient(from 0deg at 50% 50%,
      rgba(255, 100, 100, 0.3) 0deg,
      rgba(255, 200, 100, 0.3) 60deg,
      rgba(200, 255, 100, 0.3) 120deg,
      rgba(100, 255, 200, 0.3) 180deg,
      rgba(100, 200, 255, 0.3) 240deg,
      rgba(200, 100, 255, 0.3) 300deg,
      rgba(255, 100, 100, 0.3) 360deg);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0;
  animation: prism-flash 3s ease-in-out infinite;
  mix-blend-mode: overlay;
}

.page-broadcast .gem .wave-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.page-broadcast .gem .wave-ring:nth-child(7) {
  width: 40px;
  height: 40px;
  animation: wave-expand 2.5s ease-out infinite;
}

.page-broadcast .gem .wave-ring:nth-child(8) {
  width: 60px;
  height: 60px;
  animation: wave-expand 2.5s ease-out infinite 0.5s;
}

.page-broadcast .gem .wave-ring:nth-child(9) {
  width: 80px;
  height: 80px;
  animation: wave-expand 2.5s ease-out infinite 1s;
}

@keyframes diamond-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes diamond-brilliance {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.3) saturate(1.2); }
}

@keyframes facet-shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes fire-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes prism-flash {
  0%, 70%, 100% { opacity: 0; transform: rotate(0deg); }
  75%, 85% { opacity: 0.8; }
  80% { opacity: 1; transform: rotate(30deg); }
}

@keyframes wave-expand {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Broadcast page gem particles - elaborate */
.page-broadcast .scattered-gems .gem-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  opacity: 0;
  animation: diamond-shimmer 6s ease-in-out infinite;
}

.page-broadcast .scattered-gems .gem-particle .mini-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(245, 250, 255, 0.95) 20%,
    rgba(230, 240, 250, 0.9) 40%,
    rgba(210, 225, 245, 0.85) 60%,
    rgba(190, 205, 230, 0.8) 80%,
    rgba(170, 185, 210, 0.7) 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.9);
}

.page-broadcast .scattered-gems .gem-particle .mini-facet {
  position: absolute;
  top: 0;
  left: 30%;
  width: 40%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, transparent 100%);
  clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
  animation: facet-glint 6s ease-in-out infinite;
}

.page-broadcast .scattered-gems .gem-particle .mini-fire {
  position: absolute;
  top: 35%;
  left: 35%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, transparent 70%);
  border-radius: 50%;
  animation: inner-fire 3s ease-in-out infinite;
}

.page-broadcast .scattered-gems .gem-particle .mini-prism {
  position: absolute;
  inset: -1px;
  background: conic-gradient(from 0deg,
    rgba(255, 180, 180, 0.2),
    rgba(255, 240, 180, 0.2),
    rgba(180, 255, 200, 0.2),
    rgba(180, 220, 255, 0.2),
    rgba(220, 180, 255, 0.2),
    rgba(255, 180, 180, 0.2));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0;
  mix-blend-mode: overlay;
  animation: prism-glint 6s ease-in-out infinite;
}

.page-broadcast .scattered-gems .gem-particle .mini-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: tiny-wave 6s ease-out infinite;
}

.page-broadcast .scattered-gems .gem-particle .mini-wave:nth-child(6) {
  width: 16px;
  height: 16px;
  animation-delay: 1s;
}

@keyframes diamond-shimmer {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  8% { opacity: 0.3; }
  16% { opacity: 0.7; transform: scale(1); }
  24% { opacity: 0.4; }
  32% { opacity: 0.8; transform: scale(1.02); }
  40% { opacity: 0.3; }
  48% { opacity: 0.6; transform: scale(1); }
  56% { opacity: 0.2; }
  64% { opacity: 0.5; transform: scale(0.98); }
  72% { opacity: 0.15; }
  80% { opacity: 0.4; }
  88% { opacity: 0.1; }
}

@keyframes facet-glint {
  0%, 100% { opacity: 0.3; }
  25%, 75% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

@keyframes inner-fire {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

@keyframes prism-glint {
  0%, 40%, 100% { opacity: 0; }
  45%, 55% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

@keyframes tiny-wave {
  0% { opacity: 0.15; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

/* Broadcast page stars */
.page-broadcast .scattered-gems .star {
  position: absolute;
  width: 3px;
  height: 3px;
  opacity: 0;
  animation: star-shimmer 5s ease-in-out infinite;
}

.page-broadcast .scattered-gems .star .star-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 1.5px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 1px #fff;
}

.page-broadcast .scattered-gems .star .star-beam-h {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.7) 60%, transparent);
  transform: translate(-50%, -50%);
  animation: ray-pulse 5s ease-in-out infinite;
}

.page-broadcast .scattered-gems .star .star-beam-v {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5px;
  height: 7px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.7) 60%, transparent);
  transform: translate(-50%, -50%);
  animation: ray-pulse 5s ease-in-out infinite 0.2s;
}

.page-broadcast .scattered-gems .star .star-beam-d1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: ray-pulse 5s ease-in-out infinite 0.4s;
}

.page-broadcast .scattered-gems .star .star-beam-d2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: ray-pulse 5s ease-in-out infinite 0.6s;
}

.page-broadcast .scattered-gems .star .star-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: star-ripple 5s ease-out infinite;
}

@keyframes star-shimmer {
  0%, 100% { opacity: 0; }
  10% { opacity: 0.5; }
  20% { opacity: 0.9; transform: scale(1.05); }
  30% { opacity: 0.3; }
  40% { opacity: 0.7; }
  50% { opacity: 0.2; }
  60% { opacity: 0.6; }
  70% { opacity: 0.15; }
  80% { opacity: 0.4; }
}

@keyframes ray-pulse {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(0.7); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes star-ripple {
  0% { opacity: 0.1; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

/* Broadcast page gem/star positions */
.page-broadcast .gem-particle:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; }
.page-broadcast .gem-particle:nth-child(2) { top: 12%; right: 7%; animation-delay: 1.2s; }
.page-broadcast .gem-particle:nth-child(3) { top: 30%; left: 3%; animation-delay: 2.4s; }
.page-broadcast .gem-particle:nth-child(4) { top: 48%; right: 4%; animation-delay: 3.6s; }
.page-broadcast .gem-particle:nth-child(5) { top: 65%; left: 4%; animation-delay: 0.6s; }
.page-broadcast .gem-particle:nth-child(6) { top: 80%; right: 3%; animation-delay: 3s; }
.page-broadcast .gem-particle:nth-child(7) { top: 90%; left: 6%; animation-delay: 1.8s; }
.page-broadcast .gem-particle:nth-child(8) { top: 95%; right: 8%; animation-delay: 4.2s; }

.page-broadcast .star:nth-child(9) { top: 8%; left: 20%; animation-delay: 0.4s; }
.page-broadcast .star:nth-child(10) { top: 20%; right: 18%; animation-delay: 2.2s; }
.page-broadcast .star:nth-child(11) { top: 40%; left: 2%; animation-delay: 1s; }
.page-broadcast .star:nth-child(12) { top: 58%; right: 2%; animation-delay: 3.4s; }
.page-broadcast .star:nth-child(13) { top: 75%; left: 15%; animation-delay: 1.6s; }
.page-broadcast .star:nth-child(14) { top: 35%; left: 97%; animation-delay: 2.8s; }
.page-broadcast .star:nth-child(15) { top: 52%; right: 18%; animation-delay: 4.6s; }
.page-broadcast .star:nth-child(16) { top: 3%; right: 5%; animation-delay: 0.8s; }

/* Silver rain - broadcast only */
.rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.raindrop {
  position: absolute;
  top: -120px;
  width: 1.5px;
  height: 80px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(180, 195, 210, 0.15) 10%,
    rgba(200, 215, 230, 0.5) 30%,
    rgba(220, 230, 245, 0.7) 50%,
    rgba(200, 215, 230, 0.5) 70%,
    rgba(180, 195, 210, 0.15) 90%,
    transparent 100%);
  animation: rain-fall ease-in-out infinite;
  opacity: 0;
  filter: drop-shadow(0 0 2px rgba(200, 220, 240, 0.4));
}

@keyframes rain-fall {
  0% {
    transform: translateY(0) scaleY(0.8);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
    transform: translateY(8vh) scaleY(1);
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(115vh) scaleY(1.1);
    opacity: 0;
  }
}

.raindrop:nth-child(1) { left: 3%; animation-duration: 4.5s; animation-delay: 0s; height: 70px; }
.raindrop:nth-child(2) { left: 10%; animation-duration: 5s; animation-delay: 0.4s; height: 90px; }
.raindrop:nth-child(3) { left: 16%; animation-duration: 4.2s; animation-delay: 1.2s; height: 65px; }
.raindrop:nth-child(4) { left: 23%; animation-duration: 5.5s; animation-delay: 0.1s; height: 100px; }
.raindrop:nth-child(5) { left: 30%; animation-duration: 4.8s; animation-delay: 1.8s; height: 75px; }
.raindrop:nth-child(6) { left: 38%; animation-duration: 4.4s; animation-delay: 0.7s; height: 85px; }
.raindrop:nth-child(7) { left: 45%; animation-duration: 5.2s; animation-delay: 2.2s; height: 68px; }
.raindrop:nth-child(8) { left: 53%; animation-duration: 4.6s; animation-delay: 0.3s; height: 95px; }
.raindrop:nth-child(9) { left: 60%; animation-duration: 5s; animation-delay: 1.5s; height: 72px; }
.raindrop:nth-child(10) { left: 68%; animation-duration: 4.7s; animation-delay: 2.8s; height: 88px; }
.raindrop:nth-child(11) { left: 75%; animation-duration: 5.4s; animation-delay: 0.6s; height: 62px; }
.raindrop:nth-child(12) { left: 83%; animation-duration: 4.3s; animation-delay: 1.9s; height: 82px; }
.raindrop:nth-child(13) { left: 90%; animation-duration: 5.1s; animation-delay: 1s; height: 92px; }
.raindrop:nth-child(14) { left: 97%; animation-duration: 4.9s; animation-delay: 2.5s; height: 78px; }
.raindrop:nth-child(15) { left: 7%; animation-duration: 5.3s; animation-delay: 3s; height: 85px; }
.raindrop:nth-child(16) { left: 20%; animation-duration: 4.5s; animation-delay: 3.5s; height: 70px; }
.raindrop:nth-child(17) { left: 35%; animation-duration: 5.6s; animation-delay: 2.1s; height: 98px; }
.raindrop:nth-child(18) { left: 50%; animation-duration: 4.8s; animation-delay: 3.8s; height: 74px; }
.raindrop:nth-child(19) { left: 65%; animation-duration: 5.2s; animation-delay: 2.9s; height: 86px; }
.raindrop:nth-child(20) { left: 80%; animation-duration: 4.6s; animation-delay: 3.3s; height: 80px; }

/* ============================================
   WATCH PAGE SPECIFIC STYLES
   ============================================ */

.page-watch {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(45, 35, 50, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(35, 30, 45, 0.3) 0%, transparent 50%),
    linear-gradient(165deg, #18141a 0%, #1e181f 40%, #14101a 100%);
  justify-content: flex-start;
  padding-top: 1rem;
}

.page-watch .container {
  margin-top: 4rem;
}

.page-watch h1 {
  display: none;
}

.page-watch .video-wrap {
  position: relative;
  width: min(calc(90vw - 200px), calc((100vh - 200px) * 16 / 9));
  max-width: none;
  max-height: calc(100vh - 200px);
  border-radius: 8px;
  margin-right: 300px;
  aspect-ratio: auto;
}

.page-watch video {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.page-watch .video-controls {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  z-index: 100;
}

.page-watch .audio-meter {
  width: 120px;
  height: 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.6);
}

.page-watch .audio-level {
  background: linear-gradient(90deg, #4ade80, #22c55e, #16a34a);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.page-watch button {
  padding: 0.9rem 2.5rem;
}

.page-watch .resolution {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}

/* Watch page gem - simpler */
.page-watch .gem {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f0e6d8 20%, #d4c4b0 50%, #a09080 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(220, 200, 180, 0.3),
    0 0 45px rgba(200, 180, 220, 0.2);
  animation: diamond-pulse 3s ease-in-out infinite;
  margin-top: 1.5rem;
  position: relative;
}

.page-watch .gem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.4) 50%, transparent 55%);
  clip-path: inherit;
  animation: diamond-flash 3s ease-in-out infinite;
}

@keyframes diamond-pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(220, 200, 180, 0.3), 0 0 45px rgba(200, 180, 220, 0.2);
  }
  50% {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 50px rgba(220, 200, 180, 0.4), 0 0 75px rgba(200, 180, 220, 0.3);
  }
}

@keyframes diamond-flash {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

/* Watch page corners - simpler */
.page-watch .corner {
  width: 50px;
  height: 50px;
  opacity: 0.15;
}

.page-watch .corner .diamond {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: corner-diamond-simple 4s ease-in-out infinite;
}

@keyframes corner-diamond-simple {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Watch page scattered gems - simpler */
.page-watch .scattered-gems .gem-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(220, 200, 180, 0.6));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  opacity: 0;
  animation: gem-glitter 6s ease-in-out infinite;
}

.page-watch .scattered-gems .gem-particle::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
  animation: gem-halo 6s ease-in-out infinite;
}

@keyframes gem-glitter {
  0%, 100% { opacity: 0; transform: scale(0.8) rotate(0deg); }
  15% { opacity: 0.15; }
  25% { opacity: 0.4; transform: scale(1.1) rotate(5deg); }
  35% { opacity: 0.2; }
  50% { opacity: 0.35; transform: scale(1) rotate(-3deg); }
  65% { opacity: 0.1; }
  75% { opacity: 0.3; transform: scale(1.15) rotate(8deg); }
  85% { opacity: 0.15; }
}

@keyframes gem-halo {
  0%, 100% { opacity: 0; transform: scale(1); }
  25%, 75% { opacity: 0.5; transform: scale(1.5); }
  50% { opacity: 0.8; transform: scale(2); }
}

.page-watch .gem-particle:nth-child(1) { top: 8%; left: 12%; animation-delay: 0s; }
.page-watch .gem-particle:nth-child(2) { top: 15%; right: 18%; animation-delay: 0.8s; }
.page-watch .gem-particle:nth-child(3) { top: 25%; left: 8%; animation-delay: 1.5s; }
.page-watch .gem-particle:nth-child(4) { top: 35%; right: 10%; animation-delay: 2.2s; }
.page-watch .gem-particle:nth-child(5) { top: 45%; left: 5%; animation-delay: 0.4s; }
.page-watch .gem-particle:nth-child(6) { top: 55%; right: 7%; animation-delay: 3s; }
.page-watch .gem-particle:nth-child(7) { top: 65%; left: 15%; animation-delay: 1.8s; }
.page-watch .gem-particle:nth-child(8) { top: 75%; right: 12%; animation-delay: 2.6s; }
.page-watch .gem-particle:nth-child(9) { top: 82%; left: 10%; animation-delay: 0.9s; }
.page-watch .gem-particle:nth-child(10) { top: 88%; right: 20%; animation-delay: 3.5s; }
.page-watch .gem-particle:nth-child(11) { top: 20%; left: 25%; animation-delay: 4s; }
.page-watch .gem-particle:nth-child(12) { top: 40%; right: 22%; animation-delay: 1.2s; }
.page-watch .gem-particle:nth-child(13) { top: 60%; left: 28%; animation-delay: 2.8s; }
.page-watch .gem-particle:nth-child(14) { top: 80%; right: 25%; animation-delay: 4.5s; }
.page-watch .gem-particle:nth-child(15) { top: 12%; left: 88%; animation-delay: 5s; }
.page-watch .gem-particle:nth-child(16) { top: 92%; left: 85%; animation-delay: 3.8s; }

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  .chat-panel {
    display: none;
  }

  .video-wrap,
  .page-watch .video-wrap {
    margin-right: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
    overflow-y: auto;
  }

  .page-watch {
    padding-top: 3rem;
  }

  .container {
    gap: 1.5rem;
    max-width: 100%;
  }

  .page-watch .container {
    margin-top: 1rem;
  }

  .video-wrap {
    width: 100%;
  }

  video {
    border-radius: 6px;
  }

  .info {
    gap: 0.3rem;
  }

  .room-code {
    font-size: 1.2rem;
    letter-spacing: 0.3em;
  }

  .label {
    font-size: 0.55rem;
  }

  h1 {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
  }

  .join-form {
    flex-direction: column;
    gap: 1rem;
  }

  input {
    width: 100%;
    max-width: 200px;
  }

  button {
    padding: 0.8rem 2rem;
    font-size: 0.65rem;
  }

  .footer {
    font-size: 0.5rem;
    bottom: 1rem;
  }

  .viewers-panel {
    right: 1rem;
    top: auto;
    bottom: 4rem;
    transform: none;
  }

  .corner {
    display: none;
  }

  .scattered-gems {
    opacity: 0.5;
  }

  .entry-requests-panel {
    left: 1rem;
    top: auto;
    bottom: 4rem;
    transform: none;
    max-height: 40vh;
  }

  .entry-request-card {
    padding: 0.75rem 1rem;
  }

  .request-text {
    font-size: 0.6rem;
  }

  .request-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }

  .page-watch {
    padding-top: 2rem;
  }

  .container {
    gap: 1rem;
  }

  .room-code {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  h1 {
    font-size: 0.55rem;
  }

  .page-watch .gem {
    width: 6px;
    height: 6px;
    margin-top: 1rem;
  }

  #status {
    font-size: 0.55rem;
  }

  .viewers-panel {
    display: none;
  }
}
