/* =========================================================
   NicoManga News - Dark UI & Editorial Warm-Paper Light Mode
   ========================================================= */

.news-main-wrapper {
  min-height: calc(100vh - 60px);
  padding: 24px 16px 64px;
}

/* Navbar Auth Buttons */
.news-auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.news-nav-signin {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}

.news-nav-signin:hover {
  background-color: var(--bg-elevated);
  border-color: var(--border-active);
}

.news-nav-register {
  padding: 7px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s;
}

.news-nav-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Container & 3-Column Layout */
.news-container {
  max-width: 1280px;
  margin: 0 auto;
}

.news-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.news-sidebar-left,
.news-sidebar-right {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mobile Category Pills */
.news-mobile-cats {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.news-mobile-cats::-webkit-scrollbar {
  display: none;
}

.news-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.news-cat-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.news-cat-count {
  font-size: 11px;
  opacity: 0.8;
}

/* Sidebar Cards */
.news-side-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.news-side-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.news-side-header i {
  color: var(--accent);
}

.news-cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.news-cat-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.news-cat-name i {
  width: 16px;
  text-align: center;
}

.news-cat-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.news-cat-item.active {
  background: rgba(99, 102, 241, 0.14);
  color: var(--accent-hover);
  font-weight: 600;
}

.news-cat-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.news-cat-item.active .news-cat-badge {
  background: rgba(99, 102, 241, 0.22);
  color: var(--accent-hover);
}

/* Feed Header & Sort Tabs */
.news-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 14px 18px;
}

.news-feed-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-feed-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.news-total-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 700;
}

.news-sort-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.news-sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-elevated);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.news-sort-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.news-sort-tab.active {
  background: var(--accent);
  color: #ffffff;
}

/* Manga Filter Banner */
.news-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  font-size: 14px;
}

.news-filter-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-filter-info i {
  color: var(--accent-hover);
}

.news-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.news-filter-clear:hover {
  background: var(--bg-elevated);
}

/* Social Feed Cards */
.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, transform 0.2s;
}

.news-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.news-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.news-brand-badge i {
  color: var(--accent-amber);
}

.news-status-pill {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.16);
  color: var(--accent-amber);
  letter-spacing: 0.04em;
}

.news-dot {
  color: var(--text-muted);
  font-size: 12px;
}

.news-time {
  font-size: 13px;
  color: var(--text-secondary);
}

.news-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.news-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.news-tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.news-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.news-card-title a:hover {
  color: var(--accent-hover);
}

.news-card-excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.news-read-more {
  display: inline-block;
  margin-left: 4px;
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
}

.news-read-more:hover {
  text-decoration: underline;
}

/* Lite-YouTube Click-to-Play */
.news-lite-yt {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000000;
  cursor: pointer;
  margin-bottom: 14px;
  border: 1px solid var(--border-light);
}

.news-lite-yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.news-lite-yt:hover img {
  transform: scale(1.02);
  opacity: 0.9;
}

.news-yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, background-color 0.2s;
}

.news-lite-yt:hover .news-yt-play-btn {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ef4444;
}

.news-lite-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Image Gallery Grids (1-4) */
.news-gallery {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.news-gallery-item {
  position: relative;
  border: none;
  padding: 0;
  background: var(--bg-elevated);
  cursor: pointer;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
}

.news-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.news-gallery-item:hover img {
  transform: scale(1.03);
}

.news-gallery-1 {
  grid-template-columns: 1fr;
}

.news-gallery-1 .news-gallery-item {
  max-height: 440px;
}

.news-gallery-2 {
  grid-template-columns: 1fr 1fr;
}

.news-gallery-2 .news-gallery-item {
  aspect-ratio: 4 / 3;
}

.news-gallery-3 {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 175px 175px;
}

.news-gallery-3 .news-gallery-item:first-child {
  grid-row: 1 / span 2;
}

.news-gallery-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 190px 190px;
}

.news-gallery-more {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 16, 0.65);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Related Manga Read Now Card */
.news-manga-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  margin-bottom: 14px;
}

.news-manga-cover-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-overlay);
}

.news-manga-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-manga-info {
  flex: 1;
  min-width: 0;
}

.news-manga-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-hover);
  margin-bottom: 2px;
}

.news-manga-title {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.news-manga-title:hover {
  color: var(--accent-hover);
}

.news-manga-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-secondary);
}

.news-manga-status {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(34, 197, 94, 0.14);
  color: var(--accent-green);
  font-weight: 600;
}

.news-read-now-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s;
}

.news-read-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

/* Card Footer: Reactions & Actions */
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.news-reactions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.news-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.news-react-btn:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.news-react-btn.reacted {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.news-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-action-link,
.news-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.news-action-link:hover,
.news-action-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Right Sidebar Stats & Guidelines */
.news-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.news-stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 12px;
  text-align: center;
}

.news-stat-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.news-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.news-guidelines-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.news-guidelines-list code {
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--accent-hover);
}

/* Empty State & Load More */
.news-empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 48px 24px;
  text-align: center;
}

.news-empty-icon {
  font-size: 40px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-empty-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.news-load-more-wrap {
  margin-top: 20px;
  text-align: center;
}

.news-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.news-load-more-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* =========================================================
   Detail Page View
   ========================================================= */
.news-detail-container {
  max-width: 860px;
  margin: 0 auto;
}

.news-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.news-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.news-breadcrumb a:hover {
  color: var(--accent-hover);
}

.news-bc-sep {
  color: var(--text-muted);
}

.news-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.news-detail-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.news-detail-title {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.news-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

/* Key Facts Box */
.news-key-facts {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.news-key-facts-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.news-key-facts-title i {
  color: var(--accent-hover);
}

.news-key-facts-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.news-key-facts-list strong {
  color: var(--text-primary);
}

/* Sanitized Article Body */
.news-detail-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 22px;
}

.news-detail-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.news-detail-body h3,
.news-detail-body h4 {
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.news-detail-body ul,
.news-detail-body ol {
  padding-left: 22px;
  margin-bottom: 14px;
}

.news-detail-body li {
  margin-bottom: 6px;
}

.news-detail-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  margin: 16px 0;
  background: var(--bg-elevated);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--text-secondary);
}

.news-detail-media-block {
  margin-bottom: 20px;
}

/* Source Attribution */
.news-source-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-source-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.news-source-label {
  font-weight: 600;
  color: var(--text-primary);
}

.news-source-link {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.news-source-link:hover {
  text-decoration: underline;
}

.news-extra-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.news-extra-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
}

.news-extra-source-pill:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

.news-related-mangas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.news-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* Comments Section */
.news-comments-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.news-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.news-comments-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  color: var(--text-primary);
}

.news-comment-sorts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-csort-tab {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  text-decoration: none;
  transition: all 0.2s;
}

.news-csort-tab:hover {
  color: var(--text-primary);
}

.news-csort-tab.active {
  background: var(--accent);
  color: #ffffff;
}

.news-comment-form {
  margin-bottom: 22px;
}

.news-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: var(--r-sm);
  background: rgba(99, 102, 241, 0.14);
  font-size: 13px;
  color: var(--text-primary);
}

.news-cancel-reply-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
}

.news-comment-textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.news-comment-textarea:focus {
  border-color: var(--accent);
}

.news-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.news-spoiler-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.news-spoiler-hint code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-hover);
}

.news-login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.news-comments-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.news-comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.news-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.news-comment-avatar-sm {
  width: 30px;
  height: 30px;
}

.news-comment-content {
  flex: 1;
  min-width: 0;
}

.news-comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
}

.news-comment-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.news-role-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  line-height: 1.2;
}

.news-role-admin { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.news-role-mod   { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.news-role-vip   { background: rgba(99, 102, 241, 0.22); color: #a5b4fc; }
.news-role-member { background: var(--bg-elevated); color: var(--text-secondary); }

.news-comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.news-comment-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
  margin-bottom: 8px;
}

.news-deleted-text {
  color: var(--text-muted);
}

/* Spoiler Tag */
.news-spoiler {
  background: #2e3346;
  color: transparent;
  border-radius: 4px;
  padding: 1px 6px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
}

.news-spoiler.revealed {
  background: rgba(99, 102, 241, 0.16);
  color: var(--text-primary);
  user-select: text;
}

.news-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-comment-like-btn,
.news-comment-reply-btn,
.news-comment-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
}

.news-comment-like-btn:hover,
.news-comment-reply-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.news-comment-like-btn.liked {
  color: var(--accent-hover);
}

.news-comment-delete-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-red);
}

.news-replies-list {
  margin-top: 14px;
  padding-left: 16px;
  border-left: 2px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* More News Grid */
.news-more-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 22px;
}

.news-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.news-more-header h3 {
  font-size: 18px;
  color: var(--text-primary);
}

.news-more-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-hover);
  text-decoration: none;
}

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

.news-more-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
}

.news-more-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.news-more-thumb {
  width: 82px;
  height: 62px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-overlay);
}

.news-more-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-more-body {
  min-width: 0;
  flex: 1;
}

.news-more-time {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.news-more-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Lightbox Modal */
.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 9, 13, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.news-lb-stage {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-lb-stage img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.news-lb-counter {
  margin-top: 10px;
  font-size: 13px;
  color: #d1d5db;
  font-weight: 600;
}

.news-lb-close,
.news-lb-nav {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(18, 21, 28, 0.85);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.news-lb-close:hover,
.news-lb-nav:hover {
  background: rgba(99, 102, 241, 0.85);
}

.news-lb-close { top: 20px; right: 20px; }
.news-lb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.news-lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }

/* Toast */
.news-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2100;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--bg-overlay);
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-elevated);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1100px) {
  .news-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .news-sidebar-right {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .news-main-wrapper {
    padding: 14px 12px 48px;
  }
  .news-mobile-cats {
    display: flex;
  }
  .news-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-sidebar-left {
    display: none;
  }
  .news-sidebar-right {
    grid-template-columns: 1fr;
  }
  .news-feed-header {
    padding: 12px 14px;
  }
  .news-card,
  .news-detail-card,
  .news-comments-section,
  .news-more-section {
    padding: 16px;
  }
  .news-manga-card {
    flex-wrap: wrap;
  }
  .news-read-now-btn {
    width: 100%;
    justify-content: center;
  }
  .news-gallery-3 {
    grid-template-rows: 130px 130px;
  }
  .news-gallery-4 {
    grid-template-rows: 140px 140px;
  }
  .news-more-grid {
    grid-template-columns: 1fr;
  }
  .news-nav-signin {
    padding: 5px 10px;
    font-size: 12px;
  }
  .news-nav-register {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* =========================================================
   Editorial Warm-Paper Light Mode (html[data-theme="light"])
   ========================================================= */
html[data-theme="light"] body.news-app {
  background-color: #f7f7f5 !important;
  color: #111827 !important;
}

html[data-theme="light"] .news-nav-signin {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
}

html[data-theme="light"] .news-nav-signin:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

html[data-theme="light"] .news-nav-register {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #ffffff !important;
}

html[data-theme="light"] .news-side-card,
html[data-theme="light"] .news-feed-header,
html[data-theme="light"] .news-card,
html[data-theme="light"] .news-empty-state,
html[data-theme="light"] .news-detail-card,
html[data-theme="light"] .news-comments-section,
html[data-theme="light"] .news-more-section {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04) !important;
}

html[data-theme="light"] .news-side-header,
html[data-theme="light"] .news-feed-title,
html[data-theme="light"] .news-card-title a,
html[data-theme="light"] .news-detail-title,
html[data-theme="light"] .news-detail-body,
html[data-theme="light"] .news-detail-body p,
html[data-theme="light"] .news-detail-body h3,
html[data-theme="light"] .news-detail-body h4,
html[data-theme="light"] .news-brand-badge,
html[data-theme="light"] .news-manga-title,
html[data-theme="light"] .news-stat-value,
html[data-theme="light"] .news-key-facts-title,
html[data-theme="light"] .news-key-facts-list strong,
html[data-theme="light"] .news-source-label,
html[data-theme="light"] .news-comments-header h3,
html[data-theme="light"] .news-comment-author,
html[data-theme="light"] .news-comment-body,
html[data-theme="light"] .news-more-header h3,
html[data-theme="light"] .news-more-title,
html[data-theme="light"] .news-empty-state h3 {
  color: #111827 !important;
}

html[data-theme="light"] .news-side-header i,
html[data-theme="light"] .news-read-more,
html[data-theme="light"] .news-manga-kicker,
html[data-theme="light"] .news-key-facts-title i,
html[data-theme="light"] .news-source-link,
html[data-theme="light"] .news-more-all,
html[data-theme="light"] .news-filter-info i {
  color: #c2410c !important;
}

html[data-theme="light"] .news-card-title a:hover,
html[data-theme="light"] .news-manga-title:hover,
html[data-theme="light"] .news-breadcrumb a:hover {
  color: #ea580c !important;
}

html[data-theme="light"] .news-cat-item,
html[data-theme="light"] .news-time,
html[data-theme="light"] .news-card-excerpt,
html[data-theme="light"] .news-manga-meta,
html[data-theme="light"] .news-stat-label,
html[data-theme="light"] .news-guidelines-list,
html[data-theme="light"] .news-breadcrumb,
html[data-theme="light"] .news-breadcrumb a,
html[data-theme="light"] .news-detail-meta,
html[data-theme="light"] .news-key-facts-list,
html[data-theme="light"] .news-source-box,
html[data-theme="light"] .news-login-prompt,
html[data-theme="light"] .news-spoiler-hint,
html[data-theme="light"] .news-comments-empty {
  color: #4b5563 !important;
}

html[data-theme="light"] .news-cat-item:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

html[data-theme="light"] .news-cat-item.active {
  background: #fff7ed !important;
  color: #c2410c !important;
}

html[data-theme="light"] .news-cat-badge {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
}

html[data-theme="light"] .news-cat-item.active .news-cat-badge {
  background: #ffedd5 !important;
  color: #c2410c !important;
}

html[data-theme="light"] .news-cat-pill {
  background: #ffffff !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}

html[data-theme="light"] .news-cat-pill.active,
html[data-theme="light"] .news-sort-tab.active,
html[data-theme="light"] .news-csort-tab.active {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
}

html[data-theme="light"] .news-total-badge {
  background: #ffedd5 !important;
  color: #c2410c !important;
}

html[data-theme="light"] .news-sort-tab,
html[data-theme="light"] .news-csort-tab,
html[data-theme="light"] .news-tag-pill,
html[data-theme="light"] .news-react-btn,
html[data-theme="light"] .news-action-link,
html[data-theme="light"] .news-action-btn,
html[data-theme="light"] .news-stat-box,
html[data-theme="light"] .news-manga-card,
html[data-theme="light"] .news-key-facts,
html[data-theme="light"] .news-source-box,
html[data-theme="light"] .news-login-prompt,
html[data-theme="light"] .news-more-card,
html[data-theme="light"] .news-load-more-btn,
html[data-theme="light"] .news-filter-clear {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #374151 !important;
}

html[data-theme="light"] .news-tag-pill:hover,
html[data-theme="light"] .news-react-btn:hover,
html[data-theme="light"] .news-action-link:hover,
html[data-theme="light"] .news-action-btn:hover,
html[data-theme="light"] .news-more-card:hover,
html[data-theme="light"] .news-load-more-btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}

html[data-theme="light"] .news-react-btn.reacted {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  color: #c2410c !important;
}

html[data-theme="light"] .news-key-facts {
  border-left: 4px solid #ea580c !important;
}

html[data-theme="light"] .news-detail-body blockquote {
  background: #f9fafb !important;
  border-left-color: #ea580c !important;
  color: #4b5563 !important;
}

html[data-theme="light"] .news-filter-banner {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #111827 !important;
}

html[data-theme="light"] .news-read-now-btn,
html[data-theme="light"] .news-app .btn-primary {
  background: linear-gradient(135deg, #ea580c, #f97316) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25) !important;
}

html[data-theme="light"] .news-manga-status {
  background: #dcfce7 !important;
  color: #15803d !important;
}

html[data-theme="light"] .news-comment-textarea {
  background: #ffffff !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}

html[data-theme="light"] .news-comment-textarea:focus {
  border-color: #ea580c !important;
}

html[data-theme="light"] .news-spoiler {
  background: #1f2937 !important;
  color: transparent !important;
}

html[data-theme="light"] .news-spoiler.revealed {
  background: #ffedd5 !important;
  color: #111827 !important;
}

html[data-theme="light"] .news-role-member {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
}

html[data-theme="light"] .news-role-vip {
  background: #ffedd5 !important;
  color: #c2410c !important;
}

html[data-theme="light"] .news-role-admin {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

html[data-theme="light"] .news-role-mod {
  background: #d1fae5 !important;
  color: #047857 !important;
}

html[data-theme="light"] .news-comment-like-btn,
html[data-theme="light"] .news-comment-reply-btn,
html[data-theme="light"] .news-comment-delete-btn {
  color: #4b5563 !important;
}

html[data-theme="light"] .news-comment-like-btn:hover,
html[data-theme="light"] .news-comment-reply-btn:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

html[data-theme="light"] .news-comment-like-btn.liked {
  color: #ea580c !important;
}

html[data-theme="light"] .news-replies-list {
  border-left-color: #e5e7eb !important;
}

html[data-theme="light"] .news-card-footer,
html[data-theme="light"] .news-detail-meta,
html[data-theme="light"] .news-detail-actions {
  border-color: #e5e7eb !important;
}

html[data-theme="light"] .news-guidelines-list code,
html[data-theme="light"] .news-spoiler-hint code {
  background: #f3f4f6 !important;
  color: #c2410c !important;
}

html[data-theme="light"] .news-extra-source-pill {
  background: #ffffff !important;
  border-color: #d1d5db !important;
  color: #374151 !important;
}

html[data-theme="light"] .news-toast {
  background: #ffffff !important;
  border-color: #ea580c !important;
  color: #111827 !important;
}

html[data-theme="light"] .mobile-drawer {
  background: #ffffff !important;
  color: #111827 !important;
}

html[data-theme="light"] .drawer-username,
html[data-theme="light"] .drawer-item {
  color: #111827 !important;
}

html[data-theme="light"] .drawer-item.active {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-left-color: #ea580c !important;
}

html[data-theme="light"] .drawer-item.active i {
  color: #ea580c !important;
}
