body {
  background-color: #0a041a; /* deep space blue/purple */
  color: #e0e0e0; /* light gray */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevent horizontal scroll */
}

#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* behind all content */
}

#now-playing-widget {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  background: rgba(40, 30, 70, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 100, 180, 0.45);
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: padding 0.4s ease-in-out, opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.widget-content-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* adjusted gap slightly due to note container padding */
  transition: max-width 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    opacity 0.3s ease-in-out;
  max-width: 260px; /* slightly increased max-width if needed */
  opacity: 1;
  overflow: hidden; /* ensure content like music note glow doesn't push layout */
}

#music-note-container {
  font-size: 1.6em;
  color: #c1aaff;
  display: flex;
  align-items: center;
  padding: 0 8px; /* added padding for glow */
}

#music-note {
  display: inline-block;
  animation: glideUpDown 2.5s ease-in-out infinite alternate;
}

@keyframes glideUpDown {
  from {
    transform: translateY(-4px);
    text-shadow: 0 0 3px #c1aaff, 0 0 6px #fff; /* reduced glow radius */
  }
  to {
    transform: translateY(4px);
    text-shadow: 0 0 6px #fff, 0 0 9px #c1aaff, 0 0 12px #c1aaff; /* reduced glow radius, max 12px */
  }
}

.now-playing-info {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-title {
  font-weight: bold;
  margin: 0 0 2px 0;
  font-size: 0.85em;
  color: #e0d0ff;
}

.track-details {
  font-size: 0.75em;
  color: #ccc;
  margin: 0;
  min-width: 100px;
}

.marquee-container {
  display: inline-block; /* changed to inline-block */
  width: 100%;
  overflow: hidden; /* this is important to clip the marquee-text */
  vertical-align: bottom;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
}

.marquee-text.scroll {
  /* animation-duration is set by js */
  animation-name: spotifyMarquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* css variable for scroll distance will be set by js */
}

@keyframes spotifyMarquee {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(0);
  } /* pause at start */
  60% {
    transform: translateX(calc(-1 * var(--marquee-scroll-distance)));
  } /* scroll to end */
  80% {
    transform: translateX(calc(-1 * var(--marquee-scroll-distance)));
  } /* pause at end */
  100% {
    transform: translateX(0);
  } /* scroll back to start */
}

#mute-toggle-button,
#news-banner-close-button,
#news-modal-close-button {
  background: none;
  border: none;
  color: #d0c0ff; /* this will be currentColor for svg */
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mute-toggle-button {
  margin-left: 8px;
}
#news-banner-close-button {
  margin-left: 10px;
}

#mute-toggle-button svg,
#news-banner-close-button svg,
#news-modal-close-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

#mute-toggle-button:hover,
#news-banner-close-button:hover,
#news-modal-close-button:hover {
  color: #fff;
  transform: scale(1.1);
}

#now-playing-toggle {
  background: none;
  border: none;
  color: #d0c0ff;
  cursor: pointer;
  font-size: 1.1em;
  padding: 5px;
  margin-left: 6px; /* adjusted spacing slightly */
  line-height: 1;
  transition: transform 0.3s ease-out, color 0.2s ease;
}

#now-playing-toggle:hover {
  color: #fff;
}

#now-playing-widget.closed .widget-content-wrapper {
  max-width: 0;
  opacity: 0;
}

#now-playing-widget.closed {
  padding-left: 10px;
  padding-right: 10px;
}

.site-title-container {
  padding: 40px 20px 20px; /* adjusted padding */
  text-align: center;
  position: relative;
  z-index: 2; /* ensure title is above stars */
}

#site-title {
  font-size: 3.5em; /* larger font size */
  color: #fff;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #c1aaff, 0 0 40px #c1aaff,
    0 0 50px #c1aaff, 0 0 60px #c1aaff, 0 0 70px #c1aaff;
  letter-spacing: 2px; /* spacing between letters */
}

.title-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-50px) rotateX(90deg) scale(0.5);
  animation: titleCharEntrance 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.title-space {
  display: inline-block;
  width: 0.5em; /* space between "brooks" and "OnLine" */
}

/* stagger animation for each character */
#site-title .title-char:nth-child(1) {
  animation-delay: 0.1s;
}
#site-title .title-char:nth-child(2) {
  animation-delay: 0.2s;
}
#site-title .title-char:nth-child(3) {
  animation-delay: 0.3s;
}
#site-title .title-char:nth-child(4) {
  animation-delay: 0.4s;
}
#site-title .title-char:nth-child(5) {
  animation-delay: 0.5s;
}
#site-title .title-char:nth-child(6) {
  animation-delay: 0.6s;
}
/* space element does not need animation */
#site-title .title-char:nth-child(8) {
  animation-delay: 0.7s;
} /* brooks O */
#site-title .title-char:nth-child(9) {
  animation-delay: 0.8s;
} /* n */
#site-title .title-char:nth-child(10) {
  animation-delay: 0.9s;
} /* L */
#site-title .title-char:nth-child(11) {
  animation-delay: 1s;
} /* i */
#site-title .title-char:nth-child(12) {
  animation-delay: 1.1s;
} /* n */
#site-title .title-char:nth-child(13) {
  animation-delay: 1.2s;
} /* e */

@keyframes titleCharEntrance {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
  }
}

.main-container {
  display: flex;
  flex-direction: row; /* changed to row for two columns */
  align-items: flex-start; /* align items to the top of columns */
  padding: 20px 20px 80px; /* adjusted top padding, increased bottom for news banner */
  gap: 30px; /* space between columns */
  position: relative;
  z-index: 1;
  max-width: 1000px; /* increased max-width for two columns */
  margin: 0 auto;
}

.left-column {
  flex: 1; /* takes up 1 part of the space */
  display: flex;
  flex-direction: column;
  gap: 30px; /* space between profile and nav */
  max-width: 300px; /* limit width of left column */
}

.right-column {
  flex: 2; /* takes up 2 parts of the space, making it wider */
  display: flex;
  flex-direction: column;
  gap: 30px; /* space between about and hyperfixation */
}

.profile-card,
.nav-box,
.content-box {
  background: rgba(40, 30, 70, 0.45); /* translucent deep purple */
  backdrop-filter: blur(10px); /* frosted glass effect */
  -webkit-backdrop-filter: blur(
    10px
  ); /* safari support :) ily if youre on apple */
  border: 1px solid rgba(120, 100, 180, 0.35);
  border-radius: 15px;
  padding: 25px;
  width: 100%; /* will take full width of parent column */
  box-sizing: border-box; /* include padding and border in element's total width and height */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.sparkle-box {
  position: relative;
  overflow: hidden; /* keep sparkles contained */
}

.sparkle {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: rgba(220, 200, 255, 0.85); /* light lavender */
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(220, 200, 255, 0.7);
  opacity: 0;
  will-change: opacity, transform; /* performance hint */
  /* animation is set by js for randomness */
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: scale(1) rotate(90deg);
  }
  80% {
    opacity: 1;
    transform: scale(1) rotate(90deg);
  }
  /* ends with fade out */
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  /* allow tooltips to overflow */
  overflow: visible;
}

#profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(200, 180, 255, 0.5);
  object-fit: cover;
}

#user-name {
  font-size: 2.2em;
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.nav-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column; /* stack nav items vertically */
  align-items: stretch; /* stretch items to fill the container width */
  gap: 15px; /* adjusted gap for vertical layout */
}

.nav-box ul li a {
  text-decoration: none;
  color: #d0c0ff;
  font-size: 1.1em;
  padding: 8px 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: block; /* make links take full width of parent li */
}

.nav-box ul li a:hover {
  background-color: rgba(200, 180, 255, 0.2);
  color: #fff;
}

.content-box h2 {
  font-size: 1.8em;
  color: #f0f0f0;
  margin-top: 0;
  margin-bottom: 15px;
}

.content-box h3 {
  font-size: 1.4em;
  color: #e0d0ff;
  margin-top: 0;
  margin-bottom: 10px;
}

.content-box p {
  font-size: 1em;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 0;
  text-align: left; /* align text to left for better readability in wider column */
}

#hyperfixation-image {
  max-width: 400px;
  max-height: 400px;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 25px;
  margin-top: 15px;
  margin-bottom: 15px;
  border: 2px solid rgba(120, 100, 180, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.animate-in {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.7s ease-out,
    transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: opacity, transform;
}

.animate-in.animate-slide-up {
  transform: translateY(100%); /* start off-screen at the bottom */
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* news banner :3 */
#news-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(30, 20, 60, 0.75); /* alightly different base for banner */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(120, 100, 180, 0.55); /* border on top */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out; /* for closing */
}

.news-banner-content {
  flex-grow: 1;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  margin-right: 15px; /* space before close button */
}

.news-banner-content:hover {
  background-color: rgba(80, 60, 130, 0.5); /* darken on hover */
}

#news-banner-title {
  font-weight: 600;
  color: #e8dfff;
  font-size: 1em;
}

#news-banner-detail {
  margin-left: 0.5em; /* add some space after the main title */
  font-size: 0.9em; /* slightly smaller than the main title */
  color: #d0c0ff; /* slightly dimmer color */
  font-weight: normal; /* ensure normal weight if inherited */
}

/* modal overlay */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 4, 26, 0.7); /* darker, more opaque fade */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0s 0.4s;
}

#modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease-in-out;
}

/* news modal */
#news-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(40, 30, 70, 0.8); /* solid, but still themed */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(120, 100, 180, 0.6);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out,
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0s 0.4s;
  display: flex;
  flex-direction: column;
}

#news-modal.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  visibility: visible;
  transition: opacity 0.4s ease-in-out,
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.news-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(120, 100, 180, 0.3);
}

.news-modal-header h2 {
  margin: 0;
  font-size: 1.6em;
  color: #f0f0f0;
}

.news-modal-body {
  overflow-y: auto;
  line-height: 1.8; /* better readability for modal content */
}

.news-modal-body p {
  margin-bottom: 15px;
  color: #d8d8d8; /* slightly brighter than main content p for modal */
  font-size: 0.95em;
  text-align: left;
}
.news-modal-body p:last-child {
  margin-bottom: 0;
}

.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  justify-content: center;
  align-items: center;
  position: relative;
  /* allow tooltips to overflow */
  overflow: visible;
}

.social-icon-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 7px;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.25), 0 0 0 0 transparent;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-btn svg {
  display: block;
  width: 28px;
  height: 28px;
  color: #fff;
  filter: drop-shadow(0 0 6px #fff8) drop-shadow(0 0 2px #fff4);
  transition: filter 0.2s;
}

.social-icon-btn:hover,
.social-icon-btn:focus {
  box-shadow: 0 0 18px 4px #fff, 0 0 0 0 transparent;
  transform: translateY(-5px) scale(1.08);
  z-index: 2;
}

.social-icon-btn:hover svg,
.social-icon-btn:focus svg {
  filter: drop-shadow(0 0 12px #fff) drop-shadow(0 0 4px #fff8);
}

.social-tooltip-container {
  position: relative;
  display: inline-block;
}

.social-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  background: rgba(40, 30, 70, 0.95);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.98em;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  z-index: 5000; /* ensure tooltip is above all other UI */
  text-align: center;
}

.social-tooltip .tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -8px;
  width: 16px;
  height: 8px;
  overflow: hidden;
  pointer-events: none;
}

.social-tooltip .tooltip-arrow::after {
  content: "";
  display: block;
  width: 16px;
  height: 8px;
  background: transparent;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(40, 30, 70, 0.95);
}

.social-tooltip-container:hover .social-tooltip,
.social-tooltip-container:focus-within .social-tooltip {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Responsive: keep tooltip under mute button on mobile */
@media (max-width: 600px) {
  .mute-tooltip {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  #now-playing-widget {
    display: none !important; /* keeping this as per previous logic */
  }
  .main-container {
    flex-direction: column; /* stack columns vertically on smaller screens */
    align-items: center; /* center items when stacked */
    padding: 20px 20px 80px; /* ensure space for news banner */
  }
  .left-column,
  .right-column {
    width: 100%;
    max-width: 100%; /* allow columns to take full width */
    flex: none; /* reset flex property */
  }
  .nav-box ul {
    flex-direction: row; /* revert nav to horizontal for stacked layout */
    justify-content: center; /* center items horizontally */
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-box ul li a {
    width: fit-content;
    display: inline-block;
  }
  #site-title {
    font-size: 2.5em; /* reduce title size on smaller screens */
  }
  .content-box p {
    text-align: center; /* center paragraph text on small screens */
  }

  #news-banner {
    padding: 8px 15px;
  }
  #news-banner-title {
    font-size: 0.9em;
  }
  #news-modal {
    width: 95%;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); /* adjusted shadow for mobile */
  }
  .news-modal-header h2 {
    font-size: 1.4em;
  }
  .news-modal-body p {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  #site-title {
    font-size: 2em;
    letter-spacing: 1px;
  }
  .profile-card,
  .nav-box,
  .content-box {
    padding: 20px;
  }
  #user-name {
    font-size: 1.8em;
  }
  .content-box h2 {
    font-size: 1.5em;
  }
  .content-box h3 {
    font-size: 1.2em;
  }

  #news-banner {
    padding: 8px 10px;
  }
  #news-banner-title {
    font-size: 0.85em;
  }
  #news-banner-close-button svg,
  #news-modal-close-button svg {
    width: 18px;
    height: 18px;
  }

  #news-modal {
    padding: 15px;
    max-height: 85vh;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3); /* further adjusted shadow for small mobile */
  }
  .news-modal-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  .news-modal-header h2 {
    font-size: 1.3em;
  }
  .news-modal-body p {
    font-size: 0.85em;
  }

  .social-tooltip {
    font-size: 0.92em;
    max-width: 90vw;
    white-space: normal;
    left: 50%;
    transform: translateX(-50%);
  }
}

.copied-popup {
  position: absolute;
  left: 50%;
  top: 110%;
  transform: translateX(-50%) translateY(0);
  background: rgba(60, 40, 100, 0.97);
  color: #fff;
  padding: 4px 16px;
  border-radius: 8px;
  font-size: 0.98em;
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  transition: none;
  white-space: nowrap;
}

.copied-popup.copied-visible {
  animation: copied-flyup 1.1s cubic-bezier(0.4, 0.8, 0.4, 1) forwards;
}

@keyframes copied-flyup {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.95);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateX(-50%) translateY(-18px) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-32px) scale(0.95);
  }
}

/* Slider preview (4 visible) */
.carousel-slider {
  display: block;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.slider-sub {
  margin: 0;
  color: #cfc3ff;
  font-size: 0.95em;
}
.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider-nav-btn {
  background: transparent;
  border: none;
  color: #d8cfff;
  font-size: 1.2em;
  cursor: pointer;
  padding: 8px;
}
.slider-viewport {
  overflow: hidden;
  flex: 1 1 auto;
}
.slider-track {
  display: flex;
  gap: 12px;
  transition: transform 600ms cubic-bezier(0.22, 0.9, 0.25, 1);
}
.slide {
  flex: 0 0 calc((100% - 36px) / 4); /* 4 visible with gaps accounted */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.slide img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease;
}
.slide img:hover {
  transform: scale(1.03);
  filter: brightness(1.02);
}
.slide .slide-title {
  font-size: 0.95em;
  color: #eee;
  text-align: center;
}

/* Modal (full-screen when opened) */
.carousel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 4, 16, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.carousel-modal[aria-hidden="false"] {
  display: flex;
}
.carousel-modal-content {
  position: relative;
  width: 95%;
  max-width: 1400px;
  height: 88vh;
  background: rgba(18, 12, 36, 0.98);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  overflow: hidden;
}
.carousel-modal-content.fullscreen {
  width: 100%;
  max-width: none;
  height: 100vh;
  border-radius: 0;
}
.modal-inner {
  display: contents;
}
.modal-image {
  background: #0b0812;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.modal-info {
  padding: 20px 22px;
  overflow-y: auto;
  background: linear-gradient(
    180deg,
    rgba(30, 22, 54, 0.85),
    rgba(20, 14, 40, 0.85)
  );
}
.modal-info h3 {
  margin-top: 6px;
  margin-bottom: 10px;
  color: #fff;
}
.modal-info p {
  color: #d8d2ff;
  line-height: 1.6;
}
.carousel-nav {
  background: transparent;
  border: none;
  color: #e6deff;
  font-size: 1.6em;
  cursor: pointer;
  padding: 6px 8px;
}
.carousel-prev {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.carousel-next {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.carousel-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: #e6deff;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 6;
}
.carousel-thumbs {
  grid-column: 1 / 3;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 12px;
  justify-content: center;
  background: rgba(10, 6, 20, 0.6);
}
.carousel-thumbs button {
  background: none;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}
.carousel-thumbs img {
  width: 120px;
  height: 76px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.carousel-thumbs button[aria-current="true"] {
  border-color: rgba(190, 160, 255, 0.95);
  box-shadow: 0 10px 26px rgba(120, 80, 200, 0.18);
}

@media (max-width: 900px) {
  .carousel-modal-content {
    grid-template-columns: 1fr;
    height: 86vh;
  }
  .carousel-thumbs img {
    width: 86px;
    height: 56px;
  }
  .slide img {
    height: 120px;
  }
}

/* Beta banner styles */
#beta-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #ff3b30, #ffcc00);
  color: #0b0b0b;
  z-index: 10000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  padding: 14px 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  transition: transform .22s ease, opacity .22s ease;
}
#beta-banner .beta-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 12px;
}
#beta-banner .beta-text {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
#beta-banner .beta-btn {
  margin-left: 8px;
  background: #0b0b0b;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
}
#beta-banner .beta-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.95);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 8px;
}
/* small screens */
@media (max-width: 640px) {
  #beta-banner .beta-text { font-size: 16px; }
  #beta-banner .beta-btn { padding: 8px 12px; font-size: 14px; }
}
