:root {
  --bg: #06070c;
  --panel: #0f1320;
  --panel-alt: #12192b;
  --text: #f2f5ff;
  --muted: rgba(242, 245, 255, 0.75);
  --line: rgba(255, 255, 255, 0.16);
  --accent: #2be2c7;
  --accent-soft: rgba(43, 226, 199, 0.2);
  --header-height: 100px;
}

::selection {
  background: var(--accent);
  color: #000000;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

html,
body,
header,
main,
footer,
section,
div,
nav,
a,
button,
form,
input,
label,
ul,
li,
p,
h1,
h2,
h3,
h4,
article,
video,
img,
iframe,
span {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: #06070c;
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  /* Disable body scroll, use container instead */
}

body {
  font-family: "Jost", Arial, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.5;
  padding-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

video,
img,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: transparent;
}

.container {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.header-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}

.main-header {
  background: transparent !important;
  border-bottom: none;
  backdrop-filter: none;
}

.header-grid {
  min-height: 100px;
  padding: 0;
  /* Remove 10px padding to allow edge bleeding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  pointer-events: none;
  width: 100%;
}

.nav-group-left,
.nav-group-right,
.nav-group {
  display: flex;
  align-items: center;
  gap: 0;
  /* Disable pointer events on wrapper so only the actual nav-item elements are clickable */
  pointer-events: none;
}

.nav-group-left {
  width: 36%;
  justify-content: space-evenly;
  flex: 0 0 36%;
  margin-left: 0;
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-grid;
  align-items: center;
  justify-items: center;
  line-height: 0;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.brand.logo-hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-group-right {
  width: 36%;
  justify-content: space-evenly;
  flex: 0 0 36%;
  margin-right: 0;
}

.nav-item,
.utility-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  /* Super tight padding so they clump together */
  margin: 0 !important;
  flex: 0 0 auto !important;
  border-radius: 10px;
  transition: color 0.2s ease;
  position: relative;
  /* Re-enable pointer events on actual items */
  pointer-events: auto;
}

.search-trigger {
  cursor: pointer;
}

.nav-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transition: filter 0.2s ease;
}

.nav-item span {
  color: #2BE2C7;
  transition: color 0.2s ease;
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  line-height: 1;
}

.nav-item:hover,
.nav-item:focus-visible {
  background: transparent;
}

.nav-item:hover span,
.nav-item:focus-visible span {
  color: #ffffff;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-soft);
  /* Faster transition for spontaneous feel */
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), width 0.15s cubic-bezier(0.2, 0, 0, 1), opacity 0.1s ease;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, opacity;
}

/* Removed old .brand flex class in favor of absolute positioning above */

.brand-logo {
  display: block;
  grid-area: 1 / 1;
  width: auto;
  height: 40px;
  /* Increased from 30px */
  max-height: 40px;
  filter: drop-shadow(0 4px 12px rgba(43, 226, 199, 0.25));
  transition: opacity 0.3s ease;
}

.logo-hover {
  opacity: 0;
}

.brand:hover .logo-default {
  opacity: 0;
}

.brand:hover .logo-hover {
  opacity: 1;
}

#scroll-container {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  position: relative;
  z-index: 1;
  scroll-snap-type: y mandatory;
  /* Removed mask-image to fix Safari sticky video flickering */
  scrollbar-width: none;
}

#scroll-container.no-mask {
  /* No mask logic needed anymore */
}

#scroll-container::-webkit-scrollbar {
  display: none;
}

.hero {
  height: 100vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

#video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: #000;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.bg-video.active {
  opacity: 1;
  z-index: 1;
}

.video-vignette {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero-overlay-image {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  width: 22%;
  min-width: 300px;
  margin-left: auto;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-bottom: 6vh;
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-down svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.album-title-hero {
  font-family: "Jost", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0;
  color: #fff;
}

.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.82rem;
  font-family: "Bad Script", cursive;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  margin: 0;
  font-family: "Pacifico", cursive;
  font-weight: 400;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
}

.btn-primary {
  padding: 11px 24px;
  font-family: "Prompt", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.content-section {
  padding: 0;
  padding-top: var(--header-height);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}

.content-section.alt {
  background: transparent;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: "Bad Script", cursive;
  font-size: 1.2rem;
  text-align: center;
}

.section-subhead {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.15rem;
  font-family: "Bad Script", cursive;
}

.inline-highlight {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.section-divider {
  height: 1px;
  width: 100%;
  margin: 1.2rem 0 1.5rem;
  background: linear-gradient(90deg, rgba(52, 207, 194, 0), rgba(52, 207, 194, 0.8), rgba(52, 207, 194, 0));
}

.music-section {
  width: 100%;
  padding: 0;
  position: relative;
}

/* --- Universal Left Vertical Title --- */
.vertical-title-left {
  position: absolute;
  left: 0;
  top: 100px;
  /* Start below header */
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-primary);
  font-size: min(8vw, 8rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  user-select: none;
  pointer-events: none;
  border-right: none;
  /* Removed border to make it fully transparent */
  padding: 0;
  text-transform: uppercase;
  z-index: 0;
  /* Lowered so content always stays on top */
  height: 100vh;
  top: 0;
  padding: 10vh 0;
}

.vertical-title-left span {
  line-height: 0.9;
  display: block;
}

.music-section .music-shell {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  width: 100%;
  align-items: center;
  padding-left: 100px;
  /* Space for the vertical title */
  padding-right: 20px;
  border: none;
  background: transparent;
  backdrop-filter: none;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

/* --- Universal Full-Height Background Text --- */
/* center-vertical-heading is now display:none globally */
.music-section .vertical-heading {
  position: absolute;
  left: 50%;
  top: 100px;
  /* Start just below transparent header */
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;

  writing-mode: vertical-rl;
  text-orientation: upright;

  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  /* Max size is 15vh, but scale down if character count implies overflow */
  font-size: min(15vh, calc((100vh - 110px) / var(--char-count, 5)));
  letter-spacing: 0;
  line-height: 1;

  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  color: #fff;
  text-shadow: none;
  width: auto;
  height: calc(100vh - 110px);
}

.music-section .section-body {
  justify-self: end;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0;
  position: relative;
  z-index: 1;
  pointer-events: none;
  /* Allow clicks to pass through */
}

.music-section .album-center {
  width: 100%;
  max-width: 600px;
  /* Decreased width by 20% (750px -> 600px) */
  margin: 0;
  margin-top: 8vh;
  /* Lowered position */
  pointer-events: auto;
  /* Re-enable clicks for the player */
}

.music-credits {
  text-align: center;
}

.album-center {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.4);
  backdrop-filter: blur(12px);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* --- Left Side Vinyl Animation Styles --- */
.music-overlay-left {
  position: absolute;
  left: 28%;
  /* Changed from 25% to 28% to move it right */
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  /* Behind main content if overlapping, but visible */
  width: 40vw;
  /* Much larger size, responsive to viewport width */
  max-width: 850px;
  /* Maximum constraint */
  min-width: 400px;
  /* Minimum constraint */
  pointer-events: auto;
  /* Ensure this layer captures the hover */
}

.vinyl-wrapper-large {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
  pointer-events: auto;
  cursor: default;
  will-change: transform;
  transform: scale(1);
  opacity: 1;
  filter: none;
  box-shadow: none;
  background: transparent !important;
  touch-action: none;
  border: none;
  outline: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-box-shadow: none !important;
}

.vinyl-wrapper-large.is-scratching {
  cursor: default;
}

/* Same hover zoom in normal + music mode */
.vinyl-wrapper-large:hover,
#music .music-overlay-left:hover .vinyl-wrapper-large,
#music.cinema-mode .music-overlay-left .vinyl-wrapper-large:hover {
  transform: scale(1.08);
  z-index: 10;
}

.vinyl-sleeve-large {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  border-radius: 0;
  box-shadow: none;
  border: none;
  filter: none;
  /* Tight edge trim to hide any residual package boundary lines */
  clip-path: inset(1.15%);
  -webkit-mask-image: none;
  mask-image: none;
  transform: translateZ(0);
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
  touch-action: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-box-shadow: none !important;
}

.vinyl-disc-large {
  position: absolute;
  top: 50%;
  right: 0;
  /* Align right edge to sleeve right edge */
  width: 40%;
  /* 2.5 times smaller than sleeve (100/2.5 = 40) */
  height: 40%;
  z-index: 1;
  transform: translateY(-50%) translateX(0);
  /* Center vertically */
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  border-radius: 50%;
  background: transparent !important;
  cursor: default;
  touch-action: none;
}

/* Punch Hole for Vinyl */
.vinyl-disc-large::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  height: 22%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.94) 0 58%, rgba(255, 255, 255, 0.2) 62%, rgba(0, 0, 0, 0.72) 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.vinyl-disc-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
  touch-action: none;
}

/* Hand cursor only on CD and only when song is actively playing */
.vinyl-wrapper-large.playing .vinyl-disc-large,
.vinyl-wrapper-large.playing .vinyl-disc-large img {
  cursor: url('../media/cursor-hand.svg') 24 24, grab;
}

.vinyl-wrapper-large.playing.is-scratching .vinyl-disc-large,
.vinyl-wrapper-large.playing.is-scratching .vinyl-disc-large img {
  cursor: url('../media/cursor-hand.svg') 24 24, grabbing;
}

/* Playing state: vinyl smoothly slides out from sleeve and spins */
.vinyl-wrapper-large.playing .vinyl-disc-large {
  transform: translateY(-50%) translateX(44%);
}

.vinyl-wrapper-large.playing .vinyl-disc-large img {
  animation: spin 2.8s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.album-artwork-static {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1/1;
  margin: 0 auto 0.4rem;
  /* Reduced from 0.75rem */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: block;
}

.album-title {
  margin: 0 0 -2px;
  /* Super compact */
  font-size: 1.35rem;
  text-align: center;
  font-family: "Jost", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.album-artist-name {
  margin: 0 0 0.5rem;
  /* Tight gap before tracks */
  font-size: 0.88rem;
  text-align: center;
  font-family: "Prompt", sans-serif;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}

.album-note {
  margin: 0.28rem 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1.35;
}

.track-list-container {
  margin: 0.4rem 0;
  /* Reduced from 1rem */
  max-height: 480px;
  /* Constrained for 47-track density */
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.track-list-container::-webkit-scrollbar {
  width: 6px;
}

.track-list-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.track-list {
  margin: 0;
  padding: 2.2rem 0;
  /* Increased space further to accommodate upward tooltips on the first row */
  list-style: none;
  display: grid;
  gap: 0;
  align-content: start;
}

.track-row {
  display: grid;
  /* Changed grid to accommodate one-line layout: Index | Name+Icons | Button */
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 10px 12px;
  border-radius: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

.track-list .track-row:last-child {
  border-bottom: none;
}

.track-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.track-index {
  font-family: "Prompt", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 2ch;
  padding-top: 3px;
}

.track-info {
  display: flex;
  flex-direction: row;
  /* Horizontal layout */
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.track-name {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.97rem;
  letter-spacing: 0;
  text-align: left;
  color: var(--text);
  white-space: nowrap;
}

.platform-links {
  display: flex;
  gap: 8px;
  /* Reduced gap slightly for better fit */
  flex-wrap: nowrap;
  align-items: center;
}

.platform-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  transition: transform 0.2s;
}

.platform-links a:hover {
  transform: scale(1.15);
}

.platform-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.platform-icon:hover {
  transform: none;
  /* Favor the anchor hover scale */
}

/* Specific Icon Balance */
img[alt="Amazon Music"].platform-icon {
  transform: scale(1.1);
  /* Slightly bigger to match circular icons weight */
}

img[alt="JioSaavn"].platform-icon,
.icon-jiosaavn.platform-icon {
  transform: scale(1.05);
  /* Slight boost for detail */
}

/* Reset any specific offsets for these icons in this context */
.platform-links a img {
  margin: 0 !important;
  padding: 0 !important;
}

.track-row.released {
  background: transparent;
}

.track-row.released:hover {
  background: rgba(255, 255, 255, 0.08);
}

.track-row.released .track-name {
  color: var(--accent);
  font-weight: 600;
}

.track-play-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  font-weight: 600;
}

.track-play-btn:hover,
.track-play-btn:focus-visible {
  color: #000;
  background: var(--accent);
  border-color: var(--accent);
}

.track-row.upcoming {
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  align-items: center;
}

.track-row.upcoming .track-index {
  color: rgba(255, 255, 255, 0.3);
}

/* Styles for Releasing Soon Note */
.upcoming-details {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /* Align content to both ends */
  width: 100%;
}

.upcoming-details .track-name {
  font-weight: 500;
}

.release-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: "Prompt", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  font-weight: 500;
}

/* --- Updated Music Player Panel --- */
.music-player-panel {
  margin-top: 0.75rem;
  /* Reduced from 1rem */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.6rem 0.75rem;
  /* Shaved top/bottom padding */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.music-progress-row {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.music-progress-container {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
}

.music-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(43, 226, 199, 0.92), rgba(43, 226, 199, 0.58));
  box-shadow: 0 0 10px rgba(43, 226, 199, 0.42);
  transition: width 0.1s linear;
}

.music-progress-time {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Prompt", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: right;
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.player-center-info {
  flex: 1;
  text-align: center;
  overflow: hidden;
}

.music-player-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#music-now-playing {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.player-artist {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: "Josefin Sans", sans-serif;
  min-height: 1.2em;
  /* Reserve space to prevent layout shift */
}

.player-control-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.transport-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.player-control-btn--transport {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.player-control-btn--transport:hover,
.player-control-btn--transport:focus-visible {
  background: rgba(43, 226, 199, 0.18);
  border-color: rgba(43, 226, 199, 0.66);
}

.player-control-btn--primary {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-color: rgba(43, 226, 199, 0.72);
  background: rgba(43, 226, 199, 0.16);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
}

.control-icon--transport {
  width: 24px;
  height: 24px;
}

.main-play-icon,
.main-pause-icon {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
}

.player-control-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.player-control-btn.active {
  color: var(--accent);
}

.control-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.repeat-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 0.6rem;
  font-weight: bold;
  line-height: 1;
}

/* Options Menu Styles */
.options-wrapper {
  position: relative;
}

.options-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform-origin: bottom right;
  animation: scaleIn 0.2s ease;
}

.options-menu[hidden] {
  display: none;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.option-item {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 8px 12px;
  text-align: left;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.option-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Sliding Popup Styles */
.player-popup {
  position: absolute;
  inset: 0;
  background: rgba(15, 19, 32, 0.98);
  backdrop-filter: blur(15px);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 16px;
  /* Match album-center radius */
}

.player-popup.active {
  transform: translateX(0);
}

.popup-close {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  border: none;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 102;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.popup-close:hover {
  transform: scale(1.1);
  background: #fff;
}

.popup-content {
  flex: 1;
  overflow-y: auto;
  color: var(--text);
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
  padding-right: 4px;
}

/* Scrollbar for popup content */
.popup-content::-webkit-scrollbar {
  width: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.credit-line {
  margin-bottom: 0.5rem;
  display: block;
}

.credit-role {
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}

#music-player-audio {
  display: none;
}

.about-copy {
  display: grid;
  gap: 0.9rem;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  color: #ffffff;
  font-family: "Bad Script", cursive;
  font-size: 1.5rem;
  margin-left: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(43, 226, 199, 0.3);
  color: var(--text);
  font-family: "Josefin Sans", sans-serif;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  box-sizing: border-box;
  max-width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(43, 226, 199, 0.15), rgba(0, 0, 0, 0.2));
  box-shadow: 0 0 20px rgba(43, 226, 199, 0.25);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
}

.site-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.utility-grid {
  min-height: 70px;
  padding: 0 15%;
  /* Increased padding to move links closer to center */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
}

.utility-link,
.utility-center {
  font-family: "Caveat", cursive;
  font-size: 1.1rem;
}

.utility-link {
  color: #2BE2C7;
  flex-direction: row;
  gap: 0.28rem;
  white-space: nowrap;
}

.utility-link .amp,
.utility-center span {
  color: #ffffff;
}

.utility-link:hover,
.utility-link:focus-visible {
  color: #111111;
}

.utility-link:hover .amp,
.utility-link:focus-visible .amp {
  color: #2BE2C7;
}

.utility-link-right {
  justify-self: end;
}

.utility-right {
  justify-self: end;
}

.utility-center {
  text-align: center;
  color: var(--muted);
}

.utility-center span {
  font-family: "Jost", sans-serif;
  font-size: 1rem;
}

/* User-requested exact section backgrounds */
#music,
#connect,
#contact,
#videos,
#about {
  background: transparent;
  color: var(--text);
}

#connect {
  position: relative;
}

#connect::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(circle at 78% 20%, rgba(43, 226, 199, 0.05), transparent 50%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.92), rgba(3, 8, 14, 0.95) 45%, rgba(0, 0, 0, 0.9));
}

#connect.connect-form-cinema-mode::before {
  opacity: 1;
}

#videos {
  position: relative;
}

#videos.cinema-mode {
  background: transparent;
}

#music {
  position: relative;
}

#music::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(circle at 82% 18%, rgba(43, 226, 199, 0.08), transparent 46%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(5, 8, 14, 0.93) 45%, rgba(0, 0, 0, 0.88));
}

#music.cinema-mode::before {
  opacity: 1;
}

#videos::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), transparent 46%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.985), rgba(3, 8, 14, 0.99) 45%, rgba(0, 0, 0, 0.98));
}

#videos.cinema-mode::before {
  opacity: 1;
}

#videos.cinema-mode .vertical-title-left {
  opacity: 0 !important;
  visibility: hidden !important;
}

.main-header .nav-item img {
  filter: brightness(0) drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}

.main-header .nav-item span {
  color: #ffffff;
}

.main-header .nav-item:hover img,
.main-header .nav-item:focus-visible img,
.main-header .search-trigger:hover img,
.main-header .search-trigger:focus-visible img,
.main-header .nav-item.active img {
  filter: brightness(0) invert(1);
}

.main-header .nav-item:hover span,
.main-header .nav-item:focus-visible span,
.main-header .search-trigger:hover span,
.main-header .search-trigger:focus-visible span,
.main-header .nav-item.active span {
  color: #000000;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

/* Header opacity treatment during videos/music cinema mode */
.videos-cinema-mode .main-header .nav-item,
.videos-cinema-mode .main-header .search-trigger,
.music-cinema-mode .main-header .nav-item,
.music-cinema-mode .main-header .search-trigger,
.connect-form-cinema-mode .main-header .nav-item,
.connect-form-cinema-mode .main-header .search-trigger {
  opacity: 0.56;
  filter: saturate(0.84) brightness(0.84);
  transition: opacity 0.28s ease, filter 0.28s ease, transform 0.28s ease;
}

.videos-cinema-mode .brand,
.music-cinema-mode .brand,
.connect-form-cinema-mode .brand {
  opacity: 0.56;
  filter: saturate(0.84) brightness(0.84);
  transition: opacity 0.28s ease, filter 0.28s ease;
}

.videos-cinema-mode .main-header .nav-item:hover,
.videos-cinema-mode .main-header .nav-item:focus-visible,
.videos-cinema-mode .main-header .nav-item.active,
.videos-cinema-mode .main-header .search-trigger:hover,
.videos-cinema-mode .main-header .search-trigger:focus-visible,
.music-cinema-mode .main-header .nav-item:hover,
.music-cinema-mode .main-header .nav-item:focus-visible,
.music-cinema-mode .main-header .nav-item.active,
.music-cinema-mode .main-header .search-trigger:hover,
.music-cinema-mode .main-header .search-trigger:focus-visible,
.connect-form-cinema-mode .main-header .nav-item:hover,
.connect-form-cinema-mode .main-header .nav-item:focus-visible,
.connect-form-cinema-mode .main-header .nav-item.active,
.connect-form-cinema-mode .main-header .search-trigger:hover,
.connect-form-cinema-mode .main-header .search-trigger:focus-visible {
  opacity: 1;
  filter: saturate(1.06) brightness(1.1);
  transform: translateY(-1px);
}

.videos-cinema-mode .brand:hover,
.videos-cinema-mode .brand:focus-visible,
.music-cinema-mode .brand:hover,
.music-cinema-mode .brand:focus-visible,
.connect-form-cinema-mode .brand:hover,
.connect-form-cinema-mode .brand:focus-visible {
  opacity: 1;
  filter: saturate(1.06) brightness(1.1);
}

.site-footer .utility-link {
  color: #ffffff;
}

.site-footer .utility-center {
  color: #ffffff;
}


.site-footer .utility-center a,
.site-footer .utility-center a span {
  color: inherit;
  transition: color 0.2s ease;
}

.site-footer .utility-center a:hover,
.site-footer .utility-center a:focus-visible,
.site-footer .utility-center a:hover span,
.site-footer .utility-center a:focus-visible span {
  color: #000000;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.site-footer .utility-link:hover,
.site-footer .utility-link:focus-visible,
.site-footer .utility-link:hover .amp,
.site-footer .utility-link:focus-visible .amp {
  color: #000000;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-dialog {
  width: min(820px, 100%);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.search-dialog-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-dialog-header input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: 0.5rem;
  font-size: 1.2rem;
  font-family: "Josefin Sans", sans-serif;
}

.search-dialog-header input:focus {
  outline: none;
}

.search-input-clear {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.search-input-clear:hover {
  color: #fff;
}

.search-dialog-close {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 60vh;
  overflow: auto;
}

.search-results li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-results a {
  display: block;
  color: inherit;
  padding: 0.9rem 1rem;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.search-result-title {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.search-result-snippet {
  opacity: 0.85;
  font-size: 0.95rem;
}

.search-empty {
  padding: 1rem;
  opacity: 0.85;
}

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

/* --- New Split Layout Styles --- */
.split-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
  align-items: center;
  padding: 0 5%;
  position: relative;
  z-index: 2;
  gap: 4rem;
}

/* center-vertical-heading is now display:none globally */
.center-vertical-heading {
  display: none !important;
}

.split-left,
.split-right {
  width: 100%;
}

/* --- New Netflix-Style Videos Section --- */
/* ====== 4-QUADRANT VIDEO LAYOUT ====== */
.video-grid-4x4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

/* --- New Video Section Layout (Sketch Based) --- */
.video-section-layout {
  display: flex;
  gap: 1.2rem;
  min-height: 300px;
  align-items: stretch;
  max-width: 100%;
  margin: 1.5rem 0 0 0;
  padding: 0 2rem 80px 100px;
  /* Increased to 80px gap from the bottom of the screen */
  position: relative;
  z-index: 2;
}

.video-vertical-title span {
  line-height: 0.9;
  display: block;
}

/* Column 2: Main Area */
.video-main-column {
  flex: 3.5;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Remove gap between player and box to control with padding */
  height: 100%;
  /* Stretch to fill parent */
}

.video-player-container {
  flex: 0 0 auto;
  /* Stop player from greedy expansion */
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 28px;
  /* Top-align with sidebar and keep visible gap before description box */
}

.video-details-box {
  padding: 4px 1.2rem 1.2rem 1.2rem !important;
  /* Reduced internal padding while maintaining structure */
  flex: 1 !important;
  width: 90%;
  margin-left: 60px;
  /* Stretch to fill container height */
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  height: auto !important;
  /* Allow stretching */
  overflow: hidden !important;
  /* Hide overflow of the container */
}

.video-details-box h2 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.6rem;
  /* Smaller title */
  margin-top: 0 !important;
  margin-bottom: 0.3rem;
  color: var(--accent);
}

.video-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.8rem;
}

.video-description {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 1;
  overflow-y: auto;
  white-space: pre-line !important;
  /* Force pre-line to avoid accidental spaces (v2.9.8) */
  text-align: left;
  flex: 1;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  left: 0 !important;
  /* Force flush left (v2.9.9) */
}

#current-video-title,
#current-video-meta {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
}

/* Custom Scrollbar for Description */
.video-description::-webkit-scrollbar {
  width: 4px;
}

.video-description::-webkit-scrollbar-track {
  background: transparent;
}

.video-description::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.3);
  border-radius: 4px;
}

.video-details-box.theme-white .video-description::-webkit-scrollbar-thumb {
  background: rgba(43, 226, 199, 0.35);
}

/* Column 3: Sidebar Scroller */
.video-sidebar-scroller {
  flex: 1.2;
  overflow-y: auto;
  padding: 0.8rem 2rem 0.3rem 2rem;
  /* Shaved top and bottom */
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  /* Shaved gap */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  transition: all 0.3s ease;
}

/* Sidebar Themes */
.video-sidebar-scroller.theme-sidebar-black-glossy {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 0 !important;
  /* Sharp edges */
  transition: opacity 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
}

.video-sidebar-scroller::-webkit-scrollbar {
  width: 6px;
}

.video-sidebar-scroller::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.video-category {
  width: 100%;
}

.video-thumbs-grid.scrollable-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  /* Shaved 0.1rem */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.video-thumbs-grid.scrollable-row::-webkit-scrollbar {
  height: 6px;
  /* Horizontal bar height */
  display: block;
  /* Ensure it's visible */
}

.video-thumbs-grid.scrollable-row::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.video-thumbs-grid.scrollable-row .video-thumb {
  flex: 0 0 200px;
  /* Fixed width for scroller items */
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-thumbs-grid.scrollable-row .video-thumb:hover {
  transform: translateY(-5px);
}

@media (max-width: 1024px) {
  .video-section-layout {
    flex-direction: column;
    height: auto;
  }

  .video-vertical-title {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 0;
    padding-bottom: 1rem;
    font-size: 3rem;
  }

  .video-vertical-title span {
    margin: 0 5px;
  }
}

.box-glass {
  background: rgba(20, 20, 20, 0.3);
  /* Lighter, more transparent */
  backdrop-filter: blur(20px);
  /* Pure glassy effect */
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Theme Tests */
.video-details-box.theme-black {
  background: #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

.video-details-box.theme-black h2 {
  color: var(--accent) !important;
  opacity: 1 !important;
}

.video-details-box.theme-black .video-description {
  color: #fff !important;
  opacity: 1 !important;
}

.video-details-box.theme-white {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: opacity 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
}

.video-details-box.theme-white h2 {
  color: var(--accent) !important;
  opacity: 1 !important;
  margin-bottom: 4px !important;
}

.video-details-box.theme-white .video-meta {
  color: rgba(255, 255, 255, 0.65) !important;
  margin-bottom: 8px !important;
}

.video-details-box.theme-white .video-description {
  color: #fff !important;
  opacity: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.video-details-box.theme-white h2,
.video-details-box.theme-white .video-meta,
.video-details-box.theme-white .video-description {
  opacity: 0.2;
  transition: opacity 0.28s ease;
}

.video-details-box.theme-white:hover h2,
.video-details-box.theme-white:hover .video-meta,
.video-details-box.theme-white:hover .video-description {
  opacity: 1;
}

@media (min-width: 992px) {

  #videos #current-video-desc,
  #videos .video-details-box .video-description {
    max-height: min(30vh, 260px);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (hover: none) {

  .video-details-box.theme-white h2,
  .video-details-box.theme-white .video-meta,
  .video-details-box.theme-white .video-description {
    opacity: 1;
  }
}

/* Cinema mode: hover these panels to bring them slightly into focus */
#videos.cinema-mode .video-details-box.theme-white,
#videos.cinema-mode .video-sidebar-scroller.theme-sidebar-black-glossy {
  opacity: 0.56;
  filter: saturate(0.86) brightness(0.8);
  box-shadow: -10px 0 24px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.07) !important;
}

#videos.cinema-mode .video-details-box.theme-white:hover,
#videos.cinema-mode .video-sidebar-scroller.theme-sidebar-black-glossy:hover {
  position: relative;
  z-index: 6;
  opacity: 1;
  filter: saturate(1.08) brightness(1.12);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.78);
  border-color: rgba(43, 226, 199, 0.42) !important;
  transform: translateY(-1px);
}

/* Videos cinema mode: add layered depth behind main player */
#videos.cinema-mode .video-main-column {
  perspective: 1400px;
  transform-style: preserve-3d;
}

#videos.cinema-mode .video-player-container {
  position: relative;
  overflow: visible;
  isolation: isolate;
  transform-style: preserve-3d;
}

#videos.cinema-mode .video-player-container::before,
#videos.cinema-mode .video-player-container::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Soft ambient halo behind the frame */
#videos.cinema-mode .video-player-container::before {
  left: 10%;
  right: 12%;
  top: 8%;
  bottom: 21%;
  background:
    radial-gradient(78% 58% at 50% 44%, rgba(43, 226, 199, 0.22), rgba(10, 24, 40, 0.14) 50%, rgba(0, 0, 0, 0) 82%),
    radial-gradient(52% 42% at 50% 52%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 70%);
  filter: blur(28px) saturate(1.08);
  transform: translateZ(-70px);
  opacity: 0.95;
}

/* Ground shadow below the player for floating 3D depth */
#videos.cinema-mode .video-player-container::after {
  left: 12%;
  right: 14%;
  bottom: -16px;
  height: 36%;
  background: radial-gradient(62% 58% at 50% 18%, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42) 56%, rgba(0, 0, 0, 0) 100%);
  filter: blur(20px);
  transform: translateY(14px) scaleX(1.08);
  opacity: 0.88;
}

#videos.cinema-mode .video-player-wrapper:not(.sticky-mini-video) {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transform: perspective(1500px) rotateX(1.5deg) translateY(-1px);
  box-shadow:
    0 68px 110px rgba(0, 0, 0, 0.9),
    0 26px 46px rgba(0, 0, 0, 0.74),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 46px rgba(43, 226, 199, 0.16);
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.42s ease;
}

#videos.cinema-mode .video-player-wrapper:not(.sticky-mini-video):hover {
  transform: perspective(1500px) rotateX(1.2deg) translateY(-3px) scale(1.002);
  box-shadow:
    0 74px 118px rgba(0, 0, 0, 0.92),
    0 28px 48px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 54px rgba(43, 226, 199, 0.2);
}

#videos.cinema-mode .video-player-wrapper:not(.sticky-mini-video)::before {
  box-shadow:
    inset 0 0 0 1px rgba(3, 7, 12, 0.96),
    inset 0 -36px 54px rgba(0, 0, 0, 0.44),
    inset 0 20px 34px rgba(255, 255, 255, 0.04);
}

/* Music cinema mode: hero runs in background, key blocks stay in focus */
#music.cinema-mode .album-center {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#music.cinema-mode .album-title,
#music.cinema-mode .album-artist-name {
  opacity: 0.44;
  transition: opacity 0.24s ease;
}

#music.cinema-mode .music-overlay-left .vinyl-wrapper-large {
  opacity: 1;
  filter: none;
  transform: scale(1);
  box-shadow: none !important;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
}

/* Deep cleanup: if album image is hidden/missing, wrapper must still show zero outline */
#music .music-overlay-left .vinyl-wrapper-large,
#music .music-overlay-left .vinyl-sleeve-large,
#music .music-overlay-left .vinyl-disc-large {
  border: none !important;
  outline: none !important;
}

#music .music-overlay-left .vinyl-wrapper-large::before,
#music .music-overlay-left .vinyl-wrapper-large::after,
#music .music-overlay-left .vinyl-sleeve-large::before,
#music .music-overlay-left .vinyl-sleeve-large::after {
  content: none !important;
}

#music.cinema-mode .album-artwork-static,
#music.cinema-mode .music-player-panel {
  opacity: 1;
  filter: saturate(1.12) brightness(1.08);
  transition: filter 0.26s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.26s ease;
}

#music.cinema-mode .album-artwork-static {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(43, 226, 199, 0.28);
}

#music.cinema-mode .music-player-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(43, 226, 199, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52), inset 0 0 0 1px rgba(43, 226, 199, 0.2);
}

#music.cinema-mode .player-controls-row,
#music.cinema-mode #music-player-audio {
  filter: saturate(1.08) brightness(1.08);
  transition: filter 0.26s ease;
}

#music.cinema-mode .track-list-container {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: background 0.24s ease, box-shadow 0.24s ease;
}

#music.cinema-mode .track-row {
  opacity: 0.34;
  filter: saturate(0.72) brightness(0.75);
  transition: opacity 0.24s ease, filter 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

#music.cinema-mode .track-row .track-play-btn {
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

#music.cinema-mode .track-row.is-current-track {
  opacity: 1;
  filter: saturate(1.08) brightness(1.08);
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(43, 226, 199, 0.18), rgba(43, 226, 199, 0.06) 58%, transparent);
  box-shadow: inset 0 0 0 1px rgba(43, 226, 199, 0.46), 0 8px 22px rgba(0, 0, 0, 0.34);
}

#music.cinema-mode .track-row.is-current-track .track-name,
#music.cinema-mode .track-row.is-current-track .track-index {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(43, 226, 199, 0.36);
}

#music.cinema-mode .track-row.is-current-track .track-play-btn {
  opacity: 1;
  transform: scale(1.02);
  border-color: rgba(43, 226, 199, 0.72);
}

@media (hover: none) {
  #music.cinema-mode .music-overlay-left .vinyl-wrapper-large {
    opacity: 1;
    filter: none;
    transform: none;
  }

  #music.cinema-mode .album-title,
  #music.cinema-mode .album-artist-name {
    opacity: 0.7;
  }

  #music.cinema-mode .track-row {
    opacity: 0.62;
    filter: none;
  }

  #music.cinema-mode .track-row.is-current-track {
    opacity: 1;
  }
}

/* The Player Wrapper Shrinks Naturally To Its Quad */
.video-player-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020304;
  /* Solid base for sharp edges */
  border-radius: 0px;
  /* Absolute "rectangle" as requested */
  overflow: hidden;
  box-shadow:
    0 54px 95px rgba(0, 0, 0, 0.86),
    0 16px 32px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(8, 12, 16, 0.94);
  border: 1px solid rgba(6, 8, 12, 0.96);
  outline: 1px solid rgba(0, 0, 0, 0.6);
  outline-offset: -1px;
  position: relative;
  transition: box-shadow 0.4s ease, border 0.4s ease, opacity 0.4s ease;
  z-index: 10;
}

.video-player-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 0 0 1px rgba(4, 6, 10, 0.9),
    inset 0 -28px 42px rgba(0, 0, 0, 0.36);
}

.video-player-wrapper iframe,
.video-player-wrapper #main-video-player {
  border: 0 !important;
  outline: 0 !important;
  background: #000;
}

/* Elevate the parent stacking context when sticky to prevent z-index click-trapping from descending sections */
.video-section-layout.is-sticky {
  z-index: 9999 !important;
  pointer-events: none !important;
}

.video-section-layout.is-sticky .video-player-wrapper {
  pointer-events: auto !important;
}

/* Neutralize CSS Containing Blocks in Safari so position:fixed can escape */
.sticky-active-parent {
  transform: none !important;
  -webkit-transform: none !important;
  perspective: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
  contain: none !important;
  overflow: visible !important;
  clip-path: none !important;
  z-index: 2147483647 !important;
}

/* Force parent containers to overflow:visible when sticky is active to prevent clipping (v2.9.3) */
body.sticky-active-global #videos,
body.sticky-active-global .video-section-layout,
body.sticky-active-global .video-main-column,
body.sticky-active-global .video-player-container {
  overflow: visible !important;
  z-index: 99999 !important;
  isolation: isolate;
}

/* Sticky Mini Video Player — docks over the center header logo (Picture-in-Picture) */
/* Permanent Body Resident Video Player (v2.9.4) */
.video-player-wrapper.body-resident {
  position: absolute;
  z-index: 1000;
  pointer-events: auto;
  border-radius: 0;
  overflow: hidden;
  /* Smooth docking/undocking */
  transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    height 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    top 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    left 0.4s cubic-bezier(0.19, 1, 0.22, 1),
    transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: width, height, top, left, transform;
}

/* Force parent containers visibility removed as no longer needed in v2.9.4 */

/* Sticky Mini Video Player — docks over the center header logo (Picture-in-Picture) */
.video-player-wrapper.sticky-mini-video {
  /* JS handles top/left/transform for consistent teleporting */
  z-index: 2147483640 !important;
  /* Just below controls (v2.9.9) */
  pointer-events: auto !important;
  /* Expansion clicks still work on the video area */
  width: 270px !important;
  max-width: 45vw !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.88);
  border-radius: 0;
  border: 1px solid rgba(6, 8, 12, 0.96);
  visibility: visible !important;
  display: block !important;
}

/* Isolated body-level controls (v2.9.9.1) */
.sticky-video-controls-container {
  position: fixed;
  z-index: 2147483647 !important;
  /* Absolute top */
  pointer-events: none !important;
  display: block;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
}

.sticky-video-controls-container #expand-sticky-video,
.sticky-video-controls-container #close-sticky-video {
  position: absolute;
  top: 2px;
  width: 32px;
  height: 32px;
  pointer-events: auto !important;
}

.sticky-video-controls-container #expand-sticky-video {
  left: -44px;
}

.sticky-video-controls-container #close-sticky-video {
  right: -44px;
}

.sticky-action-btn {
  pointer-events: auto !important;
  z-index: 2147483647 !important;
  cursor: pointer !important;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.sticky-action-btn:hover {
  transform: scale(1.2);
  color: var(--accent);
}

.video-click-overlay {
  z-index: 1 !important;
  /* Lowered (v2.9.8) */
}

.sticky-mini-video .video-click-overlay {
  pointer-events: none !important;
  opacity: 0 !important;
  /* Sticky mode: keep native player controls directly clickable. */
}

/* Chrome/Global Layering Fix: Re-enable header interaction while video is sticky */
body.sticky-active-global #header-stack {
  pointer-events: none !important;
  /* Allow clicks to pass through empty header space to the video below */
  z-index: 50 !important;
  /* Stay above scroll-container but physically over the video */
}

/* Safari Stability: Scroll-snap is now safe to keep in v2.9.7 thanks to Permanent Body Residency */
body.sticky-active-global #scroll-container {
  scroll-snap-type: y mandatory !important;
}

html.sticky-active-global {
  scroll-snap-type: y mandatory !important;
}

body.sticky-active-global .video-player-wrapper.sticky-mini-video {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--player-bg);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  /* Nuclear Stability: Extra isolation layer */
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.video-player-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0;
  visibility: hidden;
}

.video-click-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  pointer-events: auto;
  cursor: default;
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.85);
  /* Dark overlay */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
}

.video-click-overlay.is-paused {
  opacity: 1;
  cursor: pointer;
}

.video-click-overlay::after {
  content: "►";
  /* Custom sleek play icon */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: color 0.2s, transform 0.2s;
}

.video-click-overlay.is-paused:hover::after {
  color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-player-wrapper.sticky-mini-video .video-click-overlay {
  height: 100%;
  z-index: 100 !important;
}

/* Meta info strictly in the bottom-left quad */
.video-main-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#main-video-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

#main-video-meta {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

#main-video-desc {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
}

.video-catalog-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-category {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.catalog-heading {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.96rem;
  color: #fff;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scrollable-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.scrollable-row::-webkit-scrollbar {
  height: 6px;
}

.scrollable-row::-webkit-scrollbar-track {
  background: transparent;
}

.scrollable-row::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.scrollable-row .video-thumb {
  flex: 0 0 150px;
  /* Fixed width for horizontal scroll */
}

/* Video Thumbnails (Netflix Style) */
.video-thumb {
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  outline: none;
}

.video-thumb.upcoming {
  cursor: not-allowed;
}

.video-thumb:not(.upcoming):hover,
.video-thumb:not(.upcoming):focus-visible {
  transform: scale(1.05);
  z-index: 10;
}

.video-thumb.active .thumb-img-wrapper {
  border: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(43, 226, 199, 0.4);
}

.thumb-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.thumb-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.5s ease;
}

/* Grayscale for Upcoming */
.thumb-img-wrapper.grayscale img {
  filter: grayscale(100%) brightness(0.5);
}

/* Play Overlay on Hover */
.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-thumb:not(.upcoming):hover .play-overlay {
  opacity: 1;
}

.play-overlay svg {
  width: 40px;
  height: 40px;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.video-thumb:not(.upcoming):hover .play-overlay svg {
  transform: scale(1.1);
}

/* Upcoming Badge */
.upcoming-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #aaa;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumb-title {
  color: #fff;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.thumb-subtitle {
  display: none !important;
}

.video-thumb.upcoming .thumb-title {
  color: #777;
}

.video-thumb:not(.upcoming):hover .thumb-title {
  color: var(--accent);
}

/* Follow Section */
.social-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.social-tile {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.social-tile:hover {
  transform: scale(1.1);
  background: #fff;
}

.social-icon-large {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s;
}

.social-tile:hover .social-icon-large {
  transform: scale(1.1);
}

/* About Section */
.tweet-card {
  background: #000;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 1.5rem;
  color: #fff;
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tweet.sc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.sc-dp-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sc-dp-wrap .sc-dp-zoom {
  width: 100% !important;
  height: 100% !important;
  transform: scale(3.8) translateY(10%) !important;
  /* Maximized scale for face focus in small avatars */
  object-fit: cover !important;
  border-radius: 50% !important;
}

.tweet-user {
  display: flex;
  flex-direction: column;
}

.tweet-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.tweet-handle {
  color: #71767b;
  font-size: 0.95rem;
}

.tweet-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 1.05rem;
}

/* Contact Section */
.newsletter-card {
  background: transparent;
  color: var(--text);
  padding: 0;
  border-radius: 0;
  text-align: left;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contact Section Inputs & Newsletter */
.newsletter-card h3 {
  font-family: "Prompt", sans-serif;
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.newsletter-card p {
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input,
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px;
  font-size: 1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.newsletter-form input:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(43, 226, 199, 0.3);
}

.newsletter-form button,
.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
}

.newsletter-form button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(43, 226, 199, 0.4);
}

@media (min-width: 768px) {
  :root {
    --header-height: 80px;
  }

  .header-grid {
    min-height: 80px;
    padding: 0;
    gap: 0;
  }

  .nav-group,
  .nav-group-left,
  .nav-group-right {
    gap: 0;
    justify-content: space-between;
  }

  .nav-group-left .nav-item,
  .nav-group-right .nav-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .nav-item {
    flex-direction: row;
    gap: 0.55rem;
    justify-content: center;
    padding: 10px 8px;
    border-radius: 0;
  }

  .nav-item img {
    width: 33px;
    height: 33px;
  }

  .brand-logo {
    height: 36px;
    max-height: 36px;
  }

  .nav-item span {
    font-size: 1.8rem;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-height: 90px;
  }

  .header-grid {
    min-height: 90px;
    padding: 0;
    gap: 0;
  }

  .nav-group,
  .nav-group-left,
  .nav-group-right {
    gap: 0;
  }

  .nav-item {
    padding: 8px 10px;
    gap: 0.85rem;
  }

  .nav-item img {
    width: 36px;
    height: 36px;
  }

  .brand-logo {
    height: 44px;
    max-height: 44px;
  }

  .nav-item span {
    font-size: 1.95rem;
    line-height: 1;
    letter-spacing: 0.01em;
  }
}

@media (min-width: 1280px) {
  :root {
    --header-height: 100px;
  }

  .header-grid {
    min-height: 100px;
    padding: 0;
  }

  .nav-item {
    padding: 10px 12px;
    gap: 1rem;
  }

  .nav-item img {
    width: 39px;
    height: 39px;
  }

  .brand-logo {
    height: 50px;
    max-height: 50px;
  }

  .nav-item span {
    font-size: 2.1rem;
  }
}

@media (max-width: 900px) {
  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .embed-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 0;
  }

  .header-grid {
    min-height: 100px;
    padding: 0 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 4px;
  }

  .nav-group,
  .nav-group-left,
  .nav-group-right {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: visible;
    width: 100%;
    gap: 2px;
    padding-bottom: 0;
  }

  .nav-group::-webkit-scrollbar,
  .nav-group-left::-webkit-scrollbar,
  .nav-group-right::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: auto;
    padding: 4px 4px;
  }

  .nav-item img {
    width: 20px;
    height: 20px;
  }

  .nav-item span {
    font-size: 1rem;
    white-space: nowrap;
  }

  .brand {
    order: 0;
  }

  .brand-logo {
    height: 30px;
    max-height: 30px;
    transform: translateY(-2px);
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    margin-right: auto;
    padding-bottom: 0;
  }

  .album-artwork {
    max-width: 140px;
  }

  .track-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.3rem;
  }

  .track-play-btn {
    grid-column: auto;
    justify-self: end;
  }

  .content-section {
    padding: 64px 0;
  }

  .utility-grid {
    min-height: 44px;
    padding: 0 8px;
    gap: 10px;
  }

  .utility-link,
  .utility-center {
    font-size: 0.95rem;
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 90px;
  }

  .header-grid {
    min-height: 90px;
    padding: 0 5px;
    gap: 3px;
  }

  .nav-group,
  .nav-group-left,
  .nav-group-right {
    gap: 2px;
  }

  .nav-item {
    min-width: auto;
    padding: 3px 2px;
  }

  .nav-item img {
    width: 18px;
    height: 18px;
  }

  .nav-item span {
    font-size: 0.9rem;
  }

  .brand-logo {
    height: 26px;
    max-height: 26px;
    transform: translateY(-2px);
  }
}

@media (max-width: 360px) {
  :root {
    --header-height: 80px;
  }

  .header-grid {
    min-height: 80px;
    padding: 0 4px;
    gap: 2px;
  }

  .nav-item {
    min-width: auto;
    padding: 2px 1px;
  }

  .nav-item img {
    width: 16px;
    height: 16px;
  }

  .nav-item span {
    font-size: 0.85rem;
  }

  .brand-logo {
    height: 24px;
    max-height: 24px;
    transform: translateY(-1px);
  }
}

@media (max-width: 768px) {

  .split-shell,
  .music-shell {
    display: block;
    padding: 1rem;
  }

  .split-left,
  .split-right {
    margin-bottom: 2rem;
  }

  .content-section {
    position: relative;
  }

  .vertical-title-left,
  .music-section .vertical-heading {
    display: block !important;
    height: auto;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 3rem;
    letter-spacing: 0.1em;
    position: static;
    transform: none;
    opacity: 1;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .section-subtitle {
    text-align: center;
  }

  .content-section {
    height: 100vh;
  }

  /* Hide the large vinyl on mobile to save space */
  .music-overlay-left {
    display: none;
  }
}

/* Apply new body font to main content only, preserving header/footer */
main {
  font-family: "Josefin Sans", sans-serif;
  position: relative;
  z-index: 1;
}

/* --- Loading Spinner --- */
.loader-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  /* Above video (z-index 0-1), below content (z-index 50) */
  pointer-events: none;
  /* Let clicks pass through */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader-container.visible {
  opacity: 1;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent);
  /* Uses your teal color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Global Tooltip Styles --- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  /* Higher offset to avoid being hidden */
  background: white !important;
  color: black !important;
  padding: 5px 12px;
  border-radius: 4px;
  font-family: "Prompt", sans-serif;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  border-width: 5px;
  border-style: solid;
  border-color: white transparent transparent transparent;
  z-index: 10000;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Music section streaming icon tooltips */
.platform-links [data-tooltip]:hover::after {
  background: #14b8a6 !important;
  color: #ffffff !important;
}

.platform-links [data-tooltip]:hover::before {
  border-color: #14b8a6 transparent transparent transparent;
}

/* --- Sticky Player Styles --- */
.sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 999999;
  /* Absolute max for Mobile Safari overlay */
  transform: translate3d(0, 100%, 0);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
  pointer-events: none;
  /* Base: pass through */
}

.sticky-player.visible {
  transform: translate3d(0, 0, 0);
  /* Slide up */
}

.sticky-progress-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  /* Slightly taller for easier clicking */
  background: rgba(255, 255, 255, 0.1);
  z-index: 100;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  /* Clickable */
}

.sticky-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent);
  pointer-events: none;
  /* Let clicks pass to container */
}

.sticky-time-tooltip {
  position: absolute;
  bottom: 12px;
  /* Above the bar */
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  pointer-events: none;
  display: none;
  white-space: nowrap;
  transform: translateX(-50%);
  font-family: "Prompt", sans-serif;
}

.sticky-progress-container:hover .sticky-time-tooltip {
  display: block;
}

.sticky-info {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  /* Ensure the flex container passes clicks */
}

/* --- Sticky Action Buttons (For Video & Music) --- */
.sticky-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #000;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  pointer-events: auto;
  /* clickable */
}

.sticky-action-btn:hover {
  transform: scale(1.1);
  background-color: #fff;
  color: #000;
}

/* Video Sticky Buttons Stack */
.video-player-wrapper.sticky-mini-video #expand-sticky-video,
.video-player-wrapper.sticky-mini-video #close-sticky-video {
  display: flex !important;
  position: absolute;
  width: 28px;
  height: 28px;
  font-family: Arial, sans-serif;
  padding-bottom: 2px;
  z-index: 110 !important;
  /* Must be >100 to stay above video-click-overlay */
  pointer-events: auto !important;
}

.video-player-wrapper.sticky-mini-video #expand-sticky-video {
  top: 6px;
  right: 40px;
  /* Shift left to make room for close button */
  font-size: 14px;
  font-weight: 900;
}

.video-player-wrapper.sticky-mini-video #close-sticky-video {
  top: 6px;
  right: 6px;
}

/* Music Sticky Close Button */
#close-sticky-music {
  width: 28px;
  height: 28px;
  margin-left: 15px;
  /* Spacing from play button */
  font-family: Arial, sans-serif;
  padding-bottom: 2px;
}

.sticky-track-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  pointer-events: auto;
  /* Only the text block is clickable */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: left center;
}

.sticky-track-info:hover {
  transform: scale(1.08);
  /* Only the text block grows */
}

#sticky-track-name {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  /* Shadow for readability */
  transition: color 0.3s ease;
}

/* Hover swap logic for the entire container */
.sticky-track-info:hover #sticky-track-name {
  color: var(--accent);
}

.sticky-artist {
  font-family: "Prompt", sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  /* Shadow for readability */
  transition: color 0.3s ease;
}

.sticky-track-info:hover .sticky-artist {
  color: var(--text);
}

.sticky-controls {
  flex: 0 0 auto;
  margin-left: 15px;
  pointer-events: none;
  /* Keep container transparent to clicks in Safari */
  z-index: 101;
  display: flex;
  align-items: center;
}

.sticky-btn {
  background: var(--accent);
  color: #000;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  /* Stronger shadow for visibility */
  pointer-events: auto;
  /* Only the button is clickable */
}

.sticky-btn:hover {
  transform: scale(1.1);
  background: #fff;
}

.sticky-icon {
  width: 24px;
  height: 24px;
}

.connect-app-grid {
  display: flex;
  gap: 2rem;
  padding: 10rem 3% 10rem 40px;
  /* Further reduced padding to pull content left */
  width: 100%;
  max-width: 1800px;
  /* Increased max-width for larger tablet */
  margin: 0 auto;
  align-items: center;
  background: transparent;
  position: relative;
  z-index: 2;
}

.vertical-tablet-column {
  flex: 0 0 55%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.forms-column {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: flex-start;
  /* Align to top to control spacing */
  padding-top: 4rem;
  /* Push down to avoid header overlap */
}

/* Tablet Redesign */
.portrait-tablet {
  width: 650px;
  /* Further enlarged from 550px */
  height: 1050px;
  /* Further enlarged from 920px */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -60px;
  /* Moved up by 60px total */
  margin-left: -167px;
  /* Moved left by 167px total */
}

/* Connect cinematic build-in/build-out: tablet spins in, icons rise/fall into tablet */
#connect .vertical-tablet-column {
  perspective: 1900px;
  perspective-origin: 50% 44%;
}

#connect .portrait-tablet {
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transform:
    perspective(1900px) rotateX(12deg) rotateY(-95deg) rotateZ(-16deg) scale(0.82);
  opacity: 0;
  filter: blur(2px) drop-shadow(0 26px 34px rgba(0, 0, 0, 0.5));
  transition:
    transform 920ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 640ms ease,
    filter 720ms ease;
}

#connect.connect-build-active .portrait-tablet {
  animation: connect-tablet-spin-in 1250ms cubic-bezier(0.22, 0.98, 0.27, 1) both;
  opacity: 1;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.42));
}

#connect .social-grid-app-style .app-icon-tile {
  --connect-icon-entry: 120px;
  --connect-icon-delay: 0ms;
  opacity: 0;
  transform: translate3d(0, var(--connect-icon-entry), 0) rotateX(56deg) scale(0.66);
  filter: blur(1.6px) saturate(0.8);
  will-change: transform, opacity, filter;
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 560ms ease,
    filter 620ms ease;
  transition-delay: var(--connect-icon-delay);
}

#connect .social-grid-app-style .app-icon-tile.center-slot {
  transform: translate3d(0, calc(var(--connect-icon-entry) * 0.55), 0) rotateX(56deg) scale(0.7);
}

#connect.connect-build-active .social-grid-app-style .app-icon-tile {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  filter: blur(0) saturate(1);
}

#connect.connect-build-active .social-grid-app-style .app-icon-tile.center-slot {
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
}

#connect.connect-build-active .social-grid-app-style .app-icon-tile:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Connect form cinema mode: active form in focus, everything else softly dimmed */
#connect.connect-form-cinema-mode .vertical-tablet-column,
#connect.connect-form-cinema-mode .mockup-quadrant {
  transition: opacity 240ms ease, filter 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

#connect.connect-form-cinema-mode .vertical-tablet-column {
  opacity: 0.26;
  filter: grayscale(0.15) brightness(0.7);
}

#connect.connect-form-cinema-mode .mockup-quadrant {
  opacity: 0.38;
  filter: saturate(0.8) brightness(0.8);
  transform: scale(0.99);
}

#connect.connect-form-cinema-mode.connect-focus-newsletter .quad-newsletter,
#connect.connect-form-cinema-mode.connect-focus-contact .quad-contact {
  opacity: 1;
  filter: none;
  transform: scale(1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

/* Fallback: if build class doesn't get applied (local file / observer miss),
   keep tablet and icons sharp instead of blurred. */
#connect:not(.connect-build-active) .portrait-tablet {
  transform: perspective(1900px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
  opacity: 1;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.42));
}

#connect:not(.connect-build-active) .social-grid-app-style .app-icon-tile,
#connect:not(.connect-build-active) .social-grid-app-style .app-icon-tile.center-slot {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  filter: blur(0) saturate(1);
}

@keyframes connect-tablet-spin-in {
  0% {
    transform:
      perspective(1900px) rotateX(14deg) rotateY(-120deg) rotateZ(-18deg) scale(0.78);
  }

  52% {
    transform:
      perspective(1900px) rotateX(-6deg) rotateY(14deg) rotateZ(2deg) scale(1.03);
  }

  100% {
    transform:
      perspective(1900px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
  }
}

/* Using the horizontal PNG rotated to vertical */
.portrait-tablet::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1050px;
  height: 650px;
  background-image: url('../Icons/Mockups/tablet1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-50%, -50%) rotate(90deg);
  z-index: 0;
  pointer-events: none;
}

.tablet-screen.vertical-screen {
  position: relative;
  z-index: 2;
  width: 88%;
  height: 90%;
  background: transparent;
  /* Removed grey overlay */
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 2.5rem 0;
}

.tablet-section {
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tablet-section-label {
  color: var(--accent);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.tablet-section-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  margin: 1rem auto;
}

/* Forms Redesign with PNG Mockups */
.mockup-quadrant {
  width: 100%;
  aspect-ratio: 1536 / 1024;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10% 12%;
  position: relative;
}

.quad-newsletter {
  background-image: url('../media/PNG/newsletter.png') !important;
  padding: 0 !important;
  overflow: hidden;
  margin-top: 0 !important;
  transform: none !important;
  position: relative;
  top: -120px;
}

.quad-newsletter .newsletter-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
}

.quad-newsletter .newsletter-paper-form {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: auto;
  background: transparent !important;
  z-index: 3;
}

.quad-newsletter .newsletter-paper-form .newsletter-email-field,
.quad-newsletter .newsletter-paper-form .newsletter-action {
  position: absolute;
}

.quad-newsletter .newsletter-paper-form .newsletter-email-field {
  top: 42.5%;
  left: 21.5%;
  width: 57%;
  height: 10.5%;
}

.quad-newsletter .newsletter-paper-form .newsletter-action {
  top: 61.9%;
  left: 33.2%;
  width: 33.8%;
  height: 11.5%;
}

.quad-newsletter .newsletter-paper-form input,
.quad-newsletter .newsletter-paper-form .btn-primary {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: #333 !important;
  font-family: "Times New Roman", Times, serif !important;
  padding: 10px !important;
  box-shadow: none !important;
}

.quad-newsletter .newsletter-paper-form input {
  font-size: clamp(13px, 1.5vw, 24px) !important;
  font-weight: 500 !important;
  padding-left: 15px !important;
}

.quad-newsletter .newsletter-paper-form input::placeholder {
  color: rgba(0, 0, 0, 0.35) !important;
}

.quad-newsletter .newsletter-paper-form input:focus {
  outline: 2px dashed rgba(0, 0, 0, 0.4) !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.quad-newsletter .newsletter-paper-form .btn-primary {
  font-size: clamp(14px, 1.8vw, 30px) !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-transform: none !important;
  cursor: pointer;
  transform: none !important;
}

.quad-newsletter .newsletter-paper-form .btn-primary:hover,
.quad-newsletter .newsletter-paper-form .btn-primary:focus-visible {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #222 !important;
  transform: none !important;
  box-shadow: none !important;
}

.quad-contact {
  background-image: url('../media/PNG/contactform.png') !important;
  padding: 0 !important;
  overflow: hidden;
  margin-top: -200px !important;
}

/* Contact form integrated on top of PNG guide (AI-fit v1: first mapping) */
.quad-contact .contact-paper-form {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  pointer-events: auto;
  background: transparent !important;
  z-index: 3;
}

.quad-contact .contact-paper-form .paper-field,
.quad-contact .contact-paper-form .paper-action {
  position: absolute;
}

/* Coordinates mapped to the PNG form boxes */
.quad-contact .contact-paper-form .paper-name {
  top: 29.6%;
  left: 12.74%;
  width: 22.61%;
  height: 6.45%;
}

.quad-contact .contact-paper-form .paper-email {
  top: 29.6%;
  left: 36.96%;
  width: 25.15%;
  height: 6.45%;
}

.quad-contact .contact-paper-form .paper-subject {
  top: 29.6%;
  left: 65.62%;
  width: 23.88%;
  height: 6.45%;
}

.quad-contact .contact-paper-form .paper-message {
  top: 45.57%;
  left: 11.82%;
  width: 77.34%;
  height: 24.47%;
}

.quad-contact .contact-paper-form .paper-action {
  top: 69.89%;
  left: 35.35%;
  width: 29.15%;
  height: 10.18%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quad-contact .contact-paper-form input,
.quad-contact .contact-paper-form select,
.quad-contact .contact-paper-form textarea {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 5px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #333 !important;
  font-family: "Courier New", Courier, monospace !important;
  font-weight: 500 !important;
  font-size: clamp(0.95rem, 1.2vw, 1.2rem) !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.quad-contact .contact-paper-form input::placeholder,
.quad-contact .contact-paper-form textarea::placeholder {
  color: rgba(50, 50, 50, 0.42) !important;
}

.quad-contact .contact-paper-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer;
  padding-right: 18px !important;
  background-image: none !important;
}

.quad-contact .contact-paper-form select option {
  color: #111 !important;
  background: #f3eee2 !important;
}

.quad-contact .contact-paper-form textarea {
  resize: none;
  padding: 5px !important;
  line-height: 1.25 !important;
}

.quad-contact .contact-paper-form input:focus,
.quad-contact .contact-paper-form select:focus,
.quad-contact .contact-paper-form textarea:focus {
  outline: 1px dashed rgba(0, 0, 0, 0.3) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.quad-contact .contact-paper-form .paper-action .btn-primary {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #333 !important;
  font-family: "Courier New", Courier, monospace !important;
  font-size: clamp(1.05rem, 1.55vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  text-align: center;
}

.quad-contact .contact-paper-form .paper-action .btn-primary:hover,
.quad-contact .contact-paper-form .paper-action .btn-primary:focus-visible {
  background: rgba(0, 0, 0, 0.05) !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {

  .quad-contact .contact-paper-form input,
  .quad-contact .contact-paper-form select,
  .quad-contact .contact-paper-form textarea,
  .quad-contact .contact-paper-form .paper-action .btn-primary {
    font-size: clamp(0.68rem, 1.9vw, 0.88rem) !important;
  }
}

.mockup-quadrant h3 {
  color: #000;
  /* Headers on mockups should be dark to contrast if they are labels */
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  font-weight: 800;
}

/* Force black text for form elements on mockups */
.mockup-quadrant label,
.mockup-quadrant input,
.mockup-quadrant select,
.mockup-quadrant select option,
.mockup-quadrant textarea {
  color: #000 !important;
}

.mockup-quadrant select option {
  background: #fff !important;
}

.mockup-quadrant input::placeholder,
.mockup-quadrant textarea::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

.mockup-quadrant input,
.mockup-quadrant select,
.mockup-quadrant textarea {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

.quad-newsletter .newsletter-form input {
  margin-top: 0 !important;
  width: 100% !important;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block !important;
}

/* Small button for newsletter */
.quad-newsletter .btn-primary {
  width: 100% !important;
  padding: 10px !important;
  font-size: clamp(14px, 1.8vw, 30px) !important;
  line-height: 1.1 !important;
  margin-top: 0 !important;
  transition: all 0.3s ease;
  height: 100% !important;
}

.quad-newsletter .btn-primary:hover {
  background: #000 !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.tablet-section-label {
  color: var(--accent);
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  opacity: 0.7;
}

.tablet-section-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  margin: 1rem auto;
}

/* Redundant label/p styles removed as per request */

#connect .phone-screen-wrap {
  display: contents;
  /* Let children fill mockup area */
}

#connect .phone-screen-wrap::before {
  display: none !important;
}

.phone-screen-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.social-grid-app-style {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.8rem;
  justify-items: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

.app-icon-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: visible;
  z-index: 5;
}

.app-icon-tile svg,
.app-icon-tile img,
.app-icon-tile .social-icon-large {
  width: 100% !important;
  height: 100% !important;
  padding: 16px !important;
  /* Larger proportional padding */
  box-sizing: border-box;
  object-fit: contain !important;
  display: block;
  position: relative;
  z-index: 1;
}

.app-icon-text-block {
  font-size: 10px;
  /* Increased from 8px */
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: 100%;
  padding: 0 6px;
  box-sizing: border-box;
}

.app-icon-text-block .text-highlight {
  font-size: 13px;
  /* Increased from 11px */
  display: block;
  margin-bottom: 3px;
  letter-spacing: 1px;
}

.app-icon-tile.center-slot {
  cursor: default;
  pointer-events: none;
}

.app-icon-tile::after {
  /* Disabled: conflicts with [data-tooltip]::after tooltip bubble rendering */
  display: none !important;
}

.app-icon-tile:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(43, 226, 199, 0.4);
  z-index: 21;
  /* Bring to front so tooltip is never hidden by neighbors */
}

.app-icon-tile:hover svg,
.app-icon-tile:hover img {
  color: var(--accent);
}

/* Connect section icon tooltips */
.app-icon-tile[data-tooltip]:hover::after {
  background: #14b8a6 !important;
  color: #ffffff !important;
  z-index: 2147483646 !important;
}

.app-icon-tile[data-tooltip]:hover::before {
  border-color: #14b8a6 transparent transparent transparent;
  z-index: 2147483646 !important;
}

/* Ensure form content fits */
.app-widget-form {
  width: 100%;
  max-width: 100%;
}

.form-group-row-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.form-action-center {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.app-quadrant h3 {
  margin-top: 0;
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  text-align: center;
  /* Symmetrical */
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  /* Vertical stack as per sketch */
  gap: 1.5rem;
  width: 100%;
}

.newsletter-form .btn-primary {
  width: 100%;
  padding: 14px !important;
}

.app-widget-form input,
.app-widget-form select,
.app-widget-form textarea {
  margin-bottom: 1rem;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 12px;
  font-size: 0.95rem;
  width: 100%;
}

.app-widget-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='rgba(255, 255, 255, 0.5)' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3Csvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 12px !important;
  padding-right: 40px !important;
  cursor: pointer;
}

.app-widget-form select option {
  background: #1a1a1a;
  color: #fff;
  padding: 10px;
}

.app-widget-form textarea {
  resize: vertical;
  min-height: 150px;
}

.app-widget-form input:focus,
.app-widget-form select:focus,
.app-widget-form textarea:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 15px rgba(43, 226, 199, 0.2);
  outline: none;
}

.app-widget-form label {
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--accent);
  display: block;
}

@media (max-width: 1100px) {
  .connect-app-grid {
    grid-template-columns: 1fr;
    padding: 8rem 5% 8rem 5%;
    gap: 5rem;
  }

  .portrait-tablet {
    width: 100%;
    max-width: 480px;
    height: 800px;
  }

  .forms-column {
    width: 100%;
  }

  #connect .portrait-tablet,
  #connect.connect-build-active .portrait-tablet {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  #connect .social-grid-app-style .app-icon-tile,
  #connect.connect-build-active .social-grid-app-style .app-icon-tile {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition-delay: 0ms !important;
  }
}

@media (max-width: 600px) {
  .portrait-tablet {
    height: 700px;
  }

  .social-grid-app-style {
    gap: 0.8rem;
  }

  .app-icon-tile {
    width: 60px;
    height: 60px;
  }
}

/* Specific icon scaling for visual parity (Refined) */
.icon-jiosaavn {
  transform: scale(1.3) !important;
  /* Slightly larger parity */
}

.app-icon-tile:hover .icon-jiosaavn {
  transform: translateY(-5px) scale(1.35) !important;
}

.icon-amazon {
  transform: scale(0.9) !important;
  /* Balanced parity */
}

.app-icon-tile:hover .icon-amazon {
  transform: translateY(-5px) scale(0.95) !important;
}

.app-icon-tile span {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: color 0.3s ease;
}

.app-icon-tile:hover span {
  color: var(--text);
}

/* Contact & Tour Tabs */
.contact-header-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0px;
}

.tab-btn {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 0.5rem;
  margin: 0;
  position: relative;
  transition: color 0.3s;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
  color: var(--accent);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.hidden-form {
  display: none !important;
}

.app-widget-card,
.app-widget-form {
  margin-top: 0;
  height: 100%;
}

.form-group-row {
  display: flex;
  gap: 1rem;
}

.form-group-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Legal Modals */
.legal-modal {
  border: none;
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  color: var(--text);
  margin: auto;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-secondary);
}

/* Base styling for any legal modal */
.legal-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Fullscreen special class */
.legal-modal.fullscreen-modal {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  top: 0;
  transform: none;
  border-radius: 0;
  display: flex !important;
  /* Overrides native block */
  flex-direction: column;
  padding: 0;
}

/* Hidden state for native dialog when flex is applied */
.legal-modal:not([open]) {
  display: none !important;
}

.legal-modal-content {
  width: 100%;
  max-width: 800px;
  /* Readability constraint */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.legal-mod.about-thread-wrap {
  padding-left: 100px;
}

.legal-modal-header {
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

.legal-title-block {
  display: flex;
  flex-direction: column;
}

.legal-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.legal-title-block h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.1;
}

.legal-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

.close-legal-modal {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 0;
  line-height: 1;
}

.close-legal-modal:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.legal-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
  /* Custom scrollbar for legal body */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* Formatting the text itself */
.text-formatted p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.text-formatted h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  color: #fff;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
}

.legal-list li {
  margin-bottom: 1rem;
  padding-left: 1.8rem;
  position: relative;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.legal-list li::before {
  content: '→';
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* Mobile Adjustment */
@media (max-width: 1024px) {
  .connect-app-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .social-grid-app-style {
    grid-template-columns: repeat(4, 1fr);
  }

  .app-icon-tile svg,
  .app-icon-tile img {
    width: 60px;
    height: 60px;
  }

  .form-group-row {
    flex-direction: column;
    gap: 0;
  }

  .sticky-player {
    bottom: 45px;
    height: 60px;
  }
}

/* =========================================
   Upcoming Tours Section (Desktop/Mobile)
============================================ */
.tours-section {
  padding: 4rem 0 10rem;
  /* Increased bottom padding for footer space */
  position: relative;
  z-index: 2;
  background: transparent;
}

.tours-container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 100px;
  /* Space for the vertical title */
}

.tour-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tour-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-3px);
  background: rgba(15, 15, 15, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

.tour-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 1.5rem;
  margin-right: 1.5rem;
}

.tour-month {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.tour-day {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.tour-details {
  flex-grow: 1;
}

.tour-details h3 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  margin: 0 0 0.3rem 0;
  font-weight: 500;
  color: var(--text);
}

.tour-details p {
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.tour-action {
  white-space: nowrap;
  position: relative;
  /* Base for tooltip */
}

/* --- Tooltip Popup --- */
.tooltip-wrap {
  display: inline-block;
}

.tooltip-popup {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 64, 129, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 100;
}

/* Little triangle pointing down */
.tooltip-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--accent) transparent transparent transparent;
}

.tooltip-wrap:hover .tooltip-popup {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments for Tours */
@media (max-width: 600px) {
  .tour-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }

  .tour-date {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 1rem;
  }

  .tour-action {
    width: 100%;
  }

  .tour-action .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* Desktop: slightly larger sticky header player */
@media (min-width: 1025px) {
  .video-player-wrapper.sticky-mini-video {
    width: 340px !important;
  }
}


/* ====== ABOUT SECTION REDESIGN ====== */
#about {
  position: relative;
  min-height: 100vh;
  min-height: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 100px 4% 120px 4%;
  /* More top/bottom padding to avoid edges */
  background: transparent !important;
}

/* Scattered Positions - Covering 100% screen width & utilizing center */
.qa-thread.pos-1 {
  top: 5%;
  left: calc(1% + 80px);
  transform: rotate(-1.5deg);
}

.qa-thread.pos-2 {
  top: 36%;
  right: calc(4% + 20px);
  left: auto;
  transform: rotate(-1.5deg);
}

/* Center Top */
.qa-thread.pos-3 {
  top: 4%;
  right: calc(1% + 30px);
  transform: rotate(1.8deg);
}

.qa-thread.pos-4 {
  top: calc(42% + 240px);
  left: calc(15% + 230px);
  transform: rotate(1.2deg);
}

.qa-thread.pos-5 {
  top: 72%;
  right: calc(4% + 30px);
  left: auto;
  transform: rotate(-1deg);
}

/* Center Mid */
.qa-thread.pos-6 {
  top: calc(2% + 150px);
  left: calc(35% + 80px);
  right: auto;
  transform: rotate(1deg);
}

.qa-thread.pos-7 {
  top: calc(70% - 110px);
  left: calc(2% + 90px);
  transform: rotate(2deg);
}

.qa-thread.pos-8 {
  top: calc(75% - 120px);
  left: calc(40% + 230px);
  transform: rotate(-1.5deg);
}

.about-thread-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.qa-thread {
  position: absolute;
  width: 340px;
  /* Increased size for better readability */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  /* Hardware promotion to prevent jitter in fixed/sticky siblings (Safari/Chrome) */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  contain: paint;
  /* Safari specific: Isolate card rendering from fixed layers */
}

#about:not(.physics-active) .qa-thread:hover {
  z-index: 100;
  transform: scale(1.05) !important;
}

/* About physics mode: JS controls positions via transform matrix */
#about.physics-active .about-thread-wrap {
  position: relative;
  overflow: visible;
}

#about.physics-active .qa-thread {
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  transition: none !important;
}

#about.physics-active .scatter-card {
  cursor: pointer;
}

/* About cinema mode (focused card like videos cinema treatment) */
#about.about-cinema-mode::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0) 45%),
    linear-gradient(160deg, rgba(0, 0, 0, 0.88), rgba(4, 8, 14, 0.9) 48%, rgba(0, 0, 0, 0.86));
}

#about.about-cinema-mode .qa-thread {
  z-index: 9;
  opacity: 0.26;
  filter: grayscale(0.45) blur(0.8px) brightness(0.72);
  transition: opacity 0.32s ease, filter 0.32s ease;
}

#about.about-cinema-mode .qa-thread.is-focused {
  z-index: 20;
  opacity: 1;
  filter: none;
}

#about.about-cinema-mode .qa-thread.is-focused .scatter-card {
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.62),
    0 10px 26px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(43, 226, 199, 0.5) !important;
  transform: scale(1.03) translateZ(0);
}

/* Disable text selection on About cards during hover/click/push interactions */
#about .qa-thread,
#about .qa-thread * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.scatter-card {
  position: relative;
  width: 100% !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #1a1a1a !important;
  border-radius: 16px;
  padding: 18px;
  /* Roomy larger look */
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Authentic Social UI Styling */
.sc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}

.sc-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.sc-avatar-text {
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.sc-user {
  display: flex;
  flex-direction: column;
}

.sc-name {
  font-family: var(--font-primary);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1a1a1a !important;
}

.sc-meta {
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
  line-height: 1.2;
}

.sc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #3897f0;
  color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 0.55rem;
  font-weight: 900;
}

.blue-badge {
  background: #1da1f2;
}

.grey-badge {
  background: #606060;
}

.sc-platform-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.sc-platform-icon {
  width: 20px;
  height: 20px;
  color: #555;
  transition: color 0.3s ease;
}

.card-ig .sc-platform-icon {
  color: #e1306c;
}

.card-yt .sc-platform-icon {
  color: #ff0000;
}

.card-x .sc-platform-icon {
  color: #1a1a1a;
}

.card-fb .sc-platform-icon {
  color: #1877f2;
}

.card-snap .sc-platform-icon {
  color: #fffc00;
}

.card-ln .sc-platform-icon {
  color: #0077b5;
}

.card-wa .sc-platform-icon {
  color: #25d366;
}

.card-spot .sc-platform-icon {
  color: #1db954;
}

.card-sc .sc-platform-icon {
  color: #ff3300;
}

.card-threads .sc-platform-icon {
  color: #fff;
}

.sc-content p {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  /* readable but compact */
  line-height: 1.4;
  color: #1a1a1a !important;
  /* Fix: Black text for white boxes */
  margin: 0;
}

.sc-content p strong {
  color: var(--accent);
  font-weight: 700;
}

/* Mobile Stacking */
@media (max-width: 991px) {
  #about {
    min-height: auto;
    padding: 80px 20px;
  }

  .about-thread-wrap {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  .qa-thread {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }
}


/* ====== UNIFIED FORM & WIDGET STYLING ====== */
.newsletter-card,
.contact-form,
.app-widget-card,
.phone-screen-wrap {
  background: transparent !important;
  color: var(--text) !important;
  border: none !important;
  box-shadow: none !important;
}

.newsletter-card,
.contact-form,
.app-widget-card,
.app-quadrant {
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.newsletter-card h3,
.contact-form h3 {
  color: var(--accent) !important;
  border-bottom: none !important;
  margin-bottom: 0.5rem !important;
  text-align: left !important;
  width: 100% !important;
  align-self: flex-start !important;
}

.newsletter-card p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 10.5pt;
  /* Using pt for consistency with standard text */
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: left !important;
  width: 100% !important;
}

/* Ensure no outlines or notches */
.phone-screen-wrap::before,
.app-quadrant::before {
  display: none !important;
}

/* ====== PREMIUM POLISH v3.0.0 ====== */
#about .vertical-title-left {
  z-index: 40;
}

#about .about-thread-wrap {
  z-index: 12;
}

#about .qa-thread {
  width: clamp(300px, 24vw, 380px);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease;
}

#about .scatter-card {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  background: #fff !important;
}

#about:not(.physics-active) .qa-thread:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.02) !important;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

/* Entrance motion with subtle depth for premium feel */
.reveal-3d {
  opacity: 0;
  transform: var(--reveal-transform, translate3d(0, 48px, 0) rotateX(8deg) scale(0.975));
  transform-origin: center center;
  filter: blur(2px);
  transition:
    opacity 700ms ease,
    transform 860ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity, filter;
}

.reveal-3d.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  filter: blur(0);
}

.reveal-from-left {
  --reveal-transform: translate3d(-72px, 18px, 0) rotateY(10deg) scale(0.96);
}

.reveal-from-right {
  --reveal-transform: translate3d(72px, 18px, 0) rotateY(-10deg) scale(0.96);
}

.reveal-from-top {
  --reveal-transform: translate3d(0, -72px, 0) rotateX(-10deg) scale(0.965);
}

.reveal-from-bottom {
  --reveal-transform: translate3d(0, 72px, 0) rotateX(10deg) scale(0.965);
}

.reveal-zoom {
  --reveal-transform: translate3d(0, 22px, 0) scale(0.88);
}

.reveal-tilt-left {
  --reveal-transform: translate3d(-44px, 32px, 0) rotate(-5deg) scale(0.965);
}

.reveal-tilt-right {
  --reveal-transform: translate3d(44px, 32px, 0) rotate(5deg) scale(0.965);
}

/* =========================================
   Mobile Responsive Hardening (Desktop Safe)
============================================ */
@media (max-width: 991px) {

  html,
  body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  html {
    scroll-snap-type: none;
    scroll-padding-top: 0;
    overscroll-behavior-y: auto;
  }

  :root {
    --header-height: 88px;
  }

  body.mobile-section-ux #header-stack {
    transform: translateY(0);
    transition: transform 260ms ease, opacity 220ms ease;
    will-change: transform;
  }

  body.mobile-section-ux.mobile-header-collapsed #header-stack {
    transform: translateY(calc(-1 * (var(--header-height) + 10px)));
  }

  #scroll-container {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    scroll-snap-type: none;
    scroll-padding-top: 0;
    overscroll-behavior-y: auto;
  }

  .hero,
  .content-section {
    min-height: 100dvh;
    height: auto !important;
    overflow: visible;
  }

  .content-section {
    padding-top: calc(var(--header-height) + 8px);
    padding-bottom: 40px;
  }

  #videos {
    padding-top: var(--header-height) !important;
  }

  .vertical-title-left,
  .music-section .vertical-heading {
    display: none !important;
  }

  .hero-content {
    width: min(92vw, 520px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 90px 14px 56px !important;
    justify-content: flex-end;
  }

  .hero-content h1 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .hero-content p {
    font-size: 1rem;
    max-width: 100%;
  }

  .music-section .music-shell {
    display: block !important;
    height: auto !important;
    padding: 0 12px !important;
  }

  .music-overlay-left {
    display: none !important;
  }

  .music-section .section-body {
    justify-content: center !important;
    padding: 0 !important;
  }

  .music-section .album-center {
    max-width: 640px;
    margin: 0 auto !important;
  }

  .track-list-container {
    max-height: none !important;
    padding-right: 0;
  }

  .track-info {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.35rem;
  }

  .track-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 8px 8px;
  }

  .track-name {
    white-space: normal;
    line-height: 1.2;
  }

  .platform-links {
    gap: 6px;
    flex-wrap: wrap;
  }

  #videos .video-section-layout {
    flex-direction: column !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 12px 18px !important;
  }

  #videos .video-main-column {
    width: 100% !important;
    flex: 1 1 auto !important;
    gap: 14px;
  }

  #videos .video-player-container {
    width: 100%;
    padding: 0 0 12px !important;
    justify-content: center;
  }

  #videos .video-player-wrapper:not(.sticky-mini-video) {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 760px;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
  }

  #videos .video-player-wrapper iframe,
  #videos .video-player-wrapper #main-video-player {
    width: 100% !important;
    height: 100% !important;
  }

  #videos .video-details-box {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
  }

  #videos .video-details-box h2 {
    font-size: clamp(1.1rem, 7vw, 1.45rem) !important;
    line-height: 1.14;
    margin-bottom: 4px !important;
  }

  #videos .video-details-box .video-meta {
    font-size: 0.78rem !important;
    margin-bottom: 4px !important;
  }

  #videos .video-description-row {
    gap: 3px !important;
  }

  #videos #current-video-desc,
  #videos .video-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: normal !important;
    max-height: none !important;
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
  }

  #videos .video-desc-more-btn {
    display: inline-flex;
  }

  #videos .video-sidebar-scroller {
    width: 100% !important;
    max-height: none !important;
    border-left: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px !important;
  }

  #connect .connect-app-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: calc(var(--header-height) + 18px) 14px 24px !important;
  }

  #connect .vertical-tablet-column,
  #connect .forms-column {
    width: 100% !important;
    max-width: 700px;
    margin: 0 auto;
  }

  #connect .portrait-tablet {
    width: 100% !important;
    max-width: 420px;
    height: auto !important;
    min-height: 560px;
    margin: 0 auto;
  }

  #connect .portrait-tablet::before {
    width: 520px !important;
    height: 320px !important;
  }

  #connect .forms-column {
    padding-top: 0 !important;
  }

  #connect .social-grid-app-style {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
  }

  #connect .app-icon-tile {
    width: 64px;
    height: 64px;
    margin: 0 auto;
  }

  #about {
    min-height: auto !important;
    padding: calc(var(--header-height) + 20px) 14px 36px !important;
  }

  #about .about-thread-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    height: auto !important;
  }

  #about .qa-thread {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 auto !important;
  }

  #tours.tours-section {
    padding: calc(var(--header-height) + 16px) 14px 36px !important;
  }

  .tours-container {
    padding-left: 0 !important;
    max-width: 100% !important;
  }

  .tour-card {
    padding: 1rem 1rem !important;
    gap: 1rem;
  }

  .tour-details h3 {
    font-size: 1.15rem;
  }

  .tour-details p {
    font-size: 0.95rem;
  }

  .site-footer {
    position: relative !important;
    bottom: auto !important;
  }

  .utility-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    row-gap: 6px;
    padding: 10px 12px !important;
    min-height: auto !important;
  }

  .utility-right {
    justify-self: center !important;
  }

  .utility-link,
  .utility-center {
    font-size: 0.95rem !important;
  }

  .sticky-player {
    width: calc(100vw - 16px) !important;
    left: 8px !important;
    right: 8px !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
  }

  .video-player-wrapper.sticky-mini-video {
    width: min(92vw, 320px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 78px) !important;
  }

  .sticky-video-controls-container {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
  }
}

@media (max-width: 767px) {
  .header-grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    min-height: 78px !important;
    padding: 0 6px !important;
    gap: 3px !important;
  }

  .brand {
    display: inline-grid !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    justify-self: center;
    z-index: 2;
  }

  .brand-logo {
    height: 22px !important;
    max-height: 22px !important;
    transform: none !important;
  }

  .nav-group-left,
  .nav-group-right {
    width: 100% !important;
    justify-content: space-evenly !important;
    align-items: stretch !important;
    gap: 1px !important;
  }

  .nav-group-left .nav-item,
  .nav-group-right .nav-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  .nav-item {
    padding: 3px 1px !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
  }

  .nav-item img {
    width: 16px !important;
    height: 16px !important;
  }

  .nav-item span {
    display: block !important;
    font-size: 0.58rem !important;
    line-height: 1 !important;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-indicator {
    display: none !important;
  }

  .hero-content {
    padding: 96px 10px 52px !important;
    gap: 10px !important;
  }

  .album-title-hero {
    font-size: clamp(1.1rem, 6vw, 1.5rem);
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  .scroll-down {
    bottom: 1rem;
  }

  .track-play-btn {
    padding: 0.26rem 0.6rem;
    font-size: 0.72rem;
  }

  .platform-links a {
    width: 24px;
    height: 24px;
  }

  .platform-icon {
    width: 20px;
    height: 20px;
  }

  .track-row {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    align-items: center;
  }

  .track-row .track-play-btn {
    grid-column: 3;
    justify-self: end;
    margin-top: 0;
  }

  .video-thumbs-grid.scrollable-row .video-thumb {
    flex: 0 0 170px;
  }

  .legal-modal-header {
    padding: 1.2rem 1rem 1rem !important;
  }

  .legal-title-block h2 {
    font-size: 1.4rem !important;
  }

  .legal-modal-body {
    padding: 1rem !important;
  }

  .site-footer {
    position: relative !important;
    bottom: auto !important;
  }

  .utility-grid {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 6px 10px !important;
    row-gap: 2px !important;
    text-align: center !important;
  }

  .utility-link,
  .utility-center {
    font-size: 0.82rem !important;
    line-height: 1.2;
  }

  .utility-link {
    justify-content: center !important;
    padding: 1px 0 !important;
  }

  .utility-right {
    justify-self: center !important;
  }

  .utility-center p {
    margin: 2px 0 !important;
  }
}

@media (max-width: 420px) {
  .header-grid {
    min-height: 72px !important;
    padding: 0 4px !important;
  }

  .brand-logo {
    height: 20px !important;
    max-height: 20px !important;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 10vw, 2.2rem);
  }

  .nav-item span {
    display: block !important;
    font-size: 0.52rem !important;
  }

  .nav-item {
    padding: 2px 1px !important;
  }

  .nav-item img {
    width: 15px !important;
    height: 15px !important;
  }

  #connect .portrait-tablet {
    min-height: 500px;
  }

  #connect .portrait-tablet::before {
    width: 460px !important;
    height: 282px !important;
  }

  .sticky-player {
    height: 62px !important;
  }

  .utility-link,
  .utility-center {
    font-size: 0.76rem !important;
  }

  .utility-center p {
    margin: 1px 0 !important;
  }
}

/* =========================================
   Mobile Section UX Pack (One Scroll, One Section)
============================================ */
body.mobile-section-ux #scroll-container {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
  scroll-padding-top: 0 !important;
  overscroll-behavior-y: auto;
}

body.mobile-section-ux .hero,
body.mobile-section-ux .content-section {
  height: auto !important;
  min-height: 100dvh !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

body.mobile-section-ux .hero-content {
  padding-top: calc(var(--header-height) + 8px) !important;
  padding-bottom: 24px !important;
}

body.mobile-section-ux #music {
  padding: calc(var(--header-height) - 30px) 8px 8px !important;
}

body.mobile-section-ux #music .music-shell {
  height: 100% !important;
  padding: 0 !important;
}

body.mobile-section-ux #music .section-body {
  height: 100% !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

body.mobile-section-ux #music .album-center {
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-top: 0 !important;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 0 8px 6px !important;
}

body.mobile-section-ux #music .album-artwork-static {
  width: clamp(148px, 46vw, 194px);
  margin: 0 auto;
}

body.mobile-section-ux #music .album-title {
  font-size: clamp(1.05rem, 4.8vw, 1.3rem) !important;
  margin: 0 !important;
  line-height: 1.05;
}

body.mobile-section-ux #music .album-artist-name {
  font-size: clamp(0.72rem, 2.9vw, 0.88rem) !important;
  margin: 0 0 0.2rem !important;
  letter-spacing: 0.12em !important;
}

body.mobile-section-ux #music .track-list-container {
  height: 100% !important;
  min-height: clamp(160px, 28vh, 260px);
  max-height: none !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding-right: 2px;
}

body.mobile-section-ux #music .track-list {
  padding: 0.28rem 0 0.4rem !important;
}

body.mobile-section-ux #music .track-row {
  grid-template-columns: 1.7rem minmax(0, 1fr) auto !important;
  padding: 6px 5px !important;
  gap: 0.45rem !important;
  align-items: center !important;
}

body.mobile-section-ux #music .track-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0;
}

body.mobile-section-ux #music .track-name {
  display: block;
  width: 100%;
  font-size: 0.84rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.mobile-section-ux #music .track-index {
  font-size: 0.74rem !important;
}

body.mobile-section-ux #music .track-play-btn {
  font-size: 0.8rem;
  padding: 0.32rem 0.72rem;
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  margin: 0 !important;
  white-space: nowrap;
}

body.mobile-section-ux #music .platform-links a {
  width: 18px;
  height: 18px;
}

body.mobile-section-ux #music .platform-links {
  gap: 5px;
  width: 100%;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

body.mobile-section-ux #music .platform-icon {
  width: 16px;
  height: 16px;
}

body.mobile-section-ux #music .music-player-panel {
  margin-top: 4px;
  padding: 0.34rem 0.42rem;
}

body.mobile-section-ux #music .music-progress-row {
  margin-top: 2px;
  gap: 4px;
}

body.mobile-section-ux #music .music-progress-container {
  height: 14px;
  pointer-events: auto !important;
  position: relative;
  z-index: 8;
}

body.mobile-section-ux #music .music-progress-time {
  font-size: 0.68rem;
  text-align: left;
}

body.mobile-section-ux .sticky-player {
  width: calc(100vw - 12px) !important;
  left: 6px !important;
  right: 6px !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 4px) !important;
  height: 52px !important;
  padding: 0 10px !important;
  border-radius: 12px;
}

body.mobile-section-ux .sticky-progress-container {
  height: 14px;
  pointer-events: auto !important;
  z-index: 120;
}

body.mobile-section-ux .sticky-info {
  padding-right: 4px;
}

body.mobile-section-ux #sticky-track-name {
  font-size: 0.82rem;
}

body.mobile-section-ux .sticky-artist {
  font-size: 0.62rem;
}

body.mobile-section-ux .sticky-controls {
  margin-left: 8px;
}

body.mobile-section-ux .sticky-btn {
  width: 36px;
  height: 36px;
}

body.mobile-section-ux .sticky-icon {
  width: 19px;
  height: 19px;
}

body.mobile-section-ux #close-sticky-music {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  font-size: 12px;
}

body.mobile-section-ux #music .player-controls-row {
  display: grid !important;
  grid-template-columns: auto 1fr auto auto !important;
  grid-template-areas:
    "center center center center"
    "repeat transport shuffle options";
  align-items: center !important;
  column-gap: 6px !important;
  row-gap: 6px !important;
  margin-bottom: 0.22rem !important;
}

body.mobile-section-ux #music .player-center-info {
  grid-area: center;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 2px;
  text-align: left;
}

body.mobile-section-ux #music .music-player-label {
  display: block;
  font-size: 0.64rem;
  text-align: left;
}

body.mobile-section-ux #music #music-now-playing {
  display: block;
  font-size: 0.82rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mobile-section-ux #music .player-artist {
  display: block;
  font-size: 0.72rem;
  text-align: left;
  min-height: 1.05em;
}

body.mobile-section-ux #music #btn-repeat {
  grid-area: repeat;
}

body.mobile-section-ux #music .transport-controls {
  grid-area: transport;
  gap: 5px;
  justify-self: center;
}

body.mobile-section-ux #music #btn-shuffle {
  grid-area: shuffle;
}

body.mobile-section-ux #music .options-wrapper {
  grid-area: options;
  justify-self: end;
}

body.mobile-section-ux #music .player-control-btn {
  padding: 3px;
}

body.mobile-section-ux #music .player-control-btn--transport {
  width: 34px;
  height: 34px;
  min-width: 34px;
}

body.mobile-section-ux #music .player-control-btn--primary {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

body.mobile-section-ux #music .control-icon,
body.mobile-section-ux #music .control-icon--transport {
  width: 18px;
  height: 18px;
}

body.mobile-section-ux #music .main-play-icon,
body.mobile-section-ux #music .main-pause-icon {
  font-size: 1rem;
}

body.mobile-section-ux #videos {
  padding: calc(var(--header-height) - 2px) 8px 8px !important;
}

body.mobile-section-ux #videos .video-section-layout {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
}

body.mobile-section-ux #videos .video-main-column {
  width: 100% !important;
  flex: 0 0 auto !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.mobile-section-ux #videos .video-player-container {
  padding: 0 !important;
}

body.mobile-section-ux #videos #video-anchor {
  width: 100% !important;
  margin-left: 0 !important;
  border-radius: 12px !important;
}

body.mobile-section-ux #videos .video-details-box {
  width: 100% !important;
  margin: 0 !important;
  padding: 8px 8px 7px !important;
  flex: 0 0 auto !important;
}

body.mobile-section-ux #videos .video-details-box h2 {
  font-size: 0.98rem !important;
  line-height: 1.22 !important;
  margin: 0 0 4px !important;
  color: #f3f6fb !important;
  letter-spacing: 0.01em !important;
  font-weight: 600 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.mobile-section-ux #videos .video-details-box .video-meta {
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
  margin: 0 0 4px !important;
  opacity: 0.88 !important;
}

body.mobile-section-ux #videos .video-description-row {
  position: relative !important;
  display: block !important;
  min-height: calc(2 * 1.25em) !important;
}

body.mobile-section-ux #videos #current-video-desc {
  padding-right: 0 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  max-height: none !important;
  font-size: 0.74rem !important;
  line-height: 1.25 !important;
  color: rgba(230, 238, 247, 0.86) !important;
}

body.mobile-section-ux #videos .video-desc-more-btn {
  position: absolute !important;
  right: 0 !important;
  top: calc(1.25em + 1px) !important;
  bottom: auto !important;
  margin: 0 !important;
  padding: 0 6px !important;
  min-height: auto !important;
  border: 1px solid rgba(43, 226, 199, 0.58) !important;
  border-radius: 999px !important;
  background: rgba(7, 12, 18, 0.78) !important;
  font-size: 0.62rem !important;
  line-height: 1.15 !important;
  color: #7cefe0 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.mobile-section-ux #videos .video-sidebar-scroller {
  width: 100% !important;
  flex: 0 0 auto !important;
  height: clamp(218px, 34vh, 306px) !important;
  max-height: clamp(218px, 34vh, 306px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: contain;
  scrollbar-width: thin !important;
  padding: 8px !important;
}

body.mobile-section-ux #videos .video-sidebar-scroller::-webkit-scrollbar {
  width: 6px;
  display: block;
}

body.mobile-section-ux #videos .video-sidebar-scroller::-webkit-scrollbar-thumb {
  background: rgba(43, 226, 199, 0.45);
  border-radius: 999px;
}

body.mobile-section-ux #videos .video-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.mobile-section-ux #videos .video-category {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.mobile-section-ux #videos .catalog-heading {
  font-size: 0.62rem !important;
  line-height: 1.1 !important;
  margin: 0 0 4px !important;
  padding-bottom: 3px !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.mobile-section-ux #videos .video-thumbs-grid.scrollable-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 6px !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-y !important;
  /* Allow native Y scroll, let JS handle X */
  scrollbar-width: thin !important;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
}

body.mobile-section-ux #videos .video-thumbs-grid.scrollable-row::-webkit-scrollbar {
  height: 4px;
  display: block;
}

body.mobile-section-ux #videos .video-thumbs-grid.scrollable-row::-webkit-scrollbar-thumb {
  background: rgba(43, 226, 199, 0.45);
  border-radius: 999px;
}

body.mobile-section-ux #videos .video-thumbs-grid.scrollable-row .video-thumb {
  flex: 0 0 116px !important;
  min-width: 116px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  touch-action: pan-y !important;
  /* Allow native Y, intercept X via JS */
  -webkit-user-select: none;
  user-select: none;
  scroll-snap-align: start;
}

body.mobile-section-ux #videos .video-thumbs-grid.scrollable-row .thumb-img-wrapper {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
}

body.mobile-section-ux #videos .video-thumbs-grid.scrollable-row .thumb-title {
  margin: 0 !important;
  font-size: 0.68rem !important;
  line-height: 1.15 !important;
  text-align: left !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.video-description-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-desc-more-btn {
  display: none;
  align-self: flex-start;
  border: 1px solid rgba(43, 226, 199, 0.45);
  border-radius: 999px;
  background: rgba(43, 226, 199, 0.14);
  color: #cafff6;
  font-family: "Prompt", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  cursor: pointer;
}

body.mobile-section-ux #videos .video-desc-more-btn {
  display: inline-flex;
}

.video-desc-dialog {
  width: min(92vw, 640px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(7, 12, 22, 0.95), rgba(3, 8, 16, 0.96));
  color: #eef3ff;
  padding: 0;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.video-desc-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.video-desc-dialog-content {
  padding: 14px;
}

.video-desc-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-desc-dialog-header h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.05rem;
}

.video-desc-dialog-close {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.video-desc-dialog-meta {
  margin: 8px 0 10px;
  font-size: 0.82rem;
  opacity: 0.74;
}

.video-desc-dialog-body {
  white-space: pre-line;
  font-size: 0.9rem;
  line-height: 1.45;
  max-height: min(62vh, 480px);
  overflow-y: auto;
}

body.mobile-section-ux #about {
  padding: calc(var(--header-height) + 4px) 8px 8px !important;
}

body.mobile-section-ux #about .about-thread-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  gap: 10px !important;
  height: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 8px;
}

body.mobile-section-ux #about .about-thread-wrap::-webkit-scrollbar {
  display: none;
}

body.mobile-section-ux #about .qa-thread {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  flex: 0 0 min(88vw, 420px) !important;
  max-width: min(88vw, 420px) !important;
  scroll-snap-align: center;
}

body.mobile-section-ux #about .scatter-card {
  height: 100%;
  max-height: calc(100dvh - var(--header-height) - 44px);
  overflow-y: auto;
}

body.mobile-section-ux #tours {
  padding: calc(var(--header-height) + 4px) 8px 8px !important;
}

body.mobile-section-ux #tours .tours-container {
  height: 100% !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  flex-direction: column;
}

body.mobile-section-ux #tours .tour-list {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px;
  margin: 0;
  padding: 0 calc((100% - min(88vw, 420px)) / 2) 8px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc((100% - min(88vw, 420px)) / 2);
  flex: 1 1 auto;
}

body.mobile-section-ux #tours .tour-list::-webkit-scrollbar {
  display: none;
}

body.mobile-section-ux #tours .tour-card {
  flex: 0 0 min(88vw, 420px) !important;
  min-height: calc(100dvh - var(--header-height) - 172px);
  margin: 0 !important;
  scroll-snap-align: center !important;
  scroll-snap-stop: always;
}

body.mobile-section-ux #tours .site-footer {
  position: relative !important;
  bottom: auto !important;
  margin-top: 4px;
}

body.mobile-section-ux #connect {
  padding: calc(var(--header-height) + 4px) 8px 8px !important;
}

body.mobile-section-ux #connect .connect-app-grid {
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 8px !important;
}

body.mobile-section-ux #connect .vertical-tablet-column {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden;
}

body.mobile-section-ux #connect .portrait-tablet {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

body.mobile-section-ux #connect .portrait-tablet::before {
  display: none !important;
}

body.mobile-section-ux #connect .tablet-screen.vertical-screen {
  width: 100%;
  height: auto;
  border-radius: 12px;
  padding: 6px 0 !important;
  gap: 8px;
  background: rgba(8, 14, 24, 0.42);
}

body.mobile-section-ux #connect .tablet-section {
  padding: 0 4px !important;
}

body.mobile-section-ux #connect .tablet-section-label {
  margin-bottom: 6px !important;
  font-size: 0.56rem !important;
  letter-spacing: 2px !important;
}

body.mobile-section-ux #connect .tablet-section-divider {
  width: 100%;
  margin: 0;
}

body.mobile-section-ux #connect .social-grid-app-style {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.mobile-section-ux #connect .app-icon-tile {
  width: 40px !important;
  height: 40px !important;
}

body.mobile-section-ux #connect .app-icon-tile.center-slot {
  display: none !important;
}

body.mobile-section-ux #connect .social-icon-large {
  width: 20px !important;
  height: 20px !important;
}

body.mobile-section-ux #connect .forms-column {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-height: 0;
  overflow-y: auto !important;
  gap: 8px !important;
  padding-top: 0 !important;
}

body.mobile-section-ux #connect .mockup-quadrant {
  background-image: none !important;
  aspect-ratio: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px !important;
  min-height: auto !important;
}

body.mobile-section-ux #connect .quad-newsletter,
body.mobile-section-ux #connect .quad-contact {
  top: 0 !important;
  margin-top: 0 !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-card,
body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form,
body.mobile-section-ux #connect .quad-contact .contact-paper-form {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .newsletter-email-field,
body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .newsletter-action,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-field,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-name,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-email {
  width: calc(50% - 4px) !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-subject,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-message,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action {
  width: 100% !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form input,
body.mobile-section-ux #connect .quad-contact .contact-paper-form input,
body.mobile-section-ux #connect .quad-contact .contact-paper-form select,
body.mobile-section-ux #connect .quad-contact .contact-paper-form textarea {
  width: 100% !important;
  height: auto !important;
  min-height: 42px;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(6, 12, 20, 0.68) !important;
  color: #eef3ff !important;
  padding: 10px 12px !important;
  font-size: 0.88rem !important;
  font-family: "Jost", Arial, sans-serif !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form textarea {
  min-height: 86px;
  resize: vertical;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .btn-primary,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action .btn-primary {
  width: 100%;
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(43, 226, 199, 0.5) !important;
  background: rgba(43, 226, 199, 0.2) !important;
  color: #d9fff8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em;
  font-weight: 700;
}

@media (max-width: 420px) {
  body.mobile-section-ux #connect .social-grid-app-style {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.mobile-section-ux #connect .app-icon-tile {
    width: 36px !important;
    height: 36px !important;
  }

  body.mobile-section-ux #connect .social-icon-large {
    width: 18px !important;
    height: 18px !important;
  }

  body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-name,
  body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-email {
    width: 100% !important;
  }

  body.mobile-section-ux #videos .video-thumbs-grid.scrollable-row .video-thumb {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  body.mobile-section-ux #videos .video-thumbs-grid.scrollable-row .thumb-img-wrapper {
    width: 92px;
  }
}

/* Mobile UX: keep Connect forms on original PNG coordinate system */
body.mobile-section-ux #connect .mockup-quadrant {
  aspect-ratio: 1536 / 1024 !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  position: relative !important;
  overflow: hidden !important;
}

body.mobile-section-ux #connect .quad-newsletter {
  background-image: url('../media/PNG/newsletter.png') !important;
  top: 0 !important;
  margin-top: 0 !important;
}

body.mobile-section-ux #connect .quad-contact {
  background-image: url('../media/PNG/contactform.png') !important;
  margin-top: 0 !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-card {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: auto;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .newsletter-email-field {
  position: absolute !important;
  top: 42% !important;
  left: 18.65% !important;
  width: 62.7% !important;
  height: 11.55% !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .newsletter-action {
  position: absolute !important;
  top: 61.3% !important;
  left: 31.5% !important;
  width: 37.18% !important;
  height: 12.65% !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form input,
body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .btn-primary {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #333 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form input {
  font-size: 16px !important;
  font-family: "Times New Roman", Times, serif !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .btn-primary {
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: auto;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-field,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action {
  position: absolute !important;
  overflow: hidden !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-name {
  top: 29.6% !important;
  left: 12.74% !important;
  width: 22.61% !important;
  height: 6.45% !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-email {
  top: 29.6% !important;
  left: 36.96% !important;
  width: 25.15% !important;
  height: 6.45% !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-subject {
  top: 29.6% !important;
  left: 65.62% !important;
  width: 23.88% !important;
  height: 6.45% !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-message {
  top: 45.57% !important;
  left: 11.82% !important;
  width: 77.34% !important;
  height: 24.47% !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action {
  top: 71.3% !important;
  left: 35.35% !important;
  width: 29.15% !important;
  height: 10.18% !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form input,
body.mobile-section-ux #connect .quad-contact .contact-paper-form select,
body.mobile-section-ux #connect .quad-contact .contact-paper-form textarea,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action .btn-primary {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #333 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form textarea {
  padding: 6px 6px !important;
  line-height: 1.15 !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action .btn-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
}

@media (max-width: 420px) {
  body.mobile-section-ux #connect .mockup-quadrant {
    aspect-ratio: 1536 / 1024 !important;
  }
}

/* Mobile Connect: split screen layout with tablet + forms carousels */
body.mobile-section-ux #connect {
  padding: var(--header-height) 8px 8px !important;
}

/* Mobile: remove dark/black cinematic overlays in Connect section */
body.mobile-section-ux #connect::before,
body.mobile-section-ux #connect.connect-form-cinema-mode::before {
  opacity: 0 !important;
  background: none !important;
  display: none !important;
}

body.mobile-section-ux #connect .connect-app-grid {
  height: 100% !important;
  min-height: calc(100dvh - var(--header-height) - 8px) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(180px, 1fr) minmax(220px, 1fr) !important;
  gap: 8px !important;
  padding: 0 !important;
}

body.mobile-section-ux #connect .vertical-tablet-column {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  overflow: hidden !important;
  min-height: 180px !important;
}

body.mobile-section-ux #connect .portrait-tablet,
body.mobile-section-ux #connect.connect-build-active .portrait-tablet {
  width: 100% !important;
  max-width: none !important;
  min-height: 180px !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 !important;
  position: relative !important;
  transform: none !important;
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
}

body.mobile-section-ux #connect .portrait-tablet::before {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  background-image: url('../Icons/Mockups/tablet1.png') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

body.mobile-section-ux #connect .tablet-screen.vertical-screen {
  position: absolute !important;
  top: 11.5% !important;
  left: 8.5% !important;
  width: 83% !important;
  height: 77% !important;
  border-radius: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

body.mobile-section-ux #connect .tablet-screen.vertical-screen::-webkit-scrollbar {
  display: none;
}

body.mobile-section-ux #connect .tablet-section {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 8px 6px !important;
  justify-content: center !important;
}

body.mobile-section-ux #connect .tablet-section-divider {
  display: none !important;
}

body.mobile-section-ux #connect .tablet-section-label {
  margin: 0 0 6px !important;
  font-size: 0.56rem !important;
  letter-spacing: 0.12em !important;
}

/* Mobile only: keep Social Media slide icons pure white */
body.mobile-section-ux #connect .tablet-section:first-of-type .social-icon-large,
body.mobile-section-ux #connect .tablet-section:first-of-type .app-icon-tile .social-icon-large {
  color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
  filter: none !important;
}

body.mobile-section-ux #connect .tablet-section:first-of-type .app-icon-tile svg path {
  fill: currentColor !important;
  stroke: none !important;
}

body.mobile-section-ux #connect .social-grid-app-style {
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.mobile-section-ux #connect .app-icon-tile,
body.mobile-section-ux #connect.connect-build-active .app-icon-tile {
  width: 38px !important;
  height: 38px !important;
  margin: 0 auto !important;
  background: rgba(8, 18, 30, 0.72) !important;
  border: 1px solid rgba(43, 226, 199, 0.46) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32) !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

body.mobile-section-ux #connect .app-icon-tile svg,
body.mobile-section-ux #connect .app-icon-tile img,
body.mobile-section-ux #connect .app-icon-tile .social-icon-large {
  width: 100% !important;
  height: 100% !important;
  padding: 7px !important;
  filter: brightness(1.12) saturate(1.14) !important;
}

body.mobile-section-ux #connect .app-icon-tile.center-slot {
  display: none !important;
}

body.mobile-section-ux #connect .social-icon-large {
  width: 18px !important;
  height: 18px !important;
}

body.mobile-section-ux #connect .forms-column {
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

body.mobile-section-ux #connect .forms-column::-webkit-scrollbar {
  display: none;
}

body.mobile-section-ux #connect .forms-column .mockup-quadrant {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  aspect-ratio: 1536 / 1024 !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: 0 !important;
  overflow: hidden !important;
}

/* Mobile swipe hint + tappable arrows for connect/about/tours carousels */
body.mobile-section-ux .has-mobile-carousel-arrows {
  position: relative !important;
}

body.mobile-section-ux .mobile-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(43, 226, 199, 0.75);
  background: rgba(4, 14, 24, 0.8);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

body.mobile-section-ux .mobile-carousel-arrow:disabled {
  opacity: 0.4;
}

body.mobile-section-ux .mobile-carousel-arrow-left {
  left: 2px;
}

body.mobile-section-ux .mobile-carousel-arrow-right {
  right: 2px;
}

/* Final mobile form precision pass: neutralize conflicting min-heights/text inflation */
body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form input,
body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .btn-primary,
body.mobile-section-ux #connect .quad-contact .contact-paper-form input,
body.mobile-section-ux #connect .quad-contact .contact-paper-form select,
body.mobile-section-ux #connect .quad-contact .contact-paper-form textarea,
body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action .btn-primary {
  min-height: 0 !important;
  max-height: none !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form input {
  font-size: 14px !important;
  line-height: 1.05 !important;
  padding: 0 10px !important;
}

body.mobile-section-ux #connect .quad-newsletter .newsletter-paper-form .btn-primary {
  font-size: 14px !important;
  line-height: 1 !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-field {
  display: flex !important;
  align-items: center !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form input,
body.mobile-section-ux #connect .quad-contact .contact-paper-form select {
  font-size: 6px !important;
  line-height: 1 !important;
  padding: 0 6px !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-message {
  display: block !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form textarea {
  font-size: 5px !important;
  line-height: 1.02 !important;
  padding: 5px 6px !important;
}

body.mobile-section-ux #connect .quad-contact .contact-paper-form .paper-action .btn-primary {
  font-size: 14px !important;
  line-height: 1 !important;
}

body.mobile-section-ux #connect .quad-newsletter,
body.mobile-section-ux #connect .quad-contact {
  top: 0 !important;
  margin-top: 0 !important;
}

body.mobile-section-ux #connect.connect-form-cinema-mode .vertical-tablet-column,
body.mobile-section-ux #connect.connect-form-cinema-mode .mockup-quadrant,
body.mobile-section-ux #connect.connect-form-cinema-mode.connect-focus-newsletter .quad-newsletter,
body.mobile-section-ux #connect.connect-form-cinema-mode.connect-focus-contact .quad-contact {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 420px) {

  body.mobile-section-ux #connect .app-icon-tile,
  body.mobile-section-ux #connect.connect-build-active .app-icon-tile {
    width: 34px !important;
    height: 34px !important;
  }

  body.mobile-section-ux #connect .social-icon-large {
    width: 16px !important;
    height: 16px !important;
  }
}

/* =========================================
   Mobile Crash-Safe Mode (runtime class)
============================================ */
@media (max-width: 991px) {

  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.mobile-crash-safe #video-container.mobile-bg-static {
    background: #05070d url('../media/hero.webp') center center / cover no-repeat !important;
  }

  body.mobile-crash-safe .bg-video {
    display: none !important;
  }

  body.mobile-crash-safe .reveal-3d,
  body.mobile-crash-safe .reveal-3d.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  body.mobile-crash-safe .music-player-panel,
  body.mobile-crash-safe .video-details-box,
  body.mobile-crash-safe .tour-card,
  body.mobile-crash-safe .mockup-quadrant,
  body.mobile-crash-safe .site-footer,
  body.mobile-crash-safe .sticky-player {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.mobile-crash-safe .video-player-wrapper,
  body.mobile-crash-safe .music-player-panel,
  body.mobile-crash-safe .tour-card,
  body.mobile-crash-safe .mockup-quadrant {
    box-shadow: none !important;
  }

  body.mobile-crash-safe .hero-content,
  body.mobile-crash-safe .album-center,
  body.mobile-crash-safe .video-main-column,
  body.mobile-crash-safe .connect-app-grid {
    will-change: auto !important;
  }
}