/* Newport Beach Pier — HyperFrame fish guide */
:root {
  --np-ocean: #0d6efd;
  --np-ocean-dark: #084298;
  --np-sand: #f3fbff;
  --np-foam: #e3f2fd;
  --np-ink: #1c2833;
  --np-muted: #5c6b7a;
  --np-gold: #c4a574;
  --np-surface: #ffffff;
  --np-border: #d8e8f5;
  --np-shadow: 0 12px 32px rgba(13, 110, 253, 0.12);
}

body.np-page {
  background: linear-gradient(160deg, var(--np-sand) 0%, var(--np-foam) 45%, #fff 100%);
  color: var(--np-ink);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
}

.np-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.np-hero {
  background: linear-gradient(135deg, var(--np-ocean), var(--np-ocean-dark));
  color: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--np-shadow);
  margin-bottom: 1.5rem;
}

.np-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.np-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 0.35rem;
}

.np-subtitle {
  margin: 0;
  opacity: 0.92;
  max-width: 52ch;
}

.np-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 991px) {
  .np-layout {
    grid-template-columns: 1fr;
  }
}

.np-video-card,
.np-side-card,
.np-fish-card,
.np-studio-card {
  background: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.np-video-card {
  overflow: hidden;
}

.np-video-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 544 / 720;
  max-height: 72vh;
  margin: 0 auto;
}

.np-video-wrap.is-story::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}

/* Presenter picture-in-picture on pier walk */
.np-avatar-pip {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: min(38%, 168px);
  z-index: 4;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  background: #0a1628;
  pointer-events: auto;
  animation: npPipIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.np-avatar-pip.is-hidden {
  display: none;
}

.np-avatar-pip__video,
.np-avatar-pip__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: top;
}

.np-avatar-pip__img {
  background: #0a1628;
}

.np-avatar-pip--dual .np-avatar-pip__badge {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.np-presenter-thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--np-border);
  margin-bottom: 0.5rem;
  display: block;
}

.np-avatar-pip--circle .np-avatar-pip__video,
.np-avatar-pip--circle .np-avatar-pip__img {
  aspect-ratio: 1;
  object-fit: cover;
}

.np-avatar-pip__close {
  position: absolute;
  top: 0.2rem;
  right: 0.25rem;
  z-index: 2;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.np-avatar-pip--alpha {
  border: none;
  background: transparent;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.38);
}

.np-avatar-pip--circle {
  border-radius: 50%;
  width: min(34%, 148px);
}

.np-avatar-pip--alpha.np-avatar-pip--circle {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

@keyframes npPipIn {
  from { opacity: 0; transform: translateY(8px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.np-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  pointer-events: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(8, 66, 152, 0.82);
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.np-overlay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.np-overlay-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.np-overlay-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  margin: 0.15rem 0 0.45rem;
}

.np-fish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.np-fish-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.np-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--np-border);
  align-items: center;
}

.np-stop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1rem 0.85rem;
}

.np-stop-btn {
  font-size: 0.78rem;
}

.np-stop-btn.active {
  background: var(--np-ocean);
  border-color: var(--np-ocean);
  color: #fff;
}

.np-side-card {
  padding: 1rem;
}

.np-avatar-video {
  width: 100%;
  border-radius: 12px;
  background: #0a1628;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.np-avatar-preview {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #12325f);
  text-align: center;
}

.np-avatar-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.np-avatar-preview-cap {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

.np-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a1628, #12325f);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

.np-script {
  font-size: 0.85rem;
  color: var(--np-muted);
  margin-top: 0.75rem;
  line-height: 1.45;
}

.np-fish-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.np-fish-item {
  border: 1px solid var(--np-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.np-fish-item:hover,
.np-fish-item.is-active {
  border-color: var(--np-ocean);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.15);
}

.np-fish-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--np-foam);
}

.np-fish-body {
  padding: 0.65rem 0.75rem 0.75rem;
}

.np-fish-name {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 0.15rem;
}

.np-fish-sci {
  font-size: 0.75rem;
  color: var(--np-muted);
  font-style: italic;
}

.np-fish-meta {
  font-size: 0.75rem;
  color: var(--np-muted);
  margin-top: 0.35rem;
}

.np-studio-card {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
}

.np-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 575px) {
  .np-studio-grid {
    grid-template-columns: 1fr;
  }
}

.np-reel-wrap {
  margin-top: 1.25rem;
}

.np-reel-video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.np-status {
  min-height: 1.25rem;
}

.np-studio-avatar-thumb {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--np-border);
}

.np-studio-advanced summary {
  cursor: pointer;
  color: var(--np-ocean);
}

.np-studio-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--np-border);
  overflow: hidden;
}

.np-studio-progress-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--np-ocean), var(--np-gold));
  animation: npStudioPulse 1.2s ease-in-out infinite alternate;
}

@keyframes npStudioPulse {
  from { transform: translateX(-20%); }
  to { transform: translateX(220%); }
}

.np-studio-result-video {
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  background: #000;
}

.np-hyperframe-card,
.np-hyperframe-preview-wrap {
  margin-top: 0.5rem;
}

.np-hyperframe-preview {
  width: 100%;
  min-height: 280px;
  border: 1px solid var(--np-border);
  border-radius: 12px;
  background: #0a2540;
}

.np-reel-iframe {
  min-height: 360px;
}

.np-reel-progress .progress {
  background: rgba(243, 251, 255, 0.08);
}

.np-studio-details summary {
  cursor: pointer;
  color: var(--np-muted, #8eb4d9);
}

.np-studio-details[open] summary {
  margin-bottom: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .np-overlay {
    transition: none;
  }

  .np-avatar-pip {
    animation: none;
  }
}
