/* ==========================================================================
   NEO AWARDS 2026: "CHARCA TB EDITION" - ESTÉTICA PLATÓ TV PRIME TIME
   Inspiración: El Chiringuito de Jugones / Breaking News / Prensa Deportiva
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Inter:wght@400;600;700;900&family=Oswald:wght@500;700&display=swap');

:root {
  --studio-blue: #070b19;
  --studio-mid: #0a1128;
  --broadcast-navy: #001f54;
  --broadcast-panel: #0e1938;
  --exclusive-red: #e63946;
  --live-red: #ff002b;
  --breaking-gold: #ffb703;
  --gold-light: #ffd166;
  --headline-white: #ffffff;
  --muted-slate: #94a3b8;
  --success-green: #10b981;
  --border-tv: rgba(255, 183, 3, 0.35);
  --font-impact: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --font-tv: 'Oswald', 'Bebas Neue', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--studio-blue);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 31, 84, 0.85) 0%, transparent 70%),
    radial-gradient(circle at 90% 20%, rgba(255, 0, 43, 0.14) 0%, transparent 45%),
    linear-gradient(180deg, #060a17 0%, #0a1128 50%, #050814 100%);
  background-attachment: fixed;
  color: var(--headline-white);
  font-family: var(--font-body);
  min-height: 100vh;
  padding-bottom: 90px; /* space for bottom ticker & nav */
  overflow-x: hidden;
}

/* Scanline overlay subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 999;
}

/* ==========================================
   TOP BROADCAST HEADER
   ========================================== */
.tv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #050914 0%, #0d1b3e 50%, #050914 100%);
  border-bottom: 3px solid var(--live-red);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8);
}

.tv-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pill {
  background: var(--live-red);
  color: #fff;
  font-family: var(--font-tv);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(255, 0, 43, 0.7);
  animation: pulseLive 2s infinite;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 0, 43, 0.7); }
  50% { box-shadow: 0 0 22px rgba(255, 0, 43, 1); }
}

.brand-title {
  font-family: var(--font-impact);
  font-size: 1.35rem;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 2px 0px var(--live-red);
}

.brand-subtitle {
  font-family: var(--font-tv);
  font-size: 0.75rem;
  color: var(--breaking-gold);
  letter-spacing: 1.5px;
  display: block;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 183, 3, 0.14);
  border: 1px solid var(--breaking-gold);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-tv);
  font-size: 0.85rem;
  color: var(--breaking-gold);
  cursor: pointer;
}

.user-badge:hover {
  background: rgba(255, 183, 3, 0.25);
}

/* Headline Banner */
.headline-strap {
  background: linear-gradient(90deg, var(--live-red) 0%, #b8001f 100%);
  color: #fff;
  font-family: var(--font-tv);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 14px 40px;
}

.admin-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

/* ==========================================
   TV LOWER THIRD HEADERS & CARDS
   ========================================== */
.tv-card {
  background: linear-gradient(165deg, rgba(14, 25, 56, 0.95) 0%, rgba(8, 14, 34, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 5px solid var(--live-red);
  border-radius: 6px;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.tv-card.gold-accent {
  border-left-color: var(--breaking-gold);
}

.lower-third-tag {
  display: inline-block;
  background: var(--live-red);
  color: #fff;
  font-family: var(--font-tv);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 1.4px;
  padding: 3px 9px;
  text-transform: uppercase;
  transform: skewX(-10deg);
  margin-bottom: 8px;
}

.lower-third-tag.gold {
  background: var(--breaking-gold);
  color: #060a17;
}

.lower-third-tag.blue {
  background: #1d4ed8;
  color: #fff;
}

.lower-third-title {
  font-family: var(--font-impact);
  font-size: 1.65rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--headline-white);
  margin-bottom: 6px;
}

.lower-third-desc {
  color: var(--muted-slate);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ==========================================
   STEP 0: ACREDITACIÓN DE TERTULIANO
   ========================================== */
.accreditation-hero {
  text-align: center;
  padding: 22px 16px;
  background: linear-gradient(180deg, rgba(255, 0, 43, 0.16) 0%, rgba(10, 17, 40, 0.95) 100%);
  border: 2px solid var(--breaking-gold);
  border-radius: 8px;
  margin-bottom: 18px;
  box-shadow: 0 0 35px rgba(255, 183, 3, 0.15);
}

.accreditation-hero h1 {
  font-family: var(--font-impact);
  font-size: 2.3rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 3px 0 var(--live-red);
  margin: 6px 0;
}

.search-input {
  width: 100%;
  padding: 13px 16px;
  background: #060b19;
  border: 2px solid rgba(255, 183, 3, 0.5);
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  margin: 12px 0 16px;
  outline: none;
}

.search-input:focus {
  border-color: var(--breaking-gold);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.35);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 540px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.member-accredit-btn {
  background: linear-gradient(145deg, #111f47 0%, #09122c 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 14px 10px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
}

.member-accredit-btn:hover,
.member-accredit-btn:active {
  border-color: var(--breaking-gold);
  transform: translateY(-2px);
  background: linear-gradient(145deg, #192d66 0%, #0f1c42 100%);
}

.member-accredit-btn .m-name {
  font-family: var(--font-tv);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  line-height: 1.15;
}

.member-accredit-btn .m-alias {
  font-size: 0.76rem;
  color: var(--breaking-gold);
  margin-top: 4px;
}

.member-accredit-btn .voted-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-tv);
}

/* ==========================================
   COUNTDOWN BANNER (RONDA 2 LOCK / HEADER)
   ========================================== */
.countdown-box {
  background: linear-gradient(135deg, #180611 0%, #09122c 60%, #1c1204 100%);
  border: 2px solid var(--breaking-gold);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65);
}

.countdown-label {
  font-family: var(--font-tv);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--breaking-gold);
  margin-bottom: 10px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cd-unit {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 183, 3, 0.45);
  border-radius: 6px;
  min-width: 66px;
  padding: 8px 6px;
}

.cd-num {
  font-family: var(--font-impact);
  font-size: 1.85rem;
  line-height: 1;
  color: #fff;
}

.cd-txt {
  font-family: var(--font-tv);
  font-size: 0.68rem;
  color: var(--muted-slate);
  text-transform: uppercase;
  margin-top: 3px;
}

/* ==========================================
   NAVIGATION TABS / WIZARD PROGRESS
   ========================================== */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mode-tab {
  flex: 1;
  min-width: 120px;
  background: #0b142e;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: var(--muted-slate);
  font-family: var(--font-tv);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  padding: 11px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.mode-tab.active {
  background: var(--live-red);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 4px 15px rgba(255, 0, 43, 0.45);
}

.progress-bar-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--live-red), var(--breaking-gold));
  height: 100%;
  width: 0%;
  transition: width 0.25s ease;
}

/* ==========================================
   PERSON & QUOTE SELECTION CHIPS (MOBILE-FIRST)
   ========================================== */
.choices-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-tv);
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  margin-top: 8px;
}

.choices-counter.complete {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

.person-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 520px) {
  .person-chips-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chip-btn {
  background: #091229;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 12px 10px;
  color: #e2e8f0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: all 0.12s ease;
  text-align: left;
  min-height: 50px;
}

.chip-btn:hover {
  border-color: rgba(255, 183, 3, 0.6);
}

.chip-btn.selected {
  background: linear-gradient(135deg, #b8001f 0%, #ff002b 100%);
  border-color: var(--breaking-gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 0, 43, 0.45);
  transform: scale(1.01);
}

.chip-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.chip-btn.selected .chip-check {
  background: var(--breaking-gold);
  color: #000;
  border-color: #fff;
  font-weight: 900;
}

/* Quotes / Palos / Sotadas Option Cards */
.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.quote-option-btn {
  background: #091229;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-left: 4px solid var(--breaking-gold);
  border-radius: 6px;
  padding: 13px 14px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.quote-option-btn.selected {
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.32) 0%, rgba(184, 0, 31, 0.5) 100%);
  border-color: var(--breaking-gold);
  box-shadow: 0 4px 14px rgba(255, 0, 43, 0.35);
}

.quote-text {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.quote-meta {
  font-size: 0.8rem;
  color: var(--breaking-gold);
  margin-top: 4px;
  font-family: var(--font-tv);
  letter-spacing: 0.5px;
}

/* ==========================================
   MEDIA UPLOAD & GALLERY (FOTO & STICKER)
   ========================================== */
.upload-zone {
  border: 2px dashed var(--breaking-gold);
  background: rgba(255, 183, 3, 0.06);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  margin-top: 14px;
}

.upload-zone input[type="file"] {
  display: none;
}

.btn-tv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--live-red);
  color: #fff;
  font-family: var(--font-tv);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(255, 0, 43, 0.4);
}

.btn-tv:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-tv.gold {
  background: var(--breaking-gold);
  color: #050914;
  box-shadow: 0 4px 14px rgba(255, 183, 3, 0.35);
}

.btn-tv.secondary {
  background: #1e293b;
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 560px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.media-card {
  background: #081026;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.15s;
}

.media-card.selected {
  border-color: var(--breaking-gold);
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.55);
  transform: translateY(-2px);
}

.media-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  background: #040711;
  cursor: zoom-in;
}

.media-card.sticker-card img {
  object-fit: contain;
  padding: 8px;
}

.media-card-body {
  padding: 9px 10px;
  font-size: 0.82rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.media-title {
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.media-author {
  font-size: 0.72rem;
  color: var(--muted-slate);
}

/* ==========================================
   STICKY SAVE BAR & BREAKING NEWS TICKER
   ========================================== */
.floating-save-bar {
  position: fixed;
  bottom: 36px;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(7, 11, 25, 0.95);
  backdrop-filter: blur(8px);
  border-top: 2px solid var(--breaking-gold);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tv-ticker-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #040711;
  border-top: 2px solid var(--live-red);
  display: flex;
  align-items: center;
  z-index: 100;
  overflow: hidden;
}

.ticker-badge {
  background: var(--breaking-gold);
  color: #000;
  font-family: var(--font-impact);
  font-size: 0.85rem;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  flex-shrink: 0;
  z-index: 2;
}

.ticker-track {
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: tickerMove 38s linear infinite;
  font-family: var(--font-tv);
  font-size: 0.86rem;
  color: #fff;
  letter-spacing: 0.8px;
}

@keyframes tickerMove {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Lightbox Modal */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 16px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-backdrop img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid var(--breaking-gold);
  border-radius: 6px;
}

/* Toast Notification */
.tv-toast {
  position: fixed;
  top: 76px;
  right: 16px;
  z-index: 1100;
  background: linear-gradient(90deg, #065f46, #047857);
  border-left: 5px solid var(--breaking-gold);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-family: var(--font-tv);
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  display: none;
}

/* ==========================================
   ADMIN PANEL SPECIFIC STYLES
   ========================================== */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 840px) {
  .admin-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.88rem;
}

.bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin: 0 12px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--breaking-gold);
}

.badge-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-tv);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.badge-status.ok {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

.badge-status.pending {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid #ef4444;
}

textarea.admin-textarea,
input.admin-input,
select.admin-select {
  width: 100%;
  background: #060b19;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-top: 6px;
}
