/* Episode rating detail page — ported 1:1 from animeoshi-web's ratingPage.module.css
   + ReviewStars + TaggedAnimeCard + MediaGrid (values resolved to literals; AO's
   surface tokens are literal rgba(pebble,x) so no divergence traps here). Class
   names are flattened to the global `arp-` prefix. `.page-content` already adds
   the header offset + min-height, so those are omitted from .arp-page. */

.arp-page {
  width: 100%;
  margin: 0 auto;
  padding-block: 48px;
  padding-inline: clamp(16px, 5vw, 104px);
  display: flex;
  gap: 40px;
  flex-direction: column;
  box-sizing: border-box;
}

.arp-wrap {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 40px;
  width: 100%;
  position: relative;
}

.arp-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }

.arp-post { display: flex; flex-direction: column; gap: 32px; background: transparent; width: 100%; }

/* ── user block ── */
.arp-userblock { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.arp-userinfo { display: flex; align-items: center; gap: 16px; }
.arp-avatarlink { flex-shrink: 0; display: inline-flex; }
.arp-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(237, 237, 237, 0.2); }
.arp-avatar-fallback {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(237, 237, 237, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  border: 2px solid rgba(237, 237, 237, 0.2);
}
.arp-usermeta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.arp-username {
  font-size: 16px; font-weight: 600; color: rgb(237, 237, 237);
  text-decoration: none; transition: opacity 0.2s ease;
}
.arp-username:hover { opacity: 0.8; }
.arp-ratedlabel { font-size: 14px; color: rgba(237, 237, 237, 0.8); }

/* ── review body (SanitizedReview → white-space pre-line text) ── */
.arp-desc-wrap { display: flex; flex-direction: column; gap: 5px; }
.arp-desc {
  font-size: 16px; color: rgba(237, 237, 237, 0.8); margin: 0;
  white-space: pre-line; line-height: 1.8; word-break: break-word; overflow-wrap: break-word;
}

/* ── media grid ── */
.arp-media-wrap { margin-top: 8px; max-width: 600px; }
.arp-media-grid { display: grid; gap: 5px; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.arp-media-layout1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.arp-media-layout2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.arp-media-layout3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.arp-media-layout3 .arp-media-tile:first-child { grid-row: 1 / span 2; }
.arp-media-layout4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.arp-media-tile { position: relative; width: 100%; height: 100%; margin: 0; padding: 0; border: none; background: #1a1a1a; overflow: hidden; }
.arp-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.arp-media-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 30px; font-weight: 700; pointer-events: none;
}

/* ── tags ── */
.arp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.arp-tag {
  padding: 5px 16px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(237, 237, 237, 0.2); border-radius: 9999px;
  font-size: 14px; color: rgba(237, 237, 237, 0.8);
}

/* ── engagement bar ── */
.arp-engagement {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px;
  padding-top: 16px; border-top: 1px solid rgba(237, 237, 237, 0.2);
}
.arp-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.arp-action {
  display: flex; align-items: center; gap: 5px; padding: 8px 16px;
  background: transparent; border: 0; border-radius: 9999px;
  color: rgba(237, 237, 237, 0.8); font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.arp-action:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); color: rgb(237, 237, 237); transform: scale(1.05); }
.arp-action:disabled { opacity: 0.6; cursor: not-allowed; }
.arp-action.arp-upvoted { color: #ddff00; }
/* `display:flex` above beats the UA [hidden] rule — restore it so the owner-only
   Edit stays hidden until CSR confirms is_self. */
.arp-action[hidden] { display: none; }
.arp-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── ReviewStars ── */
.arp-stars { --rs-star: 18px; display: inline-flex; gap: 2px; flex-shrink: 0; }
.arp-star-slot { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--rs-star); height: var(--rs-star); flex-shrink: 0; }
.arp-star-outline { width: var(--rs-star); height: var(--rs-star); flex-shrink: 0; color: rgba(237, 237, 237, 0.35); }
.arp-star-fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; pointer-events: none; display: inline-flex; align-items: center; justify-content: flex-start; }
.arp-star-filled { width: var(--rs-star); min-width: var(--rs-star); height: var(--rs-star); flex-shrink: 0; color: rgb(237, 237, 237); }

/* ── sidebar / TaggedAnimeCard ── */
.arp-sidebar { display: flex; flex-direction: column; gap: 24px; }
.arp-sidebar .arp-card-wrap { position: sticky; top: calc(var(--header-height) + 32px); }
.arp-card-wrap { width: 100%; }
.arp-sidebar-mobile { display: none; }

.arp-card { background: rgba(237, 237, 237, 0.05); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.arp-card-head { display: flex; justify-content: space-between; align-items: center; }
.arp-card-heading {
  margin: 0; font-family: var(--font-montra), var(--font-body); font-size: 18px; line-height: 22px;
  font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgb(237, 237, 237);
}
.arp-card-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.arp-card-cover { position: relative; flex-shrink: 0; width: 56px; height: 80px; border-radius: 4px; overflow: hidden; background: rgba(237, 237, 237, 0.05) center / cover no-repeat; }
.arp-card-middle { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 10px 0; }
.arp-card-title { margin: 0; font-family: var(--font-body); font-size: 14px; line-height: 18px; font-weight: 500; color: rgb(237, 237, 237); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arp-card-tagrow { display: flex; flex-wrap: wrap; gap: 5px; }
.arp-card-tagpill { display: inline-flex; align-items: center; padding: 2px 5px; border-radius: 100px; background: rgba(237, 237, 237, 0.1); font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 500; color: rgb(237, 237, 237); white-space: nowrap; }
.arp-card-scorecol { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; flex-shrink: 0; min-width: 58px; }
.arp-card-score { font-family: var(--font-body); font-size: 24px; line-height: 1; font-weight: 800; color: #ddff00; }
.arp-card-fans { font-family: var(--font-body); font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(237, 237, 237, 0.55); }

/* ── breakpoints ── */
@media (max-width: 1024px) {
  .arp-wrap { display: flex; flex-direction: column; }
  .arp-sidebar { display: none; }
  .arp-sidebar-mobile { display: flex; flex-direction: column; gap: 24px; width: 100%; }
  .arp-post { gap: 24px; }
}
@media (max-width: 768px) {
  .arp-page { padding-inline: 24px; gap: 32px; }
  .arp-post { gap: 16px; }
  .arp-userblock { gap: 8px; }
  .arp-avatar, .arp-avatar-fallback { width: 40px; height: 40px; }
  .arp-avatar-fallback { font-size: 16px; }
  .arp-username { font-size: 14px; }
  .arp-ratedlabel { font-size: 12px; }
  .arp-engagement { padding: 8px 0; }
  .arp-action { padding: 5px 8px; font-size: 12px; }
  .arp-icon { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .arp-page { padding-inline: 16px; }
  .arp-desc { font-size: 14px; }
}

/* ── Leave a Comment button (AO .leaveCommentBtn — pebble pill, charcoal text) ── */
.arp-leavecomment {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 16px;
  border: 0; border-radius: 9999px; background: rgb(237, 237, 237); color: #170d21;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: opacity 0.15s ease; white-space: nowrap;
}
.arp-leavecomment:hover { opacity: 0.85; }
.arp-leavecomment span { color: #170d21; }
.arp-leavecomment-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Comments section (ported from AO reviewCommentSection.module.css) ── */
.arp-comments { display: flex; flex-direction: column; gap: 16px; }
.arp-comments-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.arp-comments-heading { margin: 0; font-family: var(--font-body); font-size: 16px; font-weight: 600; color: rgb(237, 237, 237); }
.arp-comments-sort { display: inline-flex; align-items: center; padding: 3px; border-radius: 9999px; background: rgba(237, 237, 237, 0.08); }
.arp-comments-pill {
  height: 28px; padding: 0 14px; border: 0; border-radius: 9999px; background: transparent;
  color: rgba(237, 237, 237, 0.8); font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease;
}
.arp-comments-pill:hover:not(.arp-comments-pill-active) { color: rgb(237, 237, 237); }
.arp-comments-pill-active { background: rgb(237, 237, 237); color: #170d21; }
.arp-comments-empty { margin: 0; padding: 24px 0; font-family: var(--font-body); font-size: 14px; color: rgba(237, 237, 237, 0.5); text-align: center; }
.arp-comments-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.arp-comment { display: flex; gap: 12px; padding: 14px 16px; background: rgba(237, 237, 237, 0.05); border-radius: 8px; }
.arp-comment-avatar {
  position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(75, 48, 126, 0.6), rgba(24, 13, 34, 0.8));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.arp-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.arp-comment-initial { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: rgb(237, 237, 237); }
.arp-comment-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.arp-comment-meta { display: flex; align-items: center; gap: 8px; }
.arp-comment-user { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: rgb(237, 237, 237); }
.arp-comment-time { margin-left: auto; font-family: var(--font-body); font-size: 12px; color: rgba(237, 237, 237, 0.5); }
.arp-comment-content { margin: 0; font-family: var(--font-body); font-size: 14px; line-height: 18px; color: rgba(237, 237, 237, 0.8); overflow-wrap: anywhere; word-break: break-word; }
.arp-comment-metrics { display: inline-flex; align-items: center; gap: 18px; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: rgba(237, 237, 237, 0.8); }
.arp-comment-metric { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; font-family: inherit; font-size: inherit; padding: 0; color: inherit; }
.arp-comment-metric:hover:not(:disabled) { opacity: 0.8; }
.arp-comment-metric:disabled { cursor: not-allowed; opacity: 0.6; }
.arp-comment-metric-active { color: #fff; }
.arp-comment-metric-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Comment "…" options menu (AO ReviewOptionsMenu) — pushed to the row end ── */
.arp-comment-opts { position: relative; display: inline-flex; }
.arp-comment-optbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9999px; background: transparent; color: rgba(237, 237, 237, 0.7); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.arp-comment-optbtn:hover { background: rgba(237, 237, 237, 0.08); color: rgb(237, 237, 237); }
.arp-comment-opticon { width: 18px; height: 18px; }
/* Right-flyout, vertically centered on the trigger (AO ReviewOptionsMenu .menu). */
.arp-comment-optmenu { position: absolute; left: calc(100% + 4px); top: 50%; transform: translateY(-50%); z-index: 50; min-width: 160px; padding: 4px; border-radius: 12px; border: 1px solid rgba(237, 237, 237, 0.2); background: #170d21; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); }
.arp-comment-optmenu[hidden] { display: none; }
.arp-comment-optitem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: rgb(237, 237, 237); font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.arp-comment-optitem:hover { background: rgba(237, 237, 237, 0.08); }
.arp-comment-optitem-danger, .arp-comment-optitem-danger span { color: var(--color-danger); }
.arp-comment-optitem-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Report-post modal (AO ReportPostModal) — bottom sheet ≤767, centered ≥768 ── */
.arp-report { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.6); }
.arp-report[hidden] { display: none; }
.arp-report-box { display: flex; flex-direction: column; width: 100%; max-width: 700px; max-height: 90vh; overflow-y: auto; background: #170d21; border-radius: 16px 16px 0 0; }
.arp-report-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 16px 20px; border-bottom: 1px solid rgba(237, 237, 237, 0.2); background: #170d21; }
.arp-report-title { margin: 0; font-family: var(--font-montra), var(--font-body); font-size: 18px; letter-spacing: 0.5px; text-transform: uppercase; color: rgb(237, 237, 237); text-align: center; }
.arp-report-close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); padding: 4px; border: 0; background: none; color: rgba(237, 237, 237, 0.7); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s ease; }
.arp-report-close:hover { color: rgb(237, 237, 237); }
.arp-report-content { flex: 1; padding: 20px; }
.arp-report-question { margin: 0 0 24px; font-family: var(--font-body); font-size: 16px; font-weight: 500; color: rgb(237, 237, 237); }
.arp-report-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.arp-report-chip { height: 30px; padding: 0 10px; background: none; border: 1px solid rgba(237, 237, 237, 0.2); border-radius: 6px; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: rgb(237, 237, 237); cursor: pointer; transition: all 0.15s ease; white-space: nowrap; }
.arp-report-chip:hover { background: rgba(237, 237, 237, 0.08); }
.arp-report-chip-active { background: rgb(237, 237, 237); color: #170d21; border-color: transparent; border-radius: 9999px; }
.arp-report-other { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.arp-report-other[hidden] { display: none; }
.arp-report-otherlabel { font-family: var(--font-body); font-size: 16px; font-weight: 600; color: rgb(237, 237, 237); }
.arp-report-otherwrap { position: relative; }
.arp-report-otherinput { box-sizing: border-box; width: 100%; height: 102px; padding: 15px; background: rgba(237, 237, 237, 0.05); border: 0; border-radius: 16px; font-family: var(--font-body); font-size: 14px; color: rgb(237, 237, 237); resize: none; }
.arp-report-otherinput::placeholder { color: rgba(237, 237, 237, 0.55); }
.arp-report-otherinput:focus { outline: none; }
.arp-report-othercount { position: absolute; bottom: 12px; right: 14px; font-size: 14px; color: rgba(237, 237, 237, 0.55); pointer-events: none; }
.arp-report-footer { position: sticky; bottom: 0; padding: 16px 20px; border-top: 1px solid rgba(237, 237, 237, 0.2); background: #170d21; }
.arp-report-submit { width: 100%; height: 50px; padding: 0 32px; border: 0; border-radius: 9999px; background: rgb(237, 237, 237); color: #170d21; font-family: var(--font-body); font-size: 16px; font-weight: 600; cursor: pointer; transition: opacity 0.2s ease; }
.arp-report-submit:hover:not(:disabled) { opacity: 0.9; }
.arp-report-submit:disabled { opacity: 0.2; cursor: not-allowed; }
@media (min-width: 768px) {
  .arp-report { align-items: center; }
  .arp-report-box { border-radius: 16px; max-height: 80vh; }
}


/* ── Comment composer modal — ported from AO PostComment + BaseModal(postComment) ── */
.arp-cmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.6); }
.arp-cmodal[hidden] { display: none; }
/* .modal.postComment: charcoal bg, 32px radius, 600px, bordered, clipped column. */
.arp-cmodal-box {
  position: relative; box-sizing: border-box;
  width: min(600px, 92vw); max-height: 85dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #170d21; border: 1px solid rgba(237, 237, 237, 0.2); border-radius: 32px;
  text-align: left;
}
/* Corner close (BaseModal .closeWrapper/.closeButton): 32px circle, inset 12px. */
.arp-cmodal-closewrap {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(237, 237, 237, 0.05); border-radius: 50%;
}
.arp-cmodal-close { width: 100%; height: 100%; padding: 0; border: 0; background: none; color: rgb(237, 237, 237); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arp-cmodal-close:hover { color: rgba(237, 237, 237, 0.7); }
.arp-cmodal-content { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; width: 100%; text-align: left; }
/* header: cover + title, padding 16px 20px, right-cleared for the close (56px). */
.arp-cmodal-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; padding-right: 56px; border-bottom: 1px solid rgba(237, 237, 237, 0.2); flex-shrink: 0; }
.arp-cmodal-cover { position: relative; width: 40px; height: 56px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: rgba(237, 237, 237, 0.05) center / cover no-repeat; }
.arp-cmodal-title { margin: 0; font-family: var(--font-montra), var(--font-body); font-size: 18px; color: rgb(237, 237, 237); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arp-cmodal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
/* ── Rich-text editor — mirrors AO RichTextEditor (bare variant + toolbar) ── */
.arp-cmodal-editor { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 220px; }
.arp-cmodal-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0;
  padding: 6px 20px; border-bottom: 1px solid rgba(237, 237, 237, 0.08);
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; flex-shrink: 0;
}
.arp-cmodal-toolbar::-webkit-scrollbar { display: none; }
.arp-cmodal-tool {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0;
  border: 0; border-radius: 6px; background: transparent; color: rgba(237, 237, 237, 0.7);
  font-family: var(--font-body); font-size: 12px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.arp-cmodal-tool em { font-style: italic; }
.arp-cmodal-tool u { text-decoration: underline; }
.arp-cmodal-tool s { text-decoration: line-through; }
.arp-cmodal-tool:hover { background: rgba(237, 237, 237, 0.1); color: rgb(237, 237, 237); }
.arp-cmodal-tool.arp-active { background: rgb(237, 237, 237); color: #170d21; }
.arp-cmodal-tooldiv { width: 1px; height: 18px; margin: 0 4px; background: rgba(237, 237, 237, 0.2); flex-shrink: 0; }
.arp-cmodal-input {
  flex: 1 1 auto; width: 100%; box-sizing: border-box; min-height: 200px;
  padding: 10px 20px 16px; background: transparent; border: 0; outline: none;
  color: rgb(237, 237, 237); font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  text-align: left; overflow-wrap: anywhere;
}
.arp-cmodal-input:empty::before { content: attr(data-placeholder); color: rgba(237, 237, 237, 0.4); pointer-events: none; }
/* Prose — mirrors AO's ProseMirror content styles */
.arp-cmodal-input p { margin: 0 0 0.5em; }
.arp-cmodal-input p:last-child { margin-bottom: 0; }
.arp-cmodal-input strong, .arp-cmodal-input b { font-weight: 700; }
.arp-cmodal-input em, .arp-cmodal-input i { font-style: italic; }
.arp-cmodal-input u { text-decoration: underline; }
.arp-cmodal-input s, .arp-cmodal-input del { text-decoration: line-through; }
.arp-cmodal-input h2 { font-family: var(--font-montra), var(--font-body); font-size: 18px; font-weight: 500; margin: 0.75em 0 0.4em; color: rgb(237, 237, 237); }
.arp-cmodal-input h3 { font-family: var(--font-montra), var(--font-body); font-size: 16px; font-weight: 500; margin: 0.6em 0 0.3em; color: rgb(237, 237, 237); }
.arp-cmodal-input ul, .arp-cmodal-input ol { padding-left: 1.4em; margin: 0.4em 0; }
.arp-cmodal-input li { margin-bottom: 0.2em; }
.arp-cmodal-input blockquote { border-left: 3px solid rgba(237, 237, 237, 0.2); padding-left: 16px; margin: 0.5em 0; color: rgba(237, 237, 237, 0.7); font-style: italic; }
.arp-cmodal-input a { color: rgb(237, 237, 237); text-decoration: underline; cursor: pointer; }
/* footer: media icons + spoiler on the left, Submit on the right. */
.arp-cmodal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 20px; border-top: 1px solid rgba(237, 237, 237, 0.2); flex-shrink: 0; }
.arp-cmodal-footer-left { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Camera/video attachments are hidden until the backend supports comment media. */
.arp-cmodal-iconbtn { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 9999px; background: rgba(237, 237, 237, 0.15); color: rgb(237, 237, 237); cursor: pointer; transition: background 0.15s ease; }
.arp-cmodal-iconbtn:hover { background: rgba(237, 237, 237, 0.1); }
.arp-cmodal-iconbtn svg { width: 16px; height: 16px; }
.arp-cmodal-spoiler { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-family: var(--font-body); font-size: 14px; color: rgba(237, 237, 237, 0.8); }
.arp-cmodal-spoiler-input { position: absolute; opacity: 0; pointer-events: none; }
.arp-cmodal-spoiler-dot { width: 16px; height: 16px; border-radius: 9999px; border: 2px solid rgba(237, 237, 237, 0.2); transition: background 0.15s ease, border-color 0.15s ease; }
.arp-cmodal-spoiler-input:checked + .arp-cmodal-spoiler-dot { background: #ddff00; border-color: #ddff00; }
.arp-cmodal-submit { min-width: 120px; padding: 10px 20px; border: 0; border-radius: 9999px; background: rgb(237, 237, 237); color: #170d21; font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s ease; }
.arp-cmodal-submit:hover:not(:disabled) { opacity: 0.85; }
.arp-cmodal-submit:disabled { opacity: 0.5; cursor: not-allowed; }
/* Mobile: bottom sheet (BaseModal ≤640 postComment). */
@media (max-width: 640px) {
  .arp-cmodal { align-items: flex-end; padding: 0; }
  .arp-cmodal-box { width: 100%; max-width: none; max-height: 90dvh; border-radius: 32px 32px 0 0; border-bottom: 0; }
}
