:root {
  --bg: #06080e;
  --card-bg: rgba(255, 255, 255, 0.035);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.16);
  --accent: #ff5c1f;
  --accent-glow: rgba(255, 92, 31, 0.32);
  --accent-gradient: linear-gradient(135deg, #ff5c1f 0%, #ff7538 100%);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100vw;
}

body {
  background-color: #000;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* EDIT.OR.FX Signature Canvas Light Waves */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  filter: blur(24px) saturate(1.25);
  transform: scale(1.08);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% 50%, rgba(0, 0, 0, 0.45), transparent 80%),
    linear-gradient(transparent 70%, #000);
}

main {
  position: relative;
  z-index: 10;
}

/* Screening Room Header (No Nav Bar) */
.screening-hero-header {
  text-align: center;
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.screening-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
}

.screening-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.screening-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.screening-title {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.screening-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.status-badge.connecting {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
  color: var(--warning);
}

.status-badge.offline {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
  color: var(--danger);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-dot 2.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

/* EDIT.OR.LYNX Style Capsule Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 6px 20px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1.5px) scale(1.02);
  box-shadow: 0 10px 28px rgba(255, 92, 31, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--card-border-hover);
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem;
  width: 100%;
  flex: 1;
}

/* Video Player Viewport - Floating Rounded Frame */
.video-viewport-wrapper {
  position: relative;
  margin-bottom: 2.5rem;
}

.ambient-glow {
  position: absolute;
  inset: -25px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 92, 31, 0.22) 0%, rgba(255, 92, 31, 0.05) 45%, transparent 70%);
  filter: blur(48px);
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.video-hero {
  position: relative;
  z-index: 1;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Video Overlay */
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  z-index: 20;
}

.video-overlay.visible {
  display: flex;
}

.overlay-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse-icon 2.5s infinite ease-in-out;
}

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

.video-overlay h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.video-overlay p {
  max-width: 540px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   Review Deck & Action Bar (Cleaned Up & Modernized)
   ========================================================================== */
.review-deck {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.review-deck-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.status-pill-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.spec-pill.live {
  background: rgba(52, 211, 153, 0.09);
  border-color: rgba(52, 211, 153, 0.28);
  color: var(--success);
}

.spec-pill.client-tag {
  background: rgba(255, 92, 31, 0.12);
  border-color: rgba(255, 92, 31, 0.32);
  color: var(--accent);
}

.spec-pill-icon {
  font-size: 0.85rem;
}

.review-deck-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   4-Digit PIN Lock Modal Styles
   ========================================================================== */
.pin-modal {
  z-index: 200;
}

.pin-box {
  max-width: 440px;
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 92, 31, 0.12);
  border: 1px solid rgba(255, 92, 31, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 25px var(--accent-glow);
}

.pin-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pin-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.pin-inputs {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.pin-digit {
  width: 54px;
  height: 62px;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: 'Space Grotesk', ui-monospace, monospace;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.pin-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow), inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.65);
}

.pin-error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pin-unlock-btn {
  width: 100%;
  justify-content: center;
  padding: 0.72rem;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.pin-contact-hint {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pin-contact-hint a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.pin-contact-hint a:hover {
  text-decoration: underline;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Frosted Glass Cards (EDIT.OR.LYNX style) */
.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.tag {
  background: rgba(255, 92, 31, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 92, 31, 0.28);
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-title {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.project-description {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 2rem;
  white-space: pre-line;
  line-height: 1.7;
}

/* Chapters - Styled like EDIT.OR.LYNX Module Rows */
.chapters-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.95rem;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--card-border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.chapter-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--accent);
  background: rgba(255, 92, 31, 0.12);
  border: 1px solid rgba(255, 92, 31, 0.25);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.82rem;
}

/* Sidebar Specs */
.spec-item {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--card-border);
}

.spec-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.spec-value {
  font-weight: 600;
  font-size: 0.95rem;
}

/* EDIT.OR.FX Studio Footer */
.stream-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.2rem 1.5rem;
  background: #000;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* EDIT.OR.LYNX Glass Dialog Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.modal.open {
  display: flex;
}

.modal-box {
  background: rgba(13, 18, 31, 0.88);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.modal-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.modal-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness (Screening Room)
   ========================================================================== */

@media (max-width: 768px) {
  .status-badge {
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    gap: 0.4rem;
  }

  main {
    padding: 1.25rem 1rem;
  }

  .video-viewport-wrapper {
    margin-bottom: 1.5rem;
  }

  .ambient-glow {
    inset: -12px;
    filter: blur(32px);
    opacity: 0.55;
  }

  .video-hero {
    border-radius: 16px;
  }

  .video-overlay {
    padding: 1.25rem;
  }

  .overlay-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
  }

  .video-overlay h3 {
    font-size: 1.15rem;
  }

  .video-overlay p {
    font-size: 0.82rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }

  .review-deck {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem;
    gap: 1.15rem;
    border-radius: 18px;
  }

  .review-deck-left {
    width: 100%;
  }

  .status-pill-group {
    justify-content: flex-start;
  }

  .review-deck-actions {
    flex-direction: column;
    width: 100%;
  }

  .review-deck-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pin-box {
    padding: 2rem 1.25rem;
  }

  .pin-digit {
    width: 48px;
    height: 56px;
    font-size: 1.5rem;
  }

  footer {
    margin-top: 3rem;
    padding: 2rem 1rem;
  }

  .modal-box {
    padding: 1.5rem;
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  #statusText {
    display: none;
  }

  .status-badge {
    padding: 0.45rem;
    border-radius: 50%;
  }

  .status-dot {
    margin: 0;
  }

  main {
    padding: 0.85rem 0.65rem;
  }

  .spec-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }

  .pin-inputs {
    gap: 0.5rem;
  }

  .pin-digit {
    width: 42px;
    height: 50px;
    font-size: 1.35rem;
  }
}
