:root {
  --bg-canvas: #0A0B0E;
  --bg-surface-1: #12141A;
  --bg-surface-2: #181B23;
  --bg-surface-3: #1E222D;
  --ivory: #F6F2EA;
  --cashmere: #A9A49B;
  --pewter: #6D6A64;
  --gold: #DFC086;
  --gold-light: #F3DDB0;
  --gold-deep: #9B783B;
  --garnet: #A82442;
  --celadon: #7FA89B;
  --hairline: rgba(223, 192, 134, 0.16);
  --hairline-strong: rgba(223, 192, 134, 0.34);
  --aura-color: rgba(223, 192, 134, 0.18);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --plyr-color-main: #DFC086;
  --plyr-video-background: #000000;
  --plyr-menu-background: #14171F;
  --plyr-menu-color: #F6F2EA;
  --plyr-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--ivory);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ambient-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% -8%, var(--aura-color) 0%, transparent 58%);
  transition: background 0.6s ease;
}

.film-grain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: radial-gradient(rgba(246, 242, 234, 0.5) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.atelier-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 11, 14, 0.82);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ivory);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(223, 192, 134, 0.24));
  transition: transform 180ms ease;
}

.brand-lockup:hover .brand-logo-img {
  transform: scale(1.05);
}

.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold-light);
  background: radial-gradient(circle at 30% 30%, #242733, #111319);
  border: 1px solid var(--gold);
  box-shadow: 0 0 18px rgba(223, 192, 134, 0.16);
}

.brand-copy { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.brand-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--gold); margin-top: 2px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(18, 20, 26, 0.85);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px;
}

.nav-pill {
  border: none;
  background: transparent;
  color: var(--cashmere);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-pill:hover { color: var(--ivory); }
.nav-pill.active {
  background: rgba(223, 192, 134, 0.14);
  color: var(--gold-light);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--pewter);
  pointer-events: none;
}

.search-box input {
  width: 220px;
  padding: 8px 12px 8px 34px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-surface-1);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, width 0.2s ease;
}

.search-box input:focus {
  border-color: var(--gold);
  width: 260px;
}

.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline-strong);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.coin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
}

.mono-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.coin-unit { font-family: var(--font-mono); font-size: 10px; color: var(--cashmere); }

.locale-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-surface-1);
  overflow: hidden;
}

.loc-btn {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--cashmere);
  text-decoration: none;
}

.loc-btn.active {
  background: var(--gold);
  color: var(--bg-canvas);
}

.ghost-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-surface-1);
  color: var(--ivory);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.ghost-btn:hover { border-color: var(--gold); color: var(--gold-light); }

.admin-badge-link {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(168, 36, 66, 0.55);
  background: rgba(168, 36, 66, 0.16);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.admin-badge-link:hover { background: var(--garnet); }

.atelier-main {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.loading-stage {
  min-height: 55vh;
  display: grid;
  place-items: center;
}

.gold-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid rgba(223, 192, 134, 0.2);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Hero Editorial Stage */
.hero-stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-surface-1);
  min-height: 460px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.hero-info {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  background: linear-gradient(90deg, rgba(10, 11, 14, 0.96) 0%, rgba(18, 20, 26, 0.82) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.72);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero-synopsis {
  color: var(--cashmere);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline);
  color: var(--cashmere);
  font-size: 12px;
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn-gold-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: var(--bg-canvas);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-gold-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(223, 192, 134, 0.28); }

.btn-velvet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-surface-2);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-velvet:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 20, 26, 0.92) 0%, rgba(18, 20, 26, 0.2) 45%, transparent 100%);
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  right: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(246, 242, 234, 0.28);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.hero-dot.active { width: 38px; background: var(--gold); }

/* Mood filter & Section Headers */
.mood-bar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 28px 0 6px;
}

.mood-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-surface-1);
  color: var(--cashmere);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mood-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-canvas);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 34px 0 16px;
}

.section-heading::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--gold);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

/* Horizontal Poster Grids & Top 10 Stroke Numerals */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 20px;
}

.top10-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}

.top10-item {
  position: relative;
  flex: 0 0 215px;
  padding-left: 34px;
  cursor: pointer;
}

.stroke-rank {
  position: absolute;
  left: 0;
  bottom: 34px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 0.85;
  color: rgba(10, 11, 14, 0.78);
  -webkit-text-stroke: 1.6px rgba(223, 192, 134, 0.88);
  pointer-events: none;
  user-select: none;
}

.poster-card {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.poster-card:hover { transform: translateY(-4px); }

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(10, 11, 14, 0.92) 100%);
}

.poster-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.78);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-light);
}

.poster-ep-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ivory);
  background: rgba(10, 11, 14, 0.7);
  padding: 3px 8px;
  border-radius: 6px;
}

.poster-title {
  margin: 10px 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ivory);
}

.poster-sub {
  font-size: 12px;
  color: var(--cashmere);
}

/* Screening Room Theater (/watch/{slug}) */
.theater-layout {
  display: grid;
  grid-template-columns: minmax(320px, 470px) 1fr;
  gap: 32px;
  align-items: start;
}

.stage-column {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cinema-frame-916 {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 9 / 16;
  max-height: 76vh;
  background: #040507;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

.cinema-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.cinema-frame-916 .plyr,
.cinema-frame-916 .plyr__video-wrapper,
.cinema-frame-916 .plyr video {
  width: 100%;
  height: 100%;
  background: #000;
}

.cinema-frame-916 .plyr video {
  object-fit: contain;
}

.cinema-frame-916 .video-hud-top {
  z-index: 4;
}

.cinema-frame-916:not(.is-landscape) .plyr__controls {
  flex-wrap: wrap;
  row-gap: 4px;
  padding: 18px 10px 10px;
}

.cinema-frame-916:not(.is-landscape) .plyr__progress__container {
  flex: 1 0 100%;
  order: -1;
  margin: 0 0 2px;
}

.cinema-frame-916:not(.is-landscape) .plyr__volume {
  max-width: 36px;
  min-width: 32px;
}

.cinema-frame-916:not(.is-landscape) .plyr__volume input[type='range'] {
  display: none;
}

.theater-layout.is-landscape {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
}

.theater-layout.is-landscape .cinema-frame-916,
.cinema-frame-916.is-landscape {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
}

.theater-layout.is-landscape .theater-controls {
  max-width: 100%;
}

.theater-layout.is-square {
  grid-template-columns: minmax(360px, 600px) 1fr;
}

.theater-layout.is-square .cinema-frame-916,
.cinema-frame-916.is-square {
  max-width: 580px;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 76vh;
}

.theater-layout.is-square .theater-controls {
  max-width: 580px;
}

.reels-box.is-landscape {
  grid-template-columns: minmax(300px, min(860px, 84vw)) auto;
}

.reels-box.is-square {
  grid-template-columns: minmax(300px, min(580px, 84vw)) auto;
}

.reels-box.is-landscape .cinema-frame-916,
.reels-box.is-square .cinema-frame-916 {
  max-width: 100%;
  width: 100%;
  max-height: 74vh;
}

.locked-veil {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.86);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  z-index: 4;
}

.video-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 3;
}

.hud-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.72);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-light);
}

.theater-controls {
  width: 100%;
  max-width: 430px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.ctrl-btn {
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--bg-surface-2);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ctrl-btn.active {
  background: rgba(223, 192, 134, 0.16);
  border-color: var(--gold);
  color: var(--gold-light);
}

.atelier-sidebar {
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 28px;
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ep-tile {
  padding: 12px 10px;
  border-radius: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline);
  color: var(--ivory);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}

.ep-tile:hover { border-color: var(--gold); }
.ep-tile.active {
  background: linear-gradient(135deg, rgba(223, 192, 134, 0.2), rgba(168, 36, 66, 0.16));
  border-color: var(--gold);
}

.ep-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.ep-badge { font-family: var(--font-mono); font-size: 10px; }
.ep-badge.free { color: var(--celadon); }
.ep-badge.locked { color: var(--garnet); }
.ep-badge.open { color: var(--gold-light); }

.cast-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.cast-item { display: flex; align-items: center; gap: 10px; background: var(--bg-surface-2); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--hairline); }
.cast-item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* 9:16 Reels Stream View */
.reels-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.reels-box {
  display: grid;
  grid-template-columns: minmax(300px, 420px) auto;
  gap: 18px;
  align-items: end;
}

.reels-side-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-surface-1);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.rail-circle-btn.liked { background: rgba(168, 36, 66, 0.35); border-color: var(--garnet); color: #fff; }
.rail-circle-btn.saved { background: rgba(223, 192, 134, 0.24); border-color: var(--gold); color: var(--gold-light); }

.comments-panel {
  margin-top: 28px;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}

.comment-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.comment-textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-surface-2);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
}

.comment-textarea:focus {
  border-color: var(--gold);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline);
}

.comment-card.pinned {
  border-color: var(--gold);
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface-3);
  border: 1px solid var(--hairline-strong);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.comment-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ivory);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-badge-vip {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg-canvas);
  font-weight: 700;
}

.comment-badge-pin {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(223, 192, 134, 0.16);
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.comment-delete-btn {
  background: transparent;
  border: none;
  color: var(--pewter);
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 6px;
}

.comment-delete-btn:hover {
  color: var(--garnet);
}

/* Rewards 7-Day Filmstrip Board */
.filmstrip-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  padding: 20px 14px;
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 16px;
  background-image:
    repeating-linear-gradient(90deg, rgba(223, 192, 134, 0.25) 0 10px, transparent 10px 22px),
    repeating-linear-gradient(90deg, rgba(223, 192, 134, 0.25) 0 10px, transparent 10px 22px);
  background-size: 100% 5px, 100% 5px;
  background-position: 0 7px, 0 calc(100% - 7px);
  background-repeat: no-repeat;
}

.film-frame {
  padding: 14px 8px;
  border-radius: 10px;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline);
  text-align: center;
}

.film-frame.claimed { border-color: var(--celadon); background: rgba(127, 168, 155, 0.14); }
.film-frame.today { border-color: var(--gold); box-shadow: 0 0 18px rgba(223, 192, 134, 0.22); }
.film-frame.golden { border-color: var(--gold-light); }

/* Wallet & Gold Foil Card */
.gold-foil-card {
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #211D15 0%, #15171F 55%, #26161C 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pack-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.pack-card.featured { border-color: var(--gold); }

.vip-expiry-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--celadon);
  margin-top: 8px;
}

.vip-status-banner {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--celadon);
  color: var(--ivory);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-status-banner.renew-ready {
  border-color: var(--cognac);
  color: var(--gold-light);
}

.pack-card.vip-locked {
  opacity: 0.68;
  border-color: var(--hairline);
}

.btn-vip-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(127, 168, 155, 0.45);
  background: rgba(127, 168, 155, 0.14);
  color: var(--celadon);
  font-weight: 600;
  font-size: 13px;
  cursor: not-allowed;
  width: 100%;
}

/* Perforated Ticket / Modal Card */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.hidden { display: none; }

.modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  padding: 26px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.ticket-divider {
  border: none;
  border-top: 1.5px dashed var(--hairline-strong);
  margin: 18px -26px;
}

.qr-frame {
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  width: 210px;
  height: 210px;
  margin: 14px auto;
  display: grid;
  place-items: center;
}

.qr-frame img { width: 100%; height: 100%; object-fit: contain; }

.info-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface-2);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  margin-bottom: 8px;
}

.form-field {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-surface-2);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 14px;
  margin-bottom: 12px;
}

.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.toast-notice.hidden { display: none; }

.license-strip {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline);
}

.license-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.license-link {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.license-link:hover { text-decoration: underline; }

.license-credit {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cashmere);
}

/* Real Star Rating Picker */
.rating-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline);
}

.rating-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.rating-score-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
}

.rating-big-score {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--gold-light);
}

.rating-stars-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.star-pick-btn {
  border: 1px solid var(--hairline);
  background: var(--bg-surface-2);
  color: var(--pewter);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.star-pick-btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.star-pick-btn.filled { color: var(--gold); border-color: rgba(223, 192, 134, 0.45); background: rgba(223, 192, 134, 0.12); }
.star-pick-btn.hover { color: var(--gold-light); border-color: var(--gold-light); }

@media (max-width: 960px) {
  .hero-stage { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; height: 280px; order: -1; }
  .hero-info { padding: 26px; }
  .theater-layout,
  .theater-layout.is-landscape,
  .theater-layout.is-square { grid-template-columns: 1fr; }
  .stage-column { position: static; }
  .filmstrip-board { grid-template-columns: repeat(4, 1fr); }
  .reels-box,
  .reels-box.is-landscape,
  .reels-box.is-square { grid-template-columns: 1fr; justify-items: center; }
  .reels-side-rail { flex-direction: row; }
}

@media (max-width: 768px) {
  .header-inner { padding: 10px 14px; gap: 10px; }
  .main-nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .main-nav .nav-pill { white-space: nowrap; flex-shrink: 0; font-size: 12px; padding: 7px 12px; }
  .header-actions { width: 100%; margin-left: 0; gap: 8px; }
  .search-box { flex: 1 1 100%; }
  .search-box input, .search-box input:focus { width: 100%; }
  .atelier-main { padding: 18px 14px 56px; }
  .cinema-frame-916,
  .cinema-frame-916.is-landscape,
  .cinema-frame-916.is-square { max-width: 100%; width: 100%; }
  .cinema-frame-916.is-landscape { max-height: 56vh; }
  .cinema-frame-916.is-square { max-height: 62vh; }
  .reels-box.is-landscape,
  .reels-box.is-square { grid-template-columns: 1fr; width: 100%; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filmstrip-board { grid-template-columns: repeat(2, 1fr); }
}

/* User Header Dropdown Menu & Role-Gated Admin Dashboard Entry */
.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 195px;
  background: var(--bg-surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-menu.hidden,
.admin-badge-link.hidden,
.user-dropdown-item.hidden {
  display: none !important;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
}

.user-dropdown-admin {
  color: var(--gold);
  font-weight: 600;
}

.user-dropdown-logout {
  border-top: 1px solid var(--hairline);
  margin-top: 2px;
  padding-top: 10px;
}
