/*------------------------------------*\
  #BASE STYLES & THEME VARIABLES
\*------------------------------------*/

:root {
  --background-light: #ffffff;
  --background-dark: #000000;
  --text-light: #000000;
  --text-dark: #ffffff;
  --active-nav-color: #9e8021;
  --transition-duration: 0.7s; /* Adjusted for consistent, snappier theme transitions */
}

html,
body {
  /* Box Model & Layout */
  margin: 0;
  overflow-x: hidden;
  
  -ms-overflow-style: none;  /* IE and Legacy Edge */
  scrollbar-width: none;  /* Firefox */


  /* Typography */
  font-family: 'Noto Sans', sans-serif;

  /* Behavior */
  scroll-behavior: smooth;
  /* Global transition for background and text color based on theme */
  /* This transition will handle the smooth fade of solid background/text colors
     when the gradient animation is not active. */
  transition: background var(--transition-duration) ease,
              background-image var(--transition-duration) ease,
              color var(--transition-duration) ease;
}

body::-webkit-scrollbar {
  display: none;  /* Chrome, Safari, and Opera */
}

button,
input,
select,
textarea {
  font: inherit;
}

body {
  padding-bottom: 76px;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

:focus:not(:focus-visible) {
  outline: none !important;
}

@media (hover: none) and (pointer: coarse) {
  :focus,
  :focus-visible {
    outline: none !important;
    -webkit-focus-ring-color: transparent !important;
  }

  ::selection {
    background: transparent;
    color: inherit;
  }
}

/* Disable native callouts and ghost image dragging across cards, images, hero, and interactive icons */
img,
#hero,
#hero *,
.video-background,
.video-background video,
.music-card,
.collaborator-card,
.release-art-frame,
.collaborator-avatar-frame,
.social-icons a,
.streaming-icons a,
.release-dsp-grid a {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

img {
  pointer-events: auto;
}

/*------------------------------------*\
  #THEME MODES
\*------------------------------------*/

body.light-mode {
  /* Removed infinite animation here; will be triggered by JS for transition */
  background: var(--background-light);
  color: var(--text-light);
}

body.dark-mode {
  /* Removed infinite animation here; will be triggered by JS for transition */
  background: var(--background-dark);
  color: var(--text-dark);
}

/*------------------------------------*\
  #GRADIENT ANIMATIONS FOR THEME TRANSITION
\*------------------------------------*/

/* Animation for transitioning from Dark Mode to Light Mode (Sunrise Effect) */
@keyframes darkToLightGradientTransition {
  0% {
    background: linear-gradient(to top, var(--background-dark) 0%, var(--background-light) 100%);
    background-size: 100% 200%; /* Make it twice the height to allow scrolling effect */
    background-position: 0% 100%; /* Start with dark at the bottom */
  }
  100% {
    background: linear-gradient(to top, var(--background-dark) 0%, var(--background-light) 100%);
    background-size: 100% 200%;
    background-position: 0% 0%; /* End with light at the bottom (sweeping up) */
  }
}

/* Animation for transitioning from Light Mode to Dark Mode (Sunset Effect) */
@keyframes lightToDarkGradientTransition {
  0% {
    background: linear-gradient(to bottom, var(--background-light) 0%, var(--background-dark) 100%);
    background-size: 100% 200%; /* Make it twice the height */
    background-position: 0% 0%; /* Start with light at the top */
  }
  100% {
    background: linear-gradient(to bottom, var(--background-light) 0%, var(--background-dark) 100%);
    background-size: 100% 200%;
    background-position: 0% 100%; /* End with dark at the top (sweeping down) */
  }
}

/* Classes to be added/removed by JavaScript to trigger these animations */
.gradient-transition-dark-to-light {
    animation: darkToLightGradientTransition 1s ease-in-out forwards; /* 1s duration, adjust as needed */
}

.gradient-transition-light-to-dark {
    animation: lightToDarkGradientTransition 1s ease-in-out forwards; /* 1s duration, adjust as needed */
}


/*------------------------------------*\
  #HEADER & NAVIGATION
\*------------------------------------*/

header {
  /* Box Model & Layout */
  align-items: center;
  background: rgba(0, 0, 0, 1); /* Default dark mode header background */
  box-sizing: border-box;
  display: flex;
  height: 80px;
  justify-content: space-between; /* Spaces out children: hamburger (hidden on desktop), nav, theme-toggle (fixed on viewport) */
  left: 0;
  margin: 0;
  padding: 1rem 2rem;
  position: fixed; /* Keep fixed for sticky header */
  right: 0;
  top: 0;
  width: 100%;
  z-index: 1000;

  /* Visual */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Transition for theme changes */
  transition: background-color var(--transition-duration) ease,
              color var(--transition-duration) ease,
              background var(--transition-duration) ease;
}

body.light-mode header {
  background: rgba(255, 255, 255, 1);
  color: var(--text-light);
}

/* Navigation Links (Desktop) */
nav {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto; /* Pushes the nav to the right on desktop */
}

nav a {
  color: inherit; /* Inherits from header/body */
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease; /* Individual link hover transition */
}

nav a:hover {
  text-decoration: underline;
}

.nav-links a.active-link,
body.light-mode .nav-links a.active-link {
  color: var(--active-nav-color);
}

body.light-mode nav a {
  color: var(--text-light); /* Ensure black text in light mode */
}

/* Highlight for active navigation link */
/* .nav-links a.active-link {
/*     color: #a78940; /* The desired highlight color
/*     transition: color var(--transition-duration) ease; 
/* } 


/*------------------------------------*\
  #THEME TOGGLE
\*------------------------------------*/

.theme-toggle {
  /* Box Model & Layout */
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  line-height: 0; /* Ensures icon is perfectly centered */
  padding: 0.5rem;
  position: fixed; /* Keep fixed for consistent positioning relative to viewport */
  right: 20px;
  top: 15px;
  width: 36px;
  z-index: 1100; /* Higher than header */
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;

  /* Transition for theme background */
  transition: background var(--transition-duration) ease;
}

body.dark-mode .theme-toggle {
  background: rgba(255, 255, 255, 0.2);
}

body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.1);
}

.theme-toggle i {
  color: inherit; /* Inherits from theme-toggle parent */
  font-size: 1.5rem;
  /* Separate transition for transform (hover) and color (theme change) */
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color var(--transition-duration) ease;
}

body.light-mode .theme-toggle i {
  color: var(--text-light); /* Black in light mode */
}

.theme-toggle:hover i {
  transform: rotate(20deg);
}

.theme-toggle:active i {
  transform: scale(0.9) rotate(20deg);
}

@keyframes theme-toggle-spin {
  0% { transform: rotate(0deg) scale(0.8); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.theme-toggle.is-changing i,
.release-dialog-theme.is-changing i {
  animation: theme-toggle-spin 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/*------------------------------------*\
  #HAMBURGER MENU (MOBILE)
\*------------------------------------*/

.hamburger {
  /* Box Model & Layout */
  align-items: center;
  background: transparent;
  cursor: pointer;
  display: none; /* Hidden by default, shown in media query */
  flex-direction: column;
  height: 24px;
  justify-content: space-between;
  left: 20px;
  padding: 0.5rem;
  position: fixed; /* Keep fixed for consistent positioning relative to viewport */
  top: 15px;
  width: 30px;
  z-index: 1100; /* Higher than header */
}

.hamburger span {
  background: currentColor; /* Inherits color from parent (theme-toggle or body) */
  border-radius: 2px;
  height: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
  width: 24px;
}

/* Hamburger animation states */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/*------------------------------------*\
  #MAIN CONTENT SECTIONS
\*------------------------------------*/

section {
  opacity: 0;
  padding: 6rem 2rem 4rem 2rem; /* Top padding for header, bottom reduced */
  position: relative;
  scroll-margin-top: 6rem; /* Prevents header from overlapping */
  transition: all 1s ease-out; /* Section visibility animation */
  transform: translateY(40px);
  z-index: 1;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}


/*------------------------------------*\
  #HERO SECTION
\*------------------------------------*/

#hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100%;
  margin: 0 auto;
  margin-top: 0;
  padding: 0;
  padding-top: 0;
  scroll-margin-top: 0;
  opacity: 0; /* Start invisible */
  transform: none; /* No scale/zoom effect */
  transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
}

#home {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  scroll-margin-top: 0;
}

#hero.hero-revealed {
  opacity: 1; /* Fade in */
  transform: none; /* Lock transform state to none */
}


/* Video Background Container (dark-video, light-video) */
.video-background {
  height: 100%;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  transform: none; /* Lock transform state to none */
  transition: opacity var(--transition-duration) ease;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}

/* Styles for the actual video and iframe elements within the background */
.video-background video,
.video-background iframe {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 110%; /* Make video 10% taller to allow content beyond 100% height */
  object-fit: cover; /* Ensures video covers the area without distortion */

  /* Shift the entire video element upwards by 10% of its container's height.
     This replicates the visual effect you liked from translateY(-10%). */
  top: -10%;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%);

  /* This property tells object-fit where to focus the video content.
     '50% 0%' means center horizontally, and align the very top of the video content
     with the (now shifted) top of the video element's box. */
  object-position: 50% 0%;

  opacity: 1; /* Keep existing */
  transition: opacity var(--transition-duration) ease; /* Keep existing */
}

/* Theme-specific video display logic - now controls opacity for transition */
/* Initially, the light video should be hidden */
.light-video {
  opacity: 0; 
}

/* When in light mode: */
body.light-mode .dark-video {
  opacity: 0; /* Dark video fades out */
}

body.light-mode .light-video {
  opacity: 1; /* Light video fades in */
}

.video-overlay-top {
  background: linear-gradient(to bottom, black 80%, transparent 100%);
  height: 40px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

/* Hero Content Styling */
.hero-content {
  max-width: 800px;
  padding: 1rem;
  position: absolute;
  left: 50%;
  text-align: center;
  top: 73%; /* Adjust this to move text below header */
  transform: translate(-50%, -50%);
  width: 90%;
  z-index: 3;
}

.hero-content h1 {
  font-size: 2rem;
  margin: 0;
}

.hero-content p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* Hero Content Typography (Theme Specific) */
body.dark-mode .hero-content h1,
body.dark-mode .hero-content p {
  color: var(--text-dark); /* White in dark mode */
}

body.light-mode .hero-content h1,
body.light-mode .hero-content p {
  color: var(--text-light); /* Black in light mode */
}


/*------------------------------------*\
  #MUSIC & COVERS SECTIONS
\*------------------------------------*/

/* Moving release carousel and expanded artwork grid */
#music {
  margin-top: 0 !important;
  padding-top: 0 !important;
  transform: translateY(0) !important;
}

#covers {
  margin-top: 2rem;
  padding-top: 2rem;
}

.music-grid {
  box-sizing: border-box;
  --release-gap: clamp(1rem, 2vw, 1.75rem);
  --release-size: clamp(168px, 21.6vw, 264px);
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(0.25rem, 2vw, 1.5rem);
  touch-action: pan-y;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 clamp(2rem, 9vw, 8rem), #000 calc(100% - clamp(2rem, 9vw, 8rem)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 clamp(2rem, 9vw, 8rem), #000 calc(100% - clamp(2rem, 9vw, 8rem)), transparent 100%);
}

.release-track {
  animation: release-carousel var(--release-duration, 42s) linear infinite;
  display: flex;
  overflow: visible;
  padding: 0.5rem 0;
  touch-action: pan-y;
  width: max-content;
  will-change: transform;
}

.release-track.is-dragging,
.collaborator-track.is-dragging {
  animation-play-state: paused;
}

.release-set {
  align-items: flex-start;
  display: flex;
  flex: 0 0 auto;
  gap: var(--release-gap);
  padding-right: var(--release-gap);
}

.music-grid.is-hover-paused .release-track,
.music-grid.is-expanded .release-track {
  animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
  .music-grid:hover .release-track,
  .music-grid:focus-within .release-track {
    animation-play-state: paused;
  }
}

body.release-time-stopping .release-track,
body.release-time-stopping .collaborator-track {
  animation-play-state: paused !important;
}

body.release-time-stopping .release-dialog-theme.is-changing i,
body.release-time-stopping .theme-toggle.is-changing i {
  animation-play-state: running !important;
}

@keyframes release-carousel {
  to {
    transform: translateX(-50%);
  }
}

/* Unified Card Scaling and Synchronized Text Zoom */
.music-card {
  color: inherit;
  cursor: pointer;
  display: block;
  flex: 0 0 var(--release-size);
  min-width: 0;
  outline: none;
  position: relative;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center center;
  --push-x: 0px;
  --push-y: 0px;
  transform: translate(var(--push-x, 0px), var(--push-y, 0px));
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}

/* Suppress sticky mobile :hover on touch devices */
@media (hover: hover) and (pointer: fine) {
  .music-card:hover {
    transform: translate(var(--push-x, 0px), var(--push-y, 0px)) scale(1.15);
    z-index: 30;
  }
  .music-card:hover .release-art-frame::before {
    opacity: 0.95;
    animation: gpu-glow-pulse 0.95s ease-in-out infinite alternate;
  }
}

.music-card.is-magnified,
.music-card.card-active,
.music-card.is-active,
.music-card:focus-visible {
  transform: translate(var(--push-x, 0px), var(--push-y, 0px)) scale(1.15);
  z-index: 30;
}

/* Fast, responsive GPU-accelerated glow pulse without edge border ring */
@keyframes gpu-glow-pulse {
  0% {
    opacity: 0.45;
  }
  100% {
    opacity: 1;
  }
}

.music-card.beating {
  transform: scale(1.15);
  z-index: 30;
}

.music-card img {
  aspect-ratio: 1;
  background: #17191d;
  border: 0;
  border-radius: 4px;
  display: block;
  height: 100%;
  object-fit: cover;
  position: relative;
  transition: filter 250ms ease;
  width: 100%;
  z-index: 2;
}

.music-card.artwork-unavailable img {
  visibility: hidden;
}

.music-card.artwork-unavailable .release-art-frame {
  background: radial-gradient(circle at 70% 24%, #56504a, #262529 48%, #101114);
}

.release-art-frame {
  aspect-ratio: 1;
  background: transparent;
  border-radius: 4px;
  overflow: visible;
  position: relative;
  width: 100%;
}

/* Pre-rendered hardware-accelerated #9e8021 glow pseudo-element locked flush to image edge */
.release-art-frame::before {
  background: transparent;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  box-shadow: 0 0 24px 2px rgba(158, 128, 33, 0.75), 0 0 46px 6px rgba(158, 128, 33, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 0.3s ease;
  will-change: opacity;
  z-index: 1;
}

.music-card.is-magnified .release-art-frame::before,
.music-card.card-active .release-art-frame::before,
.music-card.is-active .release-art-frame::before,
.music-card.touch-hover .release-art-frame::before,
.music-card:focus-visible .release-art-frame::before {
  opacity: 0.95;
  animation: gpu-glow-pulse 0.95s ease-in-out infinite alternate;
}

.music-card.beating .release-art-frame::before {
  opacity: 1;
  animation: gpu-glow-pulse 0.8s ease-in-out infinite alternate;
}

.release-art-frame::after {
  color: rgba(255, 255, 255, 0.2);
  content: "H";
  display: none;
  font-family: 'Noto Sans', sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.music-card.artwork-unavailable .release-art-frame::after {
  display: block;
}

.music-card h3,
.music-card p {
  font-family: 'Noto Sans', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-card-info {
  padding: 0;
}

.music-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.75rem 0 0.25rem;
}

.music-card p {
  color: #999;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}

body.light-mode .music-card p {
  color: #666;
}

.music-card:focus-visible .release-art-frame {
  outline: 2px solid #c7a66a;
  outline-offset: 4px;
}

.release-grid-action {
  display: flex;
  justify-content: center;
  padding: 0 1rem 1.5rem;
}

.show-more-button {
  background: #9e812144;
  border: 1px solid currentColor;
  color: inherit;
  cursor: pointer;
  font: 600 0.95rem 'Noto Sans', sans-serif;
  min-width: 150px;
  padding: 0.7rem 1.4rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.show-more-button:hover,
.show-more-button:focus-visible {
  background: #9e8021;
  border-color: #9e8021;
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

.music-grid.is-expanded {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.music-grid.is-expanded .release-track {
  animation: none;
  display: block;
  width: auto;
}

.music-grid.is-expanded .release-set {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--release-gap);
  grid-template-columns: repeat(4, minmax(0, var(--release-size)));
  justify-content: center;
  padding: 0;
}

.music-grid.is-expanded .release-set[aria-hidden="true"] {
  display: none;
}

.release-hover-stage {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 550ms ease;
  z-index: 1200;
}

.release-hover-stage.is-active {
  opacity: 1;
  pointer-events: auto;
}

body.release-hover-cursor-hidden,
body.release-hover-cursor-hidden * {
  cursor: none !important;
}

.release-hover-backdrop {
  background: rgba(0, 0, 0, 0.62);
  inset: 0;
  opacity: 0;
  position: absolute;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 1100ms ease, backdrop-filter 1100ms ease;
  pointer-events: none;
}

.release-hover-stage.is-active .release-hover-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.release-hover-card {
  background: var(--background-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: content-box;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.15);
  color: var(--text-dark);
  left: var(--hover-left);
  position: fixed;
  top: var(--hover-top);
  padding: clamp(8px, 1.5vw, 12px);
  pointer-events: none;
  transform: scale(1);
  transform-origin: top left;
  transition: left 900ms cubic-bezier(0.16, 1, 0.3, 1),
              top 900ms cubic-bezier(0.16, 1, 0.3, 1),
              width 900ms cubic-bezier(0.16, 1, 0.3, 1),
              padding 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color var(--transition-duration) ease,
              color var(--transition-duration) ease;
  width: var(--hover-width);
  z-index: 1;
}

.release-hover-card.is-returning {
  transition-duration: 1300ms;
}

.release-hover-artwork {
  min-width: 0;
}

.release-hover-card.is-zoomed {
  align-items: center;
  box-sizing: border-box;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  left: 50%;
  max-height: calc(100dvh - 180px);
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2rem);
  pointer-events: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 48px));
}

.release-hover-card.is-zoomed::-webkit-scrollbar {
  display: none;
}

.release-hover-card.is-zoomed {
  scrollbar-width: none;
}

.release-hover-card .release-card-info {
  padding: 0.65rem 0 0;
}

.release-hover-card.is-zoomed .release-card-info {
  padding-top: 0.85rem;
}

body.light-mode .release-hover-card {
  background: #fff;
  color: #111;
}

.release-hover-card .release-art-frame {
  aspect-ratio: 1;
  width: 100%;
}

.release-hover-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.release-hover-card h3,
.release-hover-card p {
  font-family: 'Noto Sans', sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-hover-card h3 {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.2rem;
}

.release-hover-card p {
  color: #999;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  margin: 0;
}

.release-hover-card.artwork-unavailable .release-art-frame {
  background: radial-gradient(circle at 70% 24%, #56504a, #262529 48%, #101114);
}

.release-hover-card.artwork-unavailable img {
  visibility: hidden;
}

.release-hover-card.artwork-unavailable .release-art-frame::after {
  color: rgba(255, 255, 255, 0.2);
  content: "H";
  display: block;
  font-size: clamp(5rem, 10vw, 9rem);
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .release-track,
  .client-avatar-loading {
    animation: none;
  }

  .release-hover-stage,
  .release-hover-card,
  .release-hover-card.is-returning,
  .music-card img,
  .show-more-button {
    transition-duration: 0.01ms;
  }
}

.release-dialog {
  --transition-duration: 0.3s;
  --dialog-border: rgba(255, 255, 255, 0.2);
  background: #050505;
  border: 1px solid var(--dialog-border);
  border-radius: 4px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
  color: #fff;
  box-sizing: border-box;
  max-height: 96dvh;
  max-width: min(480px, calc(100vw - 24px), calc(40dvh + 32px), calc(96dvh - 260px));
  opacity: 0;
  overflow: hidden;
  padding: 16px;
  transform: translateY(20px) scale(0.97);
  transition: opacity 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color var(--transition-duration) ease,
              border-color var(--transition-duration) ease,
              box-shadow var(--transition-duration) ease,
              color var(--transition-duration) ease;
  width: min(480px, calc(100vw - 24px), calc(40dvh + 32px), calc(96dvh - 260px));
}

body.light-mode .release-dialog {
  --dialog-border: rgba(0, 0, 0, 0.18);
  background: #fff;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.25);
  color: #111;
}

.release-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.release-dialog[open].is-closing {
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
}

@starting-style {
  .release-dialog[open] {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }
  .release-dialog[open]::backdrop {
    opacity: 0;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
}

.release-dialog::backdrop {
  background: rgba(5, 6, 8, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
              background var(--transition-duration) cubic-bezier(0.22, 1, 0.36, 1),
              -webkit-backdrop-filter 500ms cubic-bezier(0.22, 1, 0.36, 1),
              backdrop-filter 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.release-dialog.is-closing::backdrop {
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

body.light-mode .release-dialog::backdrop {
  background: rgba(24, 24, 24, 0.48);
}

body.light-mode .release-dialog.is-closing::backdrop {
  opacity: 0;
  background: rgba(0, 0, 0, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
}

.release-dialog-close {
  align-items: center;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  height: 40px;
  justify-content: center;
  transition: background var(--transition-duration) ease,
              border-color var(--transition-duration) ease,
              color var(--transition-duration) ease,
              transform 180ms ease;
  width: 40px;
  z-index: 4;
}

.release-dialog-theme {
  align-items: center;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  line-height: 0;
  padding: 0.5rem;
  transition: background var(--transition-duration) ease,
              border-color var(--transition-duration) ease,
              color var(--transition-duration) ease,
              transform 180ms ease;
  width: 40px;
  z-index: 4;
}

.release-dialog-theme i {
  color: inherit;
  font-size: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), color var(--transition-duration) ease;
}

.release-dialog-theme:hover i {
  transform: rotate(20deg);
}

.release-dialog-theme:active i {
  transform: scale(0.9) rotate(20deg);
}

.release-dialog-controls {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(10px, 2vh, 16px);
}

.release-dialog-controls button {
  flex: 0 0 40px;
}

.release-dialog-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

body.light-mode .release-dialog-close,
body.light-mode .release-dialog-theme {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.28);
  color: #111;
}

body.light-mode .release-dialog-close:hover,
body.light-mode .release-dialog-theme:hover {
  background: #9e8021;
  color: #fff;
}

.release-dialog-art {
  aspect-ratio: 1;
  background: #111;
  overflow: hidden;
  position: relative;
  transition: background var(--transition-duration) ease;
  width: 100%;
}

body.light-mode .release-dialog-art {
  background: #eee;
}

.release-dialog.artwork-unavailable .release-dialog-art img {
  visibility: hidden;
}

.release-dialog.artwork-unavailable .release-dialog-art::before {
  color: rgba(255, 255, 255, 0.2);
  content: "H";
  font-family: inherit;
  font-size: clamp(8rem, 24vw, 14rem);
  font-weight: 600;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 42%;
  transform: translate(-50%, -50%);
}

.release-dialog-art img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.release-dialog-artist {
  color: #c7a66a;
  font-family: inherit;
  font-size: clamp(0.58rem, 2.2vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
  transition: color var(--transition-duration) ease;
}

body.light-mode .release-dialog-artist {
  color: #806719;
}

.release-dialog-info {
  padding: 0.7rem 0 0.35rem;
}

.release-dialog-info h2 {
  font-family: inherit;
  font-size: clamp(1.05rem, 4vw, 1.8rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 0 0 0.3rem;
  transition: color var(--transition-duration) ease;
}

.release-dialog-info > p:last-child {
  color: #999;
  font-size: clamp(0.72rem, 2.4vw, 0.85rem);
  margin: 0;
  transition: color var(--transition-duration) ease;
}

body.light-mode .release-dialog-info > p:last-child {
  color: #666;
}

.release-dialog-listen {
  padding: 0.35rem 0 0;
}

.release-dialog-label {
  color: inherit;
  font-family: inherit;
  font-size: clamp(0.68rem, 2.5vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.35rem;
  text-align: center;
  transition: color var(--transition-duration) ease;
}

body.light-mode .release-dialog-label {
  color: #111;
}

.release-dsp-grid {
  border-left: 1px solid var(--dialog-border);
  border-top: 1px solid var(--dialog-border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  transition: border-color var(--transition-duration) ease;
}

body.light-mode .release-dsp-grid {
  --dialog-border: rgba(0, 0, 0, 0.2);
}

.release-dsp-grid a {
  align-items: center;
  border-bottom: 1px solid var(--dialog-border);
  border-right: 1px solid var(--dialog-border);
  color: inherit;
  display: flex;
  gap: 0.65rem;
  min-height: 38px;
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  transition: background 180ms ease,
              color var(--transition-duration) ease,
              border-color var(--transition-duration) ease;
}

.release-dsp-grid a:hover,
.release-dsp-grid a.touch-hover,
.release-dsp-grid a:focus-visible {
  background: #9e8021;
  color: #fff;
  outline: none;
}

.release-dsp-grid a:hover .jiosaavn-mark,
.release-dsp-grid a.touch-hover .jiosaavn-mark,
.release-dsp-grid a:focus-visible .jiosaavn-mark,
.release-dsp-grid a:hover .beatport-mark,
.release-dsp-grid a.touch-hover .beatport-mark,
.release-dsp-grid a:focus-visible .beatport-mark {
  transition: background-color 180ms ease;
}

.release-dsp-grid a i {
  flex: 0 0 1.2rem;
  font-size: 1.2rem;
  text-align: center;
}

.release-dsp-grid a span:last-child {
  font-family: inherit;
  font-size: clamp(0.68rem, 2.6vw, 0.82rem);
  font-weight: 600;
  white-space: nowrap;
}

.jiosaavn-mark,
.beatport-mark {
  background-color: currentColor;
  display: block;
  flex: 0 0 1.2rem;
  height: 1.2rem;
  transition: background-color var(--transition-duration) ease;
  width: 1.2rem;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.jiosaavn-mark {
  -webkit-mask-image: url("../assets/images/brands/JioSaavn.svg");
  mask-image: url("../assets/images/brands/JioSaavn.svg");
}

.beatport-mark {
  -webkit-mask-image: url("../assets/images/brands/Beatport.svg");
  mask-image: url("../assets/images/brands/Beatport.svg");
}

.streaming-icons .jiosaavn-mark {
  flex-basis: 2.5rem;
  height: 2.5rem;
  width: 2.5rem;
}

.streaming-icons .beatport-mark {
  flex-basis: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  transform: scale(1.25);
  width: 2.5rem;
}

.streaming-icons .jiosaavn-mark,
.streaming-icons .beatport-mark {
  transition: background-color 0.25s ease;
}

.streaming-icons a:hover .jiosaavn-mark,
.streaming-icons a.touch-hover .jiosaavn-mark,
.streaming-icons a:focus-visible .jiosaavn-mark,
.streaming-icons a:hover .beatport-mark,
.streaming-icons a.touch-hover .beatport-mark,
.streaming-icons a:focus-visible .beatport-mark {
  transition: background-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .music-card,
  .music-card img,
  .release-dialog,
  .release-dialog-close {
    transition-duration: 0.01ms;
  }
}


/*------------------------------------*\
  #SECTION HEADERS
\*------------------------------------*/

.section-header {
  box-sizing: border-box;
  background: transparent; /* Default, will be overridden by theme */
  padding: 0.75rem 1rem;
  position: sticky;
  top: 80px; /* matches the fixed header height */
  width: 100%;
  z-index: 900; /* below the header (z-index 1000), above content */
  /* Transition for theme background and color */
  transition: background var(--transition-duration) ease,
              color var(--transition-duration) ease;
}

.section-header h2 {
  font-size: 2rem;
  margin: 0;
  text-align: center;
}


/*------------------------------------*\
  #SOCIAL & STREAMING ICONS
\*------------------------------------*/

.social-icons,
.streaming-icons {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping for smaller screens */
  gap: 1.5rem;
  justify-content: center;
  padding: 1rem 0 3rem 0;
}

.social-icons a,
.streaming-icons a {
  align-items: center;
  color: inherit; /* Inherits from body, ensuring theme color */
  display: flex;
  font-size: 2.5rem;
  justify-content: center;
  text-decoration: none;
  transition: color 0.25s ease; /* Fast icon-colour transition independent of global theme duration */
}

.social-icons a:hover,
.streaming-icons a:hover {
  transition: color 0.2s ease;
}

/* Social Media Icons Hover Colors */
.social-icons a:hover[aria-label="Instagram"],
.social-icons a.touch-hover[aria-label="Instagram"] { color: #E1306C; }

.social-icons a:hover[aria-label="YouTube"],
.social-icons a.touch-hover[aria-label="YouTube"] { color: #FF0000; }

.social-icons a:hover[aria-label="X"],
.social-icons a.touch-hover[aria-label="X"] { color: #1DA1F2; }

.social-icons a:hover[aria-label="LinkedIn"],
.social-icons a.touch-hover[aria-label="LinkedIn"] { color: #0A66C2; }

.social-icons a:hover[aria-label="Facebook"],
.social-icons a.touch-hover[aria-label="Facebook"] { color: #0866FF; }

.social-icons a:hover[aria-label="Threads"],
.social-icons a.touch-hover[aria-label="Threads"] { color: #bbbbbb; }

.social-icons a:hover[aria-label="IMDb"],
.social-icons a.touch-hover[aria-label="IMDb"] { color: #F5C510; }

/* Streaming Platform Icons Hover Colors */
.streaming-icons a:hover[aria-label="Spotify"],
.streaming-icons a.touch-hover[aria-label="Spotify"] { color: #1DB954; }

.streaming-icons a:hover[aria-label="Apple Music"],
.streaming-icons a.touch-hover[aria-label="Apple Music"] { color: #FA243C; }

.streaming-icons a:hover[aria-label="YouTube Music"],
.streaming-icons a.touch-hover[aria-label="YouTube Music"] { color: #FF0000; }

.streaming-icons a:hover[aria-label="Amazon Music"],
.streaming-icons a.touch-hover[aria-label="Amazon Music"] { color: #2696D1; }

.streaming-icons a:hover[aria-label="JioSaavn"],
.streaming-icons a.touch-hover[aria-label="JioSaavn"] { color: #1eccb0; }

.streaming-icons a:hover[aria-label="SoundCloud"],
.streaming-icons a.touch-hover[aria-label="SoundCloud"] { color: #FF5500; }

.streaming-icons a:hover[aria-label="Deezer"],
.streaming-icons a.touch-hover[aria-label="Deezer"] { color: #A238FF; }

.streaming-icons a:hover[aria-label="Beatport"],
.streaming-icons a.touch-hover[aria-label="Beatport"] { color: #01cc77; }

.streaming-icons a:hover[aria-label="Tidal"],
.streaming-icons a.touch-hover[aria-label="Tidal"] { color: #00A3C4; }

/*------------------------------------*\
  #ABOUT SECTION
\*------------------------------------*/

#about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  text-align: justify;
}


/*------------------------------------*\
  #COLLABORATORS CAROUSEL
\*------------------------------------*/

.collaborator-carousel {
  box-sizing: border-box;
  --collaborator-gap: clamp(1rem, 2vw, 1.75rem);
  --collaborator-size: clamp(168px, 21.6vw, 264px);
  margin: 0 auto;
  max-width: 1200px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 clamp(2rem, 9vw, 8rem), #000 calc(100% - clamp(2rem, 9vw, 8rem)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 clamp(2rem, 9vw, 8rem), #000 calc(100% - clamp(2rem, 9vw, 8rem)), transparent 100%);
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(0.25rem, 2vw, 1.5rem);
  touch-action: pan-y;
  width: 100%;
}

.collaborator-track {
  animation: collaborator-carousel var(--collaborator-duration, 36s) linear infinite;
  display: flex;
  overflow: visible;
  padding: 0.5rem 0;
  touch-action: pan-y;
  width: max-content;
  will-change: transform;
}

.collaborator-set {
  align-items: flex-start;
  display: flex;
  flex: 0 0 auto;
  gap: var(--collaborator-gap);
  padding-right: var(--collaborator-gap);
}

.collaborator-carousel.is-hover-paused .collaborator-track,
.collaborator-carousel.is-expanded .collaborator-track {
  animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
  .collaborator-carousel:hover .collaborator-track,
  .collaborator-carousel:focus-within .collaborator-track {
    animation-play-state: paused;
  }
}

@keyframes collaborator-carousel {
  to { transform: translateX(-50%); }
}

.collaborator-card {
  align-items: center;
  box-sizing: border-box;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--collaborator-size);
  justify-content: flex-start;
  max-width: var(--collaborator-size);
  min-width: 0;
  text-align: center;
  text-decoration: none;
  transform-origin: center center;
  --push-x: 0px;
  --push-y: 0px;
  transform: translate(var(--push-x, 0px), var(--push-y, 0px));
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  width: var(--collaborator-size);
  will-change: transform;
}

/* Suppress sticky mobile :hover on touch devices */
@media (hover: hover) and (pointer: fine) {
  .collaborator-card:hover {
    transform: translate(var(--push-x, 0px), var(--push-y, 0px)) scale(1.15);
    z-index: 30;
  }
  .collaborator-card:hover .collaborator-avatar-frame::before {
    opacity: 0.95;
    animation: gpu-glow-pulse 0.95s ease-in-out infinite alternate;
  }
}

.collaborator-card.is-magnified,
.collaborator-card.card-active,
.collaborator-card.is-active,
.collaborator-card:focus-visible {
  transform: translate(var(--push-x, 0px), var(--push-y, 0px)) scale(1.15);
  z-index: 30;
}

.collaborator-avatar-frame {
  aspect-ratio: 1 / 1;
  background: transparent;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  width: 100%;
}

.client-avatar-loading {
  background: linear-gradient(110deg, #171717 25%, #2a2a2a 45%, #171717 65%);
  background-size: 220% 100%;
  animation: client-avatar-loading 1.4s ease-in-out infinite;
}

.client-avatar-unavailable {
  background: #171717;
}

@keyframes client-avatar-loading {
  to { background-position-x: -220%; }
}

.collaborator-avatar-frame img,
.collaborator-avatar-frame .collaborator-avatar-fallback,
.collaborator-card img,
.collaborator-avatar-fallback {
  aspect-ratio: 1 / 1;
  background: #222;
  border-radius: 50%;
  box-sizing: border-box;
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  position: relative;
  transition: filter 300ms ease;
  width: 100%;
  z-index: 2;
}

/* Pre-rendered hardware-accelerated #9e8021 glow pseudo-element locked flush to avatar edge */
.collaborator-avatar-frame::before {
  background: transparent;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 24px 2px rgba(158, 128, 33, 0.75), 0 0 46px 6px rgba(158, 128, 33, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity 0.3s ease;
  will-change: opacity;
  z-index: 1;
}

.collaborator-card.is-magnified .collaborator-avatar-frame::before,
.collaborator-card.card-active .collaborator-avatar-frame::before,
.collaborator-card.is-active .collaborator-avatar-frame::before,
.collaborator-card.touch-hover .collaborator-avatar-frame::before,
.collaborator-card:focus-visible .collaborator-avatar-frame::before {
  opacity: 0.95;
  animation: gpu-glow-pulse 0.95s ease-in-out infinite alternate;
}

.collaborator-avatar-fallback {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  font-size: 2.25rem;
  justify-content: center;
}

.collaborator-card p {
  box-sizing: border-box;
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.collaborator-status {
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.collaborator-carousel.is-expanded {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.collaborator-carousel.is-expanded .collaborator-track {
  animation: none;
  display: block;
  width: auto;
}

.collaborator-carousel.is-expanded .collaborator-set {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--collaborator-gap);
  grid-template-columns: repeat(4, minmax(0, var(--collaborator-size)));
  justify-content: center;
  padding: 0;
}

.collaborator-carousel.is-expanded .collaborator-set[aria-hidden="true"] {
  display: none;
}


/*------------------------------------*\
  #FOOTER
\*------------------------------------*/

footer {
  /* Layout: Make it a flex container to place logo left and text right */
  align-items: center; /* Vertically align items in the middle */
  background-color: transparent;
  color: var(--text-dark);
  display: flex; /* Make it a flex container */
  font-size: 0.8rem;
  justify-content: space-between; /* Puts logo on left, text on right */
  margin-top: 3rem;
  padding: 1rem 2rem; /* Consistent padding */
  position: relative; /* If any child needs absolute positioning within it */
  /* Transition for theme changes */
  transition: background-color var(--transition-duration) ease,
              color var(--transition-duration) ease;
}

body.light-mode footer {
  /* border-top: 1px solid #ccc;  <--- This line was removed to fix the "weird line" */
  color: var(--text-light);
}

/* Footer Logo Styles */
.footer-logo-link {
  display: flex; /* To manage the two logo images */
  align-items: center;
  height: 100%; /* Ensures vertical alignment with footer content */
}

.footer-logo {
  max-height: 60px; /* Adjust logo size here as needed for the footer */
  width: auto; /* Ensures aspect ratio is maintained */
  transition: opacity 0.5s ease; /* Smooth transition for logo change */
}

/* Theme-specific logo visibility for footer */
.footer-logo.footer-logo-dark {
  display: block; /* Default: show dark logo */
}

.footer-logo.footer-logo-light {
  display: none; /* Default: hide light logo */
}

/* When in light mode, swap logo visibility */
body.light-mode .footer-logo.footer-logo-dark {
  display: none; /* Hide dark logo in light mode */
}

body.light-mode .footer-logo.footer-logo-light {
  display: block; /* Show light logo in light mode */
}


/*------------------------------------*\
  #MEDIA QUERIES (RESPONSIVENESS)
\*------------------------------------*/

@media (max-width: 768px) {
  body:not(.blog-route) #page-content h2 {
    box-sizing: border-box;
    margin-inline: auto;
    max-width: 100%;
    text-align: center;
    width: 100%;
  }

  /* Header */
  header {
    justify-content: flex-end; /* Mobile header doesn't space out internal elements; hamburger/toggle are fixed */
    padding: 0 1rem; /* Adjust padding for mobile header */
    margin: 0;
  }

  #hero {
    width: 100vw;
    height: 70vh;
    margin: 0 auto;
    margin-top: 0;
    padding-top: 0;
    left: 0;
    top: 0;
    clip-path: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  }


  /* Adjust .hero-content to stay centered within the NOW SMALLER #hero section */
  .hero-content {
    box-sizing: border-box;
    width: 100%; /* Spans 100% of the new 70vw width */
    padding: 1rem;
    left: 50%;
    transform: translate(-50%, -50%); /* Keep this for perfect centering within the new #hero */
    top: 75%; /* Center vertically within the new #hero */
  }

  .hero-content h1,
  .hero-content p {
    background: transparent;
  }

  /* Adjust video to cover the new, smaller #hero section and feather bottom to transparent */
  .video-background {
    width: 100%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  }

  .video-background video,
  .video-background iframe {
    /* These rules will now apply relative to the 70vw/70vh parent */
    width: 100%;
    height: 110%; /* Keep this for the "chop from top" effect relative to the new height */
    top: -10%; /* Keep this for the "chop from top" effect relative to the new height */
    left: 50%;
    transform: translateX(-50%); /* Keep for horizontal centering within the new #hero */
    object-fit: cover;
    object-position: 50% 0%; /* Keep this for the "chop from top" effect */
  }

  /* Hamburger */
  .hamburger {
    display: flex !important; /* Override display:none from desktop */
  }

  /* Navigation Links (Mobile Specific) */
  .nav-links {
    position: fixed;
    top: 80px;
    right: auto; /* Remove right positioning */
    left: 0;     /* Align to the left edge of the viewport */
    width: 100%;
    align-items: flex-start; /* Align items to the start (left) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 1);
    border-bottom-right-radius: 8px; /* Changed to bottom-right radius for left alignment */
    border-bottom-left-radius: 0; /* Ensure no radius on bottom-left */
    box-shadow: none;
    color: white;
    flex-direction: column; /* Stacks items vertically */
    opacity: 0;
    padding: 1rem 0; /* Removed horizontal padding here */
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: top left; /* Change origin to top left for correct animation */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                background-color var(--transition-duration) ease,
                color var(--transition-duration) ease;
    z-index: 999;
  }

  .nav-links.show {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  body.light-mode .nav-links {
    background: rgba(255, 255, 255, 1);
    color: black;
  }

  .nav-links a {
    font-size: 1.1rem;
    margin: 0.3rem 0;
    width: 100%; /* Ensures each link takes full available width */
    text-align: left; /* Aligns text to the left within each link */
    padding: 0.5rem 2rem; /* Increased left padding for text readability */
  }

  /* Highlight for active navigation link */
  /*  .nav-links a.active-link {
  /*      color: #a78940; /* The desired highlight color */
  /*      transition: color var(--transition-duration) ease;
  /*  }

  /* Section Header (Mobile) */
  .section-header {
    padding: 0.5rem 1rem;
    top: 80px; /* still matches mobile header height */
    z-index: 900;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  #covers {
    margin-top: 1rem;
    padding-top: 2rem;
  }

  #music,
  #covers {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .music-grid {
    --release-gap: 1rem;
    --release-size: clamp(150px, 33.6vw, 240px);
    padding: 3.5rem 0.25rem;
  }

  .collaborator-carousel {
    --collaborator-gap: 1rem;
    --collaborator-size: clamp(150px, 33.6vw, 240px);
    padding: 3.5rem 0.25rem;
  }

  .release-track,
  .collaborator-track {
    overflow: visible;
    padding: 1.25rem 0;
  }

  .music-grid.is-expanded {
    --release-gap: 0.5rem;
    padding: 3.5rem 0.25rem;
  }

  .music-grid.is-expanded .release-set {
    grid-template-columns: repeat(2, minmax(0, var(--release-size)));
    justify-content: center;
  }

  .collaborator-carousel.is-expanded {
    --collaborator-gap: 0.5rem;
    padding: 3.5rem 0.25rem;
  }

  .collaborator-carousel.is-expanded .collaborator-set {
    grid-template-columns: repeat(2, minmax(0, var(--collaborator-size)));
    justify-content: center;
  }

  .music-card h3 {
    font-size: 0.9rem;
  }

  .release-dialog {
    max-height: 96dvh;
    max-width: min(calc(100vw - 24px), calc(40dvh + 32px), calc(96dvh - 260px));
    width: min(calc(100vw - 24px), calc(40dvh + 32px), calc(96dvh - 260px));
  }

  .release-hover-card.is-zoomed {
    align-content: center;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    padding: 1rem;
    width: min(420px, calc(100vw - 28px));
  }

  .release-hover-card.is-zoomed .release-hover-artwork {
    margin: 0 auto;
    max-width: min(100%, 38dvh);
    width: 100%;
  }

  .release-dsp-grid a {
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.4rem;
  }

  .release-dsp-grid a span:last-child {
    font-size: clamp(0.55rem, 2.4vw, 0.72rem);
    line-height: 1.1;
    white-space: normal;
  }

}

@media (max-height: 640px) {
  .release-dialog-info {
    padding-block: 0.35rem 0.15rem;
  }

  .release-dialog-info h2 {
    font-size: clamp(1rem, 4vh, 1.5rem);
  }

  .release-dialog-listen {
    padding-block: 0.2rem 0;
  }

  .release-dsp-grid a {
    min-height: 34px;
    padding-block: 0.25rem;
  }
}

@media (max-height: 520px) {
  .release-dialog {
    max-width: min(calc(100vw - 24px), calc(40dvh + 32px), calc(96dvh - 290px));
    width: min(calc(100vw - 24px), calc(40dvh + 32px), calc(96dvh - 290px));
  }
}

#yt-player {
  height: 200px;
  left: -220px;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 200px;
}

#custom-audio-player {
  align-items: center;
  background: #fff;
  bottom: 0;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  color: #111;
  display: flex;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.5rem);
  position: fixed;
  right: 0;
  transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease;
  z-index: 1300;
}

body.light-mode #custom-audio-player {
  background: #050505;
  color: #fff;
}

body.dark-mode #custom-audio-player {
  background: #fff;
  color: #111;
}

.track-info,
.audio-controls,
.audio-progress,
.audio-volume {
  align-items: center;
  display: flex;
}

.track-info {
  flex: 0 1 250px;
  gap: 0.75rem;
  min-width: 0;
}

.track-art-frame {
  background: #292929;
  flex: 0 0 47.25px;
  height: 47.25px;
  overflow: hidden;
  width: 47.25px;
}

.track-art-frame img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  width: 100%;
}

#track-art:not([src]) {
  visibility: hidden;
}

.track-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#track-artist,
#audioTrackTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-info #track-artist {
  color: #aaa;
  font-size: 0.68rem;
}

.track-info #audioTrackTitle {
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.audio-controls button {
  color: inherit;
  transition: color 180ms ease, transform 180ms ease;
}

.audio-controls button:hover,
.audio-controls button[aria-pressed="true"] {
  color: #9e8021;
}

.audio-controls {
  flex: 0 0 auto;
  gap: clamp(0.45rem, 1.5vw, 1.1rem);
  justify-content: center;
}

.audio-controls button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.35rem;
}

.audio-controls button:disabled,
#muteBtn:disabled,
#progressBar:disabled,
#volumeBar:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#playBtn {
  align-items: center;
  background: #9e8021;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  width: 36px;
}

#playBtn:hover {
  background: #9e8021;
  color: #fff;
  transform: scale(1.06);
}

.audio-progress {
  flex: 2 1 240px;
  gap: 0.55rem;
  min-width: 0;
}

.audio-progress span {
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  min-width: 2rem;
}

.audio-volume {
  flex: 1 1 100px;
  gap: 0.55rem;
  justify-content: flex-end;
}

.audio-volume button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.25rem;
}

.audio-volume button:hover,
.audio-volume button[aria-pressed="true"] {
  color: #9e8021;
}

#progressBar,
#volumeBar {
  accent-color: #9e8021;
  background: linear-gradient(
    to right,
    #9e8021 0,
    #9e8021 var(--range-fill, 0%),
    var(--audio-range-track) var(--range-fill, 0%),
    var(--audio-range-track) 100%
  );
  cursor: pointer;
  min-width: 0;
}

#progressBar,
#volumeBar {
  appearance: none;
  height: 3px;
}

#progressBar::-webkit-slider-runnable-track,
#volumeBar::-webkit-slider-runnable-track {
  background: transparent;
  height: 3px;
}

#progressBar::-webkit-slider-thumb,
#volumeBar::-webkit-slider-thumb {
  appearance: none;
  background: #9e8021;
  border-radius: 50%;
  height: 9px;
  margin-top: -3px;
  width: 9px;
}

#progressBar::-moz-range-track,
#volumeBar::-moz-range-track {
  background: transparent;
  height: 3px;
}

#progressBar::-moz-range-progress,
#volumeBar::-moz-range-progress {
  background: transparent;
  height: 3px;
}

#progressBar::-moz-range-thumb,
#volumeBar::-moz-range-thumb {
  background: #9e8021;
  border: 0;
  border-radius: 50%;
  height: 9px;
  width: 9px;
}

.audio-visualizer {
  --visualizer-maximum-height: max(180px, 50vh);
  bottom: var(--audio-player-height, 68px);
  height: var(--visualizer-maximum-height);
  left: 0;
  opacity: 0.8;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 0;
}

footer > * {
  position: relative;
  z-index: 3;
}

#audioVisualizer {
  display: block;
  height: var(--visualizer-maximum-height);
  left: 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Theme-aware line color used by the canvas visualizer. */
body {
  --theme-color: #9e8021;
}

body.dark-mode {
  --audio-player-height: 68px;
  --audio-range-track: #111;
}

body.light-mode {
  --audio-player-height: 68px;
  --audio-range-track: #fff;
}


#progressBar {
  flex: 1;
  width: 100%;
}

#volumeBar {
  max-width: 100px;
  width: 100%;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 82px;
  }

  .audio-visualizer {
    bottom: var(--audio-player-height, 76px);
  }

  #custom-audio-player {
    display: grid;
    gap: 0.25rem 0.65rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    min-height: 76px;
    padding: 0.45rem 0.75rem;
  }

  body.dark-mode,
  body.light-mode {
    --audio-player-height: 76px;
  }

  .track-info {
    flex-basis: auto;
    grid-column: 1;
    grid-row: 1;
  }

  .audio-controls {
    grid-column: 2 / 4;
    grid-row: 1;
    justify-content: flex-end;
  }

  .audio-progress {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .audio-volume {
    grid-column: 3;
    grid-row: 2;
  }

  .audio-controls button {
    font-size: 0.85rem;
    padding: 0.25rem;
  }

  #playBtn {
    height: 32px;
    width: 32px;
  }

  .track-art-frame {
    flex-basis: 37.8px;
    height: 37.8px;
    width: 37.8px;
  }

  .track-info #track-artist {
    font-size: 0.58rem;
  }

  .track-info #audioTrackTitle {
    font-size: 0.7rem;
  }

  .audio-progress span {
    font-size: 0.62rem;
    min-width: 1.7rem;
  }

  #volumeBar {
    max-width: 70px;
  }

  /* Footer Mobile Adjustments */
  footer {
    flex-direction: column; /* Stack items vertically on mobile */
    text-align: center; /* Center text for mobile stack */
    padding: 1rem;
  }

  footer .footer-logo-link {
    margin-bottom: 0.5rem; /* Add space between logo and text */
  }
}

/*------------------------------------*\
  #CONTACT SECTION (TURNSTILE REVEAL)
\*------------------------------------*/
@media (min-width: 1025px) {
  #contact::after {
    content: "";
    display: block;
    height: 16vh;
  }
}

.contact-container {
  text-align: center;
  padding: 2rem 1rem 4rem;
  min-height: 160px; /* Prevents layout shift when the widget disappears */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#contact-instruction {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

body.dark-mode #contact-instruction {
  color: #aaa;
}

/* The injected email link styling */
.revealed-email {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid currentColor;
  border-radius: 4px;
  
  /* Initial hidden state for the fade-in animation */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              background-color 0.3s ease, 
              color 0.3s ease;
}

.revealed-email.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Invert colors on hover for a sharp, tactile feel */
.revealed-email:hover {
  background-color: var(--text-light);
  color: var(--background-light);
}

body.dark-mode .revealed-email:hover {
  background-color: var(--text-dark);
  color: var(--background-dark);
}

@media (max-width: 1024px) {
  #custom-audio-player {
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
                background-color var(--transition-duration) ease,
                color var(--transition-duration) ease;
    transform: translateY(0);
    will-change: transform;
  }

  body.audio-player-hidden #custom-audio-player {
    pointer-events: none;
    transform: translateY(100%);
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  #custom-audio-player {
    transition-duration: 0.01ms;
  }
}
