/* ===========================================================
   TOKENS
   =========================================================== */
:root{
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #161616;
  --text: #ffffff;
  --text-dim: #b8b8b8;
  --blue: #2f6fed;
  --blue-hover: #4a83f5;
  --blue-press: #2559c9;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 30px rgba(0,0,0,0.45);
  --shadow-elevated: 0 16px 60px rgba(0,0,0,0.55);
  --font-display: "Clash Display", "Cabinet Grotesk", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

::selection{ background: var(--blue); color:#fff; }

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

/* Focus visibility for keyboard nav */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--blue-hover);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===========================================================
   LETTER COLLAGE BACKGROUND
   =========================================================== */
.letter-field{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.letter-field img{
  position: absolute;
  opacity: 0.32;
  filter: grayscale(1) brightness(2.1) contrast(1.3);
  will-change: transform;
}
.letter-field::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(10,10,10,0.05), var(--bg) 82%),
    linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.55) 100%);
}

.page-shell{
  position: relative;
  z-index: 1;
}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header{
  position: sticky;
  top:0;
  z-index: 40;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 4px;
  padding: 14px 28px;
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
}

.brand-logo{
  height: 48px;
  width: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand-logo video, .brand-logo canvas, .brand-logo-seq{
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* ===========================================================
   BURGER BUTTON
   =========================================================== */
.burger-btn{
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(10,10,10,0.65);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .16s var(--ease);
}
.burger-btn:hover{
  background: rgba(255,255,255,0.06);
}
.burger-btn span{
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .26s var(--ease), opacity .2s var(--ease);
}
.burger-btn.active span:nth-child(1){
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.active span:nth-child(2){
  opacity: 0;
}
.burger-btn.active span:nth-child(3){
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================================================
   SIDE PANEL (left slide-out nav)
   =========================================================== */
.side-panel-backdrop{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
}
.side-panel-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

.side-panel{
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 91;
  width: 280px;
  max-width: 82vw;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 90px 18px 24px;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
}
.side-panel.open{
  transform: translateX(0);
}
.side-panel a{
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-dim);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.side-panel a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.side-panel a.active{
  background: rgba(47,111,237,0.16);
  color: #cfe0ff;
}
.side-panel-divider{
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 10px 0;
}
.side-panel-section{
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  padding: 6px 20px 2px;
}
.side-panel-credit{
  font-size: .72rem;
  color: rgba(255,255,255,.28);
  padding: 14px 20px 6px;
  line-height: 1.6;
}
.skorp7-credit{
  display: inline;
  text-decoration: none;
  white-space: nowrap;
}
.s7-skorp{
  color: rgba(255,255,255,.7);
  font-weight: 600;
}
.s7-seven{
  color: #FFE000;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255,224,0,.6);
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background .16s var(--ease), transform .12s var(--ease), box-shadow .16s var(--ease);
  box-shadow: 0 2px 12px rgba(47,111,237,0.28);
}
.btn:hover{ background: var(--blue-hover); transform: translateY(-1px); }
.btn:active{ background: var(--blue-press); transform: translateY(0); }
.btn.ghost{
  background: rgba(255,255,255,0.05);
  color: var(--text);
  box-shadow:none;
  border: 1px solid var(--border-strong);
}
.btn.ghost:hover{ background: rgba(255,255,255,0.1); }
.btn.sm{ padding: 8px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }

/* ===========================================================
   HERO
   =========================================================== */
.hero{
  padding: 96px 28px 72px;
  max-width: 1180px;
  margin: 0 auto;
  text-align:center;
}
.hero-eyebrow{
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color:#fff;
}
.hero p.lead{
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-actions{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}

.hero-video{
  margin: 48px auto 0;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  background:#000;
}
.news-panel{
  position:fixed;
  top:90px;
  right:24px;
  width:320px;
  max-width:calc(100vw - 48px);
  max-height:60vh;
  overflow-y:auto;
  z-index:50;
  text-align:left;
  background:rgba(10,10,10,0.9);
  border:1px solid var(--border-strong);
  border-radius:12px;
  padding:16px;
}
.news-panel-title{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight:700;
  color:#fff;
  margin:0 0 14px;
}
.news-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.news-empty{
  color: var(--text-dim);
  font-size:.88rem;
}
.news-item{
  display:flex;
  gap:12px;
  cursor:default;
}
.news-item.has-trailer{
  cursor:pointer;
}
.news-item-wrap:has(.has-trailer):hover{
  background: rgba(255,255,255,0.05);
}
.news-item-wrap{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
}
.news-item img{
  width:50px;
  height:50px;
  object-fit:cover;
  border-radius:8px;
  flex-shrink:0;
}
.news-item-body{
  min-width:0;
}
.news-item-preview{
  width:200px;
  max-width:200px;
  height:200px;
  max-height:200px;
  object-fit:cover;
  border-radius:8px;
  flex-shrink:0;
  background:#000;
}
.news-item-title{
  color:#fff;
  font-size:.92rem;
  font-weight:600;
  margin:0 0 4px;
}
.news-item-meta{
  color: var(--text-dim);
  font-size:.76rem;
  margin:0 0 4px;
}
.news-item-text{
  color: var(--text-dim);
  font-size:.82rem;
  line-height:1.4;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.news-item-link{
  color: var(--accent, #6ea8ff);
  font-size:.78rem;
  text-decoration:none;
  display:inline-block;
  margin-top:4px;
}
.news-trailer-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  z-index:200;
  align-items:center;
  justify-content:center;
  box-sizing: border-box;
  padding: 200px;
}
.news-trailer-overlay.open{
  display:flex;
}
.news-trailer-panel{
  position:relative;
  display:inline-block;
}
.news-trailer-panel video{
  width:min(calc(100vw - 400px), calc((100vh - 400px) * 4 / 3)); height:auto; object-fit:contain;
  display:block;
  border-radius:10px;
}
.news-trailer-close{
  position:absolute;
  top:-40px;
  right:0;
  background:transparent;
  border:none;
  color:#fff;
  font-size:2rem;
  line-height:1;
  cursor:pointer;
}
.hero-video video{
  width:100%;
  display:block;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-video video.content-fade-in{
  opacity: 1;
}

/* Hero loop frame */
.hero-loop{
  margin: 56px auto 0;
  max-width: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  background:#000;
}
.hero-loop video{ width:100%; display:block; }

/* ===========================================================
   SECTION / CONTAINER
   =========================================================== */
.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 24px;
  margin: 64px 0 28px;
  flex-wrap: wrap;
}
.section-head h2{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  margin:0;
  color:#fff;
}
.section-head p{
  color: var(--text-dim);
  margin: 6px 0 0;
  font-size: 0.95rem;
}

/* ===========================================================
   VIEW TOGGLE (raw list / columns)
   =========================================================== */
.view-toggle{
  display:inline-flex;
  padding: 4px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  gap: 4px;
}
.view-toggle button{
  border:none;
  background: transparent;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.view-toggle button.active{
  background: var(--blue);
  color: #fff;
}
.view-toggle button:not(.active):hover{
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* ===========================================================
   FILM LIST — RAW (rows)
   =========================================================== */
.film-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 90px;
}
.film-row{
  display:flex;
  align-items:center;
  gap: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .16s var(--ease);
}
.film-row:hover{
  border-color: var(--border-strong);
  background: #1a1a1a;
  transform: translateX(4px);
}
.film-row .thumb{
  width: 96px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow:hidden;
  flex-shrink:0;
  background:#000;
  position:relative;
}
.film-row .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.film-row .thumb .play-dot{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.25);
  opacity:0;
  transition: opacity .16s var(--ease);
}
.film-row:hover .thumb .play-dot{ opacity:1; }
.film-row .meta{ flex: 1; min-width:0; }
.film-row .meta h3{
  margin:0 0 4px;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 1.02rem;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.film-row .meta .sub{
  color: var(--text-dim);
  font-size: 0.82rem;
}
.film-row .duration{
  color: var(--text-dim);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  flex-shrink:0;
}
.film-row .arrow{
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  transition: background .16s var(--ease);
}
.film-row:hover .arrow{ background: var(--blue); }

/* ===========================================================
   FILM LIST — COLUMNS (grid)
   =========================================================== */
.film-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 90px;
}
.film-card{
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  display:flex;
  flex-direction: column;
}
.film-card:hover{
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.film-card .thumb{
  aspect-ratio: 16/10;
  background:#000;
  position: relative;
  overflow:hidden;
}
.film-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .4s var(--ease); }
.film-card:hover .thumb img{ transform: scale(1.05); }
.film-card .thumb .play-dot{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.2);
  opacity:0;
  transition: opacity .2s var(--ease);
}
.film-card:hover .thumb .play-dot{ opacity:1; }
.film-card .body{ padding: 18px 20px 20px; }
.film-card h3{
  margin:0 0 6px;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 1.08rem;
  color:#fff;
}
.film-card .sub{
  color: var(--text-dim);
  font-size: 0.84rem;
  display:flex;
  gap:8px;
  align-items:center;
}
.dot-sep::before{ content:"·"; margin-right:8px; opacity:.6; }

.play-icon{
  width: 46px; height:46px;
  border-radius:50%;
  background: var(--blue);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 20px rgba(47,111,237,0.5);
}

[hidden]{ display:none !important; }

/* ===========================================================
   PLAYER PAGE
   =========================================================== */
.player-shell{
  max-width: 1100px;
  margin: 40px auto 100px;
  padding: 0 28px;
}
.player-frame{
  position: relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  background:#000;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
}
.player-frame video{
  width:100%;
  display:block;
  aspect-ratio: 16/9;
  background:#000;
}
.custom-controls{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.player-frame:hover .custom-controls,
.player-frame:focus-within .custom-controls{
  opacity:1;
  transform: translateY(0);
}

.player-corner-logo{
  position:absolute;
  bottom:14px;
  right:14px;
  width:64px;
  height:auto;
  opacity:1;
  pointer-events:none;
  z-index:7;
  transition: opacity .16s var(--ease);
}
.player-frame:hover .player-corner-logo,
.player-frame:focus-within .player-corner-logo{
  opacity:0;
}
.player-frame:fullscreen .custom-controls,
.player-frame:-webkit-full-screen .custom-controls{
  bottom: 22px;
  left: 22px;
  right: 22px;
}

.ctrl-btn{
  width: 36px;
  height: 36px;
  flex-shrink:0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#fff;
  transition: background .16s var(--ease);
}
.ctrl-btn:hover{ background: var(--blue); }
#muteBtn, #muteBtn:hover{ background: #fff; }

.ctrl-time{
  font-size: 0.78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink:0;
  min-width: 88px;
}

.ctrl-seek{
  flex:1;
  appearance:none;
  -webkit-appearance:none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  cursor:pointer;
  outline:none;
}
.ctrl-seek::-webkit-slider-thumb{
  appearance:none;
  -webkit-appearance:none;
  width: 14px;
  height: 14px;
  border-radius:50%;
  background: var(--blue);
  border: 2px solid #fff;
  cursor:pointer;
  transition: transform .12s var(--ease);
}
.ctrl-seek::-webkit-slider-thumb:hover{ transform: scale(1.15); }
.ctrl-seek::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius:50%;
  background: var(--blue);
  border: 2px solid #fff;
  cursor:pointer;
}
.ctrl-seek::-moz-range-track{
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.vol-group{
  display:flex;
  align-items:center;
  gap: 6px;
}
.ctrl-volume{
  width: 70px;
  appearance:none;
  -webkit-appearance:none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
  cursor:pointer;
  outline:none;
}
.ctrl-volume::-webkit-slider-thumb{
  appearance:none;
  -webkit-appearance:none;
  width: 12px;
  height: 12px;
  border-radius:50%;
  background: var(--blue);
  border: 2px solid #fff;
  cursor:pointer;
}
.ctrl-volume::-moz-range-thumb{
  width: 12px;
  height: 12px;
  border-radius:50%;
  background: var(--blue);
  border: 2px solid #fff;
  cursor:pointer;
}
.ctrl-volume::-moz-range-track{
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.quality-group{
  position: relative;
}
.quality-menu{
  position:absolute;
  bottom: 46px;
  right: 0;
  min-width: 92px;
  border-radius: var(--radius-sm);
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  padding: 6px;
  display:flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-card);
}
.quality-option{
  border:none;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align:left;
  cursor:pointer;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.quality-option:hover{ background: rgba(255,255,255,0.08); color:#fff; }
.quality-option.active{ background: var(--blue); color:#fff; }

.player-meta{
  margin-top: 34px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.player-meta h1{
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight:700;
  margin: 0 0 10px;
  color:#fff;
}
.player-meta .info-line{
  color: var(--text-dim);
  font-size: 0.9rem;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.player-desc{
  margin-top: 20px;
  color: #d8d8d8;
  line-height: 1.7;
  font-size: 0.98rem;
  max-width: 760px;
}

.back-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 22px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.back-link:hover{ background: rgba(255,255,255,0.06); color:#fff; }

.up-next{
  margin-top: 80px;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 36px 28px 44px;
  text-align:center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* ===========================================================
   LOCANDINA (drag & drop, viewport-fit)
   =========================================================== */
.locandina-shell{
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.locandina-main{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 24px 20px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.locandina-head{
  margin: 18px 0 14px;
  flex-shrink: 0;
}
.locandina-head-actions{
  display:flex;
  gap: 10px;
}

.locandina-layout{
  flex: 1;
  min-height: 0;
  display:grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 22px;
  align-items: stretch;
}

.letter-palette{
  overflow-y: auto;
  display:flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-height: 0;
}
.palette-group-label{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.palette-group-row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.palette-letter{
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 6px;
  cursor: grab;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
  flex-shrink: 0;
}
.palette-letter:hover{
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.palette-letter:active{ cursor: grabbing; }
.palette-letter img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.locandina-canvas{
  position: relative;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-elevated);
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
}
.locandina-canvas img#locandinaImg{
  height:100%;
  width:auto;
  max-width:100%;
  object-fit: contain;
  display:block;
  pointer-events: none;
  user-select: none;
}

.poster-frame{
  position: relative;
  height: 100%;
  display: inline-block;
}
.poster-frame img#locandinaImg{
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  pointer-events: none;
  user-select: none;
}

.dropped-letter{
  position: absolute;
  width: 35%;
  transform: translate(-50%, -50%);
  cursor: grab;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  touch-action: none;
  user-select: none;
}
.dropped-letter.dragging{
  cursor: grabbing;
  z-index: 10;
}
.dropped-letter.letter-m{
  width: 52.5%; /* 35% * 1.5 */
}

.drag-ghost{
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
  opacity: 0.85;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.letter-context-menu{
  position: fixed;
  z-index: 1000;
  background: rgba(15,15,15,0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-shadow: var(--shadow-card);
}
.letter-context-menu button{
  display:block;
  width: 100%;
  border:none;
  background: transparent;
  color: #ff8a80;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align:left;
  cursor:pointer;
  white-space: nowrap;
  transition: background .14s var(--ease);
}
.letter-context-menu button:hover{
  background: rgba(255,255,255,0.08);
}

@media (max-width: 900px){
  .locandina-shell{ height: auto; overflow: visible; }
  .locandina-main{ padding: 0 18px 40px; }
  .locandina-layout{
    grid-template-columns: 1fr;
    height: auto;
  }
  .letter-palette{
    max-height: 260px;
  }
  .locandina-canvas{
    height: auto;
    aspect-ratio: 800/1276;
    display:block;
  }
  .poster-frame{
    height: auto;
    width: 100%;
    display:block;
  }
  .poster-frame img#locandinaImg{
    height:auto;
    width:100%;
  }
}
@media (max-width: 720px){
  .site-header{ padding: 12px 16px; }
  .brand-logo{ width:44px; height:44px; }
  .news-panel{ position:static; top:auto; right:auto; width:auto; max-width:calc(100vw - 36px); margin:24px auto 0; }
  .hero{ padding: 64px 18px 48px; }
  .container{ padding: 0 18px; }
  .film-row{ flex-wrap: wrap; }
  .film-row .thumb{ width: 100%; height: 160px; }
  .player-meta{ flex-direction: column; }
}

/* ===========================================================
   BACKSTAGE
   =========================================================== */
.backstage-detail{
  padding-top: 40px;
  padding-bottom: 90px;
}
.backstage-text{
  color: #d8d8d8;
  line-height: 1.7;
  font-size: 1rem;
  max-width: 760px;
  margin: 8px 0 36px;
}
.backstage-images{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.backstage-images img{
  width:100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display:block;
}
.backstage-empty{
  color: var(--text-dim);
  font-size: 0.92rem;
}

.backstage-video{
  max-width: 720px;
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  background: transparent;
}
.backstage-video video{
  width: 100%;
  display: block;
}

.ctrl-play-btn span{
  font-size: 15px;
  line-height: 1;
  user-select: none;
}

/* ===========================================================
   FULLSCREEN UP-NEXT REVEAL (YouTube-style scroll up)
   =========================================================== */
.fullscreen-reveal{
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.fullscreen-reveal-handle{
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 28px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: rgba(10,10,10,0.6);
  display: none;
  align-items: center;
  justify-content: center;
}
.fullscreen-reveal-grid{
  width: 100%;
  max-height: 46vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.92) 30%, rgba(10,10,10,0.97) 100%);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 40px 24px 24px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.fullscreen-reveal.open{
  pointer-events: auto;
}
.fullscreen-reveal.open .fullscreen-reveal-grid{
  pointer-events: auto;
}
.fullscreen-reveal .film-card{
  background: rgba(20,20,20,0.9);
}

.header-center-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  pointer-events: auto;
}
.header-social{
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-social a{
  display: inline-block;
  width: 20px;
  height: 20px;
  opacity: .7;
  transition: opacity .2s;
}
.header-social a:hover{ opacity: 1; }
.header-social img{ width: 100%; height: 100%; filter: invert(1); }
.header-center-logo img{
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ===========================================================
   INTRO SEQUENCE (homepage opening video)
   =========================================================== */
.intro-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .7s ease;
}
.intro-overlay video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 1s ease;
}
.intro-overlay video.content-fade-out{
  opacity: 0;
}
.intro-overlay.fade-out{
  opacity: 0;
  pointer-events: none;
}
.page-shell.intro-pending{
  visibility: hidden;
}

.hero-video{ position: relative; }
.hero-mute-btn{
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .16s var(--ease);
}
.hero-mute-btn:hover{ background: #fff; }
