body {
  background: #181818;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Landing Page Styles */
.landing-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  min-height: 100vh;
  box-sizing: border-box;
}

.landing-container h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.2rem;
  color: #888;
  margin-bottom: 50px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 10px;
}

.card {
  background: #232323;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 24px;
}

.card-content h2 {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.card-content p {
  margin: 0;
  color: #aaa;
  font-size: 1rem;
}

/* Back link */
.back-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 20px;
  font-size: 1rem;
  transition: color 0.2s;
  position: relative;
  z-index: 3003;
  pointer-events: auto;
}

.back-link:hover {
  color: #764ba2;
}

/* Viewer container */
.viewer-container {
  position: relative;
}

@media (max-width: 600px) {
  .viewer-container {
    background: transparent;
  }

  .viewer-container h1 {
    display: none;
  }

  #enable-motion-btn {
    position: fixed;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 8px 12px;
  }
}

/* Image viewer */
#image-viewer {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Video viewer */
#video-viewer {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Flat video viewer */
#flat-video-viewer {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

#flat-video-viewer a-scene {
  width: 100%;
  height: 100%;
}

#flat-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transform: scale(var(--flat-zoom, 1));
  transform-origin: center center;
}

#video-viewer a-scene {
  width: 100%;
  height: 100%;
}

#video-viewer a-scene,
#flat-video-viewer a-scene,
#image-viewer a-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.viewer-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

#video-viewer .a-canvas,
#flat-video-viewer .a-canvas,
#image-viewer .a-canvas {
  z-index: 1 !important;
  pointer-events: auto;
}

.viewer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3001;
  pointer-events: auto;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  width: 88px;
  height: 88px;
  font-size: 16px;
  cursor: pointer;
}

.viewer-controls {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3001;
  pointer-events: auto;
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 10px;
}

@media (max-width: 600px) {
  .viewer-controls {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3002;
  }

  .viewer-play {
    z-index: 3002;
  }
}

.viewer-controls__btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
}

.viewer-controls__btn:hover {
  background: rgba(255,255,255,0.12);
}

#image-viewer a-scene {
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .landing-container {
    padding: 40px 15px;
  }
  
  .landing-container h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .card-image {
    height: 150px;
  }
  
  .back-link {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3003;
    pointer-events: auto;
    background: rgba(0,0,0,0.7);
    padding: 8px 12px;
    border-radius: 6px;
  }
  
  #image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 1000;
  }

  #video-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 1000;
  }

  #flat-video-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    z-index: 1000;
  }
}

#enable-motion-btn {
  display: none;
}

@media (max-width: 600px) {
  #enable-motion-btn {
    display: block;
  }
}


@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
}


.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #232323;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .container {
    max-width: 100vw;
    margin: 0;
    padding: 0;
    border-radius: 0;
    min-height: 100vh;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
  }
}

h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 2rem;
}

 .home-grid {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 16px;
   padding: 0 14px;
   margin: 0 0 16px 0;
 }

 @media (max-width: 600px) {
   .home-grid {
     grid-template-columns: 1fr;
     gap: 12px;
   }
 }

 .home-card {
   display: block;
   padding: 18px 18px;
   border-radius: 12px;
   background: #1d1d1d;
   border: 1px solid rgba(255,255,255,0.08);
   color: inherit;
   text-decoration: none;
   transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
 }

 .home-card:hover {
   transform: translateY(-2px);
   border-color: rgba(255,255,255,0.18);
   background: #202020;
 }

 .home-card__title {
   font-size: 1.2rem;
   font-weight: 700;
   margin-bottom: 6px;
 }

 .home-card__subtitle {
   color: rgba(255,255,255,0.75);
   font-size: 0.95rem;
   line-height: 1.35;
 }

 .home-picker {
   margin: 0 14px 16px 14px;
   max-width: none;
   width: auto;
   padding: 14px 14px;
   border-radius: 12px;
   background: #1d1d1d;
   border: 1px solid rgba(255,255,255,0.08);
 }

 .home-picker__label {
   display: block;
   font-size: 0.95rem;
   color: rgba(255,255,255,0.85);
   margin-bottom: 10px;
 }

 .home-picker__row {
   display: grid;
   grid-template-columns: 1fr auto;
   gap: 10px;
 }

 .home-picker__select {
   width: 100%;
   background: #181818;
   color: #fff;
   border: 1px solid rgba(255,255,255,0.15);
   border-radius: 10px;
   padding: 10px 12px;
   font-size: 1rem;
 }

 .home-picker__button {
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   color: #fff;
   border: 0;
   border-radius: 10px;
   padding: 10px 14px;
   font-size: 1rem;
   cursor: pointer;
 }

 .home-picker__button:hover {
   filter: brightness(1.05);
 }

@media (max-width: 600px) {
  h1 {
    font-size: 1.2rem;
    margin-bottom: 14px;
  }
}


.video-js {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 100vw;
}

@media (max-width: 600px) {
  .video-js {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    touch-action: none;
  }

  .video-js .vjs-tech {
    object-fit: cover;
    touch-action: none;
  }

  .vjs-control-bar {
    z-index: 2000;
  }

  body, html {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #181818;
  }
  .container {
    padding: 0;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
    height: 100vh;
  }
}