* { box-sizing:border-box; margin:0; padding:0; }
/* scale to 90% so it fits all screen sizes without scrolling */
html { font-size:90%; }
html, body { width:100%; height:100%; background:#e8e8e8; font-family:'IBM Plex Sans',sans-serif; }
body { display:flex; flex-direction:row; padding:0; overflow:hidden; height:100vh; }

/* ── LEFT PANEL — reel-themed grey ── */
.left-panel {
  width:260px; flex-shrink:0; height:100vh; overflow-y:auto;
  display:flex; flex-direction:column;
  background:#c8c4be;
  border-right:2px solid #6e6a66;
  position:relative;
}
.left-panel::-webkit-scrollbar { width:4px; }
.left-panel::-webkit-scrollbar-thumb { background:#9a9490; border-radius:2px; }

/* sprocket strips on left + right edges of panel */
.left-panel::before,
.left-panel::after {
  content:''; position:fixed; top:0; bottom:0; width:14px; z-index:10; pointer-events:none;
  background-color:#8a8480;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 4px,
    #e8e4de 4px, #e8e4de 11px,
    transparent 11px, transparent 16px
  );
}
.left-panel::before { left:0; }
.left-panel::after  { left:248px; }

.panel-section {
  padding:14px 18px 14px 26px;
  border-bottom:2px solid #9a9490;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 5px,
    rgba(0,0,0,0.03) 5px, rgba(0,0,0,0.03) 6px
  );
  position:relative;
}
.panel-section:last-child { border-bottom:none; }

.panel-label-big {
  font-size:14px; font-weight:700; color:#1a1612; margin-bottom:10px;
  font-family:'IBM Plex Sans',sans-serif;
}

.panel-eyebrow {
  font-size:9px; font-weight:700; letter-spacing:0.10em; text-transform:uppercase;
  color:#5a5450; margin-bottom:5px;
}


/* ── TWO MODE TOGGLE BUTTONS ── */
.mode-btns { display:flex; gap:0; margin-bottom:8px; }
.mode-btn {
  flex:1; cursor:pointer; user-select:none;
  padding:7px 6px; text-align:center;
  font-size:10px; font-weight:700; letter-spacing:0.04em;
  font-family:'IBM Plex Sans',sans-serif; color:#5a5450;
  background:#b0aca8; border:1px solid #9a9490;
  transition:background 0.12s, color 0.12s;
}
.mode-btn:first-child { border-right:none; }
.mode-btn.active { background:#1a1612; color:#f2ede6; border-color:#1a1612; }

/* reel-styled movie dropdown (same look as before) */
.reel-select-wrap { position:relative; user-select:none; }
.reel-trigger {
  width:100%; cursor:pointer; background:#b8b4b0;
  border:1px solid #9a9490; border-radius:0; overflow:hidden;
  display:flex; align-items:center; position:relative; height:34px;
}
.reel-trigger::before, .reel-trigger::after {
  content:''; position:absolute; top:0; bottom:0; width:13px;
  background-color:#8a8480;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0px, transparent 3px,
    #e8e4de 3px, #e8e4de 8px, transparent 8px, transparent 13px
  );
  opacity:0.95; z-index:1;
}
.reel-trigger::before { left:0; }
.reel-trigger::after  { right:0; }
.reel-trigger-inner {
  position:absolute; left:13px; right:13px; top:0; bottom:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 8px;
  background:#b8b4b0;
  background-image:repeating-linear-gradient(
    to bottom, transparent 0px, transparent 3px,
    rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px
  );
  z-index:2;
}
.reel-trigger-text {
  font-size:11px; font-weight:600; color:#1a1612;
  font-family:'IBM Plex Sans',sans-serif;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  max-width:calc(100% - 18px);
}
.reel-trigger-arrow {
  font-size:10px; color:#5a5450; flex-shrink:0; transition:transform 0.15s;
}
.reel-select-wrap.open .reel-trigger-arrow { transform:rotate(180deg); }
.reel-trigger:hover .reel-trigger-inner { background:#c4c0bc; }
.reel-dropdown {
  display:none; position:absolute; left:0; right:0; top:calc(100% + 3px);
  background:#b8b4b0; border:1px solid #9a9490; border-radius:0;
  overflow:hidden; z-index:200; max-height:240px; overflow-y:auto;
  box-shadow:0 4px 14px rgba(0,0,0,0.18);
}
.reel-select-wrap.open .reel-dropdown { display:block; }
.reel-dropdown::-webkit-scrollbar { width:4px; }
.reel-dropdown::-webkit-scrollbar-thumb { background:#9a9490; }
.sel-opt {
  display:flex; align-items:center; padding:7px 12px;
  font-size:11px; font-weight:500; color:#1a1612;
  font-family:'IBM Plex Sans',sans-serif; cursor:pointer;
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.sel-opt:last-child { border-bottom:none; }
.sel-opt:hover { background:#cac6c2; }
.sel-opt.selected { font-weight:700; background:#c4c0bc; }
.sel-opt::before {
  content:''; width:4px; height:4px; border-radius:1px;
  background:#6a6460; opacity:0.5; flex-shrink:0; margin-right:7px;
}
.sel-opt.selected::before { opacity:1; background:#1a1612; }

/* posters — vertical stack, poster centred */
.poster-stack { display:flex; flex-direction:column; gap:0; }
.poster-item {
  display:flex; flex-direction:column; align-items:center;
  padding:10px 0 12px;
  border-bottom:2px solid #9a9490;
}
.poster-item:last-child { border-bottom:none; padding-bottom:6px; }

.poster-badge {
  font-size:9px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  color:#fff; padding:3px 8px; margin-bottom:7px; display:inline-block;
  font-family:'IBM Plex Sans',sans-serif; border-radius:2px;
}
.poster-badge.orig   { background:#2e8b57; }
.poster-badge.remake { background:#c0392b; }

.film-title-above {
  font-size:11.5px; font-weight:700; color:#1a1612; line-height:1.3;
  text-align:center; margin-bottom:8px; padding:0 6px;
  font-family:'IBM Plex Sans',sans-serif; min-height:1.3em;
}

/* photo-frame style poster: no border-radius, black frame */
.poster-frame {
  width:130px; height:178px; border-radius:0;
  border:6px solid #1a1612;
  box-shadow:2px 2px 0 #5a5450, 4px 4px 0 #9a9490;
  overflow:hidden; background:#b0aca8; flex-shrink:0;
}
.poster-frame img { width:100%; height:100%; object-fit:cover; display:none; }
.poster-frame img.visible { display:block; }
.poster-ph {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg,#b8b4b0,#a0a09c);
  color:#3a3630; font-size:8.5px; text-align:center; padding:8px; line-height:1.6;
  font-family:'IBM Plex Sans',sans-serif;
}

.film-year { font-size:9px; color:#5a5450; font-weight:400; margin-top:6px; text-align:center; }

/* stat rows below each poster */
.film-stats { width:100%; margin-top:8px; display:flex; flex-direction:column; gap:0; }
.film-stat-chip {
  display:flex; align-items:center; justify-content:space-between;
  padding:5px 2px; border-bottom:1px solid rgba(0,0,0,0.1);
}
.film-stat-chip:last-child { border-bottom:none; }
.chip-label { font-size:11px; color:#2a2620; font-weight:600; font-family:'IBM Plex Sans',sans-serif; }
.chip-val {
  font-size:14px; font-weight:700; color:#1a1612;
  font-family:'IBM Plex Sans',sans-serif;
}
.chip-val.highlight-green { color:#1a5c38; }
.chip-val.highlight-red   { color:#8b2010; }

/* ── RIGHT SIDE ── */
.right-side {
  flex:1; display:flex; flex-direction:column;
  padding:16px 18px 10px 18px; overflow:hidden; min-width:0;
}
.right-header { margin-bottom:8px; flex-shrink:0; }
h1 {
  font-size:clamp(1.2rem,1.8vw,1.6rem); font-weight:700; color:#111;
  letter-spacing:-0.01em; line-height:1.3; font-family:'IBM Plex Sans',sans-serif;
}
.sub {
  font-size:clamp(1rem,1.35vw,1.2rem); color:#111; font-weight:700; margin-top:2px;
  font-family:'IBM Plex Sans',sans-serif;
}

.charts-row { display:flex; flex-direction:row; gap:4px; align-items:flex-start; flex:1; min-height:0; overflow:hidden; }
svg { display:block; }

/* ── FOOTER ── */
.footer {
  margin-top:8px; flex-shrink:0;
  display:flex; flex-direction:row; justify-content:space-between; align-items:flex-end;
  gap:16px;
}
.footer-left  { font-size:11.5px; font-weight:500; color:#333; line-height:1.6; flex:1; }
.footer-right { font-size:11.5px; font-weight:500; color:#333; text-align:right; line-height:1.6; }
.footer-right .attr-line { font-size:11px; font-weight:700; color:#111; }
