.cinema-page {
  --cinema-ink: #f8f1e8;
  --cinema-muted: #b9afaa;
  --cinema-wine: #8b2942;
  --cinema-red: #cf4d55;
  --cinema-gold: #e9b96e;
  --cinema-night: #15131a;
  --cinema-panel: #201c24;
  --cinema-line: rgba(255, 255, 255, 0.1);
  color: var(--cinema-ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(207, 77, 85, 0.19), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(233, 185, 110, 0.12), transparent 25%),
    linear-gradient(160deg, #17141b 0%, #0e0d12 100%);
  border: 1px solid rgba(87, 62, 72, 0.3);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(49, 24, 32, 0.18);
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

body.cinema-mode .live2d-dock {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.cinema-page::before {
  background-image: repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, 0.016) 52px 53px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.cinema-kicker {
  color: var(--cinema-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.cinema-marquee {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) minmax(170px, 220px);
  min-height: 345px;
  padding: 46px 48px 42px;
  position: relative;
  z-index: 1;
}

.cinema-marquee::after {
  background: linear-gradient(90deg, transparent, rgba(233, 185, 110, 0.46), transparent);
  bottom: 0;
  content: "";
  height: 1px;
  left: 4%;
  position: absolute;
  right: 4%;
}

.cinema-marquee-copy h3 {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 18px 0 16px;
  max-width: 620px;
}

.cinema-marquee-copy { text-align: center; }

.cinema-marquee-copy > p {
  color: var(--cinema-muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 620px;
}

.cinema-marquee-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.cinema-marquee-stats span {
  align-items: baseline;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--cinema-line);
  border-radius: 999px;
  color: var(--cinema-muted);
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  padding: 8px 14px;
}

.cinema-marquee-stats strong {
  color: #fff;
  font-size: 17px;
}

.cinema-projector {
  filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.48));
  height: 190px;
  margin-inline: auto;
  position: relative;
  width: 238px;
}

.cinema-projector::before {
  background: linear-gradient(145deg, #52464c, #211c23 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px 22px 16px 16px;
  bottom: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.13);
  content: "";
  height: 92px;
  left: 22px;
  position: absolute;
  width: 178px;
}

.cinema-projector::after {
  background: linear-gradient(90deg, rgba(245, 202, 121, 0.48), rgba(245, 202, 121, 0));
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%);
  content: "";
  height: 120px;
  left: 190px;
  opacity: 0.6;
  position: absolute;
  top: 58px;
  width: 150px;
}

.cinema-reel {
  background: radial-gradient(circle, #1b181e 0 12%, transparent 13% 25%, #2f2931 26% 35%, transparent 36%), linear-gradient(145deg, #66575d, #29242b);
  border: 3px solid #77686c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px #2d272e, 0 6px 12px rgba(0, 0, 0, 0.35);
  height: 92px;
  position: absolute;
  top: 5px;
  width: 92px;
  z-index: 2;
}

.cinema-reel-one { left: 20px; }
.cinema-reel-two { right: 26px; transform: scale(0.84); }
.cinema-projector > i {
  background: #e7b86d;
  border-radius: 50%;
  bottom: 52px;
  box-shadow: 0 0 18px rgba(233, 185, 110, 0.9);
  height: 18px;
  position: absolute;
  right: 28px;
  width: 18px;
  z-index: 4;
}

.cinema-marquee-art {
  filter: drop-shadow(0 22px 28px rgba(91, 49, 62, 0.2));
  margin-inline: auto;
  position: relative;
  width: min(100%, 210px);
}

.cinema-marquee-art::before {
  background: linear-gradient(135deg, rgba(224, 111, 140, 0.25), rgba(235, 164, 99, 0.22));
  border-radius: 28px;
  content: "";
  inset: -10px;
  position: absolute;
  transform: rotate(3deg);
}

.cinema-marquee-art.is-left::before { transform: rotate(-3deg); }

.cinema-marquee-art img {
  aspect-ratio: 1;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  display: block;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.cinema-series-preview {
  background: #f4e9e5;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  width: 100%;
}

.cinema-poster-empty {
  background: linear-gradient(145deg, rgba(236, 215, 212, 0.72), rgba(255, 250, 247, 0.92));
  height: 100%;
  width: 100%;
}

.cinema-section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  padding: 38px 48px 20px;
  position: relative;
  z-index: 1;
}

.cinema-section-heading span,
.cinema-admin-library header span {
  color: var(--cinema-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cinema-section-heading h3 {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 28px;
  margin: 6px 0 0;
}

.cinema-admin-open,
.cinema-empty-library button,
.cinema-error button {
  background: transparent;
  border: 1px solid rgba(233, 185, 110, 0.48);
  border-radius: 999px;
  color: var(--cinema-gold);
  cursor: pointer;
  font-weight: 900;
  padding: 10px 17px;
}

.cinema-admin-open:hover,
.cinema-empty-library button:hover,
.cinema-error button:hover {
  background: var(--cinema-gold);
  color: #281d1b;
}

.cinema-series-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 48px 54px;
  position: relative;
  z-index: 1;
}

.cinema-series-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--cinema-line);
  border-radius: 18px;
  color: inherit;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.cinema-series-card:hover {
  border-color: rgba(233, 185, 110, 0.52);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.27);
  transform: translateY(-5px);
}

.cinema-series-poster {
  aspect-ratio: 16 / 9;
  background: #29232b;
  overflow: hidden;
  position: relative;
}

.cinema-series-poster > img,
.cinema-poster-placeholder {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cinema-series-card:hover .cinema-series-poster > img { transform: scale(1.035); }
.cinema-series-poster > img { transition: transform 320ms ease; }

.cinema-poster-placeholder {
  align-items: center;
  background:
    radial-gradient(circle at 65% 30%, rgba(244, 191, 107, 0.32), transparent 20%),
    linear-gradient(140deg, #5d263a, #211822 70%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cinema-poster-placeholder span {
  color: #f3c97f;
  font-family: Georgia, serif;
  font-size: 28px;
}

.cinema-poster-placeholder strong {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  letter-spacing: 0.4em;
  margin-top: 5px;
}

.cinema-episode-badge {
  backdrop-filter: blur(10px);
  background: rgba(14, 12, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  bottom: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  left: 12px;
  padding: 6px 10px;
  position: absolute;
}

.cinema-play-badge {
  align-items: center;
  background: rgba(233, 185, 110, 0.9);
  border-radius: 50%;
  color: #241719;
  display: flex;
  font-size: 12px;
  height: 38px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  transform: translateY(-5px);
  transition: 180ms ease;
  width: 38px;
}

.cinema-series-card:hover .cinema-play-badge { opacity: 1; transform: translateY(0); }

.cinema-series-copy { padding: 18px; }
.cinema-series-copy > span {
  color: var(--cinema-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cinema-series-copy h4 {
  color: #fff;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 21px;
  line-height: 1.35;
  margin: 7px 0 8px;
}

.cinema-series-copy p {
  color: var(--cinema-muted);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cinema-series-copy small {
  border-top: 1px solid var(--cinema-line);
  color: #d4ccc8;
  display: block;
  font-size: 11px;
  margin-top: 14px;
  overflow: hidden;
  padding-top: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-empty-library,
.cinema-error {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  padding: 48px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.cinema-empty-library > span,
.cinema-error > span { color: var(--cinema-gold); font-size: 10px; font-weight: 900; letter-spacing: 0.22em; }
.cinema-empty-library h3,
.cinema-error h3 { font-family: Georgia, "Noto Serif SC", serif; font-size: 30px; margin: 10px 0; }
.cinema-empty-library p,
.cinema-error p { color: var(--cinema-muted); margin: 0 0 22px; }

.cinema-breadcrumb {
  align-items: center;
  border-bottom: 1px solid var(--cinema-line);
  display: flex;
  gap: 10px;
  padding: 18px 38px;
  position: relative;
  z-index: 2;
}

.cinema-breadcrumb > button:first-child {
  background: none;
  border: 0;
  color: var(--cinema-gold);
  cursor: pointer;
  font-weight: 900;
  padding: 0;
}

.cinema-breadcrumb > span { color: #6f676d; }
.cinema-breadcrumb > strong { color: #d7cfca; font-size: 12px; }
.cinema-breadcrumb .cinema-admin-open { margin-left: auto; }

.cinema-series-hero {
  align-items: center;
  background: linear-gradient(90deg, rgba(118, 35, 59, 0.28), transparent 60%);
  display: grid;
  gap: 26px;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 30px 40px;
  position: relative;
  z-index: 1;
}

.cinema-series-hero-poster {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.cinema-series-hero-poster > img,
.cinema-series-hero-poster > div { height: 100%; object-fit: cover; width: 100%; }
.cinema-series-hero h3 { font-family: Georgia, "Noto Serif SC", serif; font-size: 35px; margin: 7px 0 8px; }
.cinema-series-hero p { color: var(--cinema-muted); line-height: 1.7; margin: 0; max-width: 760px; }
.cinema-series-hero > div:last-child > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.cinema-series-hero > div:last-child > div span { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--cinema-line); border-radius: 999px; color: #ddd3ce; font-size: 11px; padding: 6px 10px; }

.cinema-watch-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 300px;
  padding: 34px 38px 48px;
  position: relative;
  z-index: 1;
}

.cinema-screen-column { min-width: 0; }
.cinema-screen-frame {
  background: #050507;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 50px rgba(139, 41, 66, 0.14);
  overflow: hidden;
}

.cinema-screen-top {
  align-items: center;
  background: linear-gradient(90deg, #1d1920, #0d0c10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
}

.cinema-screen-top span { color: var(--cinema-red); font-size: 9px; font-weight: 900; letter-spacing: 0.18em; }
.cinema-screen-top strong { color: #beb4b0; font-size: 11px; }
.cinema-screen-frame video { aspect-ratio: 16 / 9; background: #000; display: block; height: auto; object-fit: contain; width: 100%; }

.cinema-episode-heading { padding: 24px 4px 8px; }
.cinema-episode-heading > span { color: var(--cinema-gold); font-size: 10px; font-weight: 900; letter-spacing: 0.15em; }
.cinema-episode-heading h3 { font-family: Georgia, "Noto Serif SC", serif; font-size: 30px; margin: 7px 0; }
.cinema-episode-heading p { color: var(--cinema-muted); margin: 0; }

.cinema-author-note,
.cinema-script-panel,
.cinema-comments {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--cinema-line);
  border-radius: 16px;
  margin-top: 18px;
}

.cinema-author-note { border-left: 3px solid var(--cinema-gold); padding: 20px 22px; }
.cinema-author-note header,
.cinema-comments > header { align-items: center; display: flex; justify-content: space-between; }
.cinema-author-note header span { color: var(--cinema-gold); font-size: 12px; font-weight: 900; }
.cinema-author-note header small { color: #6f666b; font-size: 9px; letter-spacing: 0.15em; }
.cinema-author-note p { color: #e2d9d3; line-height: 1.9; margin: 12px 0 0; white-space: pre-wrap; }

.cinema-script-panel { overflow: hidden; }
.cinema-script-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 18px 22px;
}

.cinema-script-panel summary::-webkit-details-marker { display: none; }
.cinema-script-panel summary span { display: grid; gap: 3px; }
.cinema-script-panel summary strong { color: #f2e8e1; font-size: 14px; }
.cinema-script-panel summary small { color: var(--cinema-muted); font-size: 11px; }
.cinema-script-panel summary i { color: var(--cinema-gold); font-size: 22px; font-style: normal; transition: transform 180ms ease; }
.cinema-script-panel[open] summary i { transform: rotate(45deg); }
.cinema-script-copy { border-top: 1px solid var(--cinema-line); color: #ddd3cd; line-height: 2; max-height: 560px; overflow: auto; padding: 22px; white-space: pre-wrap; }

.cinema-episode-list {
  align-self: start;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--cinema-line);
  border-radius: 16px;
  max-height: 690px;
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.cinema-episode-list > header { align-items: center; border-bottom: 1px solid var(--cinema-line); display: flex; justify-content: space-between; padding: 16px; }
.cinema-episode-list > header span { color: #fff; font-weight: 900; }
.cinema-episode-list > header strong { color: var(--cinema-muted); font-size: 11px; }
.cinema-episode-list > div { max-height: 620px; overflow: auto; padding: 8px; }

.cinema-episode-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 11px;
  grid-template-columns: 35px minmax(0, 1fr) 18px;
  padding: 11px 9px;
  text-align: left;
  width: 100%;
}

.cinema-episode-item:hover { background: rgba(255, 255, 255, 0.05); }
.cinema-episode-item.is-active { background: linear-gradient(90deg, rgba(139, 41, 66, 0.5), rgba(139, 41, 66, 0.12)); }
.cinema-episode-item > span { color: var(--cinema-gold); font-family: Georgia, serif; font-size: 18px; }
.cinema-episode-item div { display: grid; gap: 3px; min-width: 0; }
.cinema-episode-item strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinema-episode-item small { color: var(--cinema-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinema-episode-item > i { color: transparent; font-size: 9px; font-style: normal; }
.cinema-episode-item.is-active > i { color: var(--cinema-gold); }

.cinema-comments { padding: 22px; }
.cinema-comments > header span { color: var(--cinema-gold); font-size: 10px; font-weight: 900; letter-spacing: 0.15em; }
.cinema-comments > header h3 { font-family: Georgia, "Noto Serif SC", serif; font-size: 23px; margin: 4px 0 0; }
.cinema-comments > header > small { background: rgba(233, 185, 110, 0.1); border: 1px solid rgba(233, 185, 110, 0.25); border-radius: 999px; color: var(--cinema-gold); font-size: 10px; padding: 5px 9px; }

.cinema-comment-form { display: grid; gap: 9px; grid-template-columns: 170px minmax(0, 1fr); margin-top: 18px; }
.cinema-comment-form input,
.cinema-comment-form textarea,
.cinema-admin-card input,
.cinema-admin-card textarea,
.cinema-admin-card select,
.cinema-admin-login input[type="password"] {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  outline: none;
  padding: 11px 12px;
}

.cinema-comment-form textarea { grid-row: span 2; min-height: 82px; resize: vertical; }
.cinema-comment-form input:focus,
.cinema-comment-form textarea:focus,
.cinema-admin-card input:focus,
.cinema-admin-card textarea:focus,
.cinema-admin-card select:focus { border-color: rgba(233, 185, 110, 0.65); }
.cinema-comment-form > div { align-items: center; display: flex; grid-column: 1 / -1; justify-content: space-between; }
.cinema-comment-form > div span { color: var(--cinema-muted); font-size: 11px; }
.cinema-comment-form button,
.cinema-admin-card button[type="submit"],
.cinema-admin-login button { background: linear-gradient(135deg, var(--cinema-red), var(--cinema-wine)); border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-weight: 900; padding: 10px 18px; }
.cinema-comment-form button:disabled,
.cinema-admin-card button:disabled { cursor: wait; opacity: 0.55; }
.cinema-comment-list { display: grid; gap: 10px; margin-top: 20px; }
.cinema-comment-list article { background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 14px 16px; }
.cinema-comment-list article > div { align-items: center; display: flex; gap: 10px; }
.cinema-comment-list strong { color: #fff; font-size: 13px; }
.cinema-comment-list time { color: #756c71; font-size: 10px; }
.cinema-comment-list p { color: #d7ceca; line-height: 1.7; margin: 8px 0 0; white-space: pre-wrap; }
.cinema-no-comments { color: var(--cinema-muted); font-size: 12px; margin: 4px 0; text-align: center; }

.cinema-loading {
  align-items: center;
  background: linear-gradient(145deg, #1b171e, #0d0c10);
  border-radius: 24px;
  color: #cfc4be;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 500px;
}

.cinema-loading span {
  animation: cinema-spin 1s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  border-top-color: #e9b96e;
  height: 30px;
  width: 30px;
}

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

.cinema-admin-modal { inset: 0; position: fixed; z-index: 1000; }
.cinema-admin-backdrop { backdrop-filter: blur(6px); background: rgba(8, 7, 10, 0.72); inset: 0; position: absolute; }
.cinema-admin-drawer {
  background: #17141a;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  bottom: 0;
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.45);
  color: #f8f1e8;
  max-width: 980px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: min(94vw, 980px);
}

.cinema-admin-drawer > header { align-items: center; background: rgba(255, 255, 255, 0.025); border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; padding: 20px 26px; position: sticky; top: 0; z-index: 5; }
.cinema-admin-drawer > header span { color: #e9b96e; font-size: 9px; font-weight: 900; letter-spacing: 0.18em; }
.cinema-admin-drawer > header h3 { font-family: Georgia, "Noto Serif SC", serif; font-size: 22px; margin: 4px 0 0; }
.cinema-admin-drawer > header > button { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; color: #fff; cursor: pointer; font-size: 22px; height: 38px; width: 38px; }
.cinema-admin-body { padding: 24px; }
.cinema-admin-loading { color: #b9afaa; padding: 80px 20px; text-align: center; }

.cinema-admin-login { background: #211d24; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; display: grid; gap: 13px; margin: 80px auto; max-width: 440px; padding: 28px; }
.cinema-admin-login > span { color: #e9b96e; font-size: 10px; font-weight: 900; letter-spacing: 0.15em; }
.cinema-admin-login h4 { font-family: Georgia, "Noto Serif SC", serif; font-size: 25px; margin: 0; }
.cinema-admin-login p { color: #b9afaa; line-height: 1.6; margin: 0; }
.cinema-admin-login label { align-items: center; color: #b9afaa; display: flex; font-size: 12px; gap: 8px; }

.cinema-admin-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.cinema-admin-toolbar span { color: #9dd6aa; font-size: 12px; font-weight: 900; }
.cinema-admin-toolbar button { background: transparent; border: 0; color: #b9afaa; cursor: pointer; text-decoration: underline; }
.cinema-admin-message { background: rgba(89, 151, 106, 0.15); border: 1px solid rgba(112, 187, 132, 0.3); border-radius: 10px; color: #bde6c8; margin-bottom: 14px; padding: 11px 14px; }
.cinema-admin-message.is-error { background: rgba(191, 64, 73, 0.15); border-color: rgba(225, 91, 101, 0.32); color: #ffb8be; }

.cinema-admin-forms { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cinema-admin-card { align-content: start; background: #211d24; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; display: grid; gap: 13px; padding: 20px; }
.cinema-admin-card header { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 13px; }
.cinema-admin-card header span { color: #e9b96e; font-size: 9px; font-weight: 900; letter-spacing: 0.17em; }
.cinema-admin-card h4 { font-family: Georgia, "Noto Serif SC", serif; font-size: 21px; margin: 4px 0 0; }
.cinema-admin-card label { color: #cfc5c0; display: grid; font-size: 11px; font-weight: 800; gap: 6px; }
.cinema-admin-card textarea { min-height: 82px; resize: vertical; }
.cinema-admin-card .cinema-script-input { min-height: 140px; }
.cinema-admin-card select option { background: #211d24; }
.cinema-admin-two { display: grid; gap: 10px; grid-template-columns: 1fr 1.4fr; }
.cinema-file-field { background: rgba(255, 255, 255, 0.025); border: 1px dashed rgba(233, 185, 110, 0.3); border-radius: 10px; padding: 11px; }
.cinema-file-field input { background: transparent; border: 0; padding: 3px 0; }
.cinema-file-field span { color: #8d8388; font-size: 10px; font-weight: 500; }
.cinema-file-field.is-required { border-color: rgba(207, 77, 85, 0.45); }
.cinema-admin-submit { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.cinema-admin-submit > span { color: #b9afaa; font-size: 10px; line-height: 1.45; }
.cinema-upload-progress { background: rgba(255, 255, 255, 0.07); border-radius: 999px; height: 20px; overflow: hidden; position: relative; }
.cinema-upload-progress i { background: linear-gradient(90deg, #8b2942, #e9b96e); bottom: 0; left: 0; position: absolute; top: 0; transition: width 150ms ease; width: 0; }
.cinema-upload-progress span { color: #fff; font-size: 9px; font-weight: 900; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 1; }

.cinema-admin-library { background: #211d24; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; margin-top: 16px; padding: 20px; }
.cinema-admin-library > header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 12px; }
.cinema-admin-library h4 { font-family: Georgia, "Noto Serif SC", serif; font-size: 21px; margin: 4px 0 0; }
.cinema-admin-library > header strong { color: #b9afaa; font-size: 11px; }
.cinema-admin-library > p { color: #b9afaa; }
.cinema-admin-series-row { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 0; }
.cinema-admin-series-head { align-items: center; display: flex; justify-content: space-between; }
.cinema-admin-series-head > div { display: grid; gap: 3px; }
.cinema-admin-series-head strong { color: #fff; }
.cinema-admin-series-head span { color: #9f959a; font-size: 10px; }
.cinema-admin-series-head button,
.cinema-admin-episode-row button { background: transparent; border: 1px solid rgba(233, 101, 111, 0.28); border-radius: 999px; color: #e99198; cursor: pointer; font-size: 10px; padding: 5px 9px; }
.cinema-admin-episode-row { align-items: center; background: rgba(255, 255, 255, 0.025); border-radius: 9px; display: grid; gap: 8px; grid-template-columns: 55px minmax(0, 1fr) 95px auto; margin-top: 8px; padding: 9px 10px; }
.cinema-admin-episode-row > span { color: #e9b96e; font-size: 10px; }
.cinema-admin-episode-row > strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cinema-admin-episode-row > small { color: #8f858a; font-size: 9px; text-align: right; }

@media (max-width: 980px) {
  .cinema-series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cinema-watch-grid { grid-template-columns: 1fr; }
  .cinema-episode-list { max-height: 360px; position: static; }
  .cinema-episode-list > div { max-height: 290px; }
  .cinema-admin-forms { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cinema-page { border-radius: 20px; }
  .cinema-marquee { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: auto; padding: 34px 24px 32px; }
  .cinema-marquee-copy { grid-column: 1 / -1; grid-row: 1; }
  .cinema-marquee-art { grid-row: 2; width: min(100%, 180px); }
  .cinema-marquee-copy h3 { font-size: 36px; }
  .cinema-section-heading { padding: 28px 20px 16px; }
  .cinema-series-grid { grid-template-columns: 1fr; padding: 0 20px 36px; }
  .cinema-series-card { display: grid; grid-template-columns: 145px minmax(0, 1fr); }
  .cinema-series-poster { aspect-ratio: auto; min-height: 150px; }
  .cinema-series-copy h4 { font-size: 18px; }
  .cinema-breadcrumb { padding: 14px 18px; }
  .cinema-breadcrumb > strong { display: none; }
  .cinema-series-hero { gap: 16px; grid-template-columns: 105px minmax(0, 1fr); padding: 24px 18px; }
  .cinema-series-hero h3 { font-size: 25px; }
  .cinema-series-hero p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
  .cinema-watch-grid { padding: 22px 14px 32px; }
  .cinema-screen-frame { border-radius: 11px; }
  .cinema-episode-heading h3 { font-size: 25px; }
  .cinema-comment-form { grid-template-columns: 1fr; }
  .cinema-comment-form textarea { grid-row: auto; }
  .cinema-admin-body { padding: 16px; }
  .cinema-admin-drawer { width: 100vw; }
  .cinema-admin-two { grid-template-columns: 1fr; }
  .cinema-admin-episode-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .cinema-admin-episode-row small { display: none; }
}

@media (max-width: 480px) {
  .cinema-marquee-stats { flex-wrap: wrap; }
  .cinema-section-heading { align-items: center; }
  .cinema-series-card { display: block; }
  .cinema-series-poster { aspect-ratio: 16 / 9; }
  .cinema-series-hero { grid-template-columns: 1fr; }
  .cinema-series-hero-poster { aspect-ratio: 16 / 8; }
  .cinema-breadcrumb .cinema-admin-open { font-size: 10px; padding: 8px 10px; }
  .cinema-author-note,
  .cinema-comments { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .cinema-series-card,
  .cinema-series-poster > img,
  .cinema-play-badge,
  .cinema-script-panel summary i { transition: none; }
  .cinema-loading span { animation: none; }
}

/* Light theme: keep the picture-house identity inside the main site's warm, airy visual system. */
.cinema-page {
  --cinema-ink: #29272a;
  --cinema-muted: #776d70;
  --cinema-wine: #bd5a76;
  --cinema-red: #db7580;
  --cinema-gold: #b87531;
  --cinema-night: #fffaf7;
  --cinema-panel: rgba(255, 255, 255, 0.9);
  --cinema-line: rgba(91, 64, 73, 0.14);
  background:
    radial-gradient(circle at 8% 2%, rgba(226, 119, 146, 0.14), transparent 30%),
    radial-gradient(circle at 91% 12%, rgba(235, 160, 101, 0.16), transparent 29%),
    linear-gradient(145deg, rgba(255, 253, 251, 0.98), rgba(255, 244, 239, 0.96));
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.cinema-page::before {
  background-image: repeating-linear-gradient(90deg, transparent 0 52px, rgba(137, 89, 102, 0.024) 52px 53px);
}

.cinema-marquee {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.72), rgba(255, 242, 238, 0.48)),
    transparent;
}

.cinema-marquee-copy h3,
.cinema-section-heading h3,
.cinema-series-copy h4,
.cinema-series-hero h3,
.cinema-episode-heading h3,
.cinema-comments > header h3,
.cinema-empty-library h3,
.cinema-error h3,
.cinema-admin-drawer > header h3,
.cinema-admin-login h4,
.cinema-admin-card h4,
.cinema-admin-library h4 {
  color: var(--cinema-ink);
  font-family: inherit;
}

.cinema-marquee-copy h3 {
  font-weight: 900;
  letter-spacing: -0.045em;
}

.cinema-kicker,
.cinema-section-heading span,
.cinema-admin-library header span,
.cinema-empty-library > span,
.cinema-error > span {
  color: #a7556c;
}

.cinema-marquee-copy > p,
.cinema-empty-library p,
.cinema-error p {
  color: var(--cinema-muted);
}

.cinema-marquee-stats span {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--cinema-line);
  color: var(--cinema-muted);
}

.cinema-marquee-stats strong {
  color: #8e455b;
}

.cinema-marquee::after {
  background: linear-gradient(90deg, transparent, rgba(205, 104, 130, 0.38), transparent);
}

.cinema-projector {
  filter: drop-shadow(0 20px 24px rgba(125, 72, 84, 0.2));
}

.cinema-projector::before {
  background: linear-gradient(145deg, #f7d8d7, #dca8ad 72%);
  border-color: rgba(128, 72, 86, 0.18);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.65);
}

.cinema-projector::after {
  background: linear-gradient(90deg, rgba(231, 169, 93, 0.5), rgba(244, 192, 115, 0));
}

.cinema-reel {
  background: radial-gradient(circle, #fff8f3 0 12%, transparent 13% 25%, #e4b9bc 26% 35%, transparent 36%), linear-gradient(145deg, #f4d1d2, #ce919c);
  border-color: #c88794;
  box-shadow: inset 0 0 0 8px #f8e2e0, 0 7px 14px rgba(125, 72, 84, 0.18);
}

.cinema-projector > i {
  background: #eaaa52;
  box-shadow: 0 0 18px rgba(226, 151, 60, 0.58);
}

.cinema-admin-open,
.cinema-empty-library button,
.cinema-error button {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(181, 88, 113, 0.38);
  color: #a54f68;
}

.cinema-admin-open:hover,
.cinema-empty-library button:hover,
.cinema-error button:hover {
  background: #c8627e;
  color: #fff;
}

.cinema-series-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--cinema-line);
  box-shadow: 0 10px 25px rgba(90, 56, 68, 0.07);
}

.cinema-series-card:hover {
  border-color: rgba(190, 91, 117, 0.46);
  box-shadow: 0 17px 36px rgba(100, 60, 72, 0.14);
}

.cinema-series-copy > span,
.cinema-series-copy small {
  color: #a6536b;
}

.cinema-series-copy p {
  color: var(--cinema-muted);
}

.cinema-series-copy small {
  border-top-color: var(--cinema-line);
}

.cinema-play-badge {
  background: rgba(255, 245, 240, 0.94);
  box-shadow: 0 6px 15px rgba(85, 49, 61, 0.18);
  color: #aa526b;
}

.cinema-breadcrumb {
  background: rgba(255, 255, 255, 0.58);
  border-bottom-color: var(--cinema-line);
}

.cinema-breadcrumb > button:first-child {
  color: #a6536b;
}

.cinema-breadcrumb > span {
  color: #baadb0;
}

.cinema-breadcrumb > strong {
  color: #665c60;
}

.cinema-series-hero {
  background:
    radial-gradient(circle at 90% 15%, rgba(237, 158, 104, 0.17), transparent 25%),
    linear-gradient(100deg, rgba(229, 122, 150, 0.15), rgba(255, 255, 255, 0.52) 62%);
  border-bottom: 1px solid var(--cinema-line);
}

.cinema-series-hero-poster {
  border-color: rgba(95, 61, 70, 0.16);
  box-shadow: 0 13px 25px rgba(100, 63, 75, 0.15);
}

.cinema-series-hero p {
  color: var(--cinema-muted);
}

.cinema-series-hero > div:last-child > div span {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--cinema-line);
  color: #685d61;
}

.cinema-screen-frame {
  border-color: rgba(64, 47, 54, 0.2);
  box-shadow: 0 18px 42px rgba(78, 48, 60, 0.17), 0 0 44px rgba(217, 87, 123, 0.08);
}

.cinema-episode-heading > span {
  color: #ac556e;
}

.cinema-episode-heading p {
  color: var(--cinema-muted);
}

.cinema-author-note,
.cinema-script-panel,
.cinema-comments,
.cinema-episode-list {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--cinema-line);
  box-shadow: 0 10px 25px rgba(87, 55, 66, 0.06);
}

.cinema-author-note {
  border-left-color: #d56d88;
}

.cinema-author-note header span,
.cinema-script-panel summary i,
.cinema-comments > header span,
.cinema-episode-list > header strong,
.cinema-episode-item > span {
  color: #a6536b;
}

.cinema-author-note header small,
.cinema-script-panel summary small {
  color: #a29699;
}

.cinema-author-note p,
.cinema-script-copy {
  color: #50474b;
}

.cinema-script-panel summary strong,
.cinema-episode-list > header span {
  color: #342f32;
}

.cinema-script-copy {
  background: rgba(255, 249, 246, 0.66);
  border-top-color: var(--cinema-line);
}

.cinema-episode-list > header {
  border-bottom-color: var(--cinema-line);
}

.cinema-episode-item {
  color: #3a3437;
}

.cinema-episode-item:hover {
  background: rgba(219, 117, 128, 0.08);
}

.cinema-episode-item.is-active {
  background: linear-gradient(90deg, rgba(214, 104, 134, 0.18), rgba(239, 164, 116, 0.08));
}

.cinema-episode-item small,
.cinema-no-comments {
  color: var(--cinema-muted);
}

.cinema-episode-item.is-active > i {
  color: #b65772;
}

.cinema-comments > header > small {
  background: rgba(217, 87, 123, 0.08);
  border-color: rgba(217, 87, 123, 0.2);
  color: #a6536b;
}

.cinema-comment-form input,
.cinema-comment-form textarea,
.cinema-admin-card input,
.cinema-admin-card textarea,
.cinema-admin-card select,
.cinema-admin-login input[type="password"] {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(88, 61, 70, 0.18);
  color: #302b2e;
}

.cinema-comment-form input::placeholder,
.cinema-comment-form textarea::placeholder,
.cinema-admin-card input::placeholder,
.cinema-admin-card textarea::placeholder,
.cinema-admin-login input::placeholder {
  color: #a3979a;
}

.cinema-comment-form > div span {
  color: var(--cinema-muted);
}

.cinema-comment-form button,
.cinema-admin-card button[type="submit"],
.cinema-admin-login button {
  background: linear-gradient(135deg, #d86f89, #c35f78);
  box-shadow: 0 7px 16px rgba(184, 79, 107, 0.2);
}

.cinema-comment-list article {
  background: rgba(255, 248, 245, 0.72);
  border-color: var(--cinema-line);
}

.cinema-comment-list strong {
  color: #3f373b;
}

.cinema-comment-list time {
  color: #9e9295;
}

.cinema-comment-list p {
  color: #5a5054;
}

.cinema-loading {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 239, 235, 0.9));
  color: #786c70;
}

.cinema-loading span {
  border-color: rgba(111, 76, 87, 0.14);
  border-top-color: #c55f7a;
}

.cinema-admin-backdrop {
  background: rgba(66, 45, 52, 0.35);
}

.cinema-admin-drawer {
  background:
    radial-gradient(circle at 95% 0%, rgba(236, 150, 110, 0.15), transparent 23%),
    #fffaf7;
  border-left-color: rgba(83, 58, 66, 0.16);
  box-shadow: -30px 0 70px rgba(91, 58, 69, 0.18);
  color: #302b2e;
}

.cinema-admin-drawer > header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(83, 58, 66, 0.13);
}

.cinema-admin-drawer > header span,
.cinema-admin-card header span {
  color: #a6536b;
}

.cinema-admin-drawer > header > button {
  background: rgba(217, 87, 123, 0.08);
  border-color: rgba(166, 83, 107, 0.18);
  color: #8c4b5e;
}

.cinema-admin-loading,
.cinema-admin-login p,
.cinema-admin-login label,
.cinema-admin-submit > span,
.cinema-admin-library > p {
  color: var(--cinema-muted);
}

.cinema-admin-login,
.cinema-admin-card,
.cinema-admin-library {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(86, 59, 68, 0.14);
  box-shadow: 0 11px 28px rgba(86, 55, 66, 0.07);
}

.cinema-admin-toolbar span {
  color: #4f8b60;
}

.cinema-admin-toolbar button {
  color: #8c737b;
}

.cinema-admin-card header,
.cinema-admin-series-row {
  border-color: rgba(86, 59, 68, 0.11);
}

.cinema-admin-card label {
  color: #62575b;
}

.cinema-admin-card select option {
  background: #fff;
}

.cinema-file-field {
  background: rgba(255, 245, 241, 0.7);
  border-color: rgba(190, 91, 117, 0.3);
}

.cinema-file-field input {
  background: transparent;
}

.cinema-file-field span {
  color: #9c8f93;
}

.cinema-admin-episode-row {
  background: rgba(255, 245, 241, 0.68);
}

.cinema-admin-series-head strong,
.cinema-admin-episode-row > strong {
  color: #3d3539;
}

.cinema-admin-series-head span,
.cinema-admin-episode-row > small {
  color: #8f8186;
}

.cinema-admin-episode-row > span {
  color: #a6536b;
}

.cinema-upload-progress {
  background: rgba(94, 64, 73, 0.11);
}

.cinema-upload-progress i {
  background: linear-gradient(90deg, #c35f78, #e89a66);
}

/* Playback information architecture: title first, full-width screen, scalable episode grid. */
.cinema-watch-grid {
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  padding-inline: 38px;
}

.cinema-playback-heading {
  align-items: end;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 2px 2px 0;
}

.cinema-playback-heading h2 {
  color: #2f2a2d;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(25px, 3vw, 36px);
  grid-column: 1;
  line-height: 1.25;
  margin: 4px 0 0;
}

.cinema-playback-heading > p {
  color: var(--cinema-muted);
  grid-column: 1;
  line-height: 1.65;
  margin: 2px 0 0;
}

.cinema-playback-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-column: 1;
  grid-row: 1;
}

.cinema-playback-meta span {
  color: #ad536d;
  font-size: 13px;
  font-weight: 900;
}

.cinema-playback-meta small {
  color: #96878c;
  font-size: 11px;
}

.cinema-watch-grid > .cinema-screen-frame {
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(78, 48, 60, 0.17), 0 0 44px rgba(217, 87, 123, 0.08);
  width: 100%;
}

.cinema-episode-picker,
.cinema-story-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--cinema-line);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(87, 55, 66, 0.06);
  overflow: hidden;
}

.cinema-episode-picker > header {
  align-items: center;
  border-bottom: 1px solid var(--cinema-line);
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
}

.cinema-episode-picker > header > div {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.cinema-episode-picker > header span {
  color: #342f32;
  font-size: 16px;
  font-weight: 900;
}

.cinema-episode-picker > header strong,
.cinema-episode-picker > header small {
  color: var(--cinema-muted);
  font-size: 11px;
  font-weight: 500;
}

.cinema-episode-ranges {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 14px 0;
  scrollbar-width: thin;
}

.cinema-episode-ranges button {
  background: transparent;
  border: 1px solid var(--cinema-line);
  border-radius: 999px;
  color: #807277;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 11px;
  padding: 6px 12px;
}

.cinema-episode-ranges button.is-active {
  background: rgba(207, 91, 123, 0.11);
  border-color: rgba(185, 74, 105, 0.32);
  color: #a64b66;
  font-weight: 900;
}

.cinema-episode-pages {
  padding: 12px 14px 14px;
}

.cinema-episode-page {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cinema-episode-page[hidden] {
  display: none;
}

.cinema-episode-page .cinema-episode-item {
  align-items: center;
  background: rgba(255, 248, 245, 0.72);
  border: 1px solid rgba(118, 82, 94, 0.12);
  border-radius: 10px;
  color: #3a3437;
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 8px 10px;
}

.cinema-episode-page .cinema-episode-item:hover {
  background: rgba(219, 117, 128, 0.08);
  border-color: rgba(185, 74, 105, 0.22);
}

.cinema-episode-page .cinema-episode-item.is-active {
  background: linear-gradient(135deg, rgba(214, 104, 134, 0.18), rgba(239, 164, 116, 0.09));
  border-color: rgba(185, 74, 105, 0.3);
}

.cinema-episode-page .cinema-episode-item > span {
  color: #a6536b;
  font-family: Georgia, serif;
  font-size: 15px;
}

.cinema-episode-page .cinema-episode-item > strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-episode-page .cinema-episode-item > i {
  color: #a6536b;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.cinema-story-card > .cinema-author-note,
.cinema-story-card > .cinema-script-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin-top: 0;
  box-shadow: none;
}

.cinema-story-card > .cinema-author-note {
  border-left: 0;
  padding: 20px 22px;
}

.cinema-story-card > .cinema-script-panel {
  border-top: 1px solid var(--cinema-line);
}

.cinema-story-card > .cinema-script-panel summary:focus-visible {
  outline: 2px solid rgba(185, 74, 105, 0.38);
  outline-offset: -2px;
}

.cinema-story-card .cinema-script-copy {
  max-height: 360px;
  overscroll-behavior: contain;
}

.cinema-watch-grid > .cinema-comments {
  margin-top: 0;
}

@media (max-width: 900px) {
  .cinema-episode-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cinema-watch-grid {
    padding-inline: 14px;
  }

  .cinema-episode-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cinema-episode-page .cinema-episode-item {
    grid-template-columns: 27px minmax(0, 1fr);
  }

  .cinema-episode-page .cinema-episode-item > i {
    display: none;
  }

  .cinema-story-card .cinema-script-copy {
    max-height: 300px;
  }
}
