:root {
  --text: #111111;
  --muted: #929292;
  --line: #f1f1f1;
  --bg: #ffffff;
  --tag: #1677ff;

  --header-h: 60px;
  --page-max: 880px;
  --post-max: 700px;
  --radius: 9px;

  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body {
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* =========================
   HEADER
========================= */

.site-header {
  height: var(--header-h);
background: rgba(255, 255, 255, 0.98);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  width: min(var(--page-max), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* =========================
   COMMON PAGE
========================= */

.page-shell {
  width: min(var(--page-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 84px;
}

.page-intro {
  margin-bottom: 38px;
}

.page-intro h1,
.section-intro h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.045em;
}

/* =========================
   HOME
========================= */

.home-section {
  margin-top: 54px;
}

.home-section:first-of-type {
  margin-top: 0;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.view-all {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 400;
  color: #777777;
}

.view-all:hover {
  color: #111111;
}

/* =========================
   CONTENT GRID / CARD
========================= */

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 38px;
}

/* 메인 페이지 미리보기는 PC에서 한 줄에 4개 */
.home-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
}

.content-card {
  display: block;
  min-width: 0;
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f5f5f5;
}

.card-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.content-card:hover .card-thumb {
  transform: scale(1.012);
  opacity: 0.98;
}

.card-thumb--empty {
  background: #f4f4f4;
}

.card-title {
  margin-top: 11px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: -0.025em;
  word-break: keep-all;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-date {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
}

/* =========================
   BACK BUTTON
========================= */

.back-row {
  height: 28px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.back-link {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
  font-size: 0;
}

.back-link::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-left: 1.7px solid #111;
  border-bottom: 1.7px solid #111;
  transform: rotate(45deg);
}

.back-link::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 14px;
  height: 1.7px;
  background: #111;
}

/* =========================
   SECTION PAGE
========================= */

.section-shell {
  padding-top: 38px;
}

.section-intro {
  margin-bottom: 30px;
}

.section-intro p {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* =========================
   POST PAGE
========================= */

.post-shell {
  width: min(var(--post-max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 88px;
}

.post-back-row {
  margin-bottom: 34px;
}

.post-header h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.post-date {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.post-body {
  margin-top: 40px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.post-body p {
  margin: 0 0 22px;
}

.post-body figure {
  margin: 30px 0;
  width: 100%;
}

.post-body img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.post-body video {
  display: block;
  width: 100%;
  height: auto;
  margin: 30px 0;
}

.post-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
}

.tag {
  color: var(--tag);
  font-size: 13px;
  font-weight: 500;
}

/* =========================
   IMAGE VIEWER
========================= */

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
  touch-action: none;
}

.image-viewer.is-open {
  display: block;
}

.viewer-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.viewer-image {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

.viewer-topbar {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  z-index: 4;
}

.viewer-button,
.viewer-nav,
.viewer-bottombar button {
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.viewer-close {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 72px;
  transform: translateY(-50%);
  font-size: 50px;
  font-weight: 200;
  line-height: 1;
  opacity: 0.88;
}

.viewer-prev {
  left: 8px;
}

.viewer-next {
  right: 8px;
}

.viewer-bottombar {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 4;
  transform: translateX(-50%);

  min-width: 164px;
  height: 40px;
  padding: 0 13px;

  border-radius: 22px;
  background: rgba(26, 26, 26, 0.76);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.viewer-bottombar button {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 20px;
  font-weight: 300;
}

.viewer-zoom-label {
  width: 50px;
  text-align: center;
  font-size: 11px;
  color: #eeeeee;
}

body.viewer-open {
  overflow: hidden;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {
  :root {
    --header-h: 56px;
    --radius: 8px;
  }

  .site-header-inner,
  .page-shell,
  .post-shell {
    width: calc(100% - 32px);
  }

  .site-title {
    font-size: 14px;
    font-weight: 700;
  }

  .page-shell {
    padding: 28px 0 64px;
  }

  .page-intro {
    margin-bottom: 32px;
  }

  .page-intro h1,
  .section-intro h1 {
    font-size: 23px;
  }

  .home-section {
    margin-top: 46px;
  }

  .section-heading-row {
    margin-bottom: 14px;
  }

  .section-heading-row h2 {
    font-size: 18px;
    font-weight: 650;
  }

  .view-all {
    font-size: 12px;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 30px;
  }

  .home-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .card-title {
    margin-top: 9px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.42;
  }

  .card-date {
    margin-top: 4px;
    font-size: 10.5px;
  }

  .section-shell {
    padding-top: 28px;
  }

  .back-row {
    height: 26px;
    margin-bottom: 18px;
  }

  .back-link {
    width: 26px;
    height: 26px;
  }

  .back-link::before {
    left: 7px;
    top: 7px;
  }

  .back-link::after {
    left: 8px;
    top: 12px;
  }

  .section-intro {
    margin-bottom: 24px;
  }

  .section-intro p {
    margin-top: 7px;
    font-size: 11px;
  }

  .post-shell {
    padding-top: 30px;
  }

  .post-back-row {
    margin-bottom: 28px;
  }

  .post-header h1 {
    font-size: 22px;
    line-height: 1.4;
  }

  .post-date {
    margin-top: 9px;
    font-size: 11px;
  }

  .post-body {
    margin-top: 32px;
    font-size: 15px;
    line-height: 1.75;
  }

  .post-body p {
    margin-bottom: 18px;
  }

  /* 모바일에서는 b.stage처럼 이미지가 좌우 여백을 살짝 넘어가도록 */
  .post-body figure {
    margin: 26px -16px;
    width: calc(100% + 32px);
  }

  .post-tags {
    margin-top: 26px;
    padding-bottom: 14px;
    gap: 6px 9px;
  }

  .tag {
    font-size: 12.5px;
  }

  .viewer-image {
    max-width: 100vw;
    max-height: 92vh;
  }

  .viewer-nav {
    width: 42px;
    font-size: 42px;
  }

  .viewer-prev {
    left: 0;
  }

  .viewer-next {
    right: 0;
  }

  .viewer-close {
    width: 40px;
    height: 40px;
    font-size: 32px;
  }

  .viewer-bottombar {
    min-width: 156px;
    height: 38px;
  }
}

/* =========================================================
   NAVIGATION
========================================================= */

.site-header-inner {
  gap: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 23px;
}

.site-nav a {
  color: #686868;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-nav a:hover {
  color: #111111;
}

/* =========================================================
   HOME - KISS OF LIFE PREVIEW
========================================================= */

.home-shell .kiss-home-section {
  margin-top: 0;
}

.contents-intro {
  margin-top: 68px;
  margin-bottom: 38px;
}

.kiss-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.kiss-preview-card {
  display: block;
  min-width: 0;
}

.kiss-preview-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.kiss-preview-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  background: #eeeeee;
}

.kiss-preview-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 600;
}

.kiss-preview-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 7px;
  background: #f3f3f3;
}

.kiss-preview-media img,
.kiss-preview-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.kiss-preview-text {
  margin-top: 8px;
  min-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11.5px;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.kiss-preview-date {
  margin-top: 4px;
  color: #989898;
  font-size: 10px;
}

/* =========================================================
   KISS OF LIFE FEED - PC
========================================================= */

.star-page-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 94px;
}

.star-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 600px);
  justify-content: center;
  align-items: start;
  gap: 52px;
  min-width: 0;
}

.member-panel {
  position: sticky;
  top: 88px;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.member-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #222222;
  text-decoration: none;
}

.member-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #eeeeee;
}

.member-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.member-filter.is-active .member-avatar {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.member-filter.is-active .member-name {
  font-weight: 700;
}

.star-feed {
  width: 100%;
  max-width: 600px;
  min-width: 0;
}

.star-post-card {
  width: 100%;
  padding: 0 0 42px;
  margin: 0 0 38px;
  border-bottom: 1px solid #eeeeee;
}

.star-post-card:last-child {
  border-bottom: 0;
}

.star-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
}

.star-author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.star-author-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #eeeeee;
}

.star-author-name {
  font-size: 13.5px;
  font-weight: 650;
}

.star-verified {
  width: 16px;
  height: 16px;
  margin-left: -2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff8500;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
}

.star-media,
.star-detail-media {
  width: 100%;
  min-width: 0;
}

.star-carousel-stage {
  position: relative;
  width: 100%;
}

.star-image-track {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.star-image-track::-webkit-scrollbar {
  display: none;
}

.star-image-item {
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
}

.star-image-item a {
  display: block;
  width: 100%;
}

.star-image-item img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #000000;
  border-radius: 9px;
}

.star-feed-video,
.star-detail-video {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #000000;
  border-radius: 9px;
}

.star-carousel-dots {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.star-carousel-dot {
  width: 4px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #aaaaaa;
  cursor: pointer;
}

.star-carousel-dot.is-active {
  background: #111111;
}

.star-carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.star-carousel-nav[hidden] {
  display: none;
}

.star-carousel-prev {
  left: 10px;
}

.star-carousel-next {
  right: 10px;
}

.star-post-link {
  color: inherit;
  text-decoration: none;
}

.star-text {
  margin-top: 8px;
  white-space: pre-wrap;
  word-break: keep-all;
  font-size: 14px;
  line-height: 1.58;
  letter-spacing: -0.02em;
}

.star-post-card:not(.has-media) .star-text {
  margin-top: 1px;
  font-size: 17px;
}

.star-meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #858585;
  font-size: 11px;
}

.star-meta-dot {
  color: #aaaaaa;
}

/* =========================================================
   STAR POST DETAIL
========================================================= */

.star-detail-shell {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 0;
}

.star-detail-post {
  width: 100%;
  padding-bottom: 64px;
}

.star-detail-content {
  width: 100%;
}

.star-detail-post .star-author-row {
  margin-bottom: 18px;
}

.star-detail-post .star-author-avatar {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.star-detail-post .star-text {
  margin-top: 10px;
  font-size: 14.5px;
}

.star-detail-post .star-meta {
  margin-top: 11px;
}

.star-detail-media {
  width: min(580px, 100%);
  margin: 0 auto;
}

.star-detail-media .star-carousel-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 9px;
  background: #000000;
}

.star-detail-media .star-image-track,
.star-detail-media .star-image-item {
  height: 100%;
}

.star-detail-media .star-image-item img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 0;
  cursor: zoom-in;
}

.star-detail-video {
  width: min(580px, 100%);
  margin: 0 auto;
}

/* =========================================================
   STAR COMMENTS
========================================================= */

.star-comments-section {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 38px 0 58px;
  background: #f6f6f6;
}

.star-comments-inner {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
}

.star-comments-title {
  margin: 0 0 26px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.star-comment-thread {
  margin-bottom: 21px;
}

.star-comment-thread:last-child {
  margin-bottom: 0;
}

.star-comment-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
}

.star-comment-head .star-author-avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  outline: 1px solid #ff8500;
  outline-offset: 1px;
}

.star-comment-head .star-author-name {
  font-size: 13px;
}

.star-comment-date {
  margin-left: 2px;
  color: #999999;
  font-size: 11px;
}

.star-comment-bubble {
  margin-left: 44px;
  padding: 14px 17px;
  border: 1px solid #dfdfdf;
  border-radius: 15px;
  background: #f2f2f2;
  font-size: 13px;
  line-height: 1.55;
}

.star-parent-quote {
  margin-bottom: 8px;
  color: #606060;
  font-size: 12px;
  line-height: 1.5;
}

.star-parent-quote strong {
  font-weight: 500;
}

.star-member-reply {
  white-space: pre-wrap;
  color: #222222;
  font-size: 14px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) and (min-width: 641px) {
  .star-page-shell {
    width: min(900px, calc(100% - 40px));
  }

  .star-layout {
    grid-template-columns: 150px minmax(0, 680px);
    gap: 48px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .site-header-inner {
    width: calc(100% - 32px);
    gap: 13px;
  }

  .site-title {
    flex: 1 1 auto;
    white-space: nowrap;
    font-size: 13px;
  }

  .site-nav {
    gap: 9px;
  }

  .site-nav a {
    font-size: 9.5px;
  }

  .kiss-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 11px;
  }

  .contents-intro {
    margin-top: 54px;
    margin-bottom: 32px;
  }

  .star-page-shell {
    width: 100%;
    padding: 20px 0 64px;
  }

  .star-layout {
    display: block;
  }

  .member-panel {
    position: static;
    width: 100%;
    padding: 0 14px 22px;
    border-bottom: 1px solid #eeeeee;
  }

  .member-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .member-filter {
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .member-avatar {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .member-name {
    width: 100%;
    font-size: 11px;
    text-align: center;
  }

  .star-feed {
    width: 100%;
    max-width: none;
  }

  .star-post-card {
    padding: 23px 14px 30px;
    margin: 0;
  }

  .star-author-row {
    margin-bottom: 16px;
  }

  .star-author-avatar {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .star-author-name {
    font-size: 12.5px;
  }

  .star-image-item img,
  .star-feed-video {
    max-height: 74vh;
    border-radius: 7px;
  }

  .star-text {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.55;
  }

  .star-post-card:not(.has-media) .star-text {
    font-size: 15.5px;
  }

  .star-meta {
    margin-top: 10px;
    font-size: 10.5px;
  }

  .star-carousel-dots {
    height: 19px;
  }

  .star-detail-shell {
    width: 100%;
    padding: 24px 0 0;
  }

  .star-detail-post {
    padding-bottom: 44px;
  }

  .star-detail-post > .star-detail-content > .star-author-row,
  .star-detail-post > .star-detail-content > .star-text,
  .star-detail-post > .star-detail-content > .star-meta {
    margin-left: 14px;
    margin-right: 14px;
  }

  .star-detail-media {
    width: 100%;
  }

  .star-detail-media .star-carousel-stage {
    border-radius: 0;
    aspect-ratio: 1 / 1;
  }

  .star-detail-video {
    width: 100%;
    max-height: 80vh;
    border-radius: 0;
  }

  .star-detail-post .star-text {
    font-size: 13.5px;
  }

  .star-carousel-nav {
    width: 31px;
    height: 46px;
    font-size: 26px;
  }

  .star-comments-section {
    padding: 30px 0 44px;
  }

  .star-comments-inner {
    width: calc(100% - 28px);
  }

  .star-comments-title {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .star-comment-thread {
    margin-bottom: 19px;
  }

  .star-comment-head .star-author-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .star-comment-bubble {
    margin-left: 0;
    padding: 13px 15px;
    border-radius: 14px;
  }

  .star-parent-quote {
    font-size: 11.5px;
  }

  .star-member-reply {
    font-size: 13.5px;
  }
}

.star-text,.star-member-reply,.star-parent-quote,.card-title,.post-body {font-family:"Pretendard",-apple-system,BlinkMacSystemFont,"Malgun Gothic","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;}
html{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.16) transparent;}
::-webkit-scrollbar{width:8px;height:8px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:rgba(0,0,0,.14);border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.24);border:2px solid transparent;background-clip:padding-box;}
::-webkit-scrollbar-button,::-webkit-scrollbar-button:single-button,::-webkit-scrollbar-button:vertical:start:decrement,::-webkit-scrollbar-button:vertical:end:increment{display:none!important;width:0!important;height:0!important;}

/* =========================================================
   V9 NAV ACTIVE STATES
========================================================= */

.site-nav a {
  font-weight: 500;
  color: #777;
}

.home-page .nav-home,
.star-feed-page .nav-kiss,
.star-post-detail-page .nav-kiss,
.contents-index-page .nav-contents,
.section-page .nav-contents,
.post-page .nav-contents {
  color: #111;
  font-weight: 700;
}

/* =========================================================
   V9 CONTENTS-ONLY
========================================================= */

.contents-only-shell {
  padding-top: 42px;
}

/* =========================================================
   V9 STAR AUTHOR DATE
========================================================= */

.star-author-link {
  align-items: center;
}

.star-author-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.2;
}

.star-author-date {
  color: #999;
  font-size: 10.5px;
  font-weight: 400;
}

/* Slightly more separation between member list and feed on desktop */
@media (min-width: 1001px) {
  .star-layout {
    gap: 86px;
  }
}

@media (min-width: 641px) and (max-width: 1000px) {
  .star-layout {
    gap: 62px;
  }
}

/* =========================================================
   V9 STAR COMMENT CARD
========================================================= */

.star-parent-quote {
  margin: 0 0 10px;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  color: #777;
  font-size: 11px;
  line-height: 1.45;
}

.star-parent-label {
  display: block;
  margin-bottom: 3px;
  color: #888;
  font-size: 10.5px;
  font-weight: 500;
}

.star-parent-body {
  display: block;
}

.star-member-reply {
  font-size: 13.5px;
  line-height: 1.55;
}

.star-comments-more {
  display: block;
  margin: 22px auto 0;
  padding: 8px 24px;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.star-comments-more:hover {
  color: #111;
}

.star-comments-more[hidden],
.star-comment-thread[hidden] {
  display: none !important;
}

/* =========================================================
   V9 VIEWER DOWNLOAD
========================================================= */

.viewer-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-action {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.58);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.viewer-action:hover {
  background: rgba(45, 45, 45, 0.82);
}

@media (max-width: 640px) {
  .viewer-topbar {
    right: 8px;
    gap: 5px;
  }

  .viewer-action {
    min-height: 31px;
    padding: 0 10px;
    font-size: 11px;
  }

  .star-author-date {
    font-size: 10px;
  }

  .star-comments-more {
    margin-top: 18px;
    font-size: 12px;
  }
}


/* =========================================================
   V10 HOME LAYOUT
========================================================= */

/* 메인 페이지만 더 넓게 사용 */
.home-page .site-header-inner,
.home-page .home-shell {
  width: min(1120px, calc(100% - 48px));
}

/* KISS OF LIFE와 Contents 메인 썸네일 규격 통일 */
.home-page .kiss-home-grid,
.home-page .home-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
}

.home-page .kiss-preview-media,
.home-page .card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f5f5;
}

.home-page .kiss-preview-media img,
.home-page .kiss-preview-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 이미지/영상이 없는 STAR POST 썸네일 */
.kiss-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.home-page .kiss-preview-placeholder img {
  width: 25%;
  height: 25%;
  object-fit: contain;
}

/* 단일 이미지도 다중 이미지와 같은 본문 간격 확보 */
.star-carousel-dots--single {
  visibility: hidden;
}

/* 멤버 닉네임 오른쪽 주황 체크 숨김 */
.star-verified {
  display: none !important;
}

/* =========================================================
   V10 IMAGE VIEWER
========================================================= */

.viewer-bottombar {
  display: none !important;
}

.viewer-topbar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.viewer-icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.58);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.viewer-icon-button:hover {
  background: rgba(45, 45, 45, 0.82);
}

.viewer-icon-button svg {
  width: 23px;
  height: 23px;
}

.viewer-close {
  font-size: 31px;
  font-weight: 200;
  line-height: 1;
}

.viewer-save-menu {
  position: relative;
}

.viewer-save-popover {
  position: absolute;
  top: 50px;
  right: 0;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(24, 24, 24, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.viewer-save-popover[hidden] {
  display: none !important;
}

.viewer-save-popover button {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.viewer-save-popover button:hover {
  background: rgba(255, 255, 255, 0.10);
}

.viewer-counter {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 4;
  transform: translateX(-50%);
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.58);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.viewer-image {
  transform: none !important;
  cursor: default;
}

@media (max-width: 640px) {
  .home-page .site-header-inner,
  .home-page .home-shell {
    width: calc(100% - 32px);
  }

  .home-page .kiss-home-grid,
  .home-page .home-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .viewer-icon-button {
    width: 38px;
    height: 38px;
  }

  .viewer-icon-button svg {
    width: 21px;
    height: 21px;
  }

  .viewer-save-popover {
    top: 45px;
    min-width: 142px;
  }

  .viewer-counter {
    bottom: max(14px, env(safe-area-inset-bottom));
    font-size: 11px;
  }
}


/* =========================================================
   V12 FIXED GLOBAL NAVIGATION
========================================================= */

/* PC: left 15% / navbar 70% / right 15%, identical on every page */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
}

.site-header-inner,
.home-page .site-header-inner {
  width: 70vw !important;
  max-width: none !important;
  min-width: 0;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0;
}

body {
  padding-top: var(--header-h);
}

/* =========================================================
   V12 TRANSPARENT VIEWER ICONS
========================================================= */

.viewer-icon-button,
.viewer-icon-button:hover,
.viewer-icon-button:active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.viewer-icon-button:focus,
.viewer-icon-button:focus-visible,
.viewer-save-toggle:focus,
.viewer-save-toggle:focus-visible,
.viewer-close:focus,
.viewer-close:focus-visible {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.viewer-icon-button {
  color: #fff;
}

@media (max-width: 640px) {
  /* Same size across pages; mobile keeps practical 16px side margins. */
  .site-header-inner,
  .home-page .site-header-inner {
    width: calc(100% - 32px) !important;
    max-width: none !important;
  }
}


/* =========================================================
   V13 FONT
========================================================= */

html,
body,
button,
input,
textarea,
select {
  font-family:
    "Noto Sans JP",
    "Pretendard Variable",
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji" !important;
}

/* =========================================================
   V13 GLOBAL FIXED NAV
========================================================= */

/* PC: left 15%, nav content 70%, right 15% */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  width: 100%;
  height: var(--header-h);
}

.site-header-inner,
.home-page .site-header-inner {
  width: 70vw !important;
  max-width: none !important;
  height: var(--header-h);
  margin: 0 auto;
}

/*
  Main과 Contents 페이지 본문은 navbar와 정확히 같은 폭.
  KISS OF LIFE의 .star-page-shell / .star-detail-shell은 건드리지 않는다.
*/
.home-page .home-shell,
.contents-index-page .contents-only-shell {
  width: 70vw !important;
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   V13 SCROLL TO TOP
========================================================= */

.scroll-top-button {
  position: fixed;
  right: 25%;
  bottom: 30px;
  z-index: 250;

  width: 46px;
  height: 46px;
  padding: 0;

  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.94);
  color: #111;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);

  cursor: pointer;

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-button svg {
  width: 22px;
  height: 22px;
}

.scroll-top-button:hover {
  background: #fff;
}

/* =========================================================
   V13 MOBILE BOTTOM NAV
========================================================= */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  /* Mobile top bar is identical across all pages. */
  .site-header-inner,
  .home-page .site-header-inner {
    width: calc(100% - 32px) !important;
    max-width: none !important;
  }

  /*
    Mobile uses the bottom navigation for page movement.
    Keep the site title in the fixed top navbar and hide duplicate text tabs.
  */
  .site-header .site-nav {
    display: none;
  }

  .home-page .home-shell,
  .contents-index-page .contents-only-shell {
    width: calc(100% - 32px) !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 290;

    height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);

    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #eeeeee;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    backdrop-filter: blur(12px);
  }

  .mobile-bottom-item {
    min-width: 0;
    height: 64px;

    color: #9a9a9a;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    text-decoration: none;
  }

  .mobile-bottom-item svg {
    width: 23px;
    height: 23px;
  }

  .mobile-bottom-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 10px;
    line-height: 1.1;
  }

  .home-page .bottom-home,
  .star-feed-page .bottom-kiss,
  .star-post-detail-page .bottom-kiss,
  .contents-index-page .bottom-contents,
  .section-page .bottom-contents,
  .post-page .bottom-contents {
    color: #111111;
    font-weight: 700;
  }

  /* Prevent content from being covered by the fixed bottom bar. */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .scroll-top-button {
    right: 18px;
    bottom: calc(78px + env(safe-area-inset-bottom));

    width: 42px;
    height: 42px;
  }
}


/* =========================================================
   V14 MOBILE BOTTOM BAR - SHORTER
========================================================= */

@media (max-width: 640px) {
  .mobile-bottom-nav {
    height: calc(52px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-bottom-item {
    height: 52px !important;
    gap: 2px !important;
  }

  .mobile-bottom-item svg {
    width: 19px !important;
    height: 19px !important;
  }

  .mobile-bottom-item span {
    font-size: 9px !important;
  }

  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important;
  }

  .scroll-top-button {
    bottom: calc(64px + env(safe-area-inset-bottom)) !important;
  }
}

/* =========================================================
   V14 STAR POST MEDIA -> TEXT SPACING
========================================================= */

/*
  Multiple-image post:
  image + 20px dots + text margin.
  Single-image posts already use an invisible 20px dots row.
  Video posts now get the same invisible row from build.py.
*/
.star-carousel-dots,
.star-carousel-dots--single {
  height: 20px !important;
  min-height: 20px !important;
}

.star-carousel-dots--single {
  visibility: hidden !important;
}

/* =========================================================
   V14 STAR POST FONT SIZE UNIFICATION
========================================================= */

/*
  Existing text-only PC font was 17px.
  User requested 2px smaller and the same size for all STAR feed posts.
*/
.star-post-card .star-text,
.star-post-card:not(.has-media) .star-text {
  font-size: 15px !important;
  line-height: 1.58 !important;
}

/* Keep spacing behavior separate from font size */
.star-post-card:not(.has-media) .star-text {
  margin-top: 1px !important;
}

.star-post-card.has-media .star-text {
  margin-top: 8px !important;
}

@media (max-width: 640px) {
  /*
    Mobile text-only was 15.5px; use roughly 2px smaller
    and apply the same size to media posts.
  */
  .star-post-card .star-text,
  .star-post-card:not(.has-media) .star-text {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
}

/* =========================================================
   V14 CLEAN PREVIEW IMAGE RENDERING
========================================================= */

/*
  Explicitly disable visual effects/transforms that can make
  small previews look grainy or overly sharpened.
*/
.kiss-preview-media img,
.card-thumb {
  image-rendering: auto !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  backface-visibility: visible !important;
  mix-blend-mode: normal !important;
}

/*
  Keep the same 16:9 layout but avoid browser compositing tricks.
*/
.kiss-preview-media,
.card-media {
  transform: none !important;
  isolation: isolate;
}

/* Disable preview hover zoom, which can soften/noise resampling. */
.content-card:hover .card-thumb {
  transform: none !important;
  opacity: 1 !important;
}

/* Media-less STAR thumbnail uses logo2.png */
.kiss-preview-placeholder img {
  image-rendering: auto !important;
  filter: none !important;
}


/* =========================================================
   V15 DESKTOP WIDTH - 10% SIDE MARGINS
========================================================= */

/* Navigation: 10% left + 80% nav + 10% right */
.site-header-inner,
.home-page .site-header-inner {
  width: 80vw !important;
  max-width: none !important;
}

/*
  Home / Contents / Contents section use the same 80vw width.
  KISS OF LIFE feed/detail keep their existing body widths.
*/
.home-page .home-shell,
.contents-index-page .contents-only-shell,
.section-page .section-shell {
  width: 80vw !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* =========================================================
   V15 KISS OF LIFE MEMBER LIST STICKY
========================================================= */

/*
  overflow-x:hidden on html/body can create an overflow ancestor
  that interferes with position:sticky in Chromium.
  clip prevents horizontal spill without creating that scroll box.
*/
html,
body {
  overflow-x: clip !important;
}

.star-page-shell,
.star-layout {
  overflow: visible !important;
}

.member-panel {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: calc(var(--header-h) + 24px) !important;
  align-self: start !important;
  height: max-content;
  z-index: 20;
}

/* =========================================================
   V15 STAR MEDIA/TEXT GAP
========================================================= */

/* Every image/video post reserves exactly the same 20px spacer. */
.star-post-card.has-media .star-carousel-dots,
.star-post-card.has-media .star-carousel-dots--single,
.star-media--video .star-carousel-dots--single {
  display: flex !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.star-carousel-dots--single {
  visibility: hidden !important;
}

.star-feed-video,
.star-video-link {
  display: block !important;
}

/*
  The text starts at the same offset after the 20px spacer,
  regardless of image count or video.
*/
.star-post-card.has-media .star-text {
  margin-top: 8px !important;
}

/* =========================================================
   V15 PREVIEW IMAGE QUALITY
========================================================= */

/*
  Use archived card thumbnails again instead of forcing huge originals
  through a strong browser downscale. Keep browser rendering neutral.
*/
.card-thumb,
.kiss-preview-media img {
  image-rendering: auto !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  scale: none !important;
  mix-blend-mode: normal !important;
}

.card-media,
.kiss-preview-media {
  transform: none !important;
  filter: none !important;
}

/* Prevent hover scaling/resampling. */
.content-card:hover .card-thumb,
.kiss-preview-card:hover .kiss-preview-media img {
  transform: none !important;
}

/* logo2 is only a centered placeholder, never stretched */
.kiss-preview-placeholder img {
  width: 25% !important;
  height: 25% !important;
  object-fit: contain !important;
  image-rendering: auto !important;
  filter: none !important;
}

/* =========================================================
   V15 MOBILE
========================================================= */

@media (max-width: 640px) {
  /*
    Keep the existing practical mobile margins.
    Member list becomes horizontal/top layout there, so sticky is disabled.
  */
  .site-header-inner,
  .home-page .site-header-inner {
    width: calc(100% - 32px) !important;
  }

  .home-page .home-shell,
  .contents-index-page .contents-only-shell,
  .section-page .section-shell {
    width: calc(100% - 32px) !important;
  }

  .member-panel {
    position: static !important;
    top: auto !important;
  }
}


/* =========================================================
   V16 SCROLL-TOP POSITION BY PAGE
========================================================= */

.home-page .scroll-top-button,
.contents-index-page .scroll-top-button,
.section-page .scroll-top-button {
  right: 10% !important;
}

.star-feed-page .scroll-top-button,
.star-post-detail-page .scroll-top-button,
.post-page .scroll-top-button {
  right: 20% !important;
}

/* =========================================================
   V16 MEDIA-LESS THUMBNAIL LOGO
========================================================= */

.kiss-preview-placeholder img {
  width: 30% !important;
  height: 30% !important;
}

/* =========================================================
   V16 KISS OF LIFE BODY WIDTH
========================================================= */

@media (min-width: 641px) {
  .star-feed-page .star-page-shell {
    width: 80vw !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .star-feed-page .star-layout {
    width: 100% !important;
    grid-template-columns: 150px minmax(0, 620px) !important;
    justify-content: space-between !important;
    column-gap: 120px !important;
  }

  .star-feed-page .star-feed {
    width: 100% !important;
    max-width: 620px !important;
  }
}

/* =========================================================
   V16 STAR COMMENT THREADS
========================================================= */

.star-comment-thread {
  margin-bottom: 22px;
}

.star-comment-thread-card {
  padding: 14px 16px;
  border: 1px solid #dedede;
  border-radius: 15px;
  background: #f2f2f2;
}

.star-thread-item {
  margin-left: calc(var(--thread-depth, 0) * 24px);
}

.star-thread-item + .star-thread-item {
  margin-top: 13px;
}

.star-thread-fan {
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #707070;
}

.star-thread-fan-name {
  margin-bottom: 3px;
  color: #929292;
  font-size: 10.5px;
  font-weight: 600;
}

.star-thread-fan-body {
  white-space: pre-wrap;
  font-size: 11.5px;
  line-height: 1.5;
}

.star-thread-member .star-comment-head {
  margin-bottom: 7px;
}

.star-thread-member .star-comment-head .star-author-avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.star-thread-member .star-author-name {
  font-size: 12.5px;
}

.star-thread-member .star-comment-date {
  font-size: 10.5px;
}

.star-thread-member-body {
  margin-left: 38px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  white-space: pre-wrap;
  color: #222;
  font-size: 13.5px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .home-page .scroll-top-button,
  .contents-index-page .scroll-top-button,
  .section-page .scroll-top-button,
  .star-feed-page .scroll-top-button,
  .star-post-detail-page .scroll-top-button,
  .post-page .scroll-top-button {
    right: 18px !important;
  }

  .star-comment-thread-card {
    padding: 12px;
  }

  .star-thread-item {
    margin-left: calc(var(--thread-depth, 0) * 13px);
  }

  .star-thread-member-body {
    margin-left: 0;
    font-size: 13px;
  }

  .star-thread-fan-body {
    font-size: 11.5px;
  }
}


/* =========================================================
   V17 SCROLL TOP
========================================================= */

/* 요청한 네 페이지는 오른쪽 여백 7% */
.home-page .scroll-top-button,
.contents-index-page .scroll-top-button,
.section-page .scroll-top-button,
.star-feed-page .scroll-top-button {
  right: 7% !important;
}

/* 상세페이지는 기존 V16 값 유지 */
.star-post-detail-page .scroll-top-button,
.post-page .scroll-top-button {
  right: 20% !important;
}

/* =========================================================
   V17 HOME - KISS OF LIFE
========================================================= */

.kiss-home-section {
  overflow: visible;
}

.kiss-home-title-row {
  margin-bottom: 25px;
}

.kiss-home-title-row h2 {
  margin: 0;
}

.kiss-member-headings {
  width: 100%;
  margin-bottom: 48px;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  color: #111;
  font-size: 17px;
  font-weight: 500;
}

.kiss-member-headings span {
  text-align: center;
}

.kiss-home-carousel {
  position: relative;
  width: 100%;
}

.kiss-home-strip {
  width: 100%;

  display: flex;
  align-items: stretch;
  gap: 17px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x proximity;
  scrollbar-width: none;

  padding: 0 0 2px;
}

.kiss-home-strip::-webkit-scrollbar {
  display: none;
}

.kiss-preview-card {
  position: relative;

  flex: 0 0 198px;
  width: 198px;
  aspect-ratio: 3 / 4;

  overflow: hidden;
  border-radius: 11px;

  scroll-snap-align: start;

  background: #e99500;
  color: #fff;

  text-decoration: none;
}

.kiss-preview-media {
  position: absolute;
  inset: 0;

  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;

  border-radius: 0 !important;
  overflow: hidden;

  background: #e99500;
}

.kiss-preview-media > img,
.kiss-preview-media > video {
  width: 100% !important;
  height: 100% !important;

  display: block;

  object-fit: cover !important;
  border-radius: 0 !important;

  filter: none !important;
  transform: none !important;
}

/* 이미지 카드 하단 가독성 */
.kiss-preview-card.is-media::after {
  content: "";

  position: absolute;
  inset: auto 0 0;
  z-index: 1;

  height: 42%;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.38),
      rgba(0, 0, 0, 0)
    );

  pointer-events: none;
}

.kiss-preview-text-card {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding: 28px 18px 80px;

  background: #e99500;
}

.kiss-preview-text-only {
  width: 100%;

  overflow: hidden;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;

  color: #fff;

  text-align: center;

  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;

  word-break: keep-all;
}

/* V17: logo2 placeholder 자체를 사용하지 않음 */
.kiss-preview-placeholder {
  display: none !important;
}

.kiss-preview-author-overlay {
  position: absolute;
  left: 50%;
  bottom: 17px;
  z-index: 2;

  transform: translateX(-50%);

  min-width: 76px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.kiss-preview-author-overlay .kiss-preview-avatar {
  width: 54px;
  height: 54px;

  border: 2px solid #f39a00;
  border-radius: 50%;

  object-fit: cover;

  background: #eee;
}

.kiss-preview-author-overlay .kiss-preview-name {
  max-width: 120px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: #fff;

  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.45);

  font-size: 12px;
  font-weight: 650;
}

.kiss-home-next {
  position: absolute;
  top: 50%;
  right: -22px;
  z-index: 5;

  width: 48px;
  height: 48px;

  padding: 0;

  border: 1px solid #ddd;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.96);
  color: #222;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: translateY(-50%);

  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.05);

  cursor: pointer;

  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}

.kiss-home-next svg {
  width: 25px;
  height: 25px;
}

.kiss-home-next.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Previous V10/V14 grid rules should no longer control this section. */
.home-page .kiss-home-grid,
.kiss-home-grid {
  display: block !important;
}

/* =========================================================
   V17 STAR COMMENT THREAD
========================================================= */

.star-comment-thread-card {
  padding: 18px 20px !important;

  border: 1px solid #dedede !important;
  border-radius: 18px !important;

  background: #f2f2f2 !important;
}

.star-thread-entry {
  position: relative;

  margin-left:
    calc(var(--thread-depth, 0) * 36px);
}

.star-thread-entry + .star-thread-entry {
  margin-top: 17px;
}

.star-thread-head,
.star-thread-fan-head {
  min-height: 34px;

  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 8px;
}

.star-thread-head .star-author-avatar {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;

  border-radius: 50%;
  object-fit: cover;
}

.star-thread-head .star-author-name {
  font-size: 13px;
  font-weight: 650;
}

.star-thread-fan-head {
  min-height: auto;
  margin-left: 8px;
}

.star-thread-fan-name {
  color: #666;
  font-size: 12px;
  font-weight: 650;
}

.star-thread-bubble {
  margin-left: 58px;

  padding: 12px 17px;

  border-radius: 14px;

  background: #fff;

  color: #222;

  white-space: pre-wrap;

  font-size: 13.5px;
  line-height: 1.55;
}

/*
  팬 댓글은 "부모 댓글" 역할.
  실제 부모가 멤버인 경우에도 같은 스레드 구조로 보이지만
  이름/프로필은 실제 멤버 정보를 유지한다.
*/
.star-thread-fan .star-thread-bubble {
  margin-left: 0;

  color: #555;

  font-size: 12.5px;
}

/* Root comment has no artificial indent. */
.star-thread-root {
  margin-left: 0 !important;
}

/* Replies are slightly indented like the supplied reference. */
.star-thread-reply {
  padding-left: 0;
}

/* =========================================================
   V17 MOBILE
========================================================= */

@media (max-width: 640px) {
  .home-page .scroll-top-button,
  .contents-index-page .scroll-top-button,
  .section-page .scroll-top-button,
  .star-feed-page .scroll-top-button,
  .star-post-detail-page .scroll-top-button,
  .post-page .scroll-top-button {
    right: 18px !important;
  }

  .kiss-home-title-row {
    margin-bottom: 18px;
  }

  .kiss-member-headings {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .kiss-home-strip {
    gap: 11px;
  }

  .kiss-preview-card {
    flex-basis: 150px;
    width: 150px;
  }

  .kiss-preview-text-card {
    padding:
      22px 13px 69px;
  }

  .kiss-preview-text-only {
    font-size: 12.5px;
  }

  .kiss-preview-author-overlay {
    bottom: 12px;
  }

  .kiss-preview-author-overlay .kiss-preview-avatar {
    width: 45px;
    height: 45px;
  }

  .kiss-preview-author-overlay .kiss-preview-name {
    font-size: 10.5px;
  }

  .kiss-home-next {
    display: none;
  }

  .star-comment-thread-card {
    padding: 14px !important;
  }

  .star-thread-entry {
    margin-left:
      calc(var(--thread-depth, 0) * 15px);
  }

  .star-thread-entry + .star-thread-entry {
    margin-top: 14px;
  }

  .star-thread-head .star-author-avatar {
    width: 33px !important;
    height: 33px !important;
    flex-basis: 33px !important;
  }

  .star-thread-bubble {
    margin-left: 0;
    padding: 11px 13px;
    font-size: 13px;
  }

  .star-thread-fan .star-thread-bubble {
    font-size: 12px;
  }
}


/* =========================================================
   V18 HOME BANNER
========================================================= */

.home-banner-section {
  width: 100%;
  margin: 0 0 54px;
}

.home-banner-picture,
.home-banner-image {
  display: block;
  width: 100%;
}

.home-banner-image {
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

/* =========================================================
   V18 HOME KISS OF LIFE - 7 CARDS VISIBLE
========================================================= */

.kiss-home-strip {
  gap: 12px !important;
}

/*
  7 cards + 6 gaps exactly fill the visible desktop strip.
  (100% - 72px) / 7
*/
.kiss-preview-card {
  flex:
    0 0
    calc((100% - 72px) / 7) !important;

  width:
    calc((100% - 72px) / 7) !important;

  min-width: 0;

  border-radius: 9px !important;
}

.kiss-preview-text-card {
  padding:
    20px 10px 66px !important;
}

.kiss-preview-text-only {
  font-size: 12.5px !important;
  line-height: 1.4 !important;

  -webkit-line-clamp: 4;
}

.kiss-preview-author-overlay {
  bottom: 10px !important;
}

.kiss-preview-author-overlay
.kiss-preview-avatar {
  width: 42px !important;
  height: 42px !important;
}

.kiss-preview-author-overlay
.kiss-preview-name {
  max-width: 92px !important;
  font-size: 10px !important;
}

/* =========================================================
   V18 STAR COMMENTS - MATCH ORIGINAL BSTAGE
========================================================= */

/*
  Layout:
  member profile/name/date
      gray rounded box
        키씨의 댓글 : parent comment
        member reply
*/

.star-comment-thread {
  margin-bottom: 24px !important;
}

.star-comment-thread:last-of-type {
  margin-bottom: 0 !important;
}

.star-comment-head {
  min-height: 38px;

  display: flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 9px !important;
}

.star-comment-head
.star-author-avatar {
  width: 38px !important;
  height: 38px !important;
  flex-basis: 38px !important;

  border: 1.5px solid #ff8500;
  border-radius: 50%;

  object-fit: cover;
}

.star-comment-head
.star-author-name {
  font-size: 13px !important;
  font-weight: 650;
}

.star-comment-head
.star-comment-date {
  color: #999;
  font-size: 11px !important;
}

.star-comment-bubble {
  margin-left: 46px !important;

  padding: 14px 17px !important;

  border: 1px solid #dfdfdf !important;
  border-radius: 15px !important;

  background: #f2f2f2 !important;
}

.star-parent-quote {
  margin: 0 0 7px !important;
  padding: 0 !important;

  border: 0 !important;

  color: #666 !important;

  font-size: 11.5px !important;
  line-height: 1.45 !important;
}

.star-parent-label {
  display: inline !important;

  margin: 0 !important;

  color: #666 !important;

  font-size: inherit !important;
  font-weight: 500 !important;
}

.star-parent-body {
  display: inline !important;
}

.star-member-reply {
  white-space: pre-wrap;

  color: #222 !important;

  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* V17 nested-thread rules are no longer used. */
.star-comment-thread-card,
.star-thread-entry,
.star-thread-member,
.star-thread-fan,
.star-thread-bubble,
.star-thread-head,
.star-thread-fan-head {
  all: unset;
}

/* =========================================================
   V18 MOBILE
========================================================= */

@media (max-width: 640px) {
  .home-banner-section {
    margin-bottom: 34px;
  }

  .home-banner-image {
    width: 100%;
    height: auto;
  }

  .kiss-home-strip {
    gap: 10px !important;
  }

  /* Mobile remains swipe-oriented; 2.3-ish cards visible. */
  .kiss-preview-card {
    flex: 0 0 40% !important;
    width: 40% !important;
  }

  .kiss-preview-text-card {
    padding:
      18px 10px 61px !important;
  }

  .kiss-preview-text-only {
    font-size: 11.5px !important;
  }

  .kiss-preview-author-overlay
  .kiss-preview-avatar {
    width: 39px !important;
    height: 39px !important;
  }

  .star-comment-bubble {
    margin-left: 0 !important;
    padding: 13px 14px !important;
  }

  .star-parent-quote {
    font-size: 11px !important;
  }

  .star-member-reply {
    font-size: 13px !important;
  }
}


/* =========================================================
   V19 HOME BANNER THEME
========================================================= */

:root {
  /*
    banner-theme.js가 실제 banner 이미지 모서리 색을 읽은 뒤
    이 값을 자동으로 덮어쓴다.
  */
  --home-banner-bg: #111111;
}

/*
  Full-viewport banner container.
  home-shell이 80vw여도 이 section만 화면 전체 너비로 확장.
*/
.home-banner-section {
  position: relative;
  left: 50%;

  width: 100vw !important;
  max-width: none !important;
  height: 522px !important;

  margin:
    calc(var(--header-h) * -1)
    0
    58px
    -50vw !important;

  padding-top: var(--header-h);

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--home-banner-bg) !important;
}

.home-banner-picture {
  width: 100%;
  height: calc(522px - var(--header-h));

  display: flex;
  align-items: center;
  justify-content: center;
}

.home-banner-image {
  /*
    컨테이너는 full width,
    실제 배너는 중앙에서 최대한 크게 표시.
    남는 좌우는 샘플링한 동일 배경색으로 채움.
  */
  width: min(1600px, 100%) !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center;

  background: transparent;
}

/* =========================================================
   V19 TALLER GLOBAL NAV
========================================================= */

:root {
  --header-h: 72px;
}

.site-header {
  height: var(--header-h) !important;

  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.site-header-inner,
.home-page .site-header-inner {
  height: var(--header-h) !important;
}

/*
  Home page while header overlaps the banner:
  same color as sampled banner background + white text.
*/
.home-page .site-header.is-over-home-banner {
  background:
    var(--home-banner-bg) !important;

  box-shadow: none !important;
}

.home-page
.site-header.is-over-home-banner
.site-title,
.home-page
.site-header.is-over-home-banner
.site-nav a {
  color: #ffffff !important;
}

/*
  Scroll past the banner:
  return to normal white nav and original dark/gray text.
*/
.home-page
.site-header:not(.is-over-home-banner) {
  background:
    rgba(255, 255, 255, 0.98) !important;
}

.home-page
.site-header:not(.is-over-home-banner)
.site-title {
  color: #111111 !important;
}

.home-page
.site-header:not(.is-over-home-banner)
.site-nav a {
  color: #777777 !important;
}

.home-page
.site-header:not(.is-over-home-banner)
.nav-home {
  color: #111111 !important;
}

/* =========================================================
   V19 CLICKABLE MEMBER HEADINGS
========================================================= */

.kiss-member-headings a {
  color: #111111;

  text-align: center;
  text-decoration: none;

  transition:
    opacity 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .kiss-member-headings a:hover {
    opacity: 0.55;
  }
}

/* =========================================================
   V19 MOBILE
========================================================= */

@media (max-width: 640px) {
  :root {
    --header-h: 62px;
  }

  .home-banner-section {
    height: 522px !important;

    margin:
      calc(var(--header-h) * -1)
      0
      36px
      -50vw !important;

    padding-top: var(--header-h);
  }

  .home-banner-picture {
    height:
      calc(522px - var(--header-h));
  }

  .home-banner-image {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
  }

  .kiss-member-headings a {
    font-size: 12px;
  }
}


/* =========================================================
   V20 BANNER
========================================================= */

:root {
  --home-banner-bg: #000000 !important;
}

/*
  PC:
  기존 522px보다 조금 높게 조정.
  Navbar를 포함한 전체 black area = 570px.
*/
.home-banner-section {
  height: 570px !important;

  background: #000000 !important;

  margin:
    calc(var(--header-h) * -1)
    0
    58px
    -50vw !important;

  padding-top: var(--header-h) !important;
}

.home-banner-picture {
  height:
    calc(570px - var(--header-h)) !important;

  background: #000000 !important;
}

.home-banner-image {
  width: min(1680px, 100%) !important;
  height: 100% !important;

  object-fit: contain !important;
  object-position: center center !important;

  background: #000000 !important;
}

/*
  Home 맨 위의 Navigation도 반드시 pure black.
*/
.home-page
.site-header.is-over-home-banner {
  background: #000000 !important;
}

/* =========================================================
   V20 TRANSPARENT SCROLLBAR BACKGROUND
========================================================= */

html {
  scrollbar-color:
    rgba(255, 255, 255, 0.22)
    transparent !important;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent !important;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner {
  background: transparent !important;
}

::-webkit-scrollbar-thumb {
  background:
    rgba(120, 120, 120, 0.32) !important;

  border: 2px solid transparent !important;
  border-radius: 999px !important;

  background-clip: padding-box !important;
}

::-webkit-scrollbar-thumb:hover {
  background:
    rgba(120, 120, 120, 0.46) !important;

  border: 2px solid transparent !important;
  background-clip: padding-box !important;
}

/* =========================================================
   V20 MOBILE BANNER
========================================================= */

@media (max-width: 640px) {
  /*
    Mobile:
    기존 522px보다 낮게.
    Navbar를 포함한 black banner 전체가 450px.

    banner_vertical 이미지 자체는
    navbar 아래 388px 영역에서 contain으로 표시되며
    object-position:center로 세로 중앙 정렬.

    따라서 이미지 안의 텍스트 중심이
    navbar를 포함한 black container 중앙에
    더 가깝게 위치하도록 조정.
  */
  .home-banner-section {
    height: 450px !important;

    margin:
      calc(var(--header-h) * -1)
      0
      38px
      -50vw !important;

    padding-top:
      var(--header-h) !important;

    background:
      #000000 !important;
  }

  .home-banner-picture {
    height:
      calc(450px - var(--header-h)) !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background:
      #000000 !important;
  }

  .home-banner-image {
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position:
      center center !important;

    background:
      #000000 !important;
  }
}


/* =========================================================
   V22 KISS OF LIFE FEED - LATEST STAR COMMENT PREVIEW
========================================================= */

.star-feed-comment-preview {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  color: inherit;
  text-decoration: none;
}

.star-feed-comment-author {
  flex: 0 0 auto;
  color: #222222;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 700;
  white-space: nowrap;
}

.star-feed-comment-body {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #777777;
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 400;
}

.star-feed-comment-preview:hover .star-feed-comment-body {
  color: #555555;
}

@media (max-width: 640px) {
  .star-feed-comment-preview {
    gap: 7px;
    margin-top: 15px;
  }

  .star-feed-comment-author,
  .star-feed-comment-body {
    font-size: 13px;
    line-height: 1.45;
  }
}


/* =========================================================
   V23.1 BANNER ONLY ADJUSTMENTS
   text-only cards remain original V22 style
========================================================= */

/* ---------------------------------------------------------
   PC HOME BANNER
   image 80vw = left/right 10% black margin
--------------------------------------------------------- */

@media (min-width: 641px) {
  .home-banner-section {
    width: 100vw !important;
    max-width: none !important;
    background: #000000 !important;
  }

  .home-banner-picture {
    width: 80vw !important;
    max-width: 80vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #000000 !important;
  }

  .home-banner-image {
    width: 100% !important;
    max-width: 100% !important;
    background: #000000 !important;
  }
}


/* ---------------------------------------------------------
   MOBILE HOME BANNER
   fixed 450px black area 제거
   banner_vertical image 자체만 표시
--------------------------------------------------------- */

@media (max-width: 640px) {
  .home-banner-section {
    width: 100vw !important;
    max-width: none !important;
    height: auto !important;

    margin:
      calc(var(--header-h) * -1)
      0
      38px
      -50vw !important;

    padding-top: 0 !important;
    display: block !important;
    overflow: hidden !important;
    background: #000000 !important;
  }

  .home-banner-picture {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background: #000000 !important;
  }

  .home-banner-image {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;
    display: block !important;

    object-fit: contain !important;
    object-position: center top !important;
    background: #000000 !important;
  }
}


/* =========================================================
   V23.2 HIDE BROWSER SCROLLBAR
   스크롤 기능은 유지하고 우측 흰 스크롤바 영역만 숨김
========================================================= */

/* Firefox */
html,
body {
  scrollbar-width: none !important;
}

/* Chrome / Edge / Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* 일부 브라우저에서 scrollbar 공간을 미리 확보하지 않도록 */
html {
  scrollbar-gutter: auto !important;
}


/* =========================================================
   V24 PERFORMANCE OPTIMIZATION
========================================================= */

/*
  긴 STAR 피드에서 화면에서 멀리 떨어진 게시글은
  브라우저가 당장 layout/paint하지 않도록 한다.
  디자인에는 영향을 주지 않는다.
*/
@supports (content-visibility: auto) {
  .star-post-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
}

/* 이미지가 디코딩되는 동안 레이아웃 안정성 유지 */
.star-image-item img,
.kiss-preview-media img,
.card-thumb {
  backface-visibility: hidden;
}


/* =========================================================
   V25 MOBILE IMAGE DOWNLOAD
========================================================= */

/* 저장 중 중복 클릭 방지 */
.viewer-save-popover button:disabled,
.viewer-save-toggle:disabled {
  opacity: 0.55;
  cursor: default;
}

/* 모바일에서도 "이 사진만 저장 / 전체 저장" 모두 명확히 표시 */
@media (max-width: 640px) {
  .viewer-save-menu {
    position: relative !important;
    overflow: visible !important;
  }

  .viewer-save-popover {
    top: 44px !important;
    right: 0 !important;
    left: auto !important;

    width: max-content !important;
    min-width: 174px !important;
    max-width: calc(100vw - 24px) !important;

    padding: 6px !important;

    z-index: 20 !important;
    overflow: visible !important;
  }

  .viewer-save-popover:not([hidden]) {
    display: block !important;
  }

  .viewer-save-popover button {
    display: block !important;
    visibility: visible !important;

    width: 100% !important;
    min-height: 42px !important;

    padding: 0 13px !important;

    white-space: nowrap !important;
    font-size: 13px !important;
  }

  .viewer-save-popover button + button {
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
  }
}


/* =========================================================
   V26 MOBILE DETAIL PAGES - HIDE BOTTOM NAV
========================================================= */

@media (max-width: 640px) {
  /*
    상세 페이지에서는 모바일 하단 내비게이션을 표시하지 않는다.

    - KISS OF LIFE 게시글 상세
    - Contents 게시글 상세
  */
  .star-post-detail-page .mobile-bottom-nav,
  .post-page .mobile-bottom-nav {
    display: none !important;
  }

  /*
    기존 하단바 때문에 확보하던 62px 여백 제거.
    iPhone 등의 safe-area만 남긴다.
  */
  body.star-post-detail-page,
  body.post-page {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  /*
    하단바가 없어졌으므로 맨 위로 버튼도 화면 하단으로 이동.
  */
  .star-post-detail-page .scroll-top-button,
  .post-page .scroll-top-button {
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
  }
}
