/* Castradar Screen Radar — live cinema/TV/streaming widgets */

html body .crx-cin-dash {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

html body .crx-cin-dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
}

html body .crx-cin-dash-head .crx-head {
  margin: 0 !important;
  flex: 1 1 auto;
}

html body .crx-cin-live {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--cr-sans, Manrope, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cr-violet, #7c3aed);
  padding: 2px 8px;
  border-radius: 2px;
  vertical-align: middle;
}

html body .crx-cin-dash-sub {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  color: #6b6078;
  line-height: 1.5;
}

html body .crx-cin-updated {
  font-size: 11px;
  color: #8a7f9a;
  white-space: nowrap;
}

html body .crx-cin-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

html body .crx-cin-col {
  background: #fff;
  border: 1px solid #e4dfe8;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(26, 20, 35, 0.06);
  padding: 14px 14px 10px;
  max-height: 420px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

html body .crx-cin-col::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

html body .crx-cin-col h3 {
  margin: 0 0 2px;
  font-family: var(--cr-serif, Lora, serif);
  font-size: 16px;
  color: var(--cr-ink, #1a1423);
}

html body .crx-cin-col-sub {
  margin: 0 0 10px;
  font-size: 11px;
  color: #8a7f9a;
  line-height: 1.4;
}

html body .crx-cin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

html body .crx-cin-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f0ecf4;
}

html body .crx-cin-list li:last-child {
  border-bottom: 0;
}

html body .crx-cin-thumb img,
html body .crx-cin-ph {
  width: 46px;
  height: 69px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2b3340, #7c3aed);
}

html body .crx-cin-body {
  min-width: 0;
  flex: 1;
}

html body .crx-cin-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cr-violet-dark, #5b21b6);
  border: 1px solid var(--cr-violet, #7c3aed);
  padding: 1px 6px;
  border-radius: 2px;
  margin-bottom: 4px;
}

html body .crx-cin-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cr-ink, #1a1423);
}

html body .crx-cin-title a {
  color: inherit;
  text-decoration: none;
}

html body .crx-cin-title a:hover {
  color: var(--cr-violet-dark, #5b21b6);
}

html body .crx-cin-guide {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--cr-amber-dark, #c4841a);
}

html body .crx-cin-foot {
  margin: 8px 0 0;
  font-size: 10px;
  color: #a89bb8;
}

html body .crx-cin-empty {
  font-size: 13px;
  color: #8a7f9a;
  margin: 0;
}

/* Release countdown pulse (optional, beside hero) */
html body .crx-cin-pulse {
  background: var(--cr-ink, #1a1423);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #f0eaf8;
}

html body .crx-cin-pulse-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cr-amber, #e8a838);
  margin-bottom: 8px;
}

html body .crx-cin-pulse-in {
  display: flex;
  gap: 14px;
  align-items: center;
}

html body .crx-cin-pulse-in img {
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

html body .crx-cin-pulse-count {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--cr-amber, #e8a838);
  font-family: var(--cr-sans, Manrope, sans-serif);
}

html body .crx-cin-pulse-title {
  display: block;
  font-family: var(--cr-serif, Lora, serif);
  font-size: 15px;
  margin: 4px 0 2px;
}

html body .crx-cin-pulse-title a {
  color: #fff;
}

html body .crx-cin-pulse-date {
  font-size: 12px;
  color: #a89bb8;
}

/* Topbar cinema stats */
html body .crx-topbar-data .crx-cin-stat b {
  color: var(--cr-amber, #e8a838);
  font-weight: 700;
}

html body .crx-topbar-data .crx-cin-stat {
  white-space: nowrap;
}

@media (max-width: 960px) {
  html body .crx-cin-cols {
    grid-template-columns: 1fr;
  }

  html body .crx-cin-col {
    max-height: none;
  }

  html body .crx-cin-col::after {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html body .crx-cin-live {
    animation: crx-cin-pulse-dot 2.4s ease-in-out infinite;
  }
}

@keyframes crx-cin-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* ===== Credibility stats strip ===== */
html body .crx-stats-strip {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--cr-ink, #1a1423);
  border-radius: 12px;
}

html body .crx-stat {
  text-align: center;
  padding: 2px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

html body .crx-stat:last-child {
  border-right: 0;
}

html body .crx-stat b {
  display: block;
  font-family: var(--cr-sans, Manrope, sans-serif);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cr-amber, #e8a838);
}

html body .crx-stat span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.3;
  color: #c8bfd8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 700px) {
  html body .crx-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  html body .crx-stat:nth-child(2) {
    border-right: 0;
  }
}

/* ===== This Week On Screen — poster rail ===== */
html body .crx-rail-wrap {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

html body .crx-rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-bottom: 12px;
}

html body .crx-rail-head .crx-head {
  margin: 0 !important;
}

html body .crx-rail-sub {
  font-size: 12px;
  color: #6b6078;
}

html body .crx-rail-viewport {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

html body .crx-rail-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: crx-rail-scroll 70s linear infinite;
}

html body .crx-rail-viewport:hover .crx-rail-track {
  animation-play-state: paused;
}

html body .crx-rail-link {
  flex: 0 0 auto;
  text-decoration: none;
  display: block;
}

html body .crx-rail-card {
  position: relative;
  width: 150px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cr-ink, #1a1423);
  box-shadow: 0 6px 18px rgba(26, 20, 35, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html body .crx-rail-link:hover .crx-rail-card {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.28);
}

html body .crx-rail-card img {
  display: block;
  width: 150px;
  height: 225px;
  object-fit: cover;
}

html body .crx-rail-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cr-ink, #1a1423);
  background: var(--cr-amber, #e8a838);
  padding: 2px 7px;
  border-radius: 3px;
}

html body .crx-rail-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(26, 20, 35, 0.82);
  padding: 2px 7px;
  border-radius: 3px;
}

html body .crx-rail-card figcaption {
  padding: 8px 10px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html body .crx-rail-guide {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--cr-amber, #e8a838);
  -webkit-line-clamp: none;
}

@keyframes crx-rail-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html body .crx-rail-track {
    animation: none;
  }
  html body .crx-rail-viewport {
    overflow-x: auto;
  }
}
