@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap');

:root {
  /* ── Dark Navy Base ── */
  --bg:          #0d1a2e;   /* page background — deep navy */
  --bg-sidebar:  #0a1525;   /* sidebar — slightly darker navy */
  --bg-card:     #132238;   /* cards — dark blue */
  --bg-elevated: #1a2f47;   /* elevated areas */
  --bg-input:    #0f1e30;   /* inputs */
  --border-dim:  #1c3050;   /* subtle border */
  --border:      #2a4565;   /* main border */

  --text:        #dde8f5;   /* primary — near white */
  --text-sub:    #8aafc8;   /* secondary — muted blue-grey */
  --text-muted:  #4a6a88;   /* muted */

  /* ── Mint Accent (brightened for dark bg) ── */
  --mint:        #2dbda0;   /* primary action */
  --mint-dark:   #1e9080;   /* darker mint */
  --mint-light:  #6edfc5;   /* lighter mint */
  --mint-pale:   rgba(45,189,160,.12);
  --mint-deep:   #0a3d30;
  --mint-glow:   rgba(45,189,160,.25);

  /* ── Genre accent colors (brightened for dark bg) ── */
  --yellow:  #f0b030;
  --pink:    #f07090;
  --purple:  #a78bfa;
  --blue:    #60a0f0;
  --coral:   #f07060;
  --teal:    #14b8a6;
  --lime:    #84cc16;

  /* ── Admin compat ── */
  --gray-50:  #0f1e30;
  --gray-100: #132238;
  --gray-200: #1c3050;
  --gray-400: #4a6a88;
  --gray-600: #8aafc8;
  --gray-700: #b0cce0;
  --gray-800: #dde8f5;

  --shadow-sm:   0 1px 4px  rgba(0,0,0,.35);
  --shadow-md:   0 4px 14px rgba(0,0,0,.45);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.55);
  --shadow-mint: 0 4px 18px rgba(45,189,160,.25);

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-full: 9999px;

  --topbar-h:  60px;
  --sidebar-w: 270px;

  /* Waveform */
  --wf-unplayed: #c8e8de;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
}

/* ─── Night Sky Starfield ─── */
.starfield-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.starfield-bg svg {
  width: 100%;
  height: 100%;
}
.topbar    { z-index: 100; }
.app-body  { position: relative; z-index: 1; }
.modal-bg  { z-index: 200; }

/* ─── Film Strip ─── */
.film-strip {
  height: 24px;
  background-color: #0f2018;
  background-image:
    repeating-linear-gradient(90deg,
      transparent 0, transparent 5px,
      rgba(94,207,180,.5) 5px, rgba(94,207,180,.5) 16px,
      transparent 16px, transparent 22px),
    repeating-linear-gradient(90deg,
      transparent 0, transparent 5px,
      rgba(94,207,180,.5) 5px, rgba(94,207,180,.5) 16px,
      transparent 16px, transparent 22px);
  background-size: 22px 8px;
  background-position: 0 1px, 0 calc(100% - 1px);
  background-repeat: repeat-x;
}

/* ─── Topbar ─── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg-sidebar);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 16px;
  z-index: 100;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: .95rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}
.topbar-logo:hover { opacity: .8; }
.topbar-logo-img { height: 38px; width: auto; display: block; }

.topbar-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  pointer-events: none;
  color: var(--text-muted);
}
.search-input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border-dim);
  border-radius: var(--r-full);
  color: var(--text);
  font-family: inherit;
  font-size: .84rem;
  padding: 8px 14px 8px 34px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-pale);
  background: var(--bg-card);
}
.search-input::placeholder { color: var(--text-muted); }

.topbar-right { margin-left: auto; }

.admin-link {
  font-size: .77rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 13px;
  border: 1.5px solid var(--border-dim);
  border-radius: var(--r-full);
  transition: color .2s, border-color .2s;
}
.admin-link:hover { color: var(--mint); border-color: var(--mint); }

/* ─── App Body ─── */
.app-body {
  display: flex;
  margin-top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1.5px solid var(--border-dim);
  flex-shrink: 0;
  overflow-y: auto;
  padding: 12px 0 40px;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-dim); border-radius: 2px; }

.sidebar-section {
  font-size: .65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 18px 16px 6px;
}

.sidebar-nav { list-style: none; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: .86rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  transition: color .15s, background .15s, border-color .15s;
}
.nav-item:hover {
  color: var(--text);
  background: var(--bg);
}
.nav-item.active {
  color: var(--mint);
  font-weight: 700;
  background: var(--mint-pale);
  border-left-color: var(--mint);
}
.nav-icon { width: 18px; text-align: center; flex-shrink: 0; }

.sidebar-stats {
  margin: 20px 12px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-md);
  padding: 14px 15px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-sub);
  padding: 3px 0;
}
.stat-row strong { color: var(--mint); }
.stat-divider { height: 1px; background: var(--border-dim); margin: 8px 0; }

/* ─── Main Content ─── */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 60px;
  min-width: 0;
}
.main::-webkit-scrollbar { display: none; }
.main { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Hero Banner ─── */
.hero {
  margin-top: -8px;
  margin-bottom: 28px;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  padding: 24px 24px 18px;
  background: var(--bg);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.hero-stage {
  position: relative;
  height: 245px;
  overflow: visible;
}

/* Logo + byline wrapper — centred, floated slightly above stage top */
.hero-logo-wrap {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 540px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 8;
  pointer-events: none;
  overflow: visible;
}
.hero-logo-link {
  display: block;
  pointer-events: auto;
}
.hero-logo-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(167,139,250,.25));
}
.hero-desc {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  margin: 0;
  width: 90%;
  max-width: 520px;
  font-size: .72rem;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.55;
  white-space: normal;
  pointer-events: none;
}
.hero-byline {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  margin: 0;
  font-size: .85rem;
  color: var(--purple);
  letter-spacing: .05em;
  white-space: nowrap;
}

.hero-posters {
  position: absolute;
  inset: 0;
  overflow: visible;
}

.hero-poster {
  position: absolute;
  width: 95px;
  height: 133px;
  object-fit: cover;
  border-radius: 7px;
  border: 2.5px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 14px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.1);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.hero-poster:hover {
  z-index: 10 !important;
  transform: rotate(0deg) scale(1.14) translateY(-8px) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.3);
}

@media (max-width: 800px) {
  .hero       { padding: 18px 12px 14px; margin: -8px -4px 20px; }
  .hero-stage { height: 200px; }
  .hero-logo-img { width: 52vw; max-width: 280px; }
  .hero-posters  { display: none; }
  .hero-byline   { font-size: .65rem; }
}

@media (max-width: 480px) {
  .hero-stage    { height: 165px; }
  .hero-logo-img { width: 58vw; max-width: 220px; }
}

/* ─── Today's Pick + Night Musing row ─── */
.todays-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.todays-row .todays-section {
  flex: 1.4;
  min-width: 0;
}
.todays-row .night-musing-section {
  flex: 1;
  min-width: 0;
}

/* ─── Today's Pick ─── */
.todays-section {
  margin-bottom: 20px;
  padding: 20px 22px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-lg);
}

/* ─── Night Musing: 今夜のつぶやき ─── */
.night-musing-section {
  padding: 20px 22px 22px;
  background: rgba(18, 14, 35, 0.72);
  border: 1px solid rgba(140, 100, 220, 0.28);
  border-left: 3px solid rgba(160, 120, 240, 0.55);
  border-radius: var(--r-lg);
}
.night-musing-section.hidden { display: none; }
.night-musing-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #b89ef8;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.night-musing-text {
  font-size: .92rem;
  color: #d4cae8;
  line-height: 1.85;
  white-space: pre-wrap;
  font-family: var(--klee);
}
.todays-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.todays-card {
  display: flex;
  gap: 16px;
  cursor: pointer;
  border-radius: var(--r-md);
  transition: opacity .18s;
}
.todays-card:hover { opacity: .82; }
.todays-poster {
  width: 90px;
  height: 127px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.todays-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.todays-movie-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
  transition: color .15s;
}
.todays-card:hover .todays-movie-title { color: var(--mint); }
.todays-movie-orig {
  font-size: .78rem;
  color: var(--text-muted);
}
.todays-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.todays-film-meta {
  font-size: .76rem;
  color: var(--text-muted);
}
.todays-comment-nudge {
  margin-top: 10px;
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .03em;
}

/* ─── Fortune ─── */
.fortune-section {
  margin-bottom: 30px;
  padding: 20px 22px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-lg);
}
.fortune-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.fortune-disclaimer {
  font-size: .72rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
  letter-spacing: .02em;
}
.fortune-input-wrap {
  display: flex;
  gap: 9px;
}
@media (max-width: 480px) {
  .fortune-input-wrap {
    flex-direction: column;
  }
  .fortune-btn {
    align-self: flex-start;
  }
}
.fortune-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  color: var(--text);
  font-size: .88rem;
  font-family: inherit;
  transition: border-color .15s;
}
.fortune-input:focus { outline: none; border-color: var(--purple); }
.fortune-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 9px 18px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity .15s;
}
.fortune-btn:hover { opacity: .82; }
.fortune-btn:disabled { opacity: .5; cursor: default; }
.fortune-result { margin-top: 16px; }
.fortune-card {
  border: 1px solid;
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--bg-elevated);
}
.fortune-msg {
  text-align: center;
  font-size: .78rem;
  color: var(--purple);
  letter-spacing: .1em;
  margin-bottom: 13px;
  opacity: .9;
}
.fortune-movie {
  display: flex;
  gap: 14px;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: opacity .18s;
}
.fortune-movie:hover { opacity: .82; }
.fortune-poster {
  width: 66px;
  height: 93px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}
.fortune-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.fortune-movie-title {
  font-size: .98rem;
  font-weight: 800;
  color: var(--text);
  transition: color .15s;
}
.fortune-movie:hover .fortune-movie-title { color: var(--purple); }
.fortune-movie-orig {
  font-size: .76rem;
  color: var(--text-muted);
}
.fortune-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.fortune-empty {
  margin-top: 12px;
  font-size: .84rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Trailer ─── */
.trailer-section {
  margin-bottom: 54px;
  padding: 20px 22px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-md);
}
.trailer-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 16px;
}
.trailer-thumb-link {
  display: inline-block;
  text-decoration: none;
  max-width: 400px;
  width: 100%;
}
.trailer-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #000;
}
.trailer-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}
.trailer-thumb-link:hover .trailer-thumb-img { opacity: .75; }
.trailer-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  pointer-events: none;
  transition: transform .2s;
}
.trailer-thumb-link:hover .trailer-play-btn { transform: scale(1.15); }
.trailer-yt-label {
  display: block;
  margin-top: 8px;
  font-size: .78rem;
  color: var(--text-sub);
  transition: color .15s;
}
.trailer-thumb-link:hover .trailer-yt-label { color: var(--text); }
#trailer-section.hidden { display: none; }

/* ─── Soundtrack ─── */
.soundtrack-section {
  margin-bottom: 30px;
  padding: 20px 22px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--r-md);
}
.title-icon-moon {
  display: inline-block;
  filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.15);
}
.soundtrack-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 16px;
}
#soundtrack-embed iframe {
  width: 100%;
  border-radius: var(--r-sm);
  display: block;
  border: none;
}
#soundtrack-section.hidden { display: none; }

.content-header { margin-bottom: 22px; }
.content-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--purple);
}
.content-subtitle {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Filter Bar ─── */
.filter-bar {
  background: var(--bg-card);
  border: 1.5px solid var(--border-dim);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.filter-label {
  font-size: .67rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  width: 54px;
  flex-shrink: 0;
  padding-top: 5px;
}

.filter-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-pill {
  background: var(--bg);
  border: 1.5px solid var(--border-dim);
  color: var(--text-sub);
  font-family: inherit;
  font-size: .73rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.filter-pill:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: var(--mint-pale);
}
.filter-pill.active {
  background: var(--mint);
  border-color: var(--mint);
  color: #fff;
}
.filter-pill[data-filter="spoiler"][data-value="true"].active {
  background: #c0384a;
  border-color: #c0384a;
}

/* ─── Review List ─── */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Review Card ─── */
.review-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 12px;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  background: var(--bg-card);
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.review-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

/* Art block */
.card-art {
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
}
.card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35) 0%, transparent 55%);
  pointer-events: none;
}
.art-emoji { z-index: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.2)); }

/* Poster image (covers emoji when loaded) */
.card-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
  display: block;
}

/* Modal poster */
.modal-poster {
  width: 90px;
  height: 135px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-dim);
}
.modal-title-area.has-poster {
  align-items: flex-start;
  gap: 16px;
}
.modal-title-area.has-poster .modal-title-text { flex: 1; }

/* Card content */
.card-content { flex: 1; min-width: 0; }

.card-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-card:hover .card-title { color: var(--mint); }

.card-orig {
  font-size: .71rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-director {
  font-size: .69rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .8;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}


.card-excerpt {
  font-size: .8rem;
  color: var(--text-sub);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 9px;
}

/* Waveform decoration */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 26px;
  margin-bottom: 9px;
}
.wf-bar {
  width: 3px;
  border-radius: 1.5px;
  min-height: 3px;
  transition: opacity .2s;
  opacity: .8;
}
.review-card:hover .wf-bar { opacity: 1; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-read-more {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 700;
  white-space: nowrap;
}
.review-card:hover .card-read-more { color: var(--mint); }

/* ─── Badges ─── */
.badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
}
.badge-mint    { background: var(--mint-pale); color: var(--mint); border: 1px solid rgba(37,168,140,.25); }
.badge-spoiler { background: rgba(192,56,74,.18); color: #f08090; border: 1px solid rgba(192,56,74,.35); font-size: .65rem; }

/* ─── View-All Button ─── */
.view-all-btn {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-dim);
  border-radius: var(--r-md);
  color: var(--text-sub);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.view-all-btn:hover {
  background: var(--mint-pale);
  border-color: var(--mint);
  color: var(--mint);
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}
.empty-state p { font-size: .9rem; margin-top: 10px; }
.empty-icon { font-size: 46px; }

.hidden { display: none !important; }

/* ─── Modal ─── */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal {
  background: var(--bg-card);
  border: 1.5px solid var(--border-dim);
  border-radius: var(--r-lg);
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border-dim); border-radius: 2px; }

.modal-accent { height: 5px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.modal-top    { padding: 20px 24px 0; }
.modal-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
}
.modal-orig {
  font-size: .77rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.modal-close {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-dim);
  border-radius: var(--r-full);
  width: 30px;
  height: 30px;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--border-dim); color: var(--text); }
.modal-share {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-dim);
  border-radius: var(--r-full);
  width: 30px;
  height: 30px;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-share:hover { background: var(--border-dim); color: var(--text); }
.copy-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--text);
  color: var(--bg);
  padding: 9px 20px;
  border-radius: var(--r-full);
  font-size: .82rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 10000;
  white-space: nowrap;
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dim);
}
.modal-film-meta {
  width: 100%;
  font-size: .78rem;
  color: var(--text-muted);
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid var(--border-dim);
}
.modal-body { padding: 18px 24px 28px; }
.modal-content {
  font-size: .88rem;
  line-height: 1.95;
  color: var(--text-sub);
  white-space: pre-wrap;
}

/* ─── Comments ─── */
.comments-section {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.comments-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}
.comments-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.comments-count {
  font-size: .78rem;
  color: var(--text-muted);
}
.comments-empty {
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.comment-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.comment-username {
  font-size: .8rem;
  font-weight: 700;
  color: var(--mint);
}
.comment-date {
  font-size: .74rem;
  color: var(--text-muted);
  flex: 1;
}
.comment-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .72rem;
  color: var(--text-muted);
  padding: 0 2px;
  opacity: .5;
  transition: opacity .15s;
}
.comment-delete:hover { opacity: 1; color: #c0384a; }
.comment-text {
  font-size: .83rem;
  line-height: 1.7;
  color: var(--text-sub);
  margin: 0;
}

/* Comment form */
.comment-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-form-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 11px;
  font-size: .84rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color .15s;
  resize: none;
}
.comment-input:focus {
  outline: none;
  border-color: var(--mint);
}
.comment-input-name { max-width: 200px; }
.comment-submit {
  align-self: flex-end;
  background: var(--mint);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 7px 18px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.comment-submit:hover { opacity: .85; }

/* ─── Mobile Sidebar ─── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,32,24,.4);
  z-index: 90;
}

@media (max-width: 800px) {
  .hamburger { display: block; }
  .topbar-logo-img { height: 26px; }

  .sidebar {
    position: fixed;
    left: calc(var(--sidebar-w) * -1);
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    z-index: 95;
    transition: left .28s ease;
    box-shadow: var(--shadow-lg);
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.open { left: 0; }
  .sidebar-overlay.show { display: block; }

  .main { padding: 20px 16px 40px; }
  .card-art { width: 64px; height: 64px; font-size: 24px; }

  .filter-bar { padding: 10px 12px; gap: 8px; }
  .filter-label { width: 44px; font-size: .62rem; }
  .filter-pill { font-size: .68rem; padding: 2px 9px; }
}

@media (max-width: 480px) {
  .card-art { display: none; }
  .waveform { display: none; }
}

/* ═══════════════════════════════════════════════════
   ANTIQUE / HANDWRITTEN DESIGN SYSTEM
   ホームページ：映画部屋・本棚コンセプト
   ═══════════════════════════════════════════════════ */

:root {
  --gold:       #c8922a;
  --gold-light: #e8b84b;
  --gold-pale:  rgba(200,146,42,.13);
  --gold-glow:  rgba(45,189,160,.22);
  --klee:       'Klee One', 'M PLUS Rounded 1c', sans-serif;
  --caveat:     'Caveat', cursive;
  --yomogi:     'Yomogi', 'Klee One', cursive;
}

/* ── ホームページ レイアウト ── */
body#home-page {
  height: 100vh;
  overflow: hidden;  /* .main がスクロール */
}

/* ヒーロー：.main のパディングをネゲートして全幅に */
body#home-page .hero {
  margin-top:    -28px;
  margin-inline: -32px;
  width: calc(100% + 64px);
  background:    transparent;
}
@media (max-width: 800px) {
  body#home-page .hero {
    margin-top:    -20px;
    margin-inline: -16px;
    width: calc(100% + 32px);
    overflow: visible; /* ポスター非表示のためクリップ不要 */
  }
}

/* ── セクション：縦並び ── */
.sections-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 8px;
}

/* ── 最新レビューセクション（差別化） ── */
.latest-section {
  position: relative;
  background: rgba(8, 16, 30, 0.70);
  border: 1px solid rgba(45,189,160,.40);
  border-left: 3px solid var(--mint);
  border-radius: 8px;
  padding: 24px 20px 20px;
  box-shadow: 0 0 28px rgba(45,189,160,.09), inset 0 0 0 1px rgba(45,189,160,.04);
}
.latest-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mint-light);
  margin-bottom: 14px;
  letter-spacing: .06em;
}
.home-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* ホームページのreview-cardは区切り線スタイルで */
#home-list .review-card {
  border: none;
  border-bottom: 1px solid rgba(45,189,160,.11);
  border-radius: 0;
  padding: 12px 4px;
  background: transparent;
  box-shadow: none;
}
#home-list .review-card:last-child { border-bottom: none; }
#home-list .review-card:hover {
  background: rgba(45,189,160,.05);
  border-radius: 6px;
  border-bottom-color: transparent;
}

/* 本棚誘導フッター */
.latest-footer {
  margin-top: 18px;
  text-align: center;
}
.latest-all-link {
  display: inline-block;
  padding: 9px 24px;
  background: rgba(45,189,160,.10);
  border: 1px solid rgba(45,189,160,.35);
  border-radius: 20px;
  color: var(--mint-light);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background .2s, border-color .2s, color .2s;
}
.latest-all-link:hover {
  background: rgba(45,189,160,.20);
  border-color: var(--mint);
  color: #fff;
}

/* ── 最下段：本棚＋管理人メモ 横並び・同サイズ ── */
.bottom-pair {
  display: flex;
  gap: 22px;
  align-items: stretch;
}
.bottom-pair .bookshelf-gate-section,
.bottom-pair .admin-memo-section { flex: 1; }

@media (max-width: 600px) {
  .bottom-pair { flex-direction: column; }
  .todays-row { flex-direction: column; }
  .todays-row .todays-section,
  .todays-row .night-musing-section { flex: none; }
}

/* ── メモカード ── */
.memo-card {
  position: relative;
  background: rgba(13, 22, 38, 0.82);
  border: 1px solid rgba(45,189,160,.22);
  border-radius: 8px;
  padding: 24px 18px 20px;
  box-shadow:
    3px 6px 18px rgba(0,0,0,.5),
    inset 0 0 0 1px rgba(45,189,160,.06);
}

/* ── 右サイドバー ── */
.sidebar-right {
  width: var(--sidebar-w);
  flex-shrink: 0;
  overflow-y: auto;
  padding: 20px 14px 40px;
  /* 区切り線なし */
}
.sidebar-right::-webkit-scrollbar { width: 3px; }
.sidebar-right::-webkit-scrollbar-thumb { background: var(--border-dim); border-radius: 2px; }

/* 右サイドバー内の今夜のつぶやき — 管理人メモと同スタイル */
.sidebar-right .night-musing-section {
  background: url(paper-t.png) center / 100% 100% no-repeat;
  border: none;
  border-radius: 4px;
  padding: 20px 16px;
  margin: 8px 10px 0;
  min-height: 160px;
  box-shadow: 3px 6px 18px rgba(0,0,0,.5);
}
.sidebar-right .night-musing-section.hidden { display: none; }
.sidebar-right .night-musing-title {
  font-size: .88rem;
  font-weight: 600;
  color: #4a3020;
  margin-bottom: 10px;
  letter-spacing: .1em;
  font-family: var(--yomogi);
  -webkit-text-stroke: 0.3px #4a3020;
}
.sidebar-right .night-musing-text {
  font-size: .82rem;
  color: #3a1e08;
  line-height: 1.75;
  font-family: var(--yomogi);
  white-space: pre-wrap;
  -webkit-text-stroke: 0.2px #3a1e08;
}

/* 右サイドバー内の管理人メモ */
.sidebar-right .admin-memo-section {
  margin: 8px 10px 16px;
  padding: 20px 16px;
  grid-column: unset;
  min-height: 230px;
  box-shadow: 3px 6px 18px rgba(0,0,0,.5);
}
.sidebar-right .admin-memo-section.hidden { display: none; }
.sidebar-right .admin-memo-title {
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: var(--yomogi);
  -webkit-text-stroke: 0.3px #4a3020;
}
.sidebar-right .admin-memo-text {
  font-size: .82rem;
  color: #3a1e08;
  line-height: 1.75;
  font-family: var(--yomogi);
  -webkit-text-stroke: 0.2px #3a1e08;
}

@media (max-width: 900px) {
  .sidebar-right { display: none; }
}

/* ── ホームページ トップバー ── */
body#home-page .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
body#home-page .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-bookshelf-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity .2s;
}
.topbar-bookshelf-link:hover { opacity: .8; }
.topbar-hondana-img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(45,189,160,.35)) brightness(1.08);
  transition: filter .2s;
}
.topbar-bookshelf-link:hover .topbar-hondana-img {
  filter: drop-shadow(0 2px 12px rgba(45,189,160,.55)) brightness(1.18);
}

/* ── 本棚ページ：ページ上部ロゴ ── */
.page-hondana-wrap {
  text-align: center;
  padding: 8px 0 22px;
}
.page-hondana-img {
  width: 70%;
  max-width: 380px;
  filter: drop-shadow(0 4px 20px rgba(45,189,160,.35)) brightness(1.08);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.page-hondana-sub {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .06em;
}

/* ── 本棚入口カード ── */
.bookshelf-gate-section {
  margin: 0;
}
.bookshelf-gate-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(160deg, rgba(45,189,160,.07) 0%, rgba(45,189,160,.14) 100%);
  border: 1px solid rgba(45,189,160,.35);
  border-radius: 14px;
  padding: 14px 20px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .25s;
  cursor: pointer;
}
.bookshelf-gate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(45,189,160,.12) 0%, transparent 70%);
  pointer-events: none;
}
.bookshelf-gate-card:hover {
  border-color: rgba(45,189,160,.65);
  box-shadow: 0 0 32px rgba(45,189,160,.18);
  transform: translateY(-2px);
}

/* 本の背表紙 */
.bookshelf-gate-spines {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  margin-bottom: 4px;
}
.bs-spine {
  display: block;
  width: 22px;
  height: var(--h, 72px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 80%, #fff 20%) 0%, var(--sc) 40%, color-mix(in srgb, var(--sc) 70%, #000 30%) 100%);
  border-radius: 2px 2px 0 0;
  position: relative;
  box-shadow: inset -3px 0 6px rgba(0,0,0,.3), 1px 0 0 rgba(255,255,255,.08);
}
.bs-spine::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: rgba(255,255,255,.15);
  border-radius: 1px;
}
.bookshelf-gate-shelf {
  height: 10px;
  background: linear-gradient(180deg, #5c3a1e 0%, #3d2510 60%, #2a1a0e 100%);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  margin-bottom: 24px;
}

.bookshelf-gate-body {
  text-align: center;
}
.bookshelf-gate-title {
  font-family: var(--klee);
  font-size: 2rem;
  font-weight: 600;
  color: var(--mint-light);
  letter-spacing: .25em;
  margin-bottom: 8px;
}
.bookshelf-gate-count {
  font-size: .82rem;
  color: var(--text-sub);
  margin-bottom: 18px;
  font-family: var(--klee);
}
.bookshelf-gate-btn {
  display: inline-block;
  background: var(--mint-pale);
  border: 1px solid rgba(45,189,160,.4);
  color: var(--mint-light);
  font-family: var(--klee);
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 999px;
  letter-spacing: .08em;
  transition: background .2s, box-shadow .2s;
}
.bookshelf-gate-card:hover .bookshelf-gate-btn {
  background: rgba(45,189,160,.22);
  box-shadow: 0 0 16px rgba(45,189,160,.25);
}
.bookshelf-gate-img {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: -6px auto 14px;
  filter: drop-shadow(0 4px 20px rgba(45,189,160,.28)) brightness(1.08);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── セクションタイトル ── */
body#home-page .todays-title,
body#home-page .fortune-title,
body#home-page .soundtrack-title,
body#home-page .trailer-title {
  letter-spacing: .06em;
}

/* ── セクション：memo-card 内では枠を memo-card に委譲 ── */
body#home-page .memo-card.todays-section,
body#home-page .memo-card.fortune-section,
body#home-page .memo-card.soundtrack-section,
body#home-page .memo-card.trailer-section {
  margin: 0;
}


/* ── 管理人メモ：ヴィンテージ紙スタイル ── */
.admin-memo-section {
  grid-column: span 2;
  position: relative;
  margin-top: 8px;
  background: url(paper-t.png) center / 100% 100% no-repeat;
  border-radius: 4px;
  padding: 44px 44px 38px;
  box-shadow: 0 8px 28px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.4);
}
.admin-memo-section.hidden { display: none; }
.admin-memo-title {
  font-size: 1rem;
  font-weight: 600;
  color: #4a3020;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.admin-memo-text {
  font-size: .95rem;
  color: #2c1a0a;
  line-height: 1.9;
  white-space: pre-wrap;
}

/* ── ホームページ：サイドバー内カード ── */
/* サイドバー構造：上部スクロール＋下部固定カウンター */
#home-sidebar-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* スクロールはscroll-areaが担う */
}
.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 8px;
}
.sidebar-scroll-area::-webkit-scrollbar { width: 3px; }
.sidebar-scroll-area::-webkit-scrollbar-thumb { background: var(--border-dim); border-radius: 2px; }
.home-sidebar-card--bottom {
  flex-shrink: 0;
  margin: 0 10px 10px;
}

.home-sidebar-card {
  margin: 8px 10px 0;
  background: rgba(13, 22, 38, 0.82);
  border: 1px solid rgba(45,189,160,.22);
  border-radius: 10px;
  padding: 14px 14px 16px;
  box-shadow: 3px 6px 18px rgba(0,0,0,.45), inset 0 0 0 1px rgba(45,189,160,.06);
}
.home-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-dim);
}
.home-sidebar-title {
  font-family: var(--yomogi);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--mint-light);
  letter-spacing: .04em;
}

/* ── サイドバー内 本棚ミニカード ── */
.home-sidebar-card.sidebar-bookshelf-card {
  padding: 0;
  background: linear-gradient(160deg, rgba(45,189,160,.08) 0%, rgba(45,189,160,.15) 100%);
  border-color: rgba(45,189,160,.38);
  overflow: hidden;
}
.sidebar-bookshelf-link {
  display: block;
  text-decoration: none;
  padding: 14px 14px 16px;
  text-align: center;
  transition: background .25s;
}
.sidebar-bookshelf-link:hover { background: rgba(45,189,160,.07); }
.sidebar-bookshelf-img {
  display: block;
  width: 96%;
  margin: 0 auto 8px;
  filter: drop-shadow(0 3px 14px rgba(45,189,160,.32)) brightness(1.08);
  pointer-events: none;
}
.sidebar-bookshelf-count {
  font-size: .78rem;
  color: var(--text-sub);
  font-family: var(--klee);
  margin: 0 0 10px;
}
.sidebar-bookshelf-btn {
  display: inline-block;
  background: var(--mint-pale);
  border: 1px solid rgba(45,189,160,.4);
  color: var(--mint-light);
  font-family: var(--klee);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: .06em;
  transition: background .2s, box-shadow .2s;
}
.sidebar-bookshelf-link:hover .sidebar-bookshelf-btn {
  background: rgba(45,189,160,.22);
  box-shadow: 0 0 12px rgba(45,189,160,.2);
}

/* 訪問者カウンター */
.visitor-count-body {
  text-align: center;
  padding: 8px 0 6px;
}
.visitor-count {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--mint-light);
  letter-spacing: -.01em;
}
.visitor-label {
  font-size: 1rem;
  color: var(--text-sub);
  margin-left: 3px;
}
.visitor-sub {
  text-align: center;
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── モバイル専用下部セクション ── */
.mobile-bottom-sections {
  display: none;
}
@media (max-width: 800px) {
  .mobile-bottom-sections {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 4px 40px;
    margin-top: 28px;
  }
  .mobile-bottom-sections .home-sidebar-card {
    margin: 0;
  }
  .mobile-bottom-sections .admin-memo-section {
    grid-column: unset;
    padding: 24px 20px 20px;
    min-height: 280px;
  }
}

/* ホームサイドバー 本棚を検索 */
.sidebar-search-wrap {
  position: relative;
  margin-bottom: 4px;
}
.sidebar-search-results {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 6px;
}
.sidebar-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--border-dim);
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s;
}
.sidebar-search-item:last-child { border-bottom: none; }
.sidebar-search-item:hover { background: rgba(45,189,160,.08); }
.sidebar-search-title {
  font-size: .82rem;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-search-date {
  font-size: .7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ホームサイドバー コメント */
.home-comment-item {
  padding: 9px 6px;
  border-bottom: 1px solid var(--border-dim);
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s;
}
.home-comment-item:last-child { border-bottom: none; }
.home-comment-item:hover { background: rgba(45,189,160,.08); }
.home-comment-movie {
  font-size: .72rem;
  font-weight: 700;
  color: var(--mint);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-comment-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 3px;
}
.home-comment-user {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-sub);
}
.home-comment-date {
  font-size: .65rem;
  color: var(--text-muted);
}
.home-comment-text {
  font-size: .73rem;
  color: var(--text-sub);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-comments-empty {
  font-size: .76rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
}


/* ── 本棚ページ (bookshelf.html) タイトル ── */
body#bookshelf-page .content-title {
  font-family: var(--klee);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mint-light);
}
body#bookshelf-page .sidebar-section {
  color: var(--mint);
  border-top-color: rgba(45,189,160,.2);
}
body#bookshelf-page .admin-link {
  color: var(--mint-light);
}
body#bookshelf-page .admin-link:hover {
  color: var(--mint);
}

