.calendar-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

#calendar-img {
  width: 100%;
  height: auto;
  display: block;
}

/* General Styles */
body {
  margin: 0;
  background: #111;
  font-family: 'Playfair Display', Arial, sans-serif;
  color: white;
  overflow-x: hidden; /* Prevent horizontal scroll */
  overflow-y: auto;   /* Allow vertical scroll when needed */
}

/* Header */
header {
  background-color: #222;
  padding: 10px 15px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.site-logo {
  max-height: 60px;
  width: auto;
}

header h1 {
  font-size: 1.6em;
  margin: 0;
  color: #ffd700;
}

header .tagline {
  font-size: 1em;
  color: #ccc;
  font-weight: normal;
}

/* Footer */
footer {
  background-color: #222;
  text-align: center;
  padding: 10px;
  font-size: 1em;
}

/* New: Inline footer row for contact and signup */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-contact {
  font-family: 'Playfair Display', Arial, sans-serif;
  color: #fff;
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

footer a {
  color: #facc15;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Calendar Container */
.calendar-container {
  position: relative;
  width: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

/* Clickable Boxes */
.clickable-box, .split-box {
  position: absolute;
  width: 10.16%;
  aspect-ratio: 1 / 1;
  z-index: 10;
  /* Ensure boxes don't cause overflow issues */
  max-width: calc(100vw - 20px);
}

.half-box {
  display: block;
  width: 100%;
  height: 50%;
  overflow: visible;
  position: absolute;
  z-index: 10;
  /* Ensure boxes don't cause overflow issues */
  max-width: calc(100vw - 20px);
}

/* Zoom effect */
.clickable-box img, .half-box img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

/* Portrait-specific boost for zoom */
.zoom-boost:hover img {
  transform: translate(-50%, -50%) scale(1.6);
  opacity: 1;
  z-index: 999;
}

.zoom-boost img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* Orientation visibility toggles */
@media screen and (orientation: portrait) {
  .landscape-only {
    display: none;
  }
  .portrait-only {
    display: block;
  }
}

@media screen and (orientation: landscape) {
  .portrait-only {
    display: none;
  }
  .landscape-only {
    display: block;
  }
}

.zoom-a:hover img {
  transform: translate(-50%, -50%) scale(2);
}

.zoom-a img {
  width: 100%;
  height: auto;
}

.zoom-a:hover img {
  transform: translate(-50%, -50%) scale(2.5);
}

.zoom-a {
  display: inline-block;
}

.zoom-a img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.page-header h1 {
  font-family: 'Playfair Display', Arial, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-header h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ccc;
}

.archive-month {
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  transition: color 0.3s;
}

.archive-item a:hover .archive-month {
  color: #b22222;
}

/* FIXED: Landscape orientation styles */
@media screen and (orientation: landscape) {
  html, body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* Removed overflow: hidden to prevent clipping */
  }

  header, footer {
    flex-shrink: 0;
  }

  .calendar-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0; /* Allow container to shrink if needed */
  }

  .calendar-wrapper {
    height: 100%;
  }

  #calendar-img {
    height: auto;
    width: auto;
    max-height: calc(100vh - var(--hfpx, 100px));
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}

header {
  background-color: #222;
  padding: 10px 15px;
  text-align: center;
}

header h1 {
  font-family: 'Playfair Display', Arial, sans-serif;
  font-size: 1.6em;
  margin: 0;
  color: #ffd700;
}

header .tagline, header h2 {
  font-size: 1em;
  color: #ccc;
  font-weight: normal;
  margin: 0.5em 0 0 0;
}

.header-links {
  margin-top: 10px;
  text-align: center;
}

.header-links a {
  margin-right: 16px;
  color: #990000;
  font-size: 1em;
  text-decoration: none;
  font-weight: bold;
}

.header-links a:hover {
  text-decoration: underline;
}

/* Playfair Display font */
@import url('https://fonts.googleapis.com/css2?family=Playfair Display:wght@500&display=swap');

/* One-line responsive header */
.one-line-header {
  background: linear-gradient(to right, #111, #220000);
  padding: 10px 15px;
  font-family: 'Playfair Display', sans-serif;
}

.header-bar {
  flex-wrap: nowrap;
  justify-content: space-between;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.site-logo {
  height: 40px;
  width: auto;
}

.title-text {
  font-size: 1.4rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
}

.past-link {
  color: #990000;
  text-decoration: none;
  font-weight: bold;
}

.past-link:hover {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .header-bar {
  flex-wrap: nowrap;
  justify-content: space-between;
    flex-direction: column;
    align-items: center;
  }

  .title-text {
  font-size: 1.4rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
}
}

/* --- HIDE ORIGINAL IMAGE ON HOVER FOR CLICKABLE-BOX AND HALF-BOX --- */
.clickable-box:hover img,
.half-box:hover img {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(1) !important;
  box-shadow: none !important;
  z-index: 10 !important;
}

.hover-zoom-img {
  will-change: transform, opacity, left, top, width, height;
  background: #111;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s cubic-bezier(.4,2,.6,1);
  opacity: 0;
  transform: scale(0.8);
}

.social-icons-inline i {
  color: #ccc;
  font-size: 1.2em;
  margin-right: 10px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-icons-inline i:hover {
  color: #fff;
}

.social-icon {
  height: 20px;
  width: auto;
  filter: grayscale(100%);
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -2px; /* aligns better with font icons */
  transition: filter 0.3s ease;
}

.social-icon:hover {
  filter: grayscale(0%);
  text-decoration: none;
}

/* Footer signup inline and minimal */
.footer-signup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
}

.footer-signup input[type="email"] {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ffd700;
  background-color: #000;
  color: #fff;
  font-family: 'Playfair Display', sans-serif;
  font-size: 0.8rem;
  width: 160px;
}

.footer-signup button {
  background: #990000;
  border: none;
  color: white;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Playfair Display', sans-serif;
}

.footer-signup button:hover {
  background-color: #cc0000;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Refined Dropdown Navigation */
.header-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  font-size: 1.1rem;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  color: #ffd700;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(30, 30, 30, 0.95);
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  text-align: center;
  padding: 8px;
  animation: fadeIn 0.2s ease-in-out;
  top: 120%;
  right: 0;
}

.dropdown-content a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #444;
  color: #ffd700;
}

.dropdown:hover .dropdown-content {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.header-bar {
  justify-content: center !important;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-bar {
  justify-content: center !important;
  padding: 6px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
}

.logo-icon {
  display: flex;
  align-items: center;
  height: 40px;
}

.title-text {
  font-size: 1.4rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
}

.dropdown > a {
  font-size: 1.1rem;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  font-family: 'Playfair Display', serif;
  color: #ffd700;
  text-decoration: none;
}

.title-text {
  font-size: 1.2rem !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 500;
  display: flex;
  align-items: center;
  color: inherit;
}

.dropdown > a {
  font-size: 1.1rem !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 600;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  color: #ffd700;
  text-decoration: none;
}

.dropdown > a {
  font-size: 1.1rem !important;
  font-family: 'Playfair Display', serif !important;
  font-weight: 500 !important;
  color: #facc15 !important;  /* slightly softer gold */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  text-decoration: none;
}

/* === Movies header overrides === */
.movies .title-text {
  font-family: 'Cinzel', serif !important;
  font-weight: 700;
}
.movies .title-text span:first-child {
  margin-right: 0.35em;
}

/* FIXED: Portrait orientation styles */
@media screen and (orientation: portrait) {
  html, body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* REMOVED: overflow: hidden; - this was causing the clipping */
  }

  header, footer {
    flex-shrink: 0;
  }

  .landscape-only {
    display: none;
  }
  .portrait-only {
    display: block;
  }

  .calendar-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0; /* Allow container to shrink if needed */
  }

  .calendar-wrapper {
    height: 100%;
    width: auto !important;
    display: inline-block !important;
  }

  #calendar-img {
    height: auto; /* Changed from 100% to auto */
    width: 100%;   /* Changed from auto to 100% */
    max-height: calc(100vh - var(--hfpx, 120px)); /* Ensure image fits in viewport minus header/footer */
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
}

/* Portrait centering fix: shrink wrapper to image width and center */
@media screen and (orientation: portrait) {
  .calendar-container {
    justify-content: center;
    align-items: center;
  }
  .calendar-wrapper {
    width: auto !important;
    display: inline-block !important;
  }
  #calendar-img {
    display: block;
    margin: 0 auto;
  }
}

/* Portrait blurred edge fill */
@media screen and (orientation: portrait) {
  .calendar-container {
    position: relative;
    z-index: 0;
  }
  .calendar-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--portrait-bg);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    z-index: -1;
  }
}

/* === Portrait edge-fill background (blurred) === */
@media screen and (orientation: portrait) {
  .calendar-container {
    position: relative;
    overflow: hidden; /* hide blur bleed */
    isolation: isolate; /* ensure stacking context */
  }
  .calendar-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--calendar-bg, url('october-movies-portrait.webp'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(24px) brightness(0.55);
    transform: scale(1.08); /* slight zoom so blur edges aren't visible */
    z-index: 0;
  }
  .calendar-wrapper {
    position: relative;
    z-index: 1; /* sit above blurred fill */
  }
}

/* --- Fix: ensure main image is above blurred background in portrait --- */
@media screen and (orientation: portrait) {
  .calendar-container { position: relative; }
  .calendar-container::before { z-index: 0; pointer-events: none; }
  .calendar-wrapper { position: relative; z-index: 1; }
  #calendar-img { position: relative; z-index: 1; opacity: 1 !important; }
}

@media screen and (orientation: landscape) {
  #calendar-img {
    display: block;
    margin: 0 auto; /* center horizontally */
  }
}

/* === Landscape edge-fill background (subtle) === */
@media screen and (orientation: landscape) {
  .calendar-container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .calendar-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--calendar-bg, url('october-movies-landscape.webp'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(18px) brightness(0.75); /* subtler than portrait */
    transform: scale(1.05);
    z-index: 0;
    pointer-events: none;
  }
  .calendar-wrapper {
    position: relative;
    z-index: 1;
  }
  #calendar-img {
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    display: block;
    margin: 0 auto;
  }
}

/* === Landscape edge-fill background (subtle) === */
@media screen and (orientation: landscape) {
  .calendar-container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .calendar-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--calendar-bg, url('october-movies-landscape.webp'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(16px) brightness(0.65);
    transform: scale(1.06);
    z-index: 0;
    pointer-events: none;
  }
  .calendar-wrapper,
  #calendar-img {
    position: relative;
    z-index: 1;
  }
}

/* Subtle shadow for clickable boxes to separate from bg */
.clickable-box, .split-box, .half-box {
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  border-radius: 8px;
}

/* Footer icon theme for October Movies */
.movies .social-icons-inline i,
.movies .social-icon {
  color: #B22222 !important; /* deep red */
  filter: none !important;
}
.movies .social-icons-inline i:hover,
.movies .social-icon:hover {
  color: #FFD700 !important; /* gold on hover */
  filter: none !important;
}

@media screen and (orientation: landscape) {
  :root {
    --edge-brightness-landscape: 0.65; /* was ~0.7 */
    --edge-blur-landscape: 14px;       /* slightly softer than portrait */
  }
  .calendar-container::before {
    filter: blur(var(--edge-blur-landscape)) brightness(var(--edge-brightness-landscape));
  }
  .calendar-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 55%,
      rgba(0,0,0,0.22) 100%);
  }
  .calendar-wrapper { z-index: 1; }
}

/* ===== Refined Visual Tweaks ===== */

/* Edge blur tuning + stronger vignette for max poster focus */
@media screen and (orientation: portrait) {
  :root {
    --edge-brightness: 0.5; /* darker for focus */
    --edge-blur: 26px;
  }
  .calendar-container::before {
    filter: blur(var(--edge-blur)) brightness(var(--edge-brightness));
  }
  .calendar-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 50%,
      rgba(0,0,0,0.35) 100%);
  }
  .calendar-wrapper { z-index: 1; }
}

@media screen and (orientation: landscape) {
  :root {
    --edge-brightness: 0.5; /* match portrait darkness */
    --edge-blur: 22px;
  }
  .calendar-container::before {
    filter: blur(var(--edge-blur)) brightness(var(--edge-brightness));
  }
  .calendar-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 50%,
      rgba(0,0,0,0.35) 100%);
  }
  .calendar-wrapper { z-index: 1; }
}

/* More visible micro shadows on boxes */
.clickable-box, .half-box {
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
}
.clickable-box::after, .half-box::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 20px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.clickable-box:hover::after, .half-box:hover::after {
  opacity: 0.95;
}

/* Footer icons: original greyscale, gold hover */
.footer-row .footer-icon i,
.social-icons-inline i,
.social-icon {
  filter: grayscale(100%) brightness(0.85);
  transition: filter 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  color: inherit; /* keep original color scheme if applied */
}
.footer-row .footer-icon i:hover,
.social-icons-inline i:hover,
.social-icon:hover {
  filter: grayscale(0%) brightness(1);
  color: #ffd700; /* gold */
  box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* ===== FINAL OVERRIDES (ensure they win) ===== */

/* 1) Footer icons: greyscale default, gold on hover (override any earlier red rules) */
body.movies footer .social-icons-inline i,
body.movies footer .footer-icon i,
body.movies footer .social-icon {
  color: inherit !important;
  filter: grayscale(100%) brightness(0.85) !important;
  transition: filter 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
body.movies footer .social-icons-inline i:hover,
body.movies footer .footer-icon i:hover,
body.movies footer .social-icon:hover {
  filter: grayscale(0%) brightness(1) !important;
  color: #ffd700 !important;
  box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* 2) Edge blur + vignette: stronger, inside actual media queries */
@media screen and (orientation: portrait) {
  .calendar-container::before {
    filter: blur(26px) brightness(0.5) !important;
    transform: scale(1.08) !important;
  }
  .calendar-container::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 50%,
      rgba(0,0,0,0.35) 100%) !important;
  }
  .calendar-wrapper { z-index: 1 !important; }
}

@media screen and (orientation: landscape) {
  .calendar-container::before {
    filter: blur(22px) brightness(0.5) !important;
    transform: scale(1.06) !important;
  }
  .calendar-container::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 50%,
      rgba(0,0,0,0.35) 100%) !important;
  }
  .calendar-wrapper { z-index: 1 !important; }
}

/* 3) More visible box shadows */
.clickable-box, .half-box {
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.45)) !important;
}
.clickable-box::after, .half-box::after {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 14px !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 10px 24px rgba(0,0,0,0.45) !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  pointer-events: none !important;
}
.clickable-box:hover::after, .half-box:hover::after {
  opacity: 0.95 !important;
}

/* ===== VISIBILITY BOOST (stronger, obvious) ===== */

/* Darker edges + stronger vignette */
@media screen and (orientation: portrait) {
  .calendar-container::before {
    filter: blur(28px) brightness(0.45) !important;
    transform: scale(1.08) !important;
  }
  .calendar-container::after {
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 46%,
      rgba(0,0,0,0.50) 100%) !important;
  }
}

/* Landscape too */
@media screen and (orientation: landscape) {
  .calendar-container::before {
    filter: blur(24px) brightness(0.45) !important;
    transform: scale(1.06) !important;
  }
  .calendar-container::after {
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 46%,
      rgba(0,0,0,0.50) 100%) !important;
  }
}

/* Give the main calendar a faint rim so it stands apart from the blurred fill */
.calendar-wrapper {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 0 24px rgba(0,0,0,0.35);
}

/* Heavier tile separation */
.clickable-box, .half-box {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.55)) !important;
}
.clickable-box::after, .half-box::after {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    0 12px 28px rgba(0,0,0,0.55) !important;
}

/* ===== Gold/Red Tint Visual Boost ===== */

/* Portrait gold/red tinted edges */
@media screen and (orientation: portrait) {
  .calendar-container::before {
    background: linear-gradient(to bottom right, rgba(255,215,0,0.15), rgba(178,34,34,0.15)),
                var(--calendar-bg, url('october-movies-portrait.webp'));
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    filter: blur(28px) brightness(0.48) saturate(0.9) !important;
  }
  .calendar-container::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 46%,
      rgba(0,0,0,0.5) 100%) !important;
  }
  .calendar-wrapper { z-index: 1 !important; }
}

/* Landscape gold/red tinted edges */
@media screen and (orientation: landscape) {
  .calendar-container::before {
    background: linear-gradient(to bottom right, rgba(255,215,0,0.15), rgba(178,34,34,0.15)),
                var(--calendar-bg, url('october-movies-landscape.webp'));
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    filter: blur(24px) brightness(0.48) saturate(0.9) !important;
  }
  .calendar-container::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background: radial-gradient(ellipse at center,
      rgba(0,0,0,0) 46%,
      rgba(0,0,0,0.5) 100%) !important;
  }
  .calendar-wrapper { z-index: 1 !important; }
}

/* Clickable boxes gold glow idle → red glow hover */
.clickable-box::after, .half-box::after {
  content: "" !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 14px !important;
  box-shadow:
    0 0 8px rgba(255,215,0,0.4),
    0 12px 28px rgba(0,0,0,0.55) !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease, box-shadow 0.2s ease !important;
  pointer-events: none !important;
}
.clickable-box:hover::after, .half-box:hover::after {
  opacity: 0.95 !important;
  box-shadow:
    0 0 8px rgba(178,34,34,0.6),
    0 12px 28px rgba(0,0,0,0.65) !important;
}

/* ===== Header & Footer Blend into Background ===== */
.one-line-header, footer {
  background: transparent;
  position: relative;
  z-index: 2;
}

.one-line-header::before, footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom right, rgba(255,215,0,0.10), rgba(178,34,34,0.10)),
    var(--calendar-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px) brightness(0.55) saturate(0.9);
  transform: scale(1.06);
  pointer-events: none;
  /* keeps text readable on busy art */
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}

.one-line-header {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
footer {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Slight fade edges so header/footer feel embedded */
.one-line-header::after, footer::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  pointer-events: none;
}
.one-line-header::after { bottom: -1px; background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0)); }
footer::after { top: -1px; background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0)); }

/* === Seamless background: remove header/footer gaps === */

/* Single shared blurred/tinted background behind everything */
body.movies {
  position: relative;
  background: transparent;
}
body.movies::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;                /* sits behind all content */
  pointer-events: none;
  background:
    linear-gradient(to bottom right, rgba(255,215,0,0.15), rgba(178,34,34,0.15)),
    var(--calendar-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(24px) brightness(0.5) saturate(0.9);
  transform: scale(1.06);
}

/* Make header, footer, and calendar sit above the shared layer */
.one-line-header, footer, .calendar-container {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Remove extra fades/lines that can look like gaps */
.one-line-header::after, footer::after {
  display: none !important;
}

/* Disable the per-container blur layer to avoid double-stacking */
.calendar-container::before {
  content: none !important;
}

/* === Improved contrast for blended header/footer === */
.one-line-header, footer {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 5px rgba(0,0,0,0.65);
}

.one-line-header a, footer a {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 5px rgba(0,0,0,0.65);
}

.one-line-header a:hover, footer a:hover {
  color: gold !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 6px rgba(255,215,0,0.75);
}

/* Footer social icons stronger contrast */
footer .social-icons a {
  filter: brightness(1.15) contrast(1.1) grayscale(100%);
  transition: filter 0.25s ease, color 0.25s ease;
}
footer .social-icons a:hover {
  filter: brightness(1.3) contrast(1.15) grayscale(0%);
  color: gold !important;
}

/* === Legibility Boost for Blended Header/Footer (non-intrusive) === */
body.movies .one-line-header,
body.movies footer {
  /* tiny dark scrim so text has consistent contrast on busy art */
  background-color: rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Header text/icon contrast */
body.movies .one-line-header .title-text,
body.movies .one-line-header .past-link,
body.movies .one-line-header .header-bar a,
body.movies .one-line-header .header-bar i {
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);
}

/* Stronger hover/focus glow on interactive header items */
body.movies .one-line-header .header-bar a:hover,
body.movies .one-line-header .header-bar a:focus {
  filter: drop-shadow(0 0 6px rgba(255,215,0,0.65));
}

/* Footer icons: ensure readable on blend; keep greyscale→gold */
body.movies footer .social-icons-inline i,
body.movies footer .footer-icon i,
body.movies footer .social-icon {
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Newsletter label/input contrast tweak */
body.movies footer .footer-signup label {
  color: #f3f3f3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
body.movies footer .footer-signup input[type="email"] {
  background-color: rgba(0,0,0,0.45);
  border-color: rgba(255,215,0,0.7);
}
body.movies footer .footer-signup button {
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Keep layout locked: no accidental margins */
body.movies .one-line-header,
body.movies footer { margin: 0; padding-top: 10px; padding-bottom: 10px; }

/* Share toast */
#share-toast{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
}
#share-toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Consistent spacing for the title hyphen */
.title-hyphen { 
  display: inline-block; 
  margin: 0 6px; 
}

/* --- Kebab (3-dot) menu --- */

.kebab-btn i{ font-size: 18px; color: #f8fafc; }

.kebab-menu{
  position: absolute;
  top: 56px;
  right: auto;
  min-width: 220px;
  background: rgba(17,17,17,0.96);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 8px;
  display: none; /* hidden by default */
  z-index: 10000;
}
.kebab-menu.open{ display: block; }

.kebab-menu hr{
  border: none;
  height: 1px;
  background: transparent;
  margin: 6px 4px;
}

.kebab-item{
  border-radius: 10px;
  margin: 2px 4px;
  width: calc(100% - 8px);

  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
  color: #f8fafc;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.kebab-item i{ opacity: 0.9; }
.kebab-item:hover{ background: transparent; color:#facc15; }
.kebab-item:active{ background: transparent; }

/* ensure button variant doesn't inherit default UA button styles */


.kebab-item:hover i{ color:#facc15; opacity:1; }


.kebab-btn i {
  font-size: 18px;
  color: #FFD700;
}
.kebab-btn:hover {
  box-shadow: 0 0 8px #FFD700;
  border-color: #FFD700;

  box-shadow: 0 0 14px rgba(255,215,0,0.55);
}

.kebab-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 2px solid #FFD700;
  border-radius: 50%;
  padding: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  z-index: 1100;

  box-shadow: 0 0 6px rgba(255,215,0,0.25);
  transition: box-shadow 180ms ease;
}
.kebab-btn i {
  font-size: 18px;
  color: #FFD700;
}
.kebab-btn:hover {
  box-shadow: 0 0 8px #FFD700;
  border-color: #FFD700;

  box-shadow: 0 0 14px rgba(255,215,0,0.55);
}
.header-bar { position: relative; }

.kebab-btn:focus-visible { box-shadow: 0 0 18px rgba(255,215,0,0.65); outline: none; }

.footer-social a:hover i {
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255,215,0,0.6);
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.footer-social i { color: #e5e7eb; }

/* NMM_KEBAB_PANEL_MIN */
.one-line-header{ position:relative; z-index:2000; }
.kebab-btn{ position:absolute; top:50%; transform:translateY(-50%); z-index:2100; }
.kebab-panel{
  position:fixed;
  top: var(--kebab-panel-top, 56px);
  left: var(--kebab-panel-left, 12px);
  width: 220px;
  background: rgba(15,15,15,0.92);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 18px rgba(255,215,0,0.18);
  z-index: 2050;
}
.kebab-panel[hidden]{ display:none !important; }
.kebab-panel ul{ list-style:none; margin:0; padding:0; }
.kebab-panel li{ margin:0; }
.kebab-panel a, .kebab-panel a:visited{
  display:flex; align-items:center; gap:10px;
  padding:9px 8px; color:#eee; text-decoration:none; border-radius:8px;
  font-family:'Cinzel', serif; font-size:0.95rem;
}
.kebab-panel a:hover{ background: rgba(255,215,0,0.08); }
.kebab-panel .divider{ height:1px; margin:6px 4px; background: rgba(255,255,255,0.08); }

/* ——— Kebab: force perfect circle ——— */
.kebab-btn{
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  aspect-ratio: 1 / 1;
  padding: 0 !important;
  box-sizing: border-box;
  border: 2px solid #FFD700;
  border-radius: 9999px !important;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(3px);
}
.kebab-btn i{ font-size: 18px; line-height: 1; color: #FFD700; }

@media (max-width: 480px){
  .kebab-btn{ width: 36px !important; height: 36px !important; }
  .kebab-btn i{ font-size: 16px; }
}

/* ——— Brand group: logo left of title, single line ——— */
.one-line-header .header-bar{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center; /* keeps the pair centered */
}

.brand-group{
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.brand-group .site-logo{
  position: static !important;
  margin: 0 !important;
  flex: 0 0 auto;
  height: 40px; /* adjust if you like */
  width: auto;
}

.brand-group .title-text{
  position: static !important;
  left: auto !important;
  transform: none !important;
  display: inline-block !important;
  white-space: nowrap;         /* prevent wrapping underneath the logo */
  flex: 0 0 auto;
  text-align: left !important;
}

/* === Calendar bleed/blur background (portrait + landscape) === */
.calendar-container{
  position: relative;
  overflow: hidden;
  isolation: isolate;              /* keep pseudo elements contained */
}

/* blurred full-bleed bg pulled from the same calendar image */
.calendar-container::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--calendar-bg, none);
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover;
  filter: blur(28px);
  transform: scale(1.08);          /* push blur beyond edges */
  z-index:0;
  pointer-events:none;
}

/* subtle movies-theme vignette/tint so edges blend nicely */
.calendar-container::after{
  content:"";
  position:absolute;
  inset:-2px;                      /* hide blur edge */
  background: radial-gradient(ellipse at center,
              rgba(178,34,34,0.22) 0%,
              rgba(0,0,0,0.45) 55%,
              rgba(0,0,0,0.80) 100%);
  z-index:1;
  pointer-events:none;
}

/* make sure the actual image & hotspots sit above the blur */
.calendar-wrapper{ position:relative; z-index:2; }
#calendar-img{ display:block; object-fit:contain; }
.clickable-box, .half-box{ position:absolute; z-index:3; }
/* Re-enable calendar bleed layer */
.calendar-container::before { content: "" !important; }

/* NMM_TILES_NO_BASE_RING (final override) */
.clickable-box::after,
.half-box::after{
  box-shadow: none !important;
  opacity: 0 !important;
}

/* NMM_KILL_TILE_RING — remove any baseline ring on clickable tiles */
.clickable-box,
.half-box{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.clickable-box::before,
.clickable-box::after,
.half-box::before,
.half-box::after{
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  opacity: 0 !important;
}
/* keep hover glow only (optional; comment out if you don't want any hover) */
.clickable-box:hover::after,
.half-box:hover::after{
  opacity: .95 !important;
  box-shadow:
    0 0 8px rgba(178,34,34,.6),
    0 12px 28px rgba(0,0,0,.65) !important;
}

/* Add a fallback for older browsers that don't support CSS custom properties */
@supports not (height: calc(100vh - var(--hfpx))) {
  @media screen and (orientation: portrait) {
    #calendar-img {
      max-height: calc(100vh - 120px);
    }
  }
  
  @media screen and (orientation: landscape) {
    #calendar-img {
      max-height: calc(100vh - 100px);
    }
  }
}

/* === Sports Theme Overrides (non-destructive) === */
body.sports .kebab-btn,
body.sports .kebab-btn i {
  color: #00E676; /* bright sports green */
  text-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
}
body.sports .kebab-btn:hover,
body.sports .kebab-btn:hover i {
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.75));
}

body.sports footer .social-icons a:hover,
body.sports .social-icons-inline a:hover i,
body.sports .footer-social a:hover i {
  color: #00E676;
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.6));
}

/* Optional subtle page tint for sides/header/footer */
body.sports header,
body.sports footer {
  background: linear-gradient(0deg, rgba(0, 191, 165, 0.18), rgba(0, 191, 165, 0.18)), #111;
  backdrop-filter: blur(2px);
}


/* === Sports theme (fonts/colors) === */
body.sports .title-text {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 700;
  letter-spacing: .5px;
}

body.sports .title-text span:first-child { /* "Next" */
  color: #00E676; /* green */
  text-shadow: 0 0 6px rgba(0,230,118,.35);
}

body.sports .title-text .title-hyphen { color: #9be7ff; }

body.sports .title-text span:last-child { /* "Month Sports" */
  color: #00BFA5; /* teal */
  text-shadow: 0 0 6px rgba(0,191,165,.35);
}

/* Month text accent in header (e.g., Oct 2025) */
body.sports .header-month {
  color: #00E676;
  text-shadow: 0 0 6px rgba(0,230,118,.35);
}

/* Kebab menu font + hover tint */
body.sports .kebab-panel a, 
body.sports .kebab-panel a:visited {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .3px;
}
body.sports .kebab-panel a:hover {
  background: rgba(0, 230, 118, 0.08);
}

/* Make sure our sports colors override any movies overrides */
body.sports .title-text, 
body.sports .kebab-panel a { 
  font-family: 'Bebas Neue', sans-serif !important; 
}


/* --- Sports kebab circle matches the green dots --- */
body.sports .kebab-btn {
  border-color: #00E676 !important;
  color: #00E676 !important;
}
body.sports .kebab-btn i {
  color: #00E676 !important;
}
body.sports .kebab-btn:hover,
body.sports .kebab-btn:focus-visible {
  border-color: #00E676 !important;
  background: rgba(0, 230, 118, 0.10);
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.75));
  outline: none;
}

/* === Cornero self-hosted setup (Sports) === */
@font-face {
  font-family: 'Cornero';
  src: url('fonts/Cornero.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Use Cornero for Sports titles and kebab menu, with Bebas Neue fallback */
body.sports .title-text,
body.sports .kebab-panel a,
body.sports .kebab-panel a:visited {
  font-family: 'Cornero', 'Bebas Neue', sans-serif !important;
  letter-spacing: .4px;
}

/* === Cornero webfont stack (prefers WOFF2/WOFF; falls back to OTF) === */
@font-face {
  font-family: 'Cornero';
  src:
    url('fonts/Cornero.woff2') format('woff2'),
    url('fonts/Cornero.woff') format('woff'),
    url('fonts/Cornero.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body.sports .title-text,
body.sports .kebab-panel a,
body.sports .kebab-panel a:visited {
  font-family: 'Cornero', 'Bebas Neue', sans-serif !important;
  letter-spacing: .4px;
}


/* --- Sports: gradient text for the month label --- */
body.sports .header-month {
  background: linear-gradient(180deg, #00cdbb 0%, #009f8e 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* ====== Unified dark header/footer with per-site tint (Option B) ====== */
:root {
  --header-bg: #0f1216;          /* shared charcoal */
  --header-border: #1e242b;
  --tint: rgba(0,0,0,0);         /* default: no tint */
  --accent: #cccccc;             /* default hover accent */
}

/* Shared header/footer layout using variables */
header, footer {
  background: linear-gradient(180deg, transparent, var(--tint)), var(--header-bg) !important;
  border-top: 1px solid var(--header-border);
  border-bottom: 1px solid var(--header-border);
}

/* Accent-driven hovers */
.header-links a:hover,
footer .social-icons a:hover,
.social-icons-inline a:hover i,
.footer-social a:hover i,
.kebab-btn:hover i {
  color: var(--accent) !important;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent));
}

/* Kebab circle adopts accent */
.kebab-btn {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
.kebab-btn i { color: var(--accent) !important; }
.kebab-btn:hover,
.kebab-btn:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  outline: none;
}

/* Per-site variable values */
body.games  { --accent:#00f5ff; --tint: rgba(0,245,255,0.06); }
body.movies { --accent:#ffd700; --tint: rgba(255,215,0,0.05); }
body.sports { --accent:#00E676; --tint: rgba(0,230,118,0.06); }

/* === Footer subscribe (scoped) === */
footer .social-icons-inline .footer-subscribe i{ position:relative; display:inline-block; }
footer .social-icons-inline .footer-subscribe i::after{
  content:"+"; position:absolute; right:-3px; top:-3px; width:12px; height:12px;
  border-radius:50%; display:grid; place-items:center;
  background:var(--accent, #00e676); color:#000; font-weight:700; font-size:9px;
  box-shadow:0 0 6px var(--accent, #00e676);
}
/* Modal styles */
.nm-modal{ border:0; border-radius:16px; padding:18px; background:#111; color:#fff; max-width:360px; width:min(92vw, 360px); }
.nm-modal::backdrop{ background:rgba(0,0,0,.6); }
.nm-modal h3{ margin:0 0 10px; font-size:18px; }
.nm-modal input{ width:100%; padding:10px 12px; border-radius:10px; border:1px solid #444; background:#000; color:#fff; }
.nm-modal__actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:10px; }
.nm-modal__actions button{ border:0; border-radius:10px; padding:8px 12px; cursor:pointer; }
.nm-modal__actions button[type="submit"]{ background:var(--accent, #00e676); color:#000; font-weight:600; }
.nm-modal__x{ position:absolute; top:8px; right:10px; background:transparent; border:0; color:#fff; font-size:20px; cursor:pointer; }
.nm-modal__note{ opacity:.8; font-size:12px; margin-top:8px; }
.nm-modal__msg{ margin-top:6px; font-size:13px; color:#9fffcb; }

/* === Wrapper badge (isolated from icon filters) === */
footer .social-icons-inline .icon-with-badge{ position:relative; display:inline-block; line-height:1; }
footer .social-icons-inline .icon-with-badge .badge-plus{
  position:absolute; right:-3px; top:-3px; width:12px; height:12px;
  display:grid; place-items:center; border-radius:50%;
  background:var(--accent, #00E676); color:#000; font-weight:700; font-size:9px;
  box-shadow:0 0 6px rgba(0,230,118,0.6); pointer-events:none; z-index:2; filter:none !important;
}
/* Turn off any previous pseudo-badge */
footer .social-icons-inline .footer-subscribe i::after{ content:none !important; }



/* === Wrapper badge alignment tweaks (match Games look) === */
footer .social-icons-inline .icon-with-badge{
  position:relative; display:inline-flex; align-items:center;
  margin-right: 10px; /* replace the inner <i>'s default margin */
}
footer .social-icons-inline .icon-with-badge .footer-subscribe i{
  margin-right: 0 !important; /* prevent double spacing */
  position: relative;
}
footer .social-icons-inline .icon-with-badge .badge-plus{
  right:-3px; top:-3px; width:12px; height:12px; font-size:9px;
  background:#00E676; box-shadow:0 0 6px rgba(0,230,118,0.6);
}
@media (max-width:600px){
  footer .social-icons-inline .icon-with-badge .badge-plus{ right:-2px; top:-2px; width:11px; height:11px; font-size:8px; }
}


/* === NMS SPORTS PATCH — kill faint clickable box rings (Firefox/Safari artifacts) === */
.clickable-box, .split-box, .half-box {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}
.clickable-box::before,
.clickable-box::after,
.half-box::before,
.half-box::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Inline box thumbnails used for hover-zoom should be fully hidden */
.clickable-box img, .half-box img {
  opacity: 0 !important;
  filter: none !important;
  box-shadow: none !important;
}



.footer-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.footer-icon:hover .footer-icon-img {
  transform: scale(1.1);
}

/* Add spacing before the NextMonth icons group */
.footer-icon[href*="nextmonthgames"] {
  margin-left: 40px;
}

/* Keep NextMonth icons close together */
.footer-icon[href*="nextmonthmovies"],
.footer-icon[href*="nextmonthhub"] {
  margin-left: 8px;
}

/* Ensure all footer icons are properly aligned */
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Fix alignment for footer icon images */
.footer-icon .footer-icon-img {
  display: block;
}

/* === Sports Spotlight Modal Styles === */
.teaser-modal {
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #111;
  color: #fff;
  max-width: 800px;
  width: min(92vw, 800px);
  max-height: 90vh;
  overflow: hidden;
}

.teaser-modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.teaser-modal__content {
  padding: 0;
  position: relative;
}

.teaser-modal__header {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 230, 118, 0.05));
  border-bottom: 1px solid rgba(0, 230, 118, 0.2);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.teaser-modal__header h3 {
  margin: 0;
  color: #00E676;
  font-size: 1.5rem;
  font-weight: 600;
}

.toggle-btn {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  color: #00E676;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(0, 230, 118, 0.2);
  border-color: rgba(0, 230, 118, 0.5);
}

.teaser-modal__x {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.teaser-modal__x:hover {
  color: #00E676;
}

/* Admin Code Input */
.admin-code-input {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 20px;
  text-align: center;
}

.admin-code-content h4 {
  margin: 0 0 10px 0;
  color: #00E676;
}

.admin-code-content p {
  margin: 0 0 15px 0;
  color: #ccc;
}

.admin-code-content input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #000;
  color: #fff;
  margin-bottom: 15px;
}

.admin-code-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.admin-code-actions button {
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
}

.admin-code-actions button:first-child {
  background: #00E676;
  color: #000;
}

.admin-code-actions button:last-child {
  background: #444;
  color: #fff;
}

/* Sports Showcase */
.sports-showcase {
  padding: 20px;
}

.sports-image-container {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.sports-image-link {
  display: block;
  text-decoration: none;
}

#sports-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.sports-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: #fff;
}

.sports-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #00E676;
}

.sports-info {
  margin-bottom: 20px;
}

.sports-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #00E676;
  margin-bottom: 10px;
}

.sports-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.sports-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.sports-meta span {
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.9rem;
  color: #00E676;
}

/* Social Prompts */
.sports-social-prompt,
.teaser-social-prompt {
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.sports-social-prompt h4,
.teaser-social-prompt h4 {
  margin: 0 0 10px 0;
  color: #00E676;
  font-size: 1.1rem;
}

.sports-social-prompt p,
.teaser-social-prompt p {
  margin: 0 0 15px 0;
  color: #ccc;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 6px;
  color: #00E676;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(0, 230, 118, 0.2);
  border-color: rgba(0, 230, 118, 0.5);
}

/* Teaser Content */
.teaser-content {
  padding: 20px;
}

.teaser-image-container {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

#teaser-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.teaser-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  text-align: center;
}

.teaser-hint {
  color: #00E676;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Admin Hint */
.admin-hint {
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 8px;
  padding: 15px;
}

.logout-btn {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 6px;
  padding: 6px 12px;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 10px;
}

.logout-btn:hover {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .teaser-modal {
    width: 95vw;
    max-height: 95vh;
  }
  
  .teaser-modal__header {
    padding: 15px;
    flex-direction: column;
    gap: 15px;
  }
  
  .teaser-modal__header h3 {
    font-size: 1.3rem;
  }
  
  .sports-showcase,
  .teaser-content {
    padding: 15px;
  }
  
  .sports-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
}

/* Hover preview functionality */
.footer-icon[data-preview] {
  position: relative;
}

.footer-icon[data-preview]:hover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background-image: var(--preview-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(0, 230, 118, 0.3);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  margin-bottom: 10px;
}

.footer-icon[data-preview]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(0, 230, 118, 0.3);
  z-index: 1001;
  margin-bottom: 2px;
}





