/* ============================================================
   BIKINI NEWS — editorial / broadcast theme
   ============================================================ */
:root {
  --bg: #0a0b0d;
  --bg-soft: #121419;
  --panel: #16181f;
  --panel-2: #1c1f28;
  --line: #272b36;
  --text: #f4f5f7;
  --muted: #9aa1ad;
  --muted-2: #6b7280;
  --red: #e2152b;
  --red-dark: #b30f20;
  --gold: #d9b45b;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #14161d 0%, var(--bg) 60%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Top bar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px/1 "Oswald", sans-serif;
  letter-spacing: 1.5px;
  color: #fff;
  background: var(--red);
  padding: 5px 8px;
  border-radius: 4px;
}
.dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.brand__name {
  font: 700 24px/1 "Oswald", sans-serif;
  letter-spacing: 1px;
}
.brand__name-accent { color: var(--red); }
.topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar__time {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* version switcher */
.ver { position: relative; }
.ver__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font: 600 13px/1 "Oswald", sans-serif;
  letter-spacing: 1px;
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
}
.ver__btn:hover { border-color: #3a3f4d; }
.ver__state {
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.ver__state--live { background: rgba(34,197,94,0.16); color: #4ade80; }
.ver__state--paused { background: rgba(234,179,8,0.16); color: #facc15; }
.ver__caret { color: var(--muted); font-size: 11px; }
.ver__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 60;
}
.ver__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
}
.ver__item:hover { background: var(--panel-2); }
.ver__item.is-current { color: var(--gold); }
.ver__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ver__dot.is-live { background: #4ade80; }
.ver__dot.is-paused { background: #facc15; }
.clock {
  font: 600 16px/1 "Oswald", sans-serif;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.clock__date {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Ticker ===== */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker__tag {
  flex: none;
  display: flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  font: 700 12px/1 "Oswald", sans-serif;
  letter-spacing: 2px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
.ticker__viewport {
  overflow: hidden;
  flex: 1;
  position: relative;
}
.ticker__track {
  display: inline-flex;
  gap: 44px;
  white-space: nowrap;
  padding: 10px 0;
  will-change: transform;
  animation: ticker-scroll 60s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.ticker__item::before {
  content: "●";
  color: var(--red);
  font-size: 8px;
  vertical-align: middle;
  margin-right: 12px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Hero ===== */
.hero {
  margin: 28px 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 420px;
}
.hero__media {
  position: relative;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.hero:hover .hero__media img { transform: scale(1.04); }
.hero__body {
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(226,21,43,0.05), transparent 40%),
    var(--panel);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 "Oswald", sans-serif;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}
.hero__headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.3px;
}
.hero__chyron {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  max-width: 52ch;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ===== Tags ===== */
.tag {
  display: inline-flex;
  align-items: center;
  font: 700 11px/1 "Oswald", sans-serif;
  letter-spacing: 1.5px;
  padding: 6px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tag--breaking { background: var(--red); color: #fff; }

/* ===== Section head ===== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 34px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.section-head__title {
  font: 700 22px/1 "Oswald", sans-serif;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
}
.section-head__title::before {
  content: "";
  display: inline-block;
  width: 10px; height: 18px;
  background: var(--red);
  margin-right: 12px;
  vertical-align: -2px;
}
.section-head__meta { font-size: 13px; color: var(--muted); }

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #3a3f4d;
  box-shadow: var(--shadow);
}
.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__tag {
  position: absolute;
  top: 10px; left: 10px;
}
.card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 11px;
  color: #d6d9df;
  letter-spacing: 0.4px;
}
.card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card__headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.22;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__chyron {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.card__source { color: var(--gold); font-weight: 600; }

/* ===== States ===== */
.state {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}
.state__title { font: 700 20px/1 "Oswald", sans-serif; color: var(--text); }
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn {
  background: none; border: none; color: var(--red);
  font: inherit; cursor: pointer; text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  margin-top: 30px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 20px 40px;
  text-align: center;
}
.footer__brand {
  font: 700 22px/1 "Oswald", sans-serif;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer__disclaimer {
  color: var(--muted);
  font-size: 13px;
  max-width: 70ch;
  margin: 0 auto 12px;
}
.footer__copy { color: var(--muted-2); font-size: 12px; margin: 0; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 7, 9, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox__fig {
  margin: 0;
  max-width: 980px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 88vh;
}
.lightbox__img {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: cover;
  background: #000;
}
.lightbox__cap {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.lightbox__headline {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.12;
  margin: 0;
}
.lightbox__chyron { color: var(--muted); margin: 0; font-size: 15px; }
.lightbox__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-2);
}
.lightbox__source {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}
.lightbox__source:hover { text-decoration: underline; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(20, 22, 28, 0.7);
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--red); }
.lightbox__close {
  top: 22px; right: 22px;
  width: 42px; height: 42px;
  font-size: 26px;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  font-size: 30px;
}
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 4 / 3; }
  .lightbox__fig { grid-template-columns: 1fr; max-height: 92vh; overflow: auto; }
  .lightbox__img { max-height: 56vh; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}
@media (max-width: 520px) {
  .brand__name { font-size: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card__headline { font-size: 15px; }
  .topbar__right { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  * { scroll-behavior: auto; }
}
