/* dramas.icu — light theme scaffold v0.1.0 */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e6e6e6;
  --text: #1c1c1e;
  --text-2: #6b6b70;
  --accent: #c2410c;
  --accent-soft: #fff1e7;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --nav-h: 60px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Nav (hamburger, unified desktop+mobile) ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.brand .logo-placeholder {
  width: 34px; height: 34px; border-radius: 8px;
  background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 6px, #e9eaec 6px, #e9eaec 12px);
  border: 1px dashed #c9cbd0; color: var(--text-2);
  display: grid; place-items: center; font-size: .6rem; font-weight: 600;
}
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 8px; background: none; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-menu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: none; flex-direction: column; padding: 8px 20px 16px;
}
.nav-menu.open { display: flex; }
.nav-menu a { padding: 11px 6px; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-menu a:last-child { border-bottom: 0; }
.nav-menu a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.03em; margin-bottom: 10px; }
.hero p { color: var(--text-2); max-width: 640px; }

/* ---------- Cards grid ---------- */
.section { padding: 20px 0 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.section-head .more { color: var(--accent); font-size: .9rem; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(0,0,0,.09); }
.card .poster-wrap { position: relative; aspect-ratio: 2/3; background: #f0f0f2; }
.card .poster-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card .rank-chip {
  position: absolute; top: 8px; left: 8px; background: rgba(28,28,30,.82); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.card .ep-chip {
  position: absolute; bottom: 8px; right: 8px; background: rgba(255,255,255,.92); color: var(--text);
  font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
}
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 600; font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { color: var(--text-2); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-cta { margin-top: auto; padding-top: 8px; }
.card-cta span {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--text-2); font-size: .85rem; }

/* ---------- Detail page ---------- */
.detail-hero { display: block; padding: 24px 0 24px; }
.detail-poster {
  width: 100%; margin: 0 0 22px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: #f0f0f2;
  height: clamp(260px, 36vw, 480px);
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.detail-meta h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.03em; margin-bottom: 8px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }
.chip.plain { background: #f1f1f3; color: var(--text-2); }
.detail-desc { color: var(--text-2); max-width: 720px; }
.watch-cta { margin-top: 18px; }
.watch-cta a {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  font-weight: 700; padding: 11px 22px; border-radius: 999px; box-shadow: var(--shadow);
}
.watch-cta a:hover { filter: brightness(1.06); }

.detail-section { padding: 26px 0; border-top: 1px solid var(--border); }
.detail-section > h2 { font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: 14px; }
.deck { color: var(--text-2); font-size: .95rem; line-height: 1.55; font-weight: 500; max-width: 680px; margin: -6px 0 18px; }
.placeholder-note {
  background: var(--accent-soft); border: 1px dashed #f0b28a; color: #8a3c10;
  font-size: .82rem; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
}
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.comment-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.comment-item .who { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-2); margin-bottom: 4px; }
.comment-item .who b { color: var(--text); }
.qa-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.qa-item h3 { font-size: .98rem; margin-bottom: 6px; }
.qa-item p { color: var(--text-2); font-size: .9rem; }
.stills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.still-placeholder {
  aspect-ratio: 16/10; border-radius: 10px; border: 1px dashed #c9cbd0;
  background: repeating-linear-gradient(45deg, #f6f6f7, #f6f6f7 8px, #eff0f1 8px, #eff0f1 16px);
  display: grid; place-items: center; color: var(--text-2); font-size: .8rem; font-weight: 600;
}

@media (max-width: 640px) {
  .detail-poster { height: auto; aspect-ratio: 2/3; margin-bottom: 16px; }
  .detail-poster img { object-position: center; }
}

/* stills frame */
.still-frame { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.still-frame img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.still-frame .still-label { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.still-frame.placeholder img { opacity: .55; }
