/* —— Cinematic beauty layer —— */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: aurora-float 18s ease-in-out infinite;
}

.aurora__blob--1 {
  width: 55vw;
  height: 55vw;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(66, 232, 133, 0.45), transparent 70%);
}

.aurora__blob--2 {
  width: 45vw;
  height: 45vw;
  top: 40%;
  right: -15%;
  background: radial-gradient(circle, rgba(123, 104, 196, 0.4), transparent 70%);
  animation-delay: -6s;
}

.aurora__blob--3 {
  width: 40vw;
  height: 40vw;
  bottom: -10%;
  left: 30%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.25), transparent 70%);
  animation-delay: -12s;
}

@keyframes aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 3%) scale(1.05); }
  66% { transform: translate(-3%, -2%) scale(0.95); }
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(66, 232, 133, 0.08) 0%, transparent 40%),
    url("memes/film/dont-panic-premiere.jpg") center/cover no-repeat;
  opacity: 0.12;
  filter: saturate(0.6) blur(2px);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-equation {
  font-family: "Orbitron", var(--guide-font);
  letter-spacing: 0.02em;
}

.section-title {
  font-family: "Orbitron", var(--font);
  letter-spacing: 0.04em;
}

.film-stills--wide {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .film-stills--wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

.film-still--hero {
  grid-column: span 2;
}

@media (min-width: 700px) {
  .film-still--hero {
    grid-column: span 2;
    grid-row: span 2;
  }

  .film-still--hero img {
    max-height: 100%;
    min-height: 280px;
    object-fit: cover;
  }
}

.film-still:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow), var(--glow-panic);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-dock {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  width: min(320px, calc(100vw - 5.5rem));
  padding: 0.85rem 1rem;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: rgba(4, 10, 8, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--glow), 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.music-dock--collapsed {
  transform: translateY(calc(100% - 2.5rem));
  opacity: 0.85;
}

.music-dock--playing {
  border-color: var(--panic);
  animation: music-pulse 2s ease-in-out infinite;
}

@keyframes music-pulse {
  50% { box-shadow: var(--glow-panic), 0 12px 40px rgba(232, 93, 4, 0.15); }
}

.music-dock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.music-dock__title {
  font-family: var(--guide-font);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.music-dock__label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  min-height: 1.2em;
}

.music-dock__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.music-dock__controls .btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}

.music-dock__volume {
  width: 100%;
  accent-color: var(--green);
}

.music-dock__collapse {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
}

.music-dock__collapse:hover {
  color: var(--green);
}

.guide-chat-toggle {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 201;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: linear-gradient(145deg, rgba(12, 24, 18, 0.98), rgba(4, 10, 8, 0.98));
  color: var(--green-bright);
  font-family: var(--guide-font);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.guide-chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--glow-panic);
}

.guide-chat-panel {
  position: fixed;
  bottom: 5.5rem;
  left: 1.25rem;
  z-index: 200;
  width: min(380px, calc(100vw - 2.5rem));
  max-height: min(520px, 70vh);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: rgba(4, 10, 8, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--glow), 0 20px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.guide-chat-panel--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.guide-chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.guide-chat-panel__head h3 {
  font-family: var(--guide-font);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.guide-chat-panel__close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.guide-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 200px;
  max-height: 280px;
}

.guide-chat__msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.guide-chat__msg--user {
  justify-content: flex-end;
}

.guide-chat__avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--green-dim);
  color: var(--green-bright);
  font-family: var(--guide-font);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
}

.guide-chat__bubble {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.45;
  background: rgba(66, 232, 133, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
}

.guide-chat__bubble--user {
  background: rgba(232, 93, 4, 0.12);
  border-color: rgba(232, 93, 4, 0.35);
}

.guide-chat__typing .guide-chat__bubble span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--green);
  animation: typing-dot 1s infinite;
}

.guide-chat__typing .guide-chat__bubble span:nth-child(2) { animation-delay: 0.15s; }
.guide-chat__typing .guide-chat__bubble span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

.guide-chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1rem 0.5rem;
}

.guide-chat__quick {
  font-family: var(--guide-font);
  font-size: 0.65rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.guide-chat__quick:hover {
  color: var(--green-bright);
  border-color: var(--green);
}

.guide-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.guide-chat-form input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  color: var(--text);
  font-family: var(--guide-font);
  font-size: 0.85rem;
}

.guide-chat-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(66, 232, 133, 0.2);
}

.guide-ai-section {
  margin-top: 2rem;
}

.guide-ai-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .guide-ai-intro {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.guide-ai-preview {
  padding: 1rem;
  min-height: 200px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border);
  border-radius: 6px;
}

.guide-ai-preview p {
  font-family: var(--guide-font);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.btn-music-header {
  display: none;
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
}

@media (min-width: 768px) {
  .btn-music-header {
    display: inline-flex;
  }
}

.words-wall {
  columns: 2;
  column-gap: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .words-wall {
    columns: 3;
  }
}

.words-wall p {
  break-inside: avoid;
  margin-bottom: 1rem;
  font-family: var(--guide-font);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.words-wall strong {
  color: var(--green-bright);
}

.video-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .video-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .video-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
