/* ==========================================================================
   AVANTIDA RADIO — RESPONSIVE OVERRIDES
   --------------------------------------------------------------------------
   Link this file LAST. It contains every @media block in the project.

   Cascade note: media queries add no specificity. These rules only beat
   style.css because they come later. If you ever move this file above
   style.css in the <head>, mobile styles will silently stop applying.
   ========================================================================== */

/* ==========================================================================
   <= 768px — tablets and phones
   ========================================================================== */
@media (max-width: 768px) {

  /* responsive.css — @media (max-width: 768px) */
  .cover-banner {
    /* delete: height: 200px;  — let aspect-ratio handle it */
    aspect-ratio: 896 / 504;  /* optional: keep mobile ratio tight */
  }

  .cover-banner.viz-active {
    height: clamp(200px, 30vh, 330px);  /* smaller on mobile */
  }

  /* Header stacks: logo above nav */
  .main-header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .main-header .main-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
  }

  .main-header .main-nav a {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  /* Language bar stops being sticky once the header unsticks */
  .lang-selector {
    position: relative;
    top: auto;
  }

  .lang-selector .container {
    flex-wrap: wrap;
  }

  .lang-btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
  }

  /* Shorter banner, smaller headline */
  .cover-banner {
    height: 200px;
  }

  .glitch-text {
    font-size: clamp(2.5rem, 11.5vw, 6.4rem);
  }

  /* Chat launcher shrinks and hugs the safe area */
  .chat-toggle-btn {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
  }

  /* popmax-001 — chat window goes FULL-BLEED on small screens (decree 2026-11-17)
     Hits all four edges: no margins, no rounding, the screen IS the chat.
     Parent .chat-layer is fixed inset:0, so 100% = exact visual viewport.
     Desktop card untouched. Restore: responsive.css.bak.pre-popmax-<ts> */
  .chat-container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .chat-header h3 {
    font-size: 1.2rem;
  }

  .chat-input-form {
    padding: 0.75rem;
  }

  .chat-input-form button {
    padding: 0.75rem 1rem;
    letter-spacing: 1px;
  }

  .messages-container {
    padding: 0.75rem;
  }

  /* Wall of Fame cards go single-column */
  .artist-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  /* About-page content blocks tighten up */
  .content-block {
    padding: 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .cta-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
}

/* ==========================================================================
   <= 700px — visualizer controls
   ========================================================================== */
@media (max-width: 700px) {

  #banner-viz-toggle,
  #banner-viz-mode,
  #banner-viz-fullscreen {
    font-size: 13px;
    padding: 6px 10px;
    letter-spacing: 1px;
  }

  #banner-viz-toggle {
    top: 8px;
    left: 8px;
  }

  #banner-viz-mode {
    top: 8px;
    right: 8px;
  }
}

/* ==========================================================================
   <= 600px — narrow phones
   ========================================================================== */
@media (max-width: 600px) {

  /* Channel picker stacks vertically */
  .channel-picker {
    flex-direction: column;
  }

  /* Song request form collapses to one column */
  .request-fields {
    grid-template-columns: 1fr;
  }

  .request-comment {
    grid-column: auto;
  }

  .request-form {
    padding: 1rem;
  }
}

/* ==========================================================================
   <= 520px — profile tab
   ========================================================================== */
@media (max-width: 520px) {

  #tab-profile {
    padding: 12px;
  }

  .tab-btn {
    min-width: 74px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   <= 480px — CRT wall panel
   ========================================================================== */
@media (max-width: 480px) {

  .crt-wall__link {
    gap: 10px;
    padding: 12px 10px;
  }

  .crt-wall__name {
    font-size: 24px;
  }

  /* Hero title: fits 480 — clamp + slimmed phosphor halo */
  .glitch-text {
    font-size: clamp(2.6rem, 13vw, 4rem);
    text-shadow:
      0 0 1px rgba(255, 255, 255, 0.55),
      0 0 6px var(--site-accent),
      0 0 14px rgba(var(--site-accent-rgb, 0, 255, 0), 0.45),
      2px 0 0 rgba(255, 47, 160, 0.35),
      -2px 0 0 rgba(61, 218, 215, 0.30);
  }
}

/* ==========================================================================
   Reduced motion — kill the live-mix pulse
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html.dj-live .player-wrapper {
    animation: none;
    box-shadow:
      0 0 30px rgba(var(--live-pink-rgb), 0.55),
      inset 0 0 22px rgba(var(--live-pink-rgb), 0.10);
  }
  html.dj-live .live-badge {      /* ← was .live-mix-chip */
    animation: none;
  }
}



/* ==== adminmobile-001 + abouttitle-001 (2026-11-17): mobile viewport claim ====
   Panels (notif + admin) go full-screen below 600px — desktop anchors
   (top:65px/right:20px/350px) die here; z-index rides above the FAB layer.
   About hero h1 clamps so long Greek headings wrap instead of clipping. ==== */
@media (max-width: 600px) {
  #notification-panel,
  #admin-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: 100% !important;
    z-index: 10002 !important;
    transform: none !important; /* adminmobile-001 r3: nb-chatsize memory centers via translate(-50%,-50%) - drags panel half off-screen */
    border-radius: 0;
    overflow-y: auto;
  }
  #notification-panel .notification-list {
    overflow-y: auto;
    max-height: none;
  }
  .page-hero h1 {
    font-size: clamp(2.2rem, 11vw, 4rem);
    overflow-wrap: break-word;
  }
  /* adminmobile-001 r4: FABs above full-screen panels - zlift-001 doctrine
     extended to the whole crew, bubbles stay tappable over the claimed viewport */
  #chat-toggle,
  #notification-bubble,
  #admin-bubble,
  #bg-slideshow-toggle {
    z-index: 10005 !important;
  }
}
/* ==== adminmobile-001 ==== */
