*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

:root {
  --pink:      #E79A9B;
  --pink-soft: #FAE0D8;
  --pink-deep: #d4787a;
  --cream:     #fdf8f5;
  --ink:       #1a1a1a;
  --muted:     #888;
  --border:    #ede8e3;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.post-content,
.post-title,
.compose-editor,
.compose-title-input,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.news-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
}

.news-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}
.news-back-btn:hover { color: var(--ink); }

.news-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.news-brand-title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--ink);
}
.news-brand-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.news-header-right { flex: 1; max-width: 120px; }

.cab-hover-island {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border: 1px solid #e0dbd6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.25s ease;
  z-index: 999;
}

.cab-hover-island.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cab-sidebar-toggle {
  display: none;
}

.cab-body {
  position: relative;
  display: flex;
  min-height: calc(100vh - 65px);
  overflow: visible;
  align-items: stretch;
  width: 100%;
    justify-content: center;

}

.cab-sidebar {
  flex-shrink: 0;
  width: 54px;
  align-self: center;
  background: #fff;
  border: 1.5px solid #ccc8c2;
  border-radius: 16px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  z-index: 10;
    position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.cab-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  color: #999;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.cab-nav-btn:hover {
  background: #fde8e6;
  color: #1a1a1a;
  box-shadow: 0 0 10px rgba(232, 133, 122, 0.25);
}

.cab-nav-btn.active {
  color: #E8857A;
  background: #fde8e6;
  box-shadow: 0 0 12px rgba(232, 133, 122, 0.32);
}

.cab-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cab-nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cab-nav-icon .ti {
  font-size: 20px;
  line-height: 1;
  color: currentColor;
}

.news-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  flex: 1;
  width: 100%;
}
.news-page-title-wrap {
  text-align: center;
  margin-bottom: 48px;
}
.news-page-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 8px;
}
.news-page-subtitle {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.news-feed {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.news-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.news-post {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s;
}
.news-post:hover { box-shadow: 0 8px 36px rgba(0,0,0,0.12); }

.post-media {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.post-media-videos {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.post-media-photos {
  width: 100%;
}

.post-photo-grid {
  display: grid;
  gap: 3px;
  background: #f5f0ec; 
}

.post-photo-grid.count-1 {
  grid-template-columns: 1fr;
}

.post-photo-grid.count-2 {
  grid-template-columns: 1fr 1fr;
}

.post-photo-grid.count-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.post-photo-grid.count-4 {
  grid-template-columns: 1fr 1fr;
}

.post-photo-grid.count-5,
.post-photo-grid.count-6 {
  grid-template-columns: 1fr 1fr 1fr;
}

.post-photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #f5f0ec;
  display: flex;
  flex-direction: column;
}

.post-photo-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #f5f0ec;
}

.post-photo-grid.count-2 .post-photo-item,
.post-photo-grid.count-3 .post-photo-item,
.post-photo-grid.count-4 .post-photo-item,
.post-photo-grid.count-5 .post-photo-item,
.post-photo-grid.count-6 .post-photo-item {
  height: 220px;
}

.post-photo-grid.count-2 .post-photo-item img,
.post-photo-grid.count-3 .post-photo-item img,
.post-photo-grid.count-4 .post-photo-item img,
.post-photo-grid.count-5 .post-photo-item img,
.post-photo-grid.count-6 .post-photo-item img {
  height: 100%;
  object-fit: contain;
}

/* Photo caption */
.post-photo-caption {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
  padding: 5px 10px 6px;
  background: #faf7f5;
  text-align: center;
  font-family: 'Lora', Georgia, serif;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.post-video-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}
.post-video-item video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.post-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.28);
  transition: background 0.2s;
}
.post-video-overlay:hover { background: rgba(0,0,0,0.42); }
.post-video-play {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
  transition: transform 0.2s;
}
.post-video-overlay:hover .post-video-play { transform: scale(1.08); }

.post-body {
  padding: 28px 32px 24px;
}
.post-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 14px;
}
.post-content {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  font-family: 'Lora', Georgia, serif;
}
.post-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 20px 0 8px;
}
.post-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 6px;
}
.post-content blockquote {
  border-left: 4px solid var(--pink);
  margin: 16px 0;
  padding: 10px 20px;
  background: var(--pink-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}
.post-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 20px 0;
  border-radius: 2px;
}
.post-content ul, .post-content ol {
  padding-left: 22px;
  margin: 10px 0;
}
.post-content li { margin-bottom: 4px; }
.post-content p { margin-bottom: 10px; }
.post-content p:last-child { margin-bottom: 0; }
.post-content a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-decoration-color: rgba(212,120,122,0.4);
  transition: text-decoration-color 0.2s;
}
.post-content a:hover { text-decoration-color: var(--pink-deep); }

/* Post footer */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 20px;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}


.post-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.post-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-deep);
  flex-shrink: 0;
  overflow: hidden;
}
.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.post-meta-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.post-author-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.post-date {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.post-edited-badge {
  font-size: 10px;
  color: var(--pink);
  font-weight: 600;
  background: var(--pink-soft);
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
}

.post-admin-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-edit-btn,
.post-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.post-edit-btn { color: var(--pink-deep); }
.post-edit-btn:hover { opacity: 0.6; }

.post-delete-btn { color: #e05a5a; }
.post-delete-btn:hover { opacity: 0.6; }

.news-add-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.news-add-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 2px dashed var(--pink);
  border-radius: var(--radius);
  padding: 16px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--pink-deep);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.news-add-btn:hover {
  background: var(--pink-soft);
  border-color: var(--pink-deep);
}

.news-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.news-empty-icon { font-size: 52px; margin-bottom: 16px; }
.news-empty-title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.news-empty-text  { font-size: 14px; }

.compose-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  overflow-y: auto;
  scrollbar-width: none;
}
.compose-overlay::-webkit-scrollbar { display: none; }
.compose-overlay.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.compose-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
  flex-shrink: 0;
}

.compose-cancel {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
  flex-shrink: 0;
  min-width: 90px;
}
.compose-cancel:hover { color: var(--ink); }

.compose-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  flex: 1;
}

.compose-publish-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
  min-width: 90px;
  justify-content: center;
}
.compose-publish-btn:hover { opacity: 0.88; }
.compose-publish-btn:active { transform: scale(0.97); }

.compose-toolbar-wrap {
  position: sticky;
  top: 61px;
  z-index: 9;
  display: flex;
  justify-content: center;
  padding: 10px 24px;
  pointer-events: none;
  flex-shrink: 0;
}

.compose-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10), 0 1px 4px rgba(231,154,155,0.12);
  pointer-events: all;
  max-width: 900px;
  width: 100%;
}

.tb-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tb-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: none;
  background: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  white-space: nowrap;
}
.tb-btn svg { width: 16px; height: 16px; }
.tb-btn:hover { background: var(--pink-soft); }
.tb-btn.active { background: var(--pink-soft); color: var(--pink-deep); }
.tb-btn-sm { min-width: 32px; font-size: 12px; }

.tb-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 5px;
  flex-shrink: 0;
}

/* Font */
.tb-font-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 22px 5px 9px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  outline: none;
  height: 36px;
  max-width: 155px;
  appearance: auto;
}

/* Text size */
.tb-size-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 22px 5px 9px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  outline: none;
  height: 36px;
  width: 96px;
  appearance: auto;
}

/* Text color */
.tb-color-wrap { position: relative; }
.tb-color-trigger { gap: 5px; }
.tb-color-swatch {
  width: 16px;
  height: 5px;
  border-radius: 2px;
  background: #1a1a1a;
  display: block;
}
.tb-color-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.tb-quote-group,
.tb-link-group {
  position: relative;
}

.tb-quote-popup,
.tb-link-popup {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  padding: 12px 14px;
  z-index: 100;
  flex-direction: column;
  gap: 10px;
}

.tb-quote-popup.open,
.tb-link-popup.open {
  display: flex;
}

.tb-quote-popup { min-width: 200px; }
.tb-link-popup  { min-width: 280px; }

.tb-quote-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tb-color-input-sq {
  width: 36px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
  background: none;
}

.tb-quote-thick-sel {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  outline: none;
}

.tb-quote-apply {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  transition: opacity 0.2s;
}
.tb-quote-apply:hover { opacity: 0.85; }

.tb-link-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.tb-link-input:focus { border-color: var(--pink); }

.tb-link-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.tb-link-apply {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.tb-link-apply:hover { opacity: 0.85; }

.tb-link-remove {
  background: #fff0f0;
  color: #e05a5a;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.tb-link-remove:hover { background: #ffd5d5; }

.compose-media-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.compose-media-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--pink-soft);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-deep);
  cursor: pointer;
  transition: background 0.2s;
}
.compose-media-btn:hover { background: #f5c8c3; }
.compose-media-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}
.compose-media-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

.compose-media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  min-height: 0;
}
.compose-media-preview:empty { display: none; }

.compose-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f0ec;
  border: 1px solid var(--border);
}

.compose-preview-item.type-photo {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compose-preview-item.type-video {
  width: 130px;
  height: 90px;
}

.compose-preview-item.type-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.compose-preview-item.type-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compose-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compose-preview-label {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compose-body {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.compose-title-input {
  width: 100%;
  border: none;
  outline: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  background: transparent;
  margin-bottom: 20px;
  padding: 0;
  line-height: 1.2;
  min-height: 36px;
  -webkit-user-select: text;
  user-select: text;
}
.compose-title-input:empty::before {
  content: attr(data-placeholder);
  color: #ccc;
  pointer-events: none;
}

.compose-editor {
  min-height: 300px;
  outline: none;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  font-family: 'Lora', Georgia, serif;
  caret-color: var(--pink);
  -webkit-user-select: text;
  user-select: text;
}
.compose-editor:empty::before {
  content: attr(data-placeholder);
  color: #ccc;
  pointer-events: none;
}
.compose-editor h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 20px 0 8px;
}
.compose-editor h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 6px;
}
.compose-editor blockquote {
  border-left: 4px solid var(--pink);
  margin: 16px 0;
  padding: 10px 20px;
  background: var(--pink-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}
.compose-editor hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 20px 0;
  border-radius: 2px;
}
.compose-editor ul, .compose-editor ol { padding-left: 22px; margin: 10px 0; }
.compose-editor li { margin-bottom: 4px; }
.compose-editor a {
  color: var(--pink-deep);
  text-decoration: underline;
}

.compose-overlay:not(.active) .compose-toolbar {
  pointer-events: none;
}

.ctx-menu {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 6px;
  min-width: 180px;
  animation: ctxIn 0.15s ease;
}
@keyframes ctxIn {
  from { opacity: 0; transform: scale(0.93) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background 0.15s;
}
.ctx-item:hover { background: var(--pink-soft); }
.ctx-arrow { margin-left: auto; color: var(--muted); }

.ctx-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.ctx-format-drop {
  display: none;
  position: absolute;
  left: 100%;
  top: -6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  padding: 6px;
  min-width: 200px;
  z-index: 10;
  animation: ctxIn 0.15s ease;
}
.ctx-item-format:hover .ctx-format-drop { display: block; }

.ctx-fmt-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  border-radius: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.ctx-fmt-btn:hover { background: var(--pink-soft); }

.photo-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.photo-modal.active {
  opacity: 1;
  pointer-events: all;
}
.photo-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.photo-modal-close:hover { background: rgba(255,255,255,0.28); }
.photo-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 90vw;
  max-height: 90vh;
}
.photo-modal-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 0.15s ease;
  user-select: none;
}
.photo-modal-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.video-modal.active {
  opacity: 1;
  pointer-events: all;
}
.video-modal-box {
  position: relative;
  max-width: 880px;
  width: 100%;
  margin: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.video-modal-close:hover { background: rgba(255,255,255,0.28); }
.video-modal-player {
  width: 100%;
  max-height: 72vh;
  display: block;
  outline: none;
}
.video-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  padding: 10px 16px;
}
.vc-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.vc-btn:hover { background: rgba(255,255,255,0.12); }
.vc-progress-wrap {
  flex: 1;
  cursor: pointer;
  padding: 8px 0;
}
.vc-progress-bg {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.vc-progress-fill {
  height: 100%;
  background: var(--pink);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}
.vc-time {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
}

.news-island-wrap {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  animation: islandIn 0.5s cubic-bezier(0.34,1.3,0.64,1) both;
}
@keyframes islandIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.news-island-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(231,154,155,0.13);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: default;
}
.news-island-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}
.news-island-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,154,155,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(231,154,155,0); }
}
.news-island-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--pink);
  text-transform: uppercase;
}
.news-island-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.news-island-preview {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-island-btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(231,154,155,0.13);
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s;
  cursor: pointer;
}
.news-island-btn:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .news-header { padding: 10px 0; }
  .news-header-inner {
    padding: 0 12px;
    gap: 8px;
    justify-content: flex-start;
  }
  .news-back-btn {
    font-size: 0;
    gap: 0;
    padding: 6px;
  }
  .news-back-btn svg { width: 16px; height: 16px; }
  .news-brand { gap: 6px; flex: 1; min-width: 0; justify-content: center; }
  .news-brand-logo { width: 26px; height: 26px; }
  .news-brand-title { font-size: 14px; letter-spacing: 0.5px; white-space: nowrap; }
  .news-brand-sub { font-size: 12px; white-space: nowrap; }
  .news-header-right { display: none; }

  .news-main { padding: 16px 16px 64px; width: 100%; }
  .news-page-title { font-size: 26px; }
  .post-body { padding: 20px 18px 16px; }
  .post-footer { padding: 0 18px 16px; }
  .post-title { font-size: 18px; }
  .compose-body { padding: 24px 16px 48px; }
  .compose-title-input { font-size: 22px; }
  .ctx-format-drop { left: auto; right: 100%; }
.news-island-wrap {
  top: 12px;
  right: 12px;
  width: 200px;
}
  .tb-font-select { max-width: 125px; }
  .tb-size-select { width: 65px; }
  .tb-btn { min-width: 34px; height: 34px; }
  .tb-btn-sm { min-width: 30px; }

  .post-photo-grid.count-2 .post-photo-item,
  .post-photo-grid.count-3 .post-photo-item,
  .post-photo-grid.count-4 .post-photo-item,
  .post-photo-grid.count-5 .post-photo-item,
  .post-photo-grid.count-6 .post-photo-item {
    height: 140px;
  }

  .post-footer {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 0 16px 14px;
    align-items: center;
  }
  .post-meta { flex: 1 1 100%; min-width: 0; }
  .post-meta-text { min-width: 0; }
  .post-date {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  .post-views {
    position: static;
    left: auto;
    transform: none;
    font-size: 11px;
    flex-shrink: 0;
  }
  .post-admin-btns { margin-left: auto; flex-shrink: 0; }
  .post-edited-badge { margin-left: 0; white-space: nowrap; }

  .cab-hover-island {
    top: 64px;
    font-size: 12px;
    padding: 8px 14px;
  }

  .cab-sidebar-toggle {
    display: none;
  }

  .cab-body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 56px);
    overflow-x: hidden;
    justify-content: center;
  }

  .cab-sidebar {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: calc(100% - 32px);
    margin: 12px 16px 0;
    border-radius: 16px;
    border: 1.5px solid #ccc8c2;
    padding: 10px 12px;
    flex-direction: row;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    background: #fff;
    overflow-x: auto;
    scrollbar-width: none;
    transition: none;
  }

  .cab-sidebar::-webkit-scrollbar { display: none; }

  .cab-nav-btn {
    flex: 0 0 auto;
  }
}