/* ─── RESET & BASE STYLES ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-teal: #5A8785;
  --bg-dark: #000;
  --text-light: #fafafa;
  /* Adjustable GIF Settings */
  --gif-height: 270px;
  --gif-width: 12%;
  --gif-speed: 12s;
  --gif-opacity: 1.6;
}

html, body {
  height: 100%;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: Arial, sans-serif;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── HEADER WITH ANIMATED GIFS ────────────────────────────────────────────── */
.header-banner {
  position: relative;
  height: var(--gif-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

/* FIRST GIF (RIGHT TO LEFT) */
.header-gif-right {
  position: absolute;
  top: 0;
  left: 50%;
  height: var(--gif-height);
  width: var(--gif-width);
  opacity: var(--gif-opacity);
  z-index: 0;
  background: url('/images/Untitled%20design(4).gif') no-repeat center center;
  background-size: cover;
  animation: slideRightToLeft var(--gif-speed) linear infinite;
}

/* SECOND GIF (LEFT TO RIGHT) */
.header-gif-left {
  position: absolute;
  top: 0;
  right: 50%;
  height: var(--gif-height);
  width: var(--gif-width);
  opacity: var(--gif-opacity);
  z-index: 0;
  background: url('/images/Untitled%20design(5).gif') no-repeat center center;
  background-size: cover;
  animation: slideLeftToRight var(--gif-speed) linear infinite;
}/* ─── HEADER WITH ANIMATED VIDEOS (replaces GIF backgrounds) ───────────── */
.header-banner {
  position: relative;
  height: var(--gif-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}

/* Limit a subtle dark overlay to the banner only */
.header-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 0;
}

/* The two moving video elements */
.header-gif-right,
.header-gif-left {
  position: absolute;
  top: 0;
  height: var(--gif-height);
  width: var(--gif-width);
  opacity: var(--gif-opacity);
  z-index: 0;
  object-fit: cover;
  pointer-events: none;
  /* keep the same motion as before */
  animation-duration: var(--gif-speed);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* RIGHT element moves right-to-left */
.header-gif-right {
  left: 50%;
  animation-name: slideRightToLeft;
}

/* LEFT element moves left-to-right */
.header-gif-left {
  right: 50%;
  animation-name: slideLeftToRight;
}

/* Motion keyframes (unchanged) */
@keyframes slideRightToLeft {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100vw); }
}
@keyframes slideLeftToRight {
  0%   { transform: translateX(-100vw); }
  100% { transform: translateX(100vw); }
}

/* Keep logos/titles above the moving videos */
header .logo-container,
header .title {
  position: relative;
  z-index: 1;
}

/* ✅ limit the dark overlay to the animated banner only */
.header-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* keep these on the banner header only */
header .logo-container,
header .title {
  position: relative;
  z-index: 1;
}

header .logo {
  height: 180px;
  margin-bottom: 0.3rem;
  margin-left: 0.7rem; 
}

header .title {
  flex: 1 1 auto;
  text-align: center;
}

header .title h1 {
  font-size: 2rem;
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
}

header .title .tagline {
  font-size: 1.2rem;
  color: var(--brand-teal);
  margin-top: 0;
}

/* ─── NAVIGATION BAR ───────────────────────────────────────────────────── */
#main-nav {
  position: relative;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0.25rem 0.75rem !important;

  /* Solid teal bar with black top/bottom lines */
  background-color: var(--brand-teal) !important;
  border-top:    2px solid #000 !important;
  border-bottom: 2px solid #000 !important;

  z-index: 1000 !important;
}

/* Legacy items (safe to keep) */
#main-nav .nav-item { position: relative; z-index: 1; }
#main-nav .nav-item a {
  color: #fff !important;
  font-size: 2rem !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

/* Menu links + icons cluster */
#main-nav .nav-menu{
  display:flex !important;
  align-items:center !important;
  justify-content:space-evenly !important;
  gap:clamp(.25rem,2vw,1.5rem) !important;
  flex:1 1 auto !important;
}

/* Make all nav links (a, button, summary) look identical */
#main-nav a.nav-link,
#main-nav button.nav-link,
#main-nav summary.nav-link{
  color:#fff !important;
  font-family:'Bebas Neue',sans-serif !important;
  font-size:2rem !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  list-style:none !important;
  display:inline-flex !important;
  align-items:center !important;
  line-height:1.2 !important;
  letter-spacing:.5px;
  cursor:pointer;
}

/* ABOUT dropdown that now lives inside the nav */
.nav-details{ position:relative; }
.nav-details .about-panel{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:min(520px,86vw);
  background:#000;
  color:#fff;
  border:2px solid var(--brand-teal);
  border-radius:8px;
  padding:.75rem .9rem;
  line-height:1.35;
  box-shadow:0 8px 18px rgba(0,0,0,.45);
  display:none;
  z-index:1100;
}
.nav-details[open] .about-panel{ display:block; }
.nav-details > summary::-webkit-details-marker{ display:none; }
.nav-details > summary:focus{ outline:2px solid #fff; outline-offset:2px; }

#main-nav .nav-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:.5rem !important;
}
#main-nav .social-icon,
#main-nav .icon-img{
  margin-left:.25rem !important;
  vertical-align:middle !important;
  width:2rem !important;
  height:auto !important;
}

/* ─── OneMusic badge in NAV bar ─────────────────────────────────── */
#main-nav .nav-onemusic {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}
#main-nav .nav-onemusic img {
  max-height: 2rem;
  width: auto;
  height: auto;
  display: block;
}
@media (max-width: 400px) {
  #main-nav .nav-onemusic { display: none; }
}

/* ─── CHROMECAST BUTTON STYLING ────────────────────────────────────────── */
google-cast-button {
  --icon-color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  display: inline-block;
}

/* Fallback CAST button — hidden by default; JS shows inline-flex when needed */
#manualCastBtn{
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: .25rem;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;              /* inherit Bebas + size from .nav-link */
  line-height: inherit;
}

/* ─── GRID LAYOUT ─────────────────────────────────────────────────── */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0.6rem;
}

/* ─── SLIDESHOW ───────────────────────────────────────────────────── */
#slideshow {
  margin: 0 auto;
  border: 2px solid var(--brand-teal);
  box-sizing: border-box;
  transform: scale(1.2);
  transform-origin: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
#slideshow > * { height: 100%; }

/* ─── SECTION & TYPOGRAPHY ────────────────────────────────────────── */
section {
  background: #000;
  border: 2px solid var(--brand-teal);
  border-radius: 6px;
  padding: 0.5rem;
}
section h2 {
  position: relative;
  margin-bottom: 1rem;
  color: var(--brand-teal);
  text-align: center;
  padding-bottom: 0.6rem;
}
section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  height: 4px;
  background: var(--brand-teal);
  width: 0;
  animation: drawLineReverse 2s ease-out forwards;
}
@keyframes drawLineReverse { to { width: 100%; } }

/* ─── CHAT IFRAME & ACTIONS ──────────────────────────────────────── */
.chat iframe {
  width: 100%;
  height: 1200px;
  border: none;
  border-radius: 4px;
  margin-top: 0.4rem;
}
.chat-actions { text-align: center; }
.popout-btn {
  display: inline-block;
  margin: 0.5rem auto;
  padding: 0.5rem 2rem;
  font-size: 1rem;
  background: var(--brand-teal);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ─── LIVE PLAYER ─────────────────├─────────────────────────────────── */
.live-player {
  background: #000;
  border: 2px solid var(--brand-teal);
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
}
.live-player iframe,
.live-player audio {
  width: 100%;
  height: 300px;
  max-height: 55vh;
  border: none;
  border-radius: 4px;
  margin: 0 auto 1rem;
  display: block;
}
.player-container { max-width: 1000px; margin: 0 auto; }
#now-archive {
  font-weight: bold;
  color: var(--brand-teal);
  font-size: 1.5rem;
  margin: 0.3rem 0 1rem;
}

/* ─── CURRENT DJ ARTWORK ───────────────────────────────────────── */
#now-art {
  width: 100%;
  max-width: 450px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 1rem auto;
}

/* ─── MIXCLOUD ARCHIVE ─────────────────────────────────────────── */
.mixcloud {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.5rem;
}
#mixcloud-list {
  flex: 1;
  overflow-y: auto;
  max-height: 1900px;
  padding-right: 5px;
  scroll-behavior: smooth;
  margin-top: 0.4rem;
}
#mixcloud-list iframe {
  width: 100%;
  height: 120px;
  margin-bottom: 0.5rem;
  border: none;
}
.add-mixcloud { text-align: center; padding-top: 0.5rem; }
.add-mixcloud input,
.add-mixcloud button { font-size: 1rem; }
.add-mixcloud input {
  width: 80%;
  max-width: 600px;
  padding: 0.5rem;
}
.add-mixcloud button {
  margin-top: 0.5rem;
  padding: 0.5rem 2rem;
  background: var(--brand-teal);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ─── WEEKLY SCHEDULE (legacy list) ─────────────────────────────── */
.schedule {
  background: #111;
  border-radius: 6px;
  padding: 0 1rem 1rem;
  overflow-y: auto;
  font-size: 1.4rem;
  line-height: 1.4;
}
.schedule-heading {
  position: sticky;
  top: 0;
  background: #111;
  z-index: 10;
  padding: 0.4rem 0;
  font-size: 1.5rem;
  border-bottom: 0.4px solid var(--brand-teal);
}

/* Day title = white on solid teal (matches nav) */
#schedule-container h3,
#schedule-container .day-title {
  background: var(--brand-teal);
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin: 0.6rem 0 0.2rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.5px;
}

/* Thin teal line between shows (rows that follow a day title) */
#schedule-container h3 ~ * ,
#schedule-container .day-title ~ * {
  border-top: 2px solid var(--brand-teal);
  padding: 0.35rem 0.6rem;
}

/* ─── FOOTER BANNER ────────────────────────────────────────────── */
.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-teal);
  padding: 1rem;
}
.banner a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #000;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}
.banner a:hover { color: var(--text-light); }

/* ─── RESPONSIVE GIF SIZING ─────────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --gif-height: 200px; --gif-width: 16%; }
}
@media (max-width: 768px) {
  :root { --gif-height: 150px; --gif-width: 20%; }
}
@media (max-width: 480px) {
  :root { --gif-height: 120px; --gif-width: 30%; }
}

/* ─── MOBILE LAYOUT OVERWRITES ──────────────────────────────────── */
@media (max-width: 768px) {
  /* Header adjustments */
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  header .logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
  }
  header .title h1 { font-size: 1.8rem; line-height: 1.2; }
  header .title .tagline { font-size: 1rem; }

  /* Two stacked nav rows on phones */
  nav#main-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: .35rem .55rem !important;
  }
  /* Row 1: text links spread across */
  nav#main-nav .nav-menu {
    order: 1 !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: .35rem !important;
    min-width: 0 !important;
  }
  /* Include button.nav-link here too */
  nav#main-nav a.nav-link,
  nav#main-nav button.nav-link,
  nav#main-nav summary.nav-link {
    font-size: 1rem !important;
    letter-spacing: .5px !important;
    white-space: nowrap !important;
  }
  /* Row 2: social icons centered under links */
  nav#main-nav .nav-actions {
    order: 2 !important;
    position: static !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: .9rem !important;
    padding: .35rem 0 .25rem !important;
    margin-top: .15rem !important;
    border-top: 1px solid rgba(0,0,0,.25) !important;
  }
  nav#main-nav .social-icon i { font-size: 1.4rem !important; }
  /* Hide large image badges on phones so nothing collides */
  nav#main-nav .icon-img,
  nav#main-nav .nav-onemusic { display: none !important; }

  /* Single-column flow */
  .grid-container {
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
  }

  /* Remove Mixcloud entirely on mobile */
  .mixcloud { display: none !important; }

  /* Re‐order so that Live → Chat → Schedule */
  .live-player { order: 1; }
  .chat        { order: 2; }
  .schedule    { order: 3; }

  /* Tweak chat iframe */
  .chat iframe { height: 70vh; max-height: 70vh; }

  /* Schedule stays scrollable */
  .schedule { overflow-y: auto; }

  /* Show ~2 days of lineup, scroll for more */
  #schedule-container{
    max-height:55vh;
    overflow-y:auto;
    padding-right:6px;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
  }
  /* Keep day strip visible while scrolling */
  #schedule-container h3,
  #schedule-container .day-title{
    position:sticky;
    top:0;
    z-index:2;
  }

  /* MOBILE footer shrink */
  .banner{
    padding: .35rem .55rem !important;
    gap: .25rem !important;
  }
  footer.banner > div{
    padding: .35rem .55rem !important;
  }
  .banner a{
    font-size: 1rem !important;
    padding: .3rem .5rem !important;
  }
  .banner span,
  .banner p{
    font-size: .72rem !important;
    line-height: 1.15 !important;
  }

  /* Hide any leftover desktop‐only buttons */
  #popOutBtn,
  header .logo-container:last-of-type { display: none; }

  /* Chat-modal remains available */
  #chatModal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }
  #chatModal .modal-content { width: 100%; height: 100%; }
  #chatModal iframe {
    width: 100%; height: 100%;
    border: none; border-radius: 4px;
  }
  #chatModal .close-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--brand-teal);
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10000;
  }
}

/* ─── DESKTOP LAYOUT OVERWRITES ──────────────────────────────────── */
@media (min-width: 600px) {
  .grid-container { grid-template-columns: 1fr 1.5fr; }
  .banner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 769px) {
  .live-player iframe,
  .live-player audio {
    height: 600px;
    max-height: 150vh;
  }
  #slideshow {
    grid-column: 1 / -1;
    width: 100%;
    height: 500px;
    transform: none;
    max-width: none;
    max-height: 100vh;
  }
  #slideshow > * { height: 100%; }
  .grid-container { grid-template-columns: 1fr 1.5fr 1fr 1fr; }
  .chat iframe { height: 1200px; }
}
@media (min-width: 900px) {
  header .title h1 { font-size: 8rem; }
  header .title .tagline { font-size: 2.45rem; }
  header .logo { height: 200px; max-width: 270px; }
  #now-art { max-width: 600px; }
}

/* ─── DESKTOP ONLY: HIDE THE CHAT-SECTION POP-OUT BUTTON ────────────── */
@media only screen and (min-width: 769px) {
  section.chat .chat-actions { display: none !important; }
}

/* ─── MIXCLOUD DELETE LINK STYLES ─────────────────────────────────────────── */
.mixcloud-item { position: relative; }
/* hide for everyone by default */
.remove-link {
  display: none !important;
  text-align: right;
  font-size: 0.9rem;
  color: var(--brand-teal);
  text-decoration: underline;
  margin-top: 0.3rem;
  cursor: pointer;
}
/* only show when in admin mode */
.admin-mode .remove-link { display: inline-block !important; }

/* ─── MOBILE ONLY: hide in-chat pop-out, show player pop-out ───────── */
@media (max-width: 768px) {
  section.chat .chat-actions { display: none !important; }
  #chatPopupBtn {
    display: inline-block !important;
    margin: 0.5rem auto 1rem !important;
  }
}

/* ─── DESKTOP ONLY: show in-chat pop-out, hide player pop-out ───────── */
@media (min-width: 769px) {
  section.chat .chat-actions { display: block !important; }
  #chatPopupBtn { display: none !important; }
}

/* ─── MOBILE-ONLY LOGO SIZING ──────────────────────────────────── */
@media only screen and (max-width: 768px) {
  header .logo {
    height: 100px !important;
    max-width: 100px !important;
    margin-bottom: 1.5rem !important;
    width: auto !important;
  }
}

/* ─── SCHEDULE PAGE: make headings truly white ────────────────────── */
.page-header h1,
.month-controls .title {
  color:#fff !important;
}

/* Day-of-week + date labels in grid */
.week-grid .day-head,
.week-grid .day-head .dow,
.week-grid .day-head .date {
  color:#fff !important;
  opacity:1 !important;
  filter:none !important;
  mix-blend-mode:normal !important;
}

/* ─────────────────────────────────────────────────────────────── */
/* ✅ FINAL MOBILE OVERRIDES already merged into the 768px block */
/* ─────────────────────────────────────────────────────────────── */
