/* =========================================================================
   Echora — single-page static H5 build
   Layout logic mirrors the reference site: fixed 85px icon rail + 100px
   header on desktop, 60px header + 70px tab bar on mobile, ember theme.
   ========================================================================= */

:root {
  --background: #0f0f0f;
  --foreground: #e1e1e1;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --card: #171717;
  --card-2: #222;
  --border: #262626;
  --primary: #ff4d17;
  --primary-rgb: 255, 77, 23;
  --primary-hover: #ff7700;
  --primary-active: #d2613e;
  --primary-dark: #a22600;
  --primary-deep: #240800;
  --primary-deeper: #1a110d;
  --primary-soft: #ff8b5c;
  --primary-highlight: #ffb84d;
  --primary-muted: #4a332c;
  --primary-text: #ffd2b8;
  --secondary: #ffe281;
  --accent: #ff7272;
  --radius: 10px;
  --rail: 85px;
  --header-h: 100px;
  --tabbar-h: 70px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "Noto Sans", "Noto Sans JP", "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(var(--primary-rgb), 0.35); }

.h-full { min-height: 100vh; }

.ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 auto; }
.ico svg { width: 100%; height: 100%; display: block; }
.ico-xs { width: 13px; height: 13px; }
.ico-sm { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ header */
.main-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  z-index: 120;
  background-color: rgba(15, 15, 15, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color .25s, box-shadow .25s;
}
.main-header::before {
  content: "";
  position: absolute; inset: 0;
  background-color: #020202;
  opacity: .35;
  z-index: -1;
}
.main-header.header-solid {
  background-color: rgba(15, 15, 15, 0.72);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  max-width: 1600px;
  margin: 0 auto;
}

.header-left { display: flex; align-items: center; flex: 0 0 auto; }

.header-logo { display: flex; align-items: center; gap: 8px; }
.header-logo-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), .45);
}
.header-logo-word { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #fafafa; }

.header-right-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}

.search-container { position: relative; flex: 1; min-width: 0; max-width: 420px; }

.search-input {
  width: 100%;
  height: 36px;
  border-radius: 25px;
  border: 1px solid transparent;
  background-color: #1d1d1d;
  color: #fff;
  font-size: 13px;
  padding: 0 38px 0 14px;
  outline: none;
  transition: border-color .2s, background-color .2s;
}
.search-input::placeholder { color: #666; }
.search-input:focus { border-color: var(--primary); background-color: #202020; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search-icon-btn {
  position: absolute;
  right: 3px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
}
.search-icon-btn:hover { color: var(--primary-soft); }
.search-icon-btn svg { width: 16px; height: 16px; }

.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.action-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9a9a9a;
  transition: color .2s, background-color .2s;
}
.action-btn:hover { color: #fff; background-color: rgba(255, 255, 255, .07); }
.action-btn .ico { width: 19px; height: 19px; }

.ao-entry { color: var(--primary-soft); }
.ao-dot, .noti-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px #0f0f0f;
}
.noti-dot { background: #ff7272; }

.profile-wrapper { display: inline-flex; }
.profile-image-wrapper {
  width: 34px; height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: inline-flex;
}
.profile-image {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #191919;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 8px;
  border-radius: 99px;
  background: #1d1d1d;
  color: #b9b9b9;
}
.mlt-globe { width: 15px; height: 15px; display: inline-flex; }
.mlt-globe svg { width: 100%; height: 100%; }
.mlt-code { font-size: 10px; font-weight: 800; letter-spacing: .04em; }

/* ----------------------------------------------------------------- sidebar */
.sidebar { display: none; }

/* --------------------------------------------------------------- container */
.page-container {
  padding-top: 60px;
  padding-bottom: calc(var(--tabbar-h) + 12px);
}
.page-wrapper { padding-bottom: 8px; }

/* -------------------------------------------------------------------- hero */
.banner-slot { padding: 10px 12px 0; }
.hero-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #171717;
  aspect-ratio: 16 / 10;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.hero-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.hero-slide { position: relative; flex: 0 0 100%; height: 100%; display: block; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 6, .92) 0%, rgba(6, 6, 6, .55) 52%, rgba(6, 6, 6, .08) 100%),
    linear-gradient(0deg, rgba(6, 6, 6, .82) 0%, transparent 55%);
}
.tone-violet .hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 6, 14, .94) 0%, rgba(20, 12, 34, .6) 52%, rgba(10, 8, 18, .1) 100%),
    linear-gradient(0deg, rgba(6, 6, 10, .84) 0%, transparent 55%);
}
.hero-copy {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 92%;
}
.hero-kicker {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 4px 9px;
  border-radius: 5px;
}
.hero-title {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.hero-sub { font-size: 12px; color: rgba(255, 255, 255, .78); max-width: 92%; }
.hero-cta {
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 800;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(10, 10, 10, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: .85;
}
.hero-arrow:hover { background: rgba(var(--primary-rgb), .8); }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
.hero-arrow .ico { width: 16px; height: 16px; }
.hero-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 5px; }
.hero-dot { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .35); transition: .25s; }
.hero-dot.on { width: 18px; background: var(--primary); }
.hero-counter {
  position: absolute;
  right: 12px; bottom: 10px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 2px 8px;
  border-radius: 99px;
}

/* ------------------------------------------------------------------ notice */
.notice-banner {
  display: block;
  background: linear-gradient(to right, var(--primary-deep), var(--primary-dark) 50%, var(--primary-active));
  border-radius: 10px;
  height: 46px;
  margin: 12px;
  overflow: hidden;
}
.notice-content { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 100%; }
.notice-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex: 0 0 auto;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.notice-slider { position: relative; flex: 1; height: 20px; overflow: hidden; }
.notice-text {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--primary-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .4s, transform .4s;
}
.notice-text.on { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------- home lists */
.curation-list { display: flex; flex-direction: column; gap: 26px; padding: 10px 12px 0; }

.poster-header, .cc-header, .all-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.poster-header-left, .cc-header-left, .all-head-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.poster-title, .cc-title, .all-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fafafa;
}
.title-spark { font-size: 14px; }
.poster-sub, .cc-sub, .all-sub { font-size: 11px; color: #7d7d7d; }
.poster-more, .cc-more, .sec-more {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-soft);
  white-space: nowrap;
}
.poster-more:hover, .cc-more:hover, .sec-more:hover { color: var(--primary); }

.poster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 6px; }

.poster-card {
  position: relative;
  display: block;
  aspect-ratio: 292 / 399;
  background: #171717;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.poster-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42.6%, rgba(35, 35, 35, .8) 85.15%);
  pointer-events: none;
}
.poster-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .55); }
.poster-media { position: absolute; inset: 0; display: block; overflow: hidden; }
.rm-cf-layer { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.poster-card:hover .rm-cf-layer { transform: scale(1.05); }
.poster-name {
  position: absolute;
  left: 9px; right: 9px; bottom: 8px;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  color: #eee;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-badge {
  position: absolute;
  left: 7px; top: 7px;
  z-index: 3;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #fff;
  padding: 3px 6px;
  border-radius: 5px;
  backdrop-filter: blur(6px);
}
.badge-new { background: linear-gradient(135deg, var(--primary), var(--primary-soft)); }
.badge-hot { background: linear-gradient(135deg, #e03033, var(--accent)); }
.badge-popular { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26); }

/* -------------------------------------------------------------- carousel cc */
.cc-body { position: relative; }
.cc-carousel { position: relative; }
.cc-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  margin: 0 -12px;
  padding: 0 12px;
}
.cc-viewport::-webkit-scrollbar { display: none; }
.cc-track { display: flex; gap: 8px; align-items: stretch; padding-bottom: 2px; }

.curated-card {
  flex: 0 0 142px;
  width: 142px;
  display: flex;
  flex-direction: column;
  background: #222;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s;
}
.curated-card:hover { transform: translateY(-3px); }
.curated-thumb {
  position: relative;
  height: 142px;
  background: #171717;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  display: block;
}
.curated-thumb-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.1);
  opacity: .55;
  transform: scale(1.15);
}
.curated-media { position: absolute; inset: 0; z-index: 1; display: block; overflow: hidden; }
.curated-info { display: flex; flex-direction: column; gap: 2px; padding: 8px 9px 10px; }
.curated-name {
  font-size: 12px; font-weight: 800; color: #eee;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.curated-creator { font-size: 10px; color: var(--primary-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.curated-description {
  font-size: 10px; line-height: 1.4; color: #9a9a9a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-more-card {
  flex: 0 0 142px;
  width: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111 0, var(--primary-deeper) 100%);
  box-shadow: inset 0 0 15px rgba(255, 255, 255, .18);
}
.cc-more-card-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #262626;
  color: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-more-card-icon .ico { width: 18px; height: 18px; }
.cc-more-card-text { font-size: 12px; font-weight: 700; color: #ccc; }
.cc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(12, 12, 12, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cc-arrow .ico { width: 15px; height: 15px; }
.cc-prev { left: -4px; }
.cc-next { right: -4px; }

/* --------------------------------------------------------------- all section */
.all-tools { display: flex; align-items: center; gap: 8px; }
.filter-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  background: #1d1d1d;
  border: 1px solid var(--border);
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 700;
  transition: .2s;
}
.filter-pill:hover { color: #fff; border-color: #3a3a3a; }
.filter-pill.on {
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), .3);
}

.sort-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  background: #1d1d1d;
  border: 1px solid var(--border);
}
.sort-ico { color: #8a8a8a; }
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  outline: none;
  color: #e1e1e1;
  font-size: 12px;
  font-weight: 700;
  padding-right: 4px;
  cursor: pointer;
}
.sort-select option { background: #1a1a1a; color: #e1e1e1; }

.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.content-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #171717;
  transition: transform .3s, box-shadow .3s;
}
.content-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .5); }
.card-image { position: absolute; inset: 0; display: block; overflow: hidden; }
.content-card:hover .rm-cf-layer { transform: scale(1.05); }
.card-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 9px;
  background: linear-gradient(0deg, rgba(6, 6, 6, .95) 6%, rgba(6, 6, 6, .6) 40%, transparent 72%);
}
.card-title { font-size: 12px; font-weight: 800; color: #fff; }
.card-desc {
  font-size: 10px; line-height: 1.35; color: #b9b9b9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }
.card-tag {
  font-size: 8px; font-weight: 700; color: var(--primary-text);
  background: rgba(var(--primary-rgb), .16);
  border: 1px solid rgba(var(--primary-rgb), .3);
  padding: 1px 5px;
  border-radius: 99px;
  white-space: nowrap;
}
.card-stats { display: flex; gap: 9px; margin-top: 3px; font-size: 9px; color: #8f8f8f; }
.card-stat { display: inline-flex; align-items: center; gap: 3px; }

/* ------------------------------------------------------------------- feed */
.feed-page { padding: 0 12px; }
.page-header { padding: 12px 0 4px; }
.page-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fafafa;
}
.page-title-back {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b9b9b9;
  margin-left: -6px;
}
.page-title-back:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.page-title-back .ico { width: 17px; height: 17px; }
.page-sub { font-size: 12px; color: #8a8a8a; margin-top: 4px; }

.feed-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  background: #1d1d1d;
  border: 1px solid var(--border);
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 700;
}
.feed-tab.on {
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  border-color: transparent;
  color: #fff;
}
.feed-sort-collapse { padding: 8px 0 12px; }
.feed-sort-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed-count { font-size: 11px; color: #7d7d7d; }

/* ------------------------------------------------------------------ detail */
.content-detail-page { position: relative; }
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(64px) saturate(1.2) brightness(.42);
  transform: scale(1.2);
}
.bg-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(80% 55% at 50% 0%, rgba(15, 15, 15, .5), #0f0f0f 76%);
}
.content-area { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 6px 12px 20px; }

.mobile-back-row { position: relative; z-index: 2; padding: 6px 8px 0; }
.mobile-back-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 10, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.mobile-back-btn .ico { width: 17px; height: 17px; }

.pc-top-section { display: flex; flex-direction: column; gap: 14px; }
.pc-thumbnail {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #171717;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  flex: 0 0 auto;
}
.pc-thumbnail-img { width: 100%; height: 100%; object-fit: cover; }
.content-badges { position: absolute; left: 10px; top: 10px; }
.content-badges .content-badge { position: static; display: inline-block; }

.pc-info { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-section { display: flex; flex-direction: column; gap: 10px; }
.character-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.character-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.15;
  min-width: 0;
}
.character-row-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.like-button, .menu-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #d8d8d8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.like-button.on { color: var(--primary); border-color: rgba(var(--primary-rgb), .5); background: rgba(var(--primary-rgb), .14); }
.like-button .ico, .menu-btn .ico { width: 17px; height: 17px; }

.creator-row { display: flex; align-items: center; gap: 10px; }
.creator { font-size: 13px; color: var(--primary-soft); font-weight: 700; }
.follow-btn {
  height: 26px;
  padding: 0 11px;
  border-radius: 99px;
  border: 1px solid rgba(var(--primary-rgb), .55);
  color: var(--primary-soft);
  font-size: 11px;
  font-weight: 800;
}
.follow-btn.on { background: rgba(var(--primary-rgb), .16); color: #fff; border-color: transparent; }

.description { font-size: 13px; line-height: 1.6; color: #c8c8c8; }

.meta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #a0a0a0; }
.meta-item .ico { color: #8a8a8a; }
.view-all-gallery-btn {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-soft);
}

.hashtags { display: flex; flex-wrap: wrap; gap: 6px; }
.hashtag-pill {
  font-size: 11px;
  font-weight: 600;
  color: #cfcfcf;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .09);
  padding: 3px 9px;
  border-radius: 99px;
}

.pc-info-bottom { display: flex; flex-direction: column; gap: 12px; }
.start-setting {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 10px 12px;
}
.start-title-row { margin-bottom: 8px; }
.start-title { font-size: 12px; font-weight: 800; color: #e1e1e1; }
.start-expand { display: flex; flex-direction: column; gap: 6px; }
.start-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 12px;
  color: #9a9a9a;
  line-height: 1.45;
}
.start-radio {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid #4a4a4a;
  flex: 0 0 auto;
  margin-top: 1px;
  position: relative;
}
.start-item.on { color: #f0f0f0; }
.start-item.on .start-radio { border-color: var(--primary); }
.start-item.on .start-radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--primary);
}

.action-bar { display: flex; }
.action-btn--chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-active) 60%, var(--primary-dark));
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), .32);
  transition: filter .2s, transform .2s;
}
.action-btn--chat:hover { filter: brightness(1.08); }
.action-btn--chat:active { transform: scale(.99); }
.action-btn--chat .ico { width: 17px; height: 17px; }

.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: var(--tabbar-h);
  z-index: 95;
  padding: 10px 12px;
  background: linear-gradient(0deg, #0f0f0f 55%, rgba(15, 15, 15, 0));
}
.mobile-cta-bar .action-btn--full { display: flex; }

.pc-bottom-sections { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-title { font-size: 15px; font-weight: 800; color: #fafafa; }
.section-more { font-size: 12px; font-weight: 700; color: var(--primary-soft); }

.solo-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 12px;
}
.solo-card-head { display: flex; align-items: center; gap: 10px; }
.solo-ring { position: relative; width: 44px; height: 44px; flex: 0 0 44px; }
.solo-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.solo-ring-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 3; }
.solo-ring-fill { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.solo-face {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  overflow: hidden;
}
.solo-face img { width: 100%; height: 100%; object-fit: cover; }
.solo-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.solo-name { font-size: 13px; font-weight: 800; color: #f2f2f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solo-sub { font-size: 10px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.solo-count { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: 0 0 auto; }
.solo-count-num { font-size: 13px; font-weight: 800; color: #fff; }
.solo-count-sub { font-size: 9px; color: var(--primary-soft); }
.solo-card-divider { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 0; }
.grade-line { display: flex; gap: 6px; flex-wrap: wrap; }
.grade-chip {
  font-size: 10px;
  font-weight: 700;
  color: #cfcfcf;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 3px 8px;
  border-radius: 99px;
}
.grade-chip b { font-weight: 800; color: #fff; margin-left: 2px; }
.grade-bronze { border-color: rgba(205, 127, 50, .45); color: #e0a86a; }
.grade-silver { border-color: rgba(192, 192, 192, .4); color: #d6d6d6; }
.grade-gold { border-color: rgba(255, 184, 77, .45); color: var(--primary-highlight); }
.grade-platinum { border-color: rgba(120, 220, 232, .4); color: #8fe3ee; }

.gallery-slider-wrap { margin-top: 10px; }
.gallery-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.gallery-scroll-container::-webkit-scrollbar { display: none; }
.gallery-card {
  position: relative;
  flex: 0 0 132px;
  width: 132px;
  aspect-ratio: 3 / 4;
  border-radius: 11px;
  overflow: hidden;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, .07);
  scroll-snap-align: start;
}
.gallery-card--login { border-color: rgba(var(--primary-rgb), .5); }
.login-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  text-align: center;
  background: linear-gradient(160deg, #241009, #150b07);
}
.login-card-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  filter: blur(1px) saturate(.8);
  opacity: .8;
}
.login-card-text { font-size: 10px; line-height: 1.4; color: #d8c3b8; }
.login-card-btn {
  height: 26px;
  padding: 0 12px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.gallery-card--unlocked { border-color: rgba(var(--primary-rgb), .45); }
.card-image { width: 100%; height: 100%; object-fit: cover; }
.card-image--blur { filter: blur(9px) brightness(.6); transform: scale(1.12); }
.unlock-tag {
  position: absolute;
  left: 6px; bottom: 6px;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  background: rgba(var(--primary-rgb), .8);
  padding: 2px 6px;
  border-radius: 4px;
}
.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, .35);
}
.lock-icon-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 10, .72);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #e1e1e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.lock-icon-circle .ico { width: 15px; height: 15px; }

.details-body {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 12px;
}
.details-text { font-size: 13px; line-height: 1.65; color: #c2c2c2; }
.details-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 11px; color: #7d7d7d; }

.prologue-card {
  position: relative;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 12px 12px 12px 16px;
}
.prologue-card::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}
.prologue-line { font-size: 13px; line-height: 1.6; color: #ececec; font-style: italic; }
.prologue-note { font-size: 11px; color: #7d7d7d; margin-top: 8px; }

.comments-section { padding-bottom: 8px; }
.comment-count { font-size: 11px; color: #7d7d7d; }
.comment-form { display: flex; gap: 8px; margin-bottom: 10px; }
.comment-input {
  flex: 1;
  height: 38px;
  border-radius: 99px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: #fff;
  font-size: 12px;
  padding: 0 14px;
  outline: none;
}
.comment-input:focus { border-color: var(--primary); }
.comment-submit {
  height: 38px;
  padding: 0 16px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.comment-list { display: flex; flex-direction: column; gap: 8px; }
.comment-item { display: flex; gap: 8px; }
.comment-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #232323;
  color: #cfcfcf;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.comment-body { background: rgba(255, 255, 255, .045); border-radius: 10px; padding: 8px 11px; }
.comment-user { font-size: 10px; font-weight: 800; color: var(--primary-soft); }
.comment-text { font-size: 12px; color: #dcdcdc; line-height: 1.5; margin-top: 2px; }
.comment-empty { font-size: 12px; color: #7d7d7d; }

/* -------------------------------------------------------------------- chat */
.chat-page {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 12px;
  height: calc(100dvh - 60px - var(--tabbar-h));
  min-height: 420px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  flex: 0 0 auto;
}
.chat-back {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b9b9b9;
}
.chat-back .ico { width: 17px; height: 17px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-head-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.chat-name { font-size: 14px; font-weight: 800; color: #fafafa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-status { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #8a8a8a; }
.dot-online { width: 6px; height: 6px; border-radius: 50%; background: #3ecf8e; }
.chat-new {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-soft);
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid rgba(var(--primary-rgb), .35);
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 99px; }
.chat-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 16px;
  text-align: center;
}
.chat-intro-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.chat-intro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-intro-name { font-size: 13px; font-weight: 800; color: #f2f2f2; }
.chat-intro-text { font-size: 12px; line-height: 1.6; color: #a8a8a8; max-width: 460px; font-style: italic; }
.chat-row { display: flex; gap: 7px; align-items: flex-end; }
.chat-row.me { justify-content: flex-end; }
.chat-row-avatar { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; }
.chat-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-bubble {
  max-width: 78%;
  font-size: 13px;
  line-height: 1.55;
  padding: 9px 12px;
  border-radius: 14px;
  background: #1e1e1e;
  color: #e6e6e6;
  border-bottom-left-radius: 5px;
}
.chat-row.me .chat-bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  color: #fff;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 5px;
}
.chat-typing {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #8a8a8a;
  padding-left: 30px;
}
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary-soft);
  animation: typing 1.1s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.chat-hint { font-size: 10px; color: #6b6b6b; text-align: center; padding: 4px 0 6px; flex: 0 0 auto; }
.chat-composer {
  display: flex;
  gap: 8px;
  padding: 6px 0 12px;
  flex: 0 0 auto;
}
.chat-input {
  flex: 1;
  height: 42px;
  border-radius: 99px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  color: #fff;
  font-size: 13px;
  padding: 0 16px;
  outline: none;
}
.chat-input:focus { border-color: var(--primary); }
.chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.chat-send .ico { width: 17px; height: 17px; }

/* ------------------------------------------------------------- empty blocks */
.empty-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 48px 20px;
}
.empty-block--tall { min-height: 60vh; }
.empty-ico {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), .1);
  border: 1px solid rgba(var(--primary-rgb), .28);
  color: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.empty-ico svg { width: 22px; height: 22px; }
.empty-title { font-size: 15px; font-weight: 800; color: #ededed; }
.empty-sub { font-size: 12px; color: #8a8a8a; max-width: 320px; }
.empty-btn {
  margin-top: 6px;
  height: 36px;
  padding: 0 18px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--primary), var(--primary-active));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

/* ------------------------------------------------------------------ footer */
.site-footer { background: #191919; margin-top: 34px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 30px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-link { font-size: 12px; font-weight: 700; color: #999; }
.footer-link:hover { color: var(--primary-soft); }
.footer-tagline { font-size: 11px; color: #6f6f6f; line-height: 1.6; }
.footer-copyright { font-size: 11px; color: #999; }
.footer-logo { font-size: 15px; font-weight: 900; color: #3a3a3a; letter-spacing: .02em; }

/* --------------------------------------------------------------- tab bar */
.nav-container {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--tabbar-h);
  display: flex;
  align-items: stretch;
  background-color: #121315;
  border-top: 1px solid #1f2023;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item-inner-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #666;
  font-size: 10px;
  font-weight: 700;
  transition: color .2s;
}
.nav-item-inner-wrap.active { color: #fafafa; }
.nav-item-inner-wrap .nav-icon { width: 20px; height: 20px; }
.nav-item-inner-wrap .nav-icon svg { width: 100%; height: 100%; }

/* -------------------------------------------------------------- lang menu */
.lang-menu {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.96);
  width: min(320px, 88vw);
  max-height: 72vh;
  overflow-y: auto;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 8px;
  z-index: 260;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.lang-menu.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.lang-menu-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7d7d7d;
  padding: 8px 10px 6px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  color: #e1e1e1;
  font-size: 13px;
  text-align: left;
}
.lang-option:hover { background: rgba(255, 255, 255, .06); }
.lang-option.on { background: rgba(var(--primary-rgb), .15); color: #fff; }
.lang-code { font-size: 9px; font-weight: 900; letter-spacing: .06em; color: var(--primary-soft); width: 20px; }
.lang-native { flex: 1; }
.lang-check { width: 16px; height: 16px; color: var(--primary); display: inline-flex; }
.lang-check svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px);
  z-index: 240;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.97);
  width: min(420px, 90vw);
  background: #151515;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  z-index: 265;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.sheet.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sheet-title { font-size: 14px; font-weight: 800; color: #fafafa; }
.sheet-close { width: 26px; height: 26px; border-radius: 50%; color: #9a9a9a; }
.sheet-close:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sheet-body { padding: 16px; }
.sheet-text { font-size: 13px; line-height: 1.6; color: #b9b9b9; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 20px);
  transform: translate(-50%, 16px);
  max-width: 88vw;
  padding: 10px 18px;
  border-radius: 99px;
  background: rgba(30, 30, 30, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fafafa;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================================================================= tablet */
@media (min-width: 641px) {
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .curated-card, .cc-more-card { flex: 0 0 160px; width: 160px; }
  .curated-thumb { height: 160px; }
  .poster-name { font-size: 13px; }
  .hero-title { font-size: 30px; }
  .hero-copy { left: 26px; right: 26px; bottom: 24px; gap: 8px; }
  .hero-sub { font-size: 13px; }
  .banner-slot { padding: 14px 16px 0; }
  .notice-banner { margin: 14px 16px; }
  .curation-list { padding: 14px 16px 0; }
  .feed-page { padding: 0 16px; }
  .content-area { padding: 10px 16px 24px; }
  .pc-thumbnail { max-width: 380px; }
  .character-name { font-size: 28px; }
  .gallery-card { flex: 0 0 150px; width: 150px; }
  .footer-inner { padding: 34px 20px 36px; }
  .chat-page { padding: 0 16px; }
}

/* ================================================================= desktop */
@media (min-width: 1025px) {
  body { font-size: 14px; }

  .main-header { height: var(--header-h); background-color: transparent; border-bottom-color: transparent; }
  .main-header::before { opacity: .8; }
  .header-inner { padding: 0 30px 0 calc(var(--rail) + 24px); gap: 24px; }

  .header-logo { display: none; }
  .header-right-section { gap: 24px; }
  .search-container { max-width: 460px; flex: 0 1 460px; margin-left: auto; }
  .search-input { height: 44px; font-size: 14px; padding-left: 16px; padding-right: 40px; }
  .search-icon-btn { width: 36px; height: 36px; right: 4px; }
  .header-actions { gap: 14px; }
  .action-btn { width: 40px; height: 40px; }
  .action-btn .ico { width: 21px; height: 21px; }
  .mobile-lang-trigger { display: none; }
  .profile-image-wrapper { width: 38px; height: 38px; }

  /* icon rail */
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--rail);
    padding: 16px 0 18px;
    background: #0a0a0a;
    border-right: 1px solid rgba(255, 255, 255, .05);
    z-index: 130;
    overflow: hidden;
    transition: width .22s ease, box-shadow .22s ease;
  }
  .sidebar:hover { width: 224px; box-shadow: 26px 0 60px rgba(0, 0, 0, .55); }

  .sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 0 0 26px;
    margin-bottom: 18px;
    flex: 0 0 auto;
  }
  .sidebar-logo-mini {
    width: 33px; height: 33px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 33px;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), .45);
  }
  .sidebar-logo-full {
    font-size: 16px;
    font-weight: 900;
    color: #fafafa;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .16s;
  }
  .sidebar:hover .sidebar-logo-full { opacity: 1; }

  .sidebar-content { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 6px; }

  .sidebar-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    height: 46px;
    padding: 0 11px;
    border-radius: 12px;
    color: #8a8a8a;
    white-space: nowrap;
    transition: background-color .2s, color .2s;
  }
  .nav-item:hover { background: rgba(255, 255, 255, .055); color: #fafafa; }
  .nav-item.active { color: var(--primary); background: rgba(var(--primary-rgb), .12); }
  .nav-item .nav-icon { width: 22px; height: 22px; flex: 0 0 22px; }
  .nav-item .nav-icon svg { width: 100%; height: 100%; }
  .nav-label { font-size: 13px; font-weight: 700; opacity: 0; transition: opacity .16s; }
  .sidebar:hover .nav-label { opacity: 1; }

  .lang-switch { padding: 8px 12px 0; }
  .lang-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
    padding: 0 11px;
    border-radius: 12px;
    color: #8a8a8a;
    width: 100%;
  }
  .lang-trigger:hover { background: rgba(255, 255, 255, .055); color: #fafafa; }
  .lang-globe { width: 20px; height: 20px; flex: 0 0 20px; display: inline-flex; }
  .lang-globe svg { width: 100%; height: 100%; }
  .lang-current { font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transition: opacity .16s; }
  .lang-chevron { width: 14px; height: 14px; opacity: 0; transition: opacity .16s; display: inline-flex; margin-left: auto; }
  .lang-chevron svg { width: 100%; height: 100%; }
  .sidebar:hover .lang-current, .sidebar:hover .lang-chevron { opacity: 1; }

  .recent-chats { display: none; }
  .sidebar:hover .recent-chats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px 0;
    min-height: 0;
    overflow: hidden;
  }
  .recent-chats-header { padding: 0 11px 4px; }
  .recent-chats-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #5f5f5f;
  }
  .recent-chats-content { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
  .chat-empty { font-size: 11px; color: #5a5a5a; padding: 4px 11px; white-space: nowrap; }
  .recent-chat-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 11px;
    border-radius: 10px;
    color: #9a9a9a;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
  }
  .recent-chat-item:hover { background: rgba(255, 255, 255, .055); color: #fafafa; }
  .rc-avatar { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; flex: 0 0 24px; }
  .rc-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .rc-name { overflow: hidden; text-overflow: ellipsis; }

  .sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px 0;
    flex: 0 0 auto;
  }
  .footer-icons { display: flex; flex-direction: column; gap: 4px; }
  .footer-icon-btn {
    width: 40px; height: 40px;
    border-radius: 11px;
    color: #6f6f6f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footer-icon-btn:hover { background: rgba(255, 255, 255, .055); color: #fafafa; }
  .footer-icon-btn .ico { width: 19px; height: 19px; }
  .footer-copyright { display: none; font-size: 10px; color: #4d4d4d; line-height: 1.5; white-space: normal; }
  .sidebar:hover .footer-copyright { display: block; }

  /* container */
  .page-container { padding-top: var(--header-h); padding-left: var(--rail); padding-bottom: 0; }
  .nav-container { display: none; }
  .mobile-cta-bar { display: none; }

  /* hero */
  .banner-slot { padding: 4px 30px 0; }
  .hero-carousel { aspect-ratio: 16 / 7.2; border-radius: 16px; }
  .hero-copy { left: 44px; bottom: 40px; gap: 10px; max-width: 52%; }
  .hero-kicker { font-size: 10px; padding: 5px 11px; }
  .hero-title { font-size: 44px; line-height: 1.05; }
  .hero-sub { font-size: 15px; }
  .hero-cta { height: 40px; padding: 0 20px; font-size: 13px; margin-top: 8px; }
  .hero-arrow { width: 40px; height: 40px; opacity: 0; transition: opacity .25s; }
  .hero-carousel:hover .hero-arrow { opacity: 1; }
  .hero-prev { left: 16px; }
  .hero-next { right: 16px; }
  .hero-arrow .ico { width: 18px; height: 18px; }
  .hero-dots { bottom: 18px; gap: 6px; }
  .hero-dot { width: 7px; height: 7px; }
  .hero-dot.on { width: 22px; }
  .hero-counter { right: 20px; bottom: 16px; font-size: 11px; padding: 3px 10px; }

  /* notice */
  .notice-banner { margin: 20px auto; max-width: 1200px; height: 50px; border-radius: 10px; }
  .notice-content { gap: 20px; padding: 0 20px; }
  .notice-dot { width: 12px; height: 12px; }
  .notice-text { font-size: 13px; }

  /* lists */
  .curation-list { gap: 40px; padding: 20px 30px 0; max-width: 1360px; margin: 0 auto; }
  .poster-header, .cc-header, .all-head { margin-bottom: 16px; }
  .poster-title, .cc-title, .all-title { font-size: 22px; gap: 8px; }
  .title-spark { font-size: 18px; }
  .poster-sub, .cc-sub, .all-sub { font-size: 12px; color: #8a8a8a; }
  .poster-more, .cc-more { font-size: 13px; }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .poster-card { border-radius: 10px; }
  .poster-name { font-size: 15px; left: 11px; right: 11px; bottom: 10px; }
  .content-badge { font-size: 9px; padding: 3px 7px; left: 8px; top: 8px; }

  .cc-viewport { margin: 0; padding: 0; }
  .cc-track { gap: 10px; }
  .curated-card, .cc-more-card { flex: 0 0 160px; width: 160px; }
  .curated-thumb { height: 160px; }
  .curated-info { padding: 10px; gap: 3px; }
  .curated-name { font-size: 13px; }
  .curated-creator { font-size: 11px; }
  .curated-description { font-size: 11px; }
  .cc-more-card-icon { width: 48px; height: 48px; }
  .cc-more-card-icon .ico { width: 20px; height: 20px; }
  .cc-more-card-text { font-size: 14px; }
  .cc-arrow { width: 34px; height: 34px; opacity: 0; transition: opacity .2s; }
  .cc-carousel:hover .cc-arrow { opacity: 1; }
  .cc-prev { left: -14px; }
  .cc-next { right: -14px; }

  .all-tools { gap: 10px; }
  .filter-bar { gap: 8px; padding-bottom: 16px; }
  .filter-pill { height: 34px; padding: 0 16px; font-size: 13px; }
  .sort-select-wrap { height: 34px; }
  .sort-select { font-size: 13px; }
  .content-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .content-card { border-radius: 12px; aspect-ratio: 3 / 3.85; }
  .card-overlay { padding: 12px; gap: 4px; }
  .card-title { font-size: 14px; }
  .card-desc { font-size: 11px; }
  .card-tag { font-size: 9px; padding: 2px 7px; }
  .card-stats { font-size: 10px; gap: 12px; }

  /* feed */
  .feed-page { padding: 0 30px; max-width: 1360px; margin: 0 auto; }
  .page-header { padding: 18px 0 6px; }
  .page-title { font-size: 26px; }
  .page-title-back { display: none; }
  .feed-tabs { gap: 10px; padding: 14px 0 6px; }
  .feed-tab { height: 34px; padding: 0 18px; font-size: 13px; }
  .feed-sort-collapse { padding: 10px 0 18px; }
  .feed-count { font-size: 12px; }

  /* detail */
  .content-area { padding: 10px 30px 40px; max-width: 1240px; }
  .mobile-back-row { display: none; }
  .pc-top-section { flex-direction: row; gap: 36px; align-items: flex-start; padding-top: 14px; }
  .pc-thumbnail { flex: 0 0 380px; width: 380px; max-width: 380px; margin: 0; border-radius: 18px; }
  .pc-info { flex: 1; gap: 18px; padding-top: 4px; }
  .character-name { font-size: 40px; }
  .character-row { align-items: flex-start; }
  .character-row-actions { margin-top: 6px; }
  .like-button, .menu-btn { width: 38px; height: 38px; }
  .creator { font-size: 14px; }
  .follow-btn { height: 30px; padding: 0 14px; font-size: 12px; }
  .description { font-size: 14px; line-height: 1.65; }
  .description-block { padding-right: 40px; }
  .meta-row { gap: 18px; }
  .meta-item { font-size: 13px; }
  .view-all-gallery-btn { font-size: 13px; }
  .hashtag-pill { font-size: 12px; padding: 4px 11px; }
  .pc-info-bottom { gap: 16px; }
  .start-setting { padding: 14px 16px; border-radius: 14px; }
  .start-title { font-size: 13px; }
  .start-item { font-size: 13px; }
  .action-btn--chat { height: 54px; font-size: 16px; border-radius: 14px; }

  .pc-bottom-sections { gap: 30px; margin-top: 34px; }
  .section-title { font-size: 18px; }
  .section-more { font-size: 13px; }
  .solo-card { padding: 16px; border-radius: 16px; }
  .solo-ring, .solo-ring svg { width: 52px; height: 52px; }
  .solo-ring { flex: 0 0 52px; }
  .solo-name { font-size: 15px; }
  .solo-sub { font-size: 11px; }
  .solo-count-num { font-size: 15px; }
  .solo-count-sub { font-size: 10px; }
  .grade-chip { font-size: 11px; padding: 4px 10px; }
  .gallery-card { flex: 0 0 172px; width: 172px; border-radius: 12px; }
  .login-card-img { width: 50px; height: 50px; }
  .login-card-text { font-size: 11px; }
  .details-body, .prologue-card { padding: 16px; border-radius: 14px; }
  .details-text, .prologue-line { font-size: 14px; }
  .comment-input, .comment-submit { height: 42px; font-size: 13px; }
  .comment-text { font-size: 13px; }

  /* chat */
  .chat-page { height: calc(100dvh - var(--header-h)); padding: 0 30px; }
  .chat-head { padding: 14px 0; }
  .chat-avatar { width: 40px; height: 40px; }
  .chat-name { font-size: 15px; }
  .chat-bubble { font-size: 14px; max-width: 66%; }
  .chat-intro-avatar { width: 64px; height: 64px; }
  .chat-intro-text { font-size: 13px; }
  .chat-input { height: 46px; font-size: 14px; }
  .chat-send { width: 46px; height: 46px; }
  .chat-composer { padding: 10px 0 20px; }

  /* footer */
  .site-footer { margin-top: 50px; }
  .footer-inner { padding: 50px 30px 56px; gap: 16px; }
  .footer-links { gap: 24px; }
  .footer-link { font-size: 14px; }
  .footer-tagline { font-size: 12px; }
  .footer-copyright { font-size: 13px; }
  .footer-logo { font-size: 18px; }

  .toast { bottom: 36px; }
}

@media (min-width: 1280px) {
  .content-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1500px) {
  .content-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* ===================================================================== */
/* Runtime hardening: CTA sizing, mobile header density, mobile hero      */
/* ===================================================================== */

/* the chat CTA reuses .action-btn for icon sizing; force full-width button */
.action-bar .action-btn--chat,
.mobile-cta-bar .action-btn--chat {
  width: 100%;
  height: 48px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-active) 60%, var(--primary-dark));
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), .32);
}
.action-bar .action-btn--chat .ico,
.mobile-cta-bar .action-btn--chat .ico { width: 18px; height: 18px; }
.action-bar .action-btn--chat:hover,
.mobile-cta-bar .action-btn--chat:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-active) 60%, var(--primary-dark));
  filter: brightness(1.06);
}

/* gallery progress ring reads better with a slightly heavier stroke */
.solo-ring-track, .solo-ring-fill { stroke-width: 3.5; }
.solo-ring-fill { filter: drop-shadow(0 0 3px rgba(var(--primary-rgb), .75)); }
.solo-face { inset: 6px; }

@media (min-width: 1025px) {
  .action-bar .action-btn--chat { height: 54px; font-size: 16px; border-radius: 14px; }
}

@media (max-width: 1024px) {
  /* header: keep the search field usable by trimming secondary actions */
  .header-actions { gap: 2px; }
  .header-actions .ao-entry,
  .header-actions .noti-entry { display: none; }
  .header-logo-word { font-size: 15px; }
  .header-logo-mark { width: 28px; height: 28px; font-size: 15px; }
  .search-container { margin: 0 2px; }
  .search-input { height: 34px; font-size: 12px; padding: 0 32px 0 12px; }
  .search-icon-btn { width: 30px; height: 30px; }

  /* hero: taller frame, no floating arrows on touch */
  .hero-arrow { display: none; }
  .hero-carousel { aspect-ratio: 4 / 3; border-radius: 12px; }
  .hero-copy { left: 16px; right: 16px; bottom: 16px; max-width: none; gap: 6px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 12px; }
  .hero-kicker { font-size: 9px; }
  .hero-cta { height: 34px; padding: 0 14px; font-size: 12px; }
  .hero-dots { left: auto; right: 14px; top: 14px; bottom: auto; transform: none; }
  .hero-counter { right: 14px; bottom: 14px; font-size: 10px; }

  /* detail: keep the floating CTA from covering the last block */
  .content-detail-page { padding-bottom: 96px; }
  .poster-name { font-size: 13px; }
}

/* footer must sit above the fixed blurred backdrop used on detail pages */
.site-footer { position: relative; z-index: 1; }
.footer-logo { color: rgba(255, 255, 255, .22); letter-spacing: .02em; }

@media (max-width: 1024px) {
  /* touch carousels scroll by finger; floating arrows only get in the way */
  .cc-arrow { display: none; }
  .poster-title, .cc-title, .all-title { font-size: 19px; gap: 6px; }
  .cc-header, .poster-header, .all-head { gap: 10px; }
}

/* the [hidden] attribute must win over the flex display of the typing row */
.chat-typing[hidden] { display: none !important; }
