/* Coscado VOD Archive — public stylesheet (移植元: モック styles.css v0.2) */
/* ============================================================
   coscado /vod/ — Editorial Cinema Dossier
   Design system v0.1 (2026-05-12)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,200..900,0..100,0..1;1,9..144,200..900,0..100,0..1&family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,200..800&family=Noto+Serif+JP:wght@200..900&family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
  /* — Paper & Ink — */
  --paper: #FAFAF7;
  --paper-deep: #F2F0E9;
  --paper-shadow: #E5E2D8;
  --ink: #14120F;
  --ink-soft: #3F3B33;
  --ink-faint: #8A8478;

  /* — Signature Accents — */
  --crimson: #C8333E;
  --crimson-deep: #9B2530;
  --vermillion: #E2613B;
  --moss: #3B5249;
  --gold: #B6985E;
  --pearl: #FBF8F1;

  /* — Sensitivity Spectrum (signal-light) — */
  --sens-none: #8FA989;
  --sens-mild: #D6BE6C;
  --sens-moderate: #D88A4A;
  --sens-severe: #C8333E;

  /* — Service Brand Tints — */
  --svc-unext: #1A1815;
  --svc-netflix: #B81D24;
  --svc-disney: #1B3A78;
  --svc-hulu: #1CE783;
  --svc-dmm: #FF3D00;

  /* — Typography — */
  --font-display: 'Fraunces', 'Noto Serif JP', serif;
  --font-sans: 'Zen Kaku Gothic New', 'Bricolage Grotesque', system-ui, sans-serif;
  --font-jp-serif: 'Noto Serif JP', serif;
  --font-jp-sans: 'Zen Kaku Gothic New', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  /* — Geometry — */
  --rule: 1px solid var(--ink);
  --rule-soft: 1px solid var(--ink-faint);
  --rule-dotted: 1px dashed var(--ink-faint);
}

/* — Scope all global resets/body styles to #cvod-root — */
/* SWELLや他テーマと干渉しないため body/html には触らない */

#cvod-root, #cvod-root * { box-sizing: border-box; }
#cvod-root {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* film grain overlay (限定スコープ) */
#cvod-root::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* paper texture vignette */
#cvod-root::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(20,18,15,0.04) 100%);
}

#cvod-root a { color: inherit; text-decoration: none; }
#cvod-root img { display: block; max-width: 100%; }
#cvod-root button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* SWELL の mainVisual 等を vod ページで非表示 */
body.single-vod_work .l-mainVisual,
body.post-type-archive-vod_work .l-mainVisual,
body.single-vod_work .c-pageTitle,
body.post-type-archive-vod_work .c-pageTitle { display: none; }

/* SWELL コンテナ max-width を /vod/ で広げる */
body.single-vod_work .l-content,
body.post-type-archive-vod_work .l-content,
body.single-vod_work .l-mainContent,
body.post-type-archive-vod_work .l-mainContent { max-width: none !important; padding: 0 !important; }

/* TMDb poster fallback */
.cvod-poster-fallback { background: linear-gradient(135deg,#14120F,#3B5249) !important; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'SOFT' 30, 'WONK' 0, 'opsz' 144;
  letter-spacing: -0.02em;
  line-height: 1.0;
}

.display-wonk {
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  color: var(--crimson);
  letter-spacing: 0.05em;
}

.jp-serif { font-family: var(--font-jp-serif); }
.jp-sans { font-family: var(--font-jp-sans); }
.mono { font-family: var(--font-mono); }

/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

@media (max-width: 720px) {
  .shell { padding: 0 24px; }
}

/* ============================================================
   MASTHEAD (top nav)
   ============================================================ */

.masthead {
  border-bottom: var(--rule);
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
  backdrop-filter: blur(20px) saturate(140%);
  background: rgba(250,250,247,0.92);
}

.masthead-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  font-variation-settings: 'SOFT' 0, 'opsz' 144;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark .slash {
  color: var(--crimson);
  font-style: italic;
  font-weight: 300;
}

.brand-mark .vod {
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: center;
  padding: 3px 8px;
  border: 1px solid var(--ink-faint);
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); font-weight: 600; }
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--crimson);
  border-radius: 50%;
}

.masthead-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.search-pill {
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-deep);
}

.search-pill:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
  .masthead-row { grid-template-columns: auto auto; gap: 16px; }
  .nav { display: none; }
}

/* ============================================================
   FOOTER (colophon)
   ============================================================ */

.colophon {
  margin-top: 120px;
  border-top: var(--rule);
  padding: 48px 0 64px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.colophon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.colophon h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.colophon ul { list-style: none; line-height: 2; }
.colophon a:hover { color: var(--crimson); }

.colophon-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: var(--rule-dotted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 720px) {
  .colophon-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SENSITIVITY SIGNAL — Core differentiator
   ============================================================ */

.sens-bar {
  display: flex;
  gap: 4px;
  align-items: stretch;
  height: 22px;
}

.sens-cell {
  flex: 1;
  position: relative;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  cursor: help;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: var(--paper);
  font-weight: 600;
}

.sens-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 2;
}

.sens-cell.none { background: var(--sens-none); }
.sens-cell.mild { background: var(--sens-mild); color: var(--ink); }
.sens-cell.moderate { background: var(--sens-moderate); }
.sens-cell.severe { background: var(--sens-severe); }
.sens-cell.dim { opacity: 0.35; }

/* ============================================================
   AVAILABILITY MATRIX
   ============================================================ */

.matrix {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--ink);
  border: var(--rule);
}

.matrix-cell {
  background: var(--paper);
  padding: 16px 8px;
  text-align: center;
  position: relative;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.matrix-cell:hover { background: var(--paper-deep); }

.matrix-cell .svc-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.matrix-cell .svc-status {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.matrix-cell .svc-tag {
  font-family: var(--font-jp-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 2px;
}

.matrix-cell.available .svc-status { color: var(--moss); }
.matrix-cell.available .svc-tag { background: var(--moss); color: var(--paper); }
.matrix-cell.paid .svc-status { color: var(--gold); }
.matrix-cell.paid .svc-tag { background: var(--gold); color: var(--ink); }
.matrix-cell.ending .svc-status { color: var(--vermillion); }
.matrix-cell.ending .svc-tag { background: var(--vermillion); color: var(--paper); }
.matrix-cell.none .svc-status { color: var(--paper-shadow); }
.matrix-cell.none .svc-tag { background: var(--paper-shadow); color: var(--ink-soft); }

@media (max-width: 720px) {
  .matrix { grid-template-columns: repeat(3, 1fr); }
  .matrix-cell:nth-child(n+4) { border-top: 1px solid var(--ink); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.reveal { opacity: 0; animation: reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }
.reveal-5 { animation-delay: 0.45s; }
.reveal-6 { animation-delay: 0.55s; }

hr.editorial {
  border: none;
  height: 1px;
  background: var(--ink);
  margin: 0;
  transform-origin: left center;
  animation: reveal-rule 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================================
   MOOD BADGES
   ============================================================ */

.mood-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mood {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 7px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--paper);
  transition: all 0.2s ease;
}

.mood.active {
  background: var(--ink);
  color: var(--paper);
}

.mood:hover { background: var(--paper-deep); }
.mood.active:hover { background: var(--crimson); border-color: var(--crimson); }

.mood-glyph {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }

.tag-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 6px;
  border: 1px solid var(--ink-faint);
  border-radius: 2px;
  color: var(--ink-soft);
}

.tag-mono.solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.tag-mono.crimson {
  background: var(--crimson);
  color: var(--paper);
  border-color: var(--crimson);
}

.divider-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-style: italic;
  color: var(--crimson);
  padding: 0 8px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--ink-soft); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }
