/* Ember Studio — cinematic dashboard layer (website_motion cinematic-scenes +
   webgl-effects). Decoration and layout styling only; every app element keeps
   its markup, ids and handlers. Layers are added by /static/js/ember-cinema.js. */

/* ── Stage behind the composer: beam + giant distressed wordmark ── */
.main > .quota-line{position:relative; z-index:2}
.ember-stage{
  position:absolute; left:0; right:0; top:0; height:620px; z-index:0;
  pointer-events:none; overflow:hidden;
  -webkit-mask-image:linear-gradient(180deg,#000 70%,transparent 100%);
          mask-image:linear-gradient(180deg,#000 70%,transparent 100%);
}
.ember-beam-gl,.ember-beam-css{position:absolute; inset:0; width:100%; height:100%}
.ember-beam-css{
  background:
    radial-gradient(ellipse 22% 18% at 50% 64%, rgba(153,202,255,.08), transparent 70%),
    conic-gradient(from 168deg at 50% -8%, transparent 0deg, rgba(181,217,255,.07) 10deg, rgba(230,242,255,.11) 12deg, rgba(181,217,255,.07) 14deg, transparent 24deg);
}
/* Behind the headline, rising above the composer — not under the glass, where blur turns it to mud */
.ember-word-gl{position:absolute; left:50%; top:22px; width:min(1180px,96%); height:215px; transform:translateX(-50%)}
.ember-word-css{
  position:absolute; left:50%; top:30px; transform:translateX(-50%);
  display:flex; white-space:nowrap; user-select:none;
  font-family:'Plus Jakarta Sans','Inter',sans-serif; font-weight:800; letter-spacing:-.02em; line-height:1;
  font-size:clamp(90px,15vw,250px);
  color:transparent; -webkit-text-stroke:1.2px rgba(140,196,255,.30);
  text-shadow:0 0 70px rgba(74,149,245,.18);
}
.ember-word-css span{display:inline-block}
html[data-theme="light"] .ember-beam-gl,
html[data-theme="light"] .ember-beam-css{display:none}
html[data-theme="light"] .ember-word-css{-webkit-text-stroke-color:rgba(20,85,160,.22); text-shadow:none}
html[data-theme="light"] .ember-word-gl{opacity:.45}

/* The composer is the hero standing in front of the type */
.gen-card{z-index:20}
.composer{box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 30px 80px -30px rgba(0,0,0,.9),0 0 50px -24px rgba(74,149,245,.14)}

/* Restraint: the brand orange is for actions, not for every surface */
.btn-watch{
  background:rgba(140,196,255,.10); color:#b5d9ff; border:1px solid rgba(140,196,255,.32);
  transition:background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn-watch:hover{background:var(--grad1); color:#fff; border-color:transparent; box-shadow:0 8px 22px -12px rgba(74,149,245,.6)}
html[data-theme="light"] .btn-watch{background:rgba(111,182,255,.08) !important; color:#2f7beb !important; border:1px solid rgba(74,149,245,.3) !important}
html[data-theme="light"] .btn-watch:hover{background:var(--grad1) !important; color:#fff !important}

/* ── Sidebar: grouped navigation in the style of the reference (Pollo-like) ── */
.sidebar{background:rgba(8,10,13,.94); padding:18px 12px 18px; gap:3px}
.sidebar-label{
  text-transform:none; letter-spacing:0; font-size:13px; font-weight:500;
  color:rgba(255,255,255,.42); padding:0 12px; margin:18px 0 6px;
}
.sidebar-link{padding:10px 12px; border-radius:11px; font-size:15px; font-weight:500; color:rgba(255,255,255,.84); gap:12px}
.sidebar-link .sidebar-icon,.sidebar-link .sidebar-icon svg{width:20px; height:20px; flex-basis:20px}
.sidebar-link:hover{background:rgba(255,255,255,.05); color:#fff}
.sidebar-link.active{
  background:linear-gradient(90deg,rgba(74,149,245,.16),rgba(74,149,245,.04)); color:#8cc4ff; font-weight:600;
  box-shadow:inset 0 0 0 1px rgba(140,196,255,.10);
}
.sidebar-link.active .sidebar-icon{color:#4a95f5; filter:drop-shadow(0 0 6px rgba(74,149,245,.45))}
.sidebar-link.active::before{display:none}
.sidebar-foot{display:flex; flex-wrap:wrap; gap:4px 12px; padding:14px 12px 4px; margin-top:auto}
.sidebar-foot a{font-size:12px; color:rgba(255,255,255,.38); text-decoration:none; transition:color .2s}
.sidebar-foot a:hover{color:#8cc4ff}
.sidebar-foot + .sidebar-plan-wrap{margin-top:10px}
html[data-theme="light"] .sidebar{background:#f3f7fb}
html[data-theme="light"] .sidebar-label{color:rgba(8,16,26,.45)}
html[data-theme="light"] .sidebar-link{color:rgba(8,16,26,.82)}
html[data-theme="light"] .sidebar-link:hover{background:rgba(8,16,26,.05); color:#08101a}
html[data-theme="light"] .sidebar-link.active{background:linear-gradient(90deg,rgba(74,149,245,.14),rgba(74,149,245,.03)); color:#2f7beb}
html[data-theme="light"] .sidebar-foot a{color:rgba(8,16,26,.42)}

/* ── My Videos as a chapter: big outlined title behind the header ── */
.videos-section{isolation:isolate}
.ember-chapter{
  position:absolute; right:24px; top:-6px; z-index:-1; pointer-events:none; user-select:none;
  font:800 clamp(56px,8vw,120px)/1 'Plus Jakarta Sans','Inter',sans-serif; letter-spacing:-.03em;
  color:transparent; -webkit-text-stroke:1px rgba(140,196,255,.16); white-space:nowrap;
}
.ember-chapter span{display:inline-block}
html[data-theme="light"] .ember-chapter{-webkit-text-stroke-color:rgba(20,85,160,.14)}

/* Card world: depth for hover/float lives in JS; give the grid perspective */
.videos-grid{perspective:1400px}
/* GSAP owns transform/opacity on cards; CSS keeps only colour transitions so the two never fight */
.video-card{will-change:transform; transition:border-color .3s, box-shadow .35s}

/* ── Closing title: surfaces through fog ── */
.ember-finale{
  position:relative; z-index:1; margin:10px auto 34px; max-width:840px; padding:46px 20px 30px;
  text-align:center; overflow:hidden; border-radius:20px; pointer-events:none;
}
.ember-finale-fog{
  position:absolute; inset:-30%; z-index:-1;
  background:
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(74,149,245,.20), transparent 70%),
    radial-gradient(ellipse 35% 28% at 72% 40%, rgba(47,123,235,.16), transparent 70%);
  filter:blur(28px);
  animation:ember-fog 18s ease-in-out infinite alternate;
}
@keyframes ember-fog{to{transform:translate3d(6%,-4%,0) scale(1.1)}}
.ember-finale-title{
  font:800 clamp(28px,4vw,46px)/1.05 'Plus Jakarta Sans','Inter',sans-serif; letter-spacing:-.03em;
  background:linear-gradient(180deg,#fff 30%,#b5d9ff 100%); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.ember-finale-sub{margin-top:10px; font-size:13px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.45)}
html[data-theme="light"] .ember-finale-title{background:linear-gradient(180deg,#08101a 30%,#2f7beb 100%); -webkit-background-clip:text; background-clip:text}
html[data-theme="light"] .ember-finale-sub{color:rgba(8,16,26,.45)}

@media (max-width:900px){
  .ember-word-gl{top:60px; height:140px}
  .ember-stage{height:540px}
  .ember-chapter{display:none}
}
/* Lite mode (set by ember-motion.js when there is no GPU or frames are slow):
   keep the look, stop the continuously repainting layers. */
.ember-lite body::before,
.ember-lite .composer::before,
.ember-lite .ember-finale-fog{animation:none}

@media (prefers-reduced-motion:reduce){
  .ember-finale-fog{animation:none}
}
