/* ── Crown crimson: replace all theme-blue primary elements ── */
.btn-primary {
  background-color: #7f0f12 !important;
  border-color: #7f0f12 !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #6a0b0e !important;
  border-color: #6a0b0e !important;
}

.bg-primary {
  background-color: #7f0f12 !important;
}

/* Scroll-to-top button */
[data-uc-backtotop],
.backtotop-wrap a {
  background-color: #7f0f12 !important;
  border-color: #7f0f12 !important;
  color: #fff !important;
}

/* CookieAdmin – override inline-style blue buttons */
.cookieadmin_accept_btn,
#cookieadmin_accept_btn,
.cookieadmin_save_btn,
#cookieadmin_save_btn {
  background-color: #7f0f12 !important;
  border-color: #7f0f12 !important;
  color: #fff !important;
}

.cookieadmin_remark,
.cookieadmin_showmore {
  color: #7f0f12 !important;
}

/* Hide CookieAdmin re-consent floating button */
.cookieadmin_reconsent_img,
[class*="cookieadmin_reconsent"],
[id*="cookieadmin_reconsent"],
.cookieadmin-reconsent-wrapper,
#cookieadmin-reconsent-btn {
  display: none !important;
}

/* ── Category hero banner ── */
.crown-cat-hero {
  background-size: cover;
  background-position: center top;
  background-color: #1a0a0b;
  min-height: 280px;
}

.crown-cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127, 15, 18, 0.88) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.crown-cat-count-pill {
  display: inline-block;
  width: fit-content;
  padding: 5px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* ── Homepage ── */
.crown-homepage {
  background:
    radial-gradient(circle at top right, rgba(196, 40, 28, 0.08), transparent 28%),
    linear-gradient(180deg, #fff 0%, #faf7f2 100%);
}

.crown-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(128, 0, 0, 0.08);
  color: #7f0f12;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crown-heading {
  max-width: 780px;
  line-height: 1.05;
}

.crown-story-card,
.crown-topic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(127, 15, 18, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(18, 18, 18, 0.08);
}

.crown-story-card .post-media,
.crown-topic-card .ratio {
  flex-shrink: 0;
}

.crown-story-card .post-header {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.crown-story-card-compact .post-header {
  gap: 10px;
  padding: 18px;
}

.crown-story-card-compact .post-title {
  line-height: 1.3;
  min-height: calc(1.3em * 2);
}

.crown-story-card-compact p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.65;
  min-height: calc(1.65em * 3);
}

.crown-story-card-featured .post-title,
.crown-story-card-lead .post-title {
  line-height: 1.1;
}

.crown-story-card-dark .post-title {
  line-height: 1.25;
  min-height: calc(1.25em * 2);
}

.crown-story-card-lead,
.crown-story-card-featured {
  box-shadow: 0 28px 70px rgba(18, 18, 18, 0.12);
}

.crown-story-card-dark {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.crown-meta-label,
.crown-section-pill,
.crown-live-status,
.crown-topic-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crown-meta-label,
.crown-section-pill {
  padding: 7px 12px;
  background: rgba(251, 107, 30, 0.12);
  color: #a43a08;
}

.crown-section-pill-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.crown-topic-overlay {
  background: linear-gradient(180deg, rgba(21, 21, 21, 0.1), rgba(127, 15, 18, 0.88));
}

.crown-topic-body {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
}

.crown-topic-count {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
}

.crown-topic-card-more {
  min-height: 100%;
  background: linear-gradient(135deg, #7f0f12 0%, #fb6b1e 100%);
  box-shadow: 0 22px 56px rgba(127, 15, 18, 0.28);
}

.crown-homepage .row > div > .crown-topic-card,
.crown-homepage .row > div > .crown-story-card {
  height: 100%;
}

.crown-live-cta,
.crown-listen-button {
  gap: 10px;
}

.crown-live-status {
  padding: 6px 10px;
  background: rgba(127, 15, 18, 0.08);
  color: #7f0f12;
}

.crown-live-cta.is-live,
.crown-listen-button.is-live {
  background: #7f0f12 !important;
  border-color: #7f0f12 !important;
  color: #fff !important;
}

.crown-live-cta.is-live .crown-live-status,
.crown-listen-button.is-live .crown-live-status {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@media (max-width: 767px) {
  .crown-home-hero .section-header {
    gap: 16px;
  }

  .crown-live-cta {
    width: 100%;
    justify-content: center;
  }

  .crown-topic-card-more {
    min-height: 220px;
  }

  .crown-story-card-compact .post-header {
    padding: 16px;
  }

  .crown-story-card-compact .post-title,
  .crown-story-card-dark .post-title,
  .crown-story-card-compact p {
    min-height: 0;
  }

  .crown-topic-body {
    min-height: 132px;
    padding: 16px;
  }
}

.crown-editorial-page {
  background:
    radial-gradient(circle at top left, rgba(127, 15, 18, 0.06), transparent 26%),
    linear-gradient(180deg, #fff 0%, #f8f5f1 100%);
}

.crown-page-hero {
  border-bottom: 1px solid rgba(127, 15, 18, 0.08);
}

.crown-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.crown-breadcrumbs a:hover {
  color: #a43a08;
}

.crown-empty-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crown-article-shell {
  box-shadow: 0 20px 48px rgba(18, 18, 18, 0.06);
}

.crown-article-body > *:first-child {
  margin-top: 0;
}

.crown-article-body > *:last-child {
  margin-bottom: 0;
}

.crown-article-body p,
.crown-article-body li {
  color: #3d3d3d;
  line-height: 1.85;
}

.crown-article-body h2,
.crown-article-body h3,
.crown-article-body h4 {
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  color: #171717;
}

.dark .crown-article-body p,
.dark .crown-article-body li {
  color: rgba(255, 255, 255, 0.8);
}

.dark .crown-article-body h2,
.dark .crown-article-body h3,
.dark .crown-article-body h4 {
  color: #fff;
}

.crown-single-featured {
  box-shadow: 0 30px 80px rgba(18, 18, 18, 0.16);
}

.crown-nav-card {
  background: rgba(255, 255, 255, 0.9);
}

.crown-nav-thumb,
.crown-related-thumb {
  width: 84px;
  min-width: 84px;
}

@media (max-width: 767px) {
  .crown-nav-thumb,
  .crown-related-thumb {
    width: 72px;
    min-width: 72px;
  }
}

/* ── Trending ticker ── */
.crown-ticker-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ── Live dot (pulsing indicator) ── */
.crown-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
  animation: crown-live-pulse 1.5s ease-in-out infinite;
}

.crown-listen-button.is-live .crown-live-dot {
  background: #fff;
}

@keyframes crown-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ── Listen Live navbar button ── */
.crown-listen-button {
  border: 1.5px solid rgba(127, 15, 18, 0.3);
  color: #7f0f12;
  background: rgba(127, 15, 18, 0.05);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.crown-listen-button:hover {
  background: rgba(127, 15, 18, 0.1);
  border-color: #7f0f12;
  color: #7f0f12;
}

.crown-listen-button.is-live {
  background: #7f0f12 !important;
  border-color: #7f0f12 !important;
  color: #fff !important;
}

/* ── Reading progress bar ── */
#crown-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 99999;
  pointer-events: none;
}

#crown-read-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7f0f12, #fb6b1e);
  transition: width 0.12s linear;
}

/* ── Article drop cap ── */
.crown-article-body > p:first-of-type::first-letter {
  font-size: 3.6em;
  font-weight: 800;
  line-height: 0.82;
  float: left;
  margin: 6px 10px 0 0;
  color: #7f0f12;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── CSS horizontal scroll carousel (replaces Swiper to avoid conflicts) ── */
.crown-hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.crown-hscroll::-webkit-scrollbar {
  display: none;
}

.crown-hscroll-item {
  flex: 0 0 calc((100% - 14px) / 1.4);
  scroll-snap-align: start;
}

@media (min-width: 576px) {
  .crown-hscroll-item { flex: 0 0 calc((100% - 2 * 14px) / 2.2); }
}

@media (min-width: 992px) {
  .crown-hscroll { gap: 18px; }
  .crown-hscroll-item { flex: 0 0 calc((100% - 2 * 18px) / 3); }
}

@media (min-width: 1200px) {
  .crown-hscroll { gap: 20px; }
  .crown-hscroll-item { flex: 0 0 calc((100% - 3 * 20px) / 4); }
}

/* ── Hero right-column horizontal list cards ── */
.crown-hero-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.crown-hero-list-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(127, 15, 18, 0.07);
  box-shadow: 0 2px 8px rgba(18, 18, 18, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
  flex: 1;
}

.crown-hero-list-card:hover {
  box-shadow: 0 8px 28px rgba(18, 18, 18, 0.1);
  transform: translateY(-1px);
}

.dark .crown-hero-list-card {
  background: #111;
  border-color: rgba(255, 255, 255, 0.07);
}

.crown-hero-list-thumb {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

.crown-hero-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.crown-hero-list-card:hover .crown-hero-list-thumb img {
  transform: scale(1.05);
}

.crown-hero-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crown-hero-list-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
}

.crown-hero-list-sep {
  opacity: 0.4;
}

.crown-hero-list-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.crown-hero-list-title a {
  color: inherit;
  text-decoration: none;
}

.crown-hero-list-title a:hover {
  color: #7f0f12;
}

/* ── Share buttons (sidebar + single post bar) ── */
.crown-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.crown-share-btn:hover {
  opacity: 0.88;
  color: #fff;
}

/* ── Single post: breadcrumb bar ── */
.crown-post-breadcrumb-bar {
  padding: 10px 0;
  border-bottom: 1px solid rgba(127, 15, 18, 0.07);
  background: #fff;
}

.dark .crown-post-breadcrumb-bar {
  background: #0a0a0a;
}

.crown-post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #999;
  overflow: hidden;
}

.crown-post-breadcrumb a {
  color: #888;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.crown-post-breadcrumb a:hover { color: #7f0f12; }

.crown-bc-sep { opacity: 0.4; flex-shrink: 0; }

.crown-bc-current {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #444;
}

.dark .crown-bc-current { color: #bbb; }

/* ── Single post: header (title + byline) ── */
.crown-post-header-section {
  padding: 28px 0 22px;
  border-bottom: 1px solid rgba(127, 15, 18, 0.06);
}

.crown-post-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 10px 0 18px;
  color: #111;
  text-transform: none;
}

.dark .crown-post-title { color: #fff; }

.crown-post-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.crown-post-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crown-author-initial {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7f0f12, #fb6b1e);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crown-author-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.dark .crown-author-name { color: #eee; }

.crown-author-date {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.crown-post-meta-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crown-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #888;
  background: rgba(127, 15, 18, 0.06);
  padding: 4px 10px;
  border-radius: 99px;
}

/* ── Single post: 2-column body ── */
.crown-post-body {
  padding: 28px 0 60px;
}

.crown-post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 992px) {
  .crown-post-grid {
    grid-template-columns: 1fr 300px;
    gap: 36px;
    align-items: start;
  }
}

.crown-post-main { min-width: 0; }

.crown-post-featured-img {
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 20px;
  box-shadow: 0 16px 52px rgba(18,18,18,0.13);
}

.crown-post-featured-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ── Single post: share bar ── */
.crown-post-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid rgba(127,15,18,0.07);
  border-bottom: 1px solid rgba(127,15,18,0.07);
}

.crown-share-bar-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  white-space: nowrap;
}

.crown-share-bar-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Single post: prev/next nav ── */
.crown-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.crown-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(127,15,18,0.07);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  min-width: 0;
}

.crown-nav-card--next {
  justify-content: flex-end;
}

.crown-nav-card:hover {
  box-shadow: 0 6px 20px rgba(18,18,18,0.1);
}

.dark .crown-nav-card {
  background: #111;
  border-color: rgba(255,255,255,0.07);
}

.crown-nav-thumb {
  width: 60px;
  min-width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.crown-nav-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crown-nav-body--right {
  text-align: right;
}

.crown-nav-dir {
  font-size: 11px;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crown-nav-ttl {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #1a1a1a;
}

.dark .crown-nav-ttl { color: #eee; }

/* ── Sidebar widgets ── */
.crown-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  .crown-post-sidebar {
    position: sticky;
    top: 88px;
  }
}

.crown-sidebar-widget {
  background: #fff;
  border: 1px solid rgba(127, 15, 18, 0.07);
  border-radius: 14px;
  padding: 16px;
}

.dark .crown-sidebar-widget {
  background: #111;
  border-color: rgba(255,255,255,0.07);
}

.crown-sidebar-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7f0f12;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(127,15,18,0.1);
  display: block;
}

.crown-sidebar-post {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(18,18,18,0.05);
}

.crown-sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.crown-sidebar-post:first-child { padding-top: 0; }

.crown-sidebar-post-thumb {
  width: 60px;
  min-width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.crown-sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crown-sidebar-post-body { flex: 1; min-width: 0; }

.crown-sidebar-post-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.crown-sidebar-post-title a { color: inherit; text-decoration: none; }
.crown-sidebar-post-title a:hover { color: #7f0f12; }

.crown-sidebar-post-time {
  font-size: 11px;
  color: #aaa;
}

/* ── Ad placeholder ── */
.crown-ad-area {
  border: 2px dashed rgba(127,15,18,0.14);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: rgba(127,15,18,0.02);
}

.crown-ad-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ccc;
  margin-bottom: 10px;
}

.crown-ad-placeholder {
  width: 100%;
  height: 220px;
  background: rgba(127,15,18,0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
}
