/* =========================
   ROOT / BASE
========================= */
:root{
  --base-blue:#0b5ed8;
  --text:#ffffff;

  --glass: rgba(255,255,255,.14);
  --glass-strong: rgba(255,255,255,.18);
  --glass-border: rgba(255,255,255,.26);

  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --shadow-strong: 0 26px 70px rgba(0,0,0,.55);

  --bubble-size: 116px;
  --orbit-size: 640px;
  --orbit-radius: calc(var(--orbit-size) / 2);

  --content-max: 920px;

  --scrollbar-thumb: rgba(255,255,255,.22);
  --scrollbar-thumb-hover: rgba(255,255,255,.38);
  --scrollbar-track: rgba(255,255,255,.06);

  --modal-radius: 20px;
  --modal-pad: 18px;

  --story-font: 18px;

  --ui-radius: 16px;

  /* focus mode */
  --focus-black: rgba(0,0,0,1);
  --overlay-blur: blur(8px);
}

/* =========================
   RESET / GLOBAL
========================= */
*{ box-sizing:border-box; }
html, body{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  overflow:hidden;

  font-family: "Fredoka", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--base-blue);
  color: var(--text);
}
button{
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
.hidden{ display:none !important; }

/* Modal açıkken arka taraf kaymasın */
body.modal-open{ overflow:hidden; }

/* =========================
   BACKGROUND ROOT + FOCUS VIGNETTE
========================= */
#bg-root{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow:hidden;
}
#bg-root canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  opacity:0;
  transition: opacity .35s ease;
}
#focus-vignette{
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(11,94,216,0.00) 0%,
      rgba(11,94,216,0.04) 28%,
      rgba(0,0,0,0.25) 55%,
      rgba(0,0,0,0.62) 100%);
  mix-blend-mode: multiply;
}

/* =========================
   FX CANVASES (snow/season/cursor)
========================= */
#snow-canvas,
#season-canvas,
#cursor-canvas{
  position: fixed;
  inset: 0;
  width:100%;
  height:100%;
  pointer-events: none;
}
#snow-canvas{ z-index: 2; }
#season-canvas{ z-index: 2; }
#cursor-canvas{ z-index: 7; }

/* =========================
   INTRO
========================= */
#intro-screen{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#000;
  transition: opacity 1s ease;
}
#intro-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
}
.intro-actions{
  position:absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}
#skip-btn{
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease;
}
#skip-btn:hover{
  transform: translateY(-1px) scale(1.03);
  background: rgba(255,255,255,.25);
}

/* =========================
   TOP CONTROLS (fixed, clean)
========================= */
#top-controls{
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  display:flex;
  gap: 12px;
  align-items:center;
}

.control-item{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;

  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);

  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  font-size: 18px;
}
.control-item:hover{
  transform: scale(1.06);
  background: rgba(0,0,0,.42);
  border-color: rgba(255,255,255,.28);
}

.audio-wrapper{
  overflow:hidden;
  width: 48px;
  padding-left: 10px;
  justify-content:flex-start;
  gap: 10px;
}
.audio-wrapper:hover{
  width: 178px;
  background: rgba(0,0,0,.52);
}
.audio-wrapper #music-icon{
  width: 26px;
  height: 26px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}
.volume-slider-container{
  width: 112px;
  opacity:0;
  transition: opacity .25s ease;
}
.audio-wrapper:hover .volume-slider-container{ opacity: 1; }
#volume-slider{ width:100%; cursor:pointer; }

/* =========================
   BACK BUTTON
========================= */
#back-btn{
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 5000;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .18s ease, background .18s ease;
}
#back-btn:hover{
  transform: scale(1.07);
  background: rgba(255,255,255,.22);
}

/* =========================
   SETTINGS PANEL
========================= */
#settings-panel{
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 1200;
  width: min(380px, calc(100vw - 36px));
  border-radius: 18px;
  background: rgba(0,0,0,.46);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-strong);
  overflow: hidden;

  /* ✅ taşma fix */
  max-height: calc(100vh - 92px); /* top(76) + alt boşluk */
}

.settings-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.10);

  /* header sabit kalsın */
  flex: 0 0 auto;
}

.settings-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}

.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.icon-btn:hover{
  transform: scale(1.05);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.20);
}

.settings-body{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 12px;

  /* ✅ içerik taşarsa panel içinde kaydır */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 92px - 62px); /* panel - header approx */
  scrollbar-gutter: stable;
}

/* ✅ settings-body için modern scrollbar */
.settings-body::-webkit-scrollbar{ width: 10px; }
.settings-body::-webkit-scrollbar-track{ background: transparent; }
.settings-body::-webkit-scrollbar-thumb{
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.settings-body::-webkit-scrollbar-thumb:hover{
  background: var(--scrollbar-thumb-hover);
}

.setting-row{
  display:flex;
  flex-direction:column;
  gap: 7px;
  font-size: 14px;
}
.setting-row label{ opacity: .96; }

.setting-row select,
.setting-row input[type="range"],
.setting-row input[type="color"]{
  width: 100%;
}

.setting-row select{
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color:#fff;
  outline:none;
}
.setting-row select option{ background: #0b1b3e; }

.setting-row.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.setting-row input[type="color"]{
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  padding: 6px;
}

.checkbox{
  display:flex;
  align-items:center;
  gap: 10px;
  user-select:none;
  cursor:pointer;
}
.checkbox input{ width: 16px; height: 16px; }

.setting-sep{
  height: 1px;
  margin: 6px 0;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
}

/* ✅ Mobilde daha iyi otursun */
@media (max-width: 640px){
  #settings-panel{
    right: 14px;
    top: 70px;
    max-height: calc(100vh - 84px);
  }
  .settings-body{
    max-height: calc(100vh - 84px - 62px);
  }
}


/* =========================
   MAIN / PAGES
========================= */
#main-container{
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.page-section{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  transition: opacity .55s ease, visibility .55s ease;
  overflow-y:auto;
  overflow-x:hidden;

  padding: 30px 18px;

  display:flex;
  align-items: flex-start;
  justify-content:center;
}
.page-section.active{
  opacity:1;
  visibility:visible;
}

/* Modern thin scrollbar */
.page-section::-webkit-scrollbar{ width: 10px; }
.page-section::-webkit-scrollbar-track{ background: transparent; }
.page-section::-webkit-scrollbar-thumb{
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.page-section::-webkit-scrollbar-thumb:hover{
  background: var(--scrollbar-thumb-hover);
}
.page-section{
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.content-wrapper{
  width: min(var(--content-max), 100%);
  margin: 0 auto;

  height: auto;
  min-height: auto;

  padding: 34px 26px;
  border-radius: var(--modal-radius);

  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);

  display:flex;
  flex-direction:column;
  gap: 12px;
  text-align:center;
}

/* =========================
   HOME STAGE + MODEL
========================= */
.center-stage{
  position: relative;
  width:100%;
  height:100%;
  z-index: 10;
}

.hero-wrapper{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.35));
}
#alis-model{
  border-radius: 22px;
}

/* =========================
   ORBIT / BUBBLES
========================= */
.orbit-container{
  position:absolute;
  top:50%;
  left:50%;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin-left: calc(var(--orbit-size) / -2);
  margin-top: calc(var(--orbit-size) / -2);
  border-radius: 50%;
  z-index: 20;

  animation: rotateOrbit 60s linear infinite;
  pointer-events: none;
}

.pos-wrapper{
  position:absolute;
  top:50%;
  left:50%;
  width:0;
  height:0;
  pointer-events:auto;
}
.type-1{ transform: rotate(0deg) translate(var(--orbit-radius)) rotate(0deg); }
.type-2{ transform: rotate(60deg) translate(var(--orbit-radius)) rotate(-60deg); }
.type-3{ transform: rotate(120deg) translate(var(--orbit-radius)) rotate(-120deg); }
.type-4{ transform: rotate(180deg) translate(var(--orbit-radius)) rotate(-180deg); }
.type-5{ transform: rotate(240deg) translate(var(--orbit-radius)) rotate(-240deg); }
.type-6{ transform: rotate(300deg) translate(var(--orbit-radius)) rotate(-300deg); }

.bubble{
  width: var(--bubble-size);
  height: var(--bubble-size);
  border-radius: 50%;
  margin-top: calc(var(--bubble-size)/-2);
  margin-left: calc(var(--bubble-size)/-2);

  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  cursor:pointer;
  user-select:none;

  background: rgba(255,255,255,.14);
  border: 4px solid rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);

  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.bubble:hover{
  transform: scale(1.14);
  box-shadow: 0 18px 44px rgba(0,0,0,.48);
  z-index: 30;
}

.bubble-text{
  position: relative;
  display:inline-block;

  width: 90%;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.15;
  letter-spacing: .15px;

  transform: none !important;
  animation: none !important;
  pointer-events:none;
  color:#fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.bubble-text.moving{ will-change: transform; }

/* =========================
   BORDERS
========================= */
.bubble.border-rgb{
  animation: rgbBorder var(--border-speed, 6s) linear infinite;
}
.bubble.border-neon{
  box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 0 24px rgba(255,255,255,.18), 0 10px 28px rgba(0,0,0,.35);
}
.bubble.border-gradient{
  border-color: transparent !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.12), rgba(255,255,255,.06)),
    conic-gradient(from 90deg, rgba(255,0,90,.9), rgba(0,210,255,.9), rgba(90,255,120,.9), rgba(255,210,0,.9), rgba(180,80,255,.9), rgba(255,0,90,.9));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

@keyframes rgbBorder{
  0%   { border-color: #ff2d55; }
  20%  { border-color: #00d1ff; }
  40%  { border-color: #34c759; }
  60%  { border-color: #ffd60a; }
  80%  { border-color: #bf5af2; }
  100% { border-color: #ff2d55; }
}

/* =========================
   BUBBLE STYLE
========================= */
.bubble.style-glass{
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}
.bubble.style-solid{
  background: var(--bubble-solid, rgba(11,94,216,.55));
  backdrop-filter: blur(0);
}
.bubble.style-christmas{
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
  animation: christmasFill 1.2s ease-in-out infinite;
}
@keyframes christmasFill{
  0%   { background: rgba(255, 35, 75, .25); }
  50%  { background: rgba(40, 255, 140, .22); }
  100% { background: rgba(255, 35, 75, .25); }
}
.bubble.style-rgbchameleon{
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  animation: rgbChameleonFill 6.5s ease-in-out infinite;
}
@keyframes rgbChameleonFill{
  0%   { background: rgba(0, 210, 255, .22); }
  33%  { background: rgba(190, 80, 255, .22); }
  66%  { background: rgba(255, 0, 120, .18); }
  100% { background: rgba(0, 210, 255, .22); }
}

/* =========================
   PAGE TOP BUTTON (global)
========================= */
#to-top-btn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);

  display:flex;
  align-items:center;
  justify-content:center;

  opacity: 0;
  transform: translateY(10px);
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
#to-top-btn.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events:auto;
}
#to-top-btn:hover{
  background: rgba(255,255,255,.22);
  transform: scale(1.05);
}

/* =========================
   MODALS (Story + Image + Video)
========================= */
.modal{
  position: fixed;
  inset: 0;
  z-index: 7000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 18px;
}
.modal.hidden{ display:none !important; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.24);
  backdrop-filter: var(--overlay-blur);
  transition: background .25s ease, backdrop-filter .25s ease;
}

/* Odak modu */
body.focus-mode .modal-backdrop{
  background: var(--focus-black);
  backdrop-filter: none;
}

/* Panel (Story) */
.modal-panel{
  position: relative;
  width: min(1100px, calc(100vw - 36px));
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  border-radius: var(--modal-radius);

  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-strong);

  overflow:hidden;
  z-index: 1;

  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.modal:not(.hidden) .modal-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Lightbox panel (Image) */
.lightbox-panel{
  position: relative;
  width: min(1100px, calc(100vw - 36px));
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  border-radius: var(--modal-radius);

  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-strong);

  overflow:hidden;
  z-index: 1;

  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;

  display:flex;
  flex-direction:column;
}
.modal:not(.hidden) .lightbox-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.modal-header-left{
  display:flex;
  align-items:center;
  gap: 10px;
}
.modal-title{
  font-weight: 700;
  letter-spacing: .2px;
}
.modal-header-right{
  display:flex;
  align-items:center;
  gap: 10px;
}

.modal-body{
  position: relative;
  padding: 18px 28px 82px 18px;
  overflow-y: auto;
  height: calc(100vh - 36px - 56px);
  text-align: left;

  font-size: var(--story-font);
  line-height: 1.75;

  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
.modal-body::-webkit-scrollbar{ width: 10px; }
.modal-body::-webkit-scrollbar-thumb{
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.modal-body::-webkit-scrollbar-thumb:hover{
  background: var(--scrollbar-thumb-hover);
}

/* Hikaye içi yukarı ok */
#story-to-top{
  position:absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);

  opacity: 0;
  transform: translateY(10px);
  pointer-events:none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
#story-to-top.show{
  opacity: 1;
  transform: translateY(0);
  pointer-events:auto;
}
#story-to-top:hover{
  background: rgba(255,255,255,.22);
  transform: scale(1.05);
}

/* Lightbox */
.lightbox-topbar{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.lightbox-figure{
  margin:0;
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  align-items:center;
  justify-content:center;
  flex: 1;
}
#modal-img{
  max-width: 100%;
  max-height: calc(100vh - 36px - 56px - 70px);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(0,0,0,.58);
}
#modal-caption{
  opacity: .92;
  font-size: 14px;
  text-align:center;
}

/* =========================
   ✅ VIDEO MODAL (2. görsel hizası: aynı satır, sağ üst)
========================= */
.video-modal{ z-index: 99999; } /* video her şeyin üstünde */

.video-panel{
  position: relative;
  width: min(1200px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  border-radius: var(--modal-radius);

  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-strong);

  overflow:hidden;
  z-index: 1;

  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;

  display:flex;
  flex-direction:column;
}
.modal:not(.hidden) .video-panel{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.video-topbar{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.video-body{
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.video-player{
  width: 100%;
  height: auto;
  max-height: 76vh;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
  display:block;
}

.video-panel-caption{
  text-align: center;
  font-weight: 800;
  color: #ffd700;
  min-height: 1.2em;
  opacity: .95;
}

/* =========================
   MEKTUP / ANİMASYONLAR SAYFASI (grid + kartlar)
========================= */
.mektup-page .sub-title{
  opacity: .90;
  margin-top: -6px;
  font-style: italic;
}

.video-grid{
  margin-top: 14px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-card{
  text-align: left;
  border-radius: 18px;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.video-card:hover{
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 44px rgba(0,0,0,.40);
  border-color: rgba(255,255,255,.22);
}

.video-thumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}
.video-thumb video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: none !important;
  -webkit-filter: none !important;
}

.video-badge{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 800;
  font-size: 13px;
}

.video-meta{
  padding: 12px 12px 14px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.video-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: .2px;
}
.video-desc{
  margin: 0;
  opacity: .75;
  min-height: 18px;
}

/* =========================
   ORBIT ANIMATION
========================= */
@keyframes rotateOrbit{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  :root{
    --orbit-size: 560px;
    --bubble-size: 108px;
  }
  .hero-wrapper model-viewer{
    width: 340px !important;
    height: 440px !important;
  }

  .video-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  :root{
    --orbit-size: 520px;
    --bubble-size: 98px;
  }
  #top-controls{ top: 14px; right: 14px; gap: 10px; }
  #back-btn{ top: 14px; left: 14px; }
  .hero-wrapper model-viewer{
    width: 300px !important;
    height: 400px !important;
  }
  #settings-panel{ right: 14px; top: 70px; }

  .modal{ padding: 12px; }
  .modal-panel,
  .lightbox-panel,
  .video-panel{
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
  .modal-body{
    padding-right: 26px;
    padding-bottom: 78px;
  }

  .video-grid{
    grid-template-columns: 1fr;
  }
}
