* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  background: #08080c;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;      /* Prevents unwanted horizontal scrolling */
  overflow-y: auto;        /* Enables vertical scrolling */
  height: 100vh;           /* Maintains exact fixed height viewport */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stage Container */
.deck-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Header Title Area */
.site-header {
  margin-top: 15px;
  text-align: center;
  z-index: 10;
  height: 80px; /* Adjust parent height to set overall header bounds */
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-header h1 {
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.site-header h1 img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Scaled Header for Mobile Breakpoints */
@media (max-width: 767px) {
  .site-header {
    height: 40px; /* CSS controls the mobile image scale here */
    margin-top: 10px;
  }
}

/* Embed / Slide Container (Z-Index 10: Sits above needle) */
.embed-container {
  position: absolute;
  top: 90px; /* Shifted down from 60px so it sits cleanly under the header */
  width: 92%;
  max-width: 720px;
  /* Updated 'top' offset inside calc() from 60px to 90px */
  height: calc(100vh - 90px - 150px - var(--platter-size) + (var(--platter-size) / 2));
  min-height: 220px;
  background: rgba(18, 18, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  z-index: 10;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  overflow: hidden;
}

.embed-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: opacity 0.25s ease;
  overflow: hidden;
}

.embed-card h2 {
  font-size: 1.1rem;
  color: #ff0055;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.embed-card p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.3;
  max-width: 520px;
  flex-shrink: 0;
}

.embed-content {
  width: 100%;
  flex: 1;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.embed-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  overflow: hidden;
  /* Hides scrollbars in WebKit & Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;  /* Firefox */
}

.embed-iframe::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* =======================================================
   DESKTOP DEFAULT: 12-INCH 33 RPM LP LAYOUT
   ======================================================= */
:root {
  --platter-size: 580px;
}

/* Deck Wrapper (Anchored 200px from bottom) */
.deck-wrapper {
  position: absolute;
  bottom: calc(100px - (var(--platter-size) / 2));
  width: var(--platter-size);
  height: var(--platter-size);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 15;
}

/* =======================================================
   TURNTABLE CUE / STROBE INDICATOR
   Fixed cue window with animated strobe bars.
   ======================================================= */
.cue-needle {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 48px;
  z-index: 25;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.cue-needle::before {
  content: 'CUE';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 800;
  color: #ff0055;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 0, 85, 0.9);
}

.cue-window {
  width: 62px;
  height: 28px;
  border: 2px solid #555;
  border-radius: 5px;
  background: rgba(8, 8, 12, 0.96);
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.25), inset 0 0 12px rgba(0,0,0,0.9);
  overflow: hidden;
  position: relative;
}

.cue-window::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 3px;
  height: 16px;
  transform: translateX(-50%);
  background: #ff0055;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.95);
  border-radius: 2px;
}

.cue-strobe {
  position: absolute;
  inset: 5px 7px;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.cue-strobe span {
  display: block;
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: #F5AF1B;
  opacity: 0.8;
  animation: cueStrobe 0.22s steps(2, end) infinite;
}

.cue-strobe span:nth-child(2) { animation-delay: -0.055s; }
.cue-strobe span:nth-child(3) { animation-delay: -0.11s; }
.cue-strobe span:nth-child(4) { animation-delay: -0.165s; }

.cue-needle.is-paused .cue-strobe span {
  animation-play-state: paused;
  animation: none;
  opacity: 1;
  transform: scaleY(1);
  background: #F5AF1B;
  box-shadow: 0 0 6px rgba(245, 175, 27, 0.8);
}

@keyframes cueStrobe {
  0%, 45% { opacity: 0.22; transform: scaleY(0.65); }
  46%, 100% { opacity: 1; transform: scaleY(1); }
}

.cue-arm {
  width: 3px;
  height: 18px;
  background: #ff0055;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.85);
  border-radius: 2px;
  margin-top: -1px;
}

.cue-status {
  position: absolute;
  top: 29px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 700;
  color: #F5AF1B;
  letter-spacing: 1px;
  white-space: nowrap;
}

.cue-needle.is-paused .cue-status {
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.7);
}

/* 33 RPM LP Platter Background */
.vinyl-platter {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: 
    radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.85) 100%),
    url('../../images/Gallery/Clients/splatter.webp');
  background-size: cover;
  background-position: center;
  border: 12px solid #14141a;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(0,0,0,0.9);
  position: relative;
  cursor: grab;
  touch-action: none;
}
.vinyl-platter:active { cursor: grabbing; }

/* 33 RPM Small Center Label */
.label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background-image: url('../../images/Gallery/Clients/kind-recordlabel.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.center-spindle {
  width: 18px;
  height: 18px;
  background: #08080c;
  border: 3px solid #666;
  border-radius: 50%;
  margin-top: 6px;
}

.track-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 20px;
  margin-top: -10px;
  margin-left: -50%;
  text-align: right;
  padding-right: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
  transform-origin: center center;
  pointer-events: none;
}

/* =======================================================
   SLIDE TEMPLATE & MEDIA CONTROLS
   ======================================================= */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateX(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 60px 20px;
  text-align: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Audio Player Layout */
.audio-card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(8px);
  text-align: center;
}

.audio-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #222;
  object-fit: cover;
  margin-bottom: 12px;
}

.audio-title {
  font-size: 1rem;
  font-weight: 600;
}

.audio-artist {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.custom-audio {
  width: 100%;
  height: 36px;
  border-radius: 18px;
}

/* Video Player Layout */
.video-card {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-caption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide Controls */
.slide-controls {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  pointer-events: none;
}

.control-btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.1s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.control-btn:active {
  transform: scale(0.95);
}

.slide-dots {
  pointer-events: auto;
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.active {
  background: #ffffff;
}

/* =======================================================
   MOBILE BREAKPOINT: 7-INCH 45 RPM SINGLE LAYOUT (<768px)
   ======================================================= */
@media (max-width: 767px) {
  :root {
    --platter-size: 420px;
  }

  .vinyl-platter {
    background-image: 
       radial-gradient(circle at center, transparent 45%, rgba(0,0,0,0.9) 100%), 
       url('../../images/Gallery/Clients/splatter.webp');
    border-width: 8px;
  }

  .label {
    width: 210px;
    height: 210px;
    background-image: url('../../images/Gallery/Clients/kind-recordlabel.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid rgba(255, 255, 255, 0.4);
  }

  .center-spindle {
    width: 38px;
    height: 38px;
    border: 4px solid #888;
    background: #08080c;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.9);
  }

  .track-mark {
    font-size: 0.72rem;
    padding-right: 14px;
  }

  .embed-card h2 { font-size: 1.4rem; }
  .embed-card p { font-size: 0.85rem; }
}

/* Helper instruction */
.instruction {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #777;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 30;
  pointer-events: none;
}