/* ============================================================
 * Paname Prestige RP — OBS Overlay (1920x1080, transparent)
 * ============================================================ */
html, body { background: transparent !important; overflow: hidden; }
body { color: #fff; }

.stage {
  position: relative;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  pointer-events: none;
}

/* Fit to viewport when opened as a normal page (preview) */
.fit-viewport {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
}

/* ============ Brand card (top left) ============ */
.brand {
  position: absolute;
  top: 48px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 14px 14px;
  background: rgba(11, 11, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: slideIn .7s cubic-bezier(.2,.8,.2,1) both;
}
.brand .logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7d050b, #e10613);
  display: flex; align-items: center; justify-content: center;
  font-family: "Oswald", sans-serif;
  font-weight: 700; font-size: 24px; color: #fff;
  letter-spacing: .04em;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand .logo img { width: 100%; height: 100%; object-fit: cover; }
.brand .text { display: flex; flex-direction: column; }
.brand .name {
  font-family: "Oswald", sans-serif;
  font-weight: 700; font-size: 22px;
  text-transform: uppercase; letter-spacing: .04em; color: #fff;
  line-height: 1;
}
.brand .tag {
  margin-top: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #c7c7d1;
}
.brand .live {
  margin-left: 8px; padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; gap: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: .2em;
  color: #fff; text-transform: uppercase;
}
.brand .live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff1f2b;
  box-shadow: 0 0 0 0 rgba(255,31,43,.7);
  animation: pulse 1.4s ease-out infinite;
}

/* ============ Clock (top right) ============ */
.clock {
  position: absolute;
  top: 48px;
  right: 48px;
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 12px 18px;
  background: rgba(11, 11, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: slideIn .7s .1s cubic-bezier(.2,.8,.2,1) both;
}
.clock .time {
  font-family: "Oswald", sans-serif;
  font-weight: 700; font-size: 38px; line-height: 1;
  color: #fff; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.clock .date {
  margin-top: 6px;
  font-size: 12px; font-weight: 600; color: #c7c7d1;
  text-transform: uppercase; letter-spacing: .14em;
}

/* ============ Lower third ============ */
.lt {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 120px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  animation: slideInUp .8s cubic-bezier(.2,.8,.2,1) both;
}
.lt .rubric {
  flex: 0 0 260px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 18px;
  font-family: "Oswald", sans-serif;
  font-weight: 700; font-size: 30px; color: #fff;
  text-transform: uppercase; letter-spacing: .08em;
  text-align: center;
  background: linear-gradient(135deg, var(--rubric-from, #1d4ed8), var(--rubric-to, #0a3fa8));
  position: relative;
}
.lt .rubric::after {
  content: "";
  position: absolute; right: -18px; top: 0; bottom: 0;
  width: 36px;
  background: linear-gradient(135deg, var(--rubric-from, #1d4ed8), var(--rubric-to, #0a3fa8));
  transform: skewX(-14deg);
  z-index: 1;
}
.lt .body {
  flex: 1;
  padding: 22px 34px 22px 52px;
  background: linear-gradient(180deg, rgba(11,11,15,.92), rgba(11,11,15,.82));
  border-left: 0;
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid rgba(255,255,255,.06);
}
.lt .headline {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1.08;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.lt .subline {
  margin-top: 10px;
  font-size: 18px; font-weight: 500; color: #d5d5dd;
  letter-spacing: .02em;
}

/* ============ Ticker (bottom bar) ============ */
.ticker {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(11,11,15,.98), rgba(11,11,15,1));
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  animation: slideInUp .8s .1s cubic-bezier(.2,.8,.2,1) both;
}
.ticker .label {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px;
  background: linear-gradient(135deg, #7d050b, #e10613);
  font-family: "Oswald", sans-serif;
  font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 18px;
  position: relative;
  z-index: 2;
}
.ticker .label::after {
  content: ""; position: absolute; right: -22px; top: 0; bottom: 0;
  width: 44px;
  background: linear-gradient(135deg, #7d050b, #e10613);
  transform: skewX(-14deg);
}
.ticker .label .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; animation: pulse 1.4s ease-out infinite;
  box-shadow: 0 0 0 0 rgba(255,255,255,.8);
}
.ticker .track {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 100%;
  padding-left: 44px;
}
.ticker .track::before,
.ticker .track::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 3;
  pointer-events: none;
}
.ticker .track::before { left: 44px; background: linear-gradient(90deg, #0b0b0f, transparent); }
.ticker .track::after  { right: 0;   background: linear-gradient(-90deg, #0b0b0f, transparent); }
.ticker .rail {
  display: flex;
  align-items: center;
  gap: 64px;
  height: 100%;
  padding-right: 64px;
  animation: scroll var(--ticker-duration, 60s) linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker .item {
  font-family: "Oswald", sans-serif;
  font-weight: 600; font-size: 22px;
  color: #fff; letter-spacing: .02em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 64px;
}
.ticker .item::after {
  content: "◆";
  color: var(--primary, #e10613);
  font-size: 14px;
}

/* ============ Breaking News mode ============ */
.stage.breaking .brand { border-color: rgba(255,31,43,.55); box-shadow: 0 0 0 2px rgba(255,31,43,.25), 0 8px 32px rgba(0,0,0,.45); }
.stage.breaking .ticker .label {
  background: linear-gradient(135deg, #000, #1a1a1a);
  color: #ff1f2b;
  animation: flash 1s steps(2,end) infinite;
}
.stage.breaking .ticker .label::after {
  background: linear-gradient(135deg, #000, #1a1a1a);
}
.stage.breaking .ticker .rail { animation-duration: 30s; }
.stage.breaking .lt .rubric { --rubric-from: #000; --rubric-to: #1a1a1a; color: #ff1f2b; }
.stage.breaking .lt .rubric::after { --rubric-from: #000; --rubric-to: #1a1a1a; }
.stage.breaking::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 8px rgba(255,31,43,.35);
  animation: borderPulse 1.8s ease-in-out infinite;
  z-index: 10;
}

/* ============ Animations ============ */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,31,43,.7); }
  70%  { box-shadow: 0 0 0 14px rgba(255,31,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,31,43,0); }
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes flash {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: .35; }
}
@keyframes borderPulse {
  0%, 100% { box-shadow: inset 0 0 0 8px rgba(255,31,43,.20); }
  50%      { box-shadow: inset 0 0 0 8px rgba(255,31,43,.55); }
}

/* ============ Rubric color palettes ============ */
.rubric.r-politique      { --rubric-from: #1e40af; --rubric-to: #0a3fa8; }
.rubric.r-economie       { --rubric-from: #047857; --rubric-to: #065f46; }
.rubric.r-societe        { --rubric-from: #b45309; --rubric-to: #92400e; }
.rubric.r-sport          { --rubric-from: #6d28d9; --rubric-to: #4c1d95; }
.rubric.r-international  { --rubric-from: #0f766e; --rubric-to: #115e59; }
.rubric.r-urgent         { --rubric-from: #b91c1c; --rubric-to: #7f1d1d; }
