@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* =====================================================
   VARIABLES
   ===================================================== */
:root {
  --bg:         #080d18;
  --bg2:        #0d1526;
  --bg3:        #111b2e;
  --card:       #111827;
  --card-h:     #16223a;
  --red:        #e8192c;
  --red-d:      #b8131f;
  --red-glow:   rgba(232, 25, 44, 0.25);
  --blue:       #1e3a8a;
  --blue-l:     #2d54c0;
  --txt:        #f1f5f9;
  --txt2:       #94a3b8;
  --txt3:       #4b5563;
  --border:     #1e293b;
  --border-l:   #253348;
  --hdr:        56px;
  --nav:        44px;
  --bnav:       60px;
  --r:          12px;
  --r-sm:       8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.6);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.4);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--txt);
  overflow-x: hidden;
  min-height: 100vh;
  padding-top: calc(var(--hdr) + var(--nav));
  padding-bottom: var(--bnav);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
img { display: block; width: 100%; object-fit: cover; }
input, textarea, select { font-family: inherit; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(180deg, #0a1628 0%, #0d1e38 100%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--hdr); padding: 0 14px;
}
.logo {
  display: flex; flex-direction: row; align-items: center;
  cursor: pointer; gap: 0;
  background: var(--red);
  padding: 5px 10px 5px 12px;
  border-radius: 4px;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}
.logo-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 1.5px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none; -webkit-background-clip: initial;
  line-height: 1;
}
.logo-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; letter-spacing: 1px;
  color: rgba(255,255,255,0.85); -webkit-text-fill-color: rgba(255,255,255,0.85);
  background: none; -webkit-background-clip: initial;
  line-height: 1; display: block;
}
.hamburger {
  width: 38px; height: 38px;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; padding: 6px; border-radius: var(--r-sm);
  transition: background 0.2s;
}
.hamburger:active { background: var(--border); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--txt); border-radius: 2px;
  transition: 0.3s;
}

/* =====================================================
   CATEGORY NAV
   ===================================================== */
.category-nav {
  display: flex; height: var(--nav);
  overflow-x: auto; gap: 0;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0; padding: 0 16px; height: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--txt2); border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s; white-space: nowrap;
}
.cat-btn:active { background: rgba(255,255,255,0.03); }
.cat-btn.active { color: #fff; border-bottom-color: var(--red); background: rgba(232,25,44,0.12); }

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content { min-height: calc(100vh - var(--hdr) - var(--nav) - var(--bnav)); }

/* =====================================================
   HERO SLIDER
   ===================================================== */
.slider-wrapper {
  position: relative; overflow: hidden;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.slider-track {
  display: flex; transition: transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero-slide {
  min-width: 100%; position: relative; cursor: pointer;
}
.hero-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
}
.hero-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-slide:active .hero-thumb img { transform: scale(1.02); }
.hero-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.play-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.play-circle:active { transform: scale(0.92); background: rgba(0,0,0,0.8); }
.play-circle svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.ultima-hora {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  padding: 4px 8px; border-radius: 4px;
  text-transform: uppercase;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.hero-info { padding: 14px 14px 10px; }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; line-height: 1.1; color: #fff;
  letter-spacing: 0.5px; margin-bottom: 6px;
}
.hero-desc {
  font-size: 13px; color: var(--txt2); line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { display: flex; align-items: center; gap: 10px; }
.meta-time { font-size: 11px; color: var(--txt3); display: flex; align-items: center; gap: 4px; }
.meta-time svg { width: 11px; height: 11px; fill: var(--txt3); }
.cat-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--red); text-transform: uppercase;
}
.slider-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0 10px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-l); transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.dot.active { background: var(--red); transform: scale(1.2); }

/* Hero video wrapper */
.hero-video-wrapper {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: none;
}
.hero-video-wrapper.active { display: block; }
.hero-video-wrapper iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 14px 10px;
}
.section-header::before {
  content: ''; display: block; width: 4px; height: 20px;
  background: var(--red); border-radius: 2px; flex-shrink: 0;
}
.section-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 1.5px; color: #fff;
}

/* =====================================================
   NEWS LIST CARDS
   ===================================================== */
.news-list { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.news-card {
  display: flex; gap: 12px; background: var(--card);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); transition: background 0.2s, transform 0.15s;
  position: relative;
}
.news-card:active { background: var(--card-h); transform: scale(0.99); }
.news-card-thumb {
  width: 110px; flex-shrink: 0; position: relative; overflow: hidden;
}
.news-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; min-height: 90px;
}
.thumb-play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.2);
}
.thumb-play-icon svg { width: 28px; height: 28px; fill: rgba(255,255,255,0.9); }
.news-card-body {
  flex: 1; padding: 10px 0 10px; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.news-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; line-height: 1.25;
  color: #fff; letter-spacing: 0.3px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.news-card-desc {
  font-size: 12px; color: var(--txt2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 6px;
}
.news-card-meta { display: flex; align-items: center; gap: 8px; }
.news-card-arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--txt3);
}
.news-card-arrow svg { width: 16px; height: 16px; fill: var(--txt3); }

/* =====================================================
   ARTICLE VIEW
   ===================================================== */
.article-view { min-height: 100vh; }
.article-back {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--txt2); cursor: pointer;
}
.article-back svg { width: 18px; height: 18px; fill: var(--txt2); }
.article-back:active { background: var(--card); }
.article-video-section { position: relative; }
.video-thumb-area {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: #000; cursor: pointer;
}
.video-thumb-area img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb-area .play-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(0,0,0,0.35);
}
.play-big-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.play-big-circle {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--red-glow); transition: transform 0.2s;
}
.play-big-circle:active { transform: scale(0.92); }
.play-big-circle svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.play-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  text-transform: uppercase;
}
.video-iframe-area {
  aspect-ratio: 16/9; background: #000; display: none;
}
.video-iframe-area.active { display: block; }
.video-iframe-area iframe {
  width: 100%; height: 100%; border: none; display: block;
}
.article-body { padding: 16px 14px; }
.article-cat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; line-height: 1.1; letter-spacing: 0.5px;
  color: #fff; margin-bottom: 12px;
}
.article-divider {
  height: 1px; background: var(--border); margin: 14px 0;
}
.article-content {
  font-size: 15px; line-height: 1.75; color: var(--txt2);
}
.article-share {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 20px 0; padding: 14px;
  background: var(--card); border-radius: var(--r); border: 1px solid var(--border);
}
.share-btn {
  padding: 8px 20px; border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: #fff; display: flex; align-items: center; gap: 6px;
  transition: filter 0.2s;
}
.share-btn:active { filter: brightness(0.85); }
.share-btn.wa { background: #25d366; }
.share-btn.tw { background: #1da1f2; }
.related-section { padding: 0 14px 20px; }
.related-section .section-header { padding: 16px 0 10px; }
.related-grid { display: flex; flex-direction: column; gap: 10px; }

/* =====================================================
   SEARCH VIEW
   ===================================================== */
.search-view { padding: 14px; }
.search-input-wrap {
  position: relative; margin-bottom: 16px;
}
.search-input-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: var(--txt3);
}
.search-input {
  width: 100%; padding: 12px 12px 12px 42px;
  background: var(--card); border: 1px solid var(--border-l);
  border-radius: var(--r); color: var(--txt); font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--blue-l); }
.search-input::placeholder { color: var(--txt3); }
.search-results { display: flex; flex-direction: column; gap: 10px; }
.no-results {
  text-align: center; padding: 40px 20px; color: var(--txt2);
}
.no-results svg { width: 48px; height: 48px; fill: var(--txt3); margin: 0 auto 12px; }
.no-results p { font-size: 15px; }

/* =====================================================
   TENDENCIAS / VIDEOS
   ===================================================== */
.tendencias-header {
  padding: 18px 14px 14px; background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.tendencias-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 1.5px; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.fire-icon { font-size: 20px; }
.tendencias-list { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.trending-card {
  background: var(--card); border-radius: var(--r);
  border: 1px solid var(--border); overflow: hidden; cursor: pointer;
  transition: background 0.2s;
}
.trending-card:active { background: var(--card-h); }
.trending-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
}
.trending-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trending-num {
  position: absolute; top: 10px; left: 10px;
  font-family: 'Bebas Neue', sans-serif; font-size: 32px;
  color: rgba(255,255,255,0.15); line-height: 1;
}
.trending-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.trending-body { padding: 12px 14px; }
.trending-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700; color: #fff;
  line-height: 1.2; margin-bottom: 6px;
}
.trending-meta { display: flex; gap: 10px; align-items: center; }

/* =====================================================
   CATEGORY COLORS
   ===================================================== */
.cat-MUNDO    { color: #60a5fa; }
.cat-POLÍTICA { color: #fbbf24; }
.cat-TECNOLOGÍA { color: #34d399; }
.cat-DEPORTES { color: #a78bfa; }
.cat-ENTRETENIMIENTO { color: #f472b6; }

/* =====================================================
   BOTTOM NAV
   ===================================================== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bnav); z-index: 100;
  background: var(--bg2); border-top: 1px solid var(--border);
  display: flex;
}
.bn-btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  padding: 0 4px; transition: background 0.15s;
  color: var(--txt3);
}
.bn-btn:active { background: rgba(255,255,255,0.04); }
.bn-btn.active { color: var(--red); }
.bn-btn svg { width: 20px; height: 20px; fill: currentColor; }
.bn-btn span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
}

/* =====================================================
   SIDE MENU
   ===================================================== */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.menu-overlay.open { opacity: 1; pointer-events: all; }
.side-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  z-index: 201; background: var(--bg2);
  border-left: 1px solid var(--border);
  transition: right 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex; flex-direction: column;
}
.side-menu.open { right: 0; }
.side-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px; height: var(--hdr);
  border-bottom: 1px solid var(--border);
}
.side-menu-header span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 2px;
}
.side-menu-header button {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--card); border-radius: 50%;
  font-size: 16px; color: var(--txt2);
}
.side-menu-nav { display: flex; flex-direction: column; padding: 8px 0; }
.side-menu-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; font-size: 16px; color: var(--txt);
  transition: background 0.15s;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: 0.5px;
}
.side-menu-nav a:active { background: var(--card); }
.side-menu-footer {
  margin-top: auto; padding: 20px;
  border-top: 1px solid var(--border);
}
.admin-link-btn {
  display: block; width: 100%; text-align: center;
  padding: 12px; background: var(--red); color: #fff;
  border-radius: var(--r);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; text-align: center;
}
.empty-state svg { width: 56px; height: 56px; fill: var(--txt3); margin-bottom: 16px; }
.empty-state h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 1px; color: var(--txt2); margin-bottom: 8px;
}
.empty-state p { font-size: 14px; color: var(--txt3); }

/* =====================================================
   LOADING
   ===================================================== */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; gap: 10px;
}
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   TOAST NOTIFICATION
   ===================================================== */
.toast {
  position: fixed; bottom: calc(var(--bnav) + 14px); left: 50%; transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--border-l);
  color: var(--txt); padding: 10px 20px; border-radius: 20px;
  font-size: 14px; white-space: nowrap;
  box-shadow: var(--shadow); z-index: 300;
  opacity: 0; transition: opacity 0.25s, bottom 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; bottom: calc(var(--bnav) + 20px); }
.toast.success { border-color: #22c55e; color: #4ade80; }
.toast.error { border-color: var(--red); color: #f87171; }

/* =====================================================
   ADMIN PANEL STYLES
   ===================================================== */
.admin-body {
  background: var(--bg); color: var(--txt);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh; padding: 0 0 40px;
}
.admin-header {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 0 14px; display: flex; align-items: center;
  justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 10;
}
.admin-header-left { display: flex; align-items: center; gap: 12px; }
.admin-back-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.5px; color: var(--txt2); text-decoration: none;
  padding: 6px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--border); transition: background 0.2s;
}
.admin-back-btn:active { background: var(--card); }
.admin-back-btn svg { width: 16px; height: 16px; fill: var(--txt2); }
.admin-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 2px; color: var(--red);
}
.admin-content { padding: 16px 14px; }
.admin-section {
  background: var(--card); border-radius: var(--r);
  border: 1px solid var(--border); margin-bottom: 16px; overflow: hidden;
}
.admin-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px; letter-spacing: 1.5px; color: #fff;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg2); display: flex; align-items: center; gap: 8px;
}
.admin-section-title span { font-size: 16px; }
.admin-form { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--txt2); text-transform: uppercase;
}
.form-label span { color: var(--red); margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  background: var(--bg2); border: 1px solid var(--border-l);
  color: var(--txt); font-size: 14px; padding: 10px 12px;
  border-radius: var(--r-sm); outline: none; transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue-l);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--txt3); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-select option { background: var(--bg2); }
.form-hint { font-size: 11px; color: var(--txt3); margin-top: 2px; }
.admin-preview {
  margin: 0 16px 16px; background: var(--bg2); border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--border); display: none;
}
.admin-preview.show { display: block; }
.preview-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--txt3); padding: 8px 12px; border-bottom: 1px solid var(--border);
}
.preview-img { aspect-ratio: 16/9; overflow: hidden; }
.preview-img img { width: 100%; height: 100%; object-fit: cover; }
.publish-btn {
  margin: 0 16px 16px; width: calc(100% - 32px);
  padding: 14px; background: var(--red);
  color: #fff; border-radius: var(--r);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 2px;
  box-shadow: 0 4px 16px var(--red-glow);
  transition: filter 0.2s, transform 0.15s;
}
.publish-btn:active { filter: brightness(0.88); transform: scale(0.98); }
.destaca-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle-label { font-size: 13px; color: var(--txt2); }
.toggle {
  width: 44px; height: 24px; background: var(--border-l); border-radius: 12px;
  position: relative; cursor: pointer; transition: background 0.3s;
}
.toggle.on { background: var(--red); }
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: left 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle.on::after { left: 22px; }
.admin-list { padding: 0; }
.admin-news-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.admin-news-item:last-child { border-bottom: none; }
.admin-news-thumb {
  width: 60px; height: 42px; border-radius: 6px;
  overflow: hidden; flex-shrink: 0; background: var(--bg2);
}
.admin-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-news-info { flex: 1; min-width: 0; }
.admin-news-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--txt);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.admin-news-meta { display: flex; gap: 8px; align-items: center; }
.admin-news-meta span { font-size: 11px; color: var(--txt3); }
.delete-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(232, 25, 44, 0.1); border-radius: 8px; flex-shrink: 0;
  transition: background 0.2s;
}
.delete-btn:active { background: rgba(232, 25, 44, 0.25); }
.delete-btn svg { width: 16px; height: 16px; fill: var(--red); }
.admin-empty {
  padding: 30px; text-align: center;
  font-size: 14px; color: var(--txt3);
}
.stats-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; padding: 14px;
}
.stat-card {
  background: var(--bg2); border-radius: var(--r-sm);
  border: 1px solid var(--border); padding: 12px; text-align: center;
}
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; color: var(--red); letter-spacing: 1px;
}
.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 0.8px;
  color: var(--txt3); text-transform: uppercase; margin-top: 2px;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.main-content > * { animation: fadeInUp 0.3s ease both; }

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-l); border-radius: 2px; }

/* =====================================================
   RESPONSIVE / MOBILE-FIRST — max-width constraint
   ===================================================== */

/* On screens wider than a phone, center everything */
@media (min-width: 481px) {
  html {
    background: #02040b;
  }

  /* ── App shell wrapper ── */
  body {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(0,0,0,0.9), 0 0 0 1px #1e293b;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
  }

  /* ── Fixed header — stays inside 480px column ── */
  .site-header {
    width: 480px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* ── Fixed bottom nav — same treatment ── */
  .bottom-nav {
    width: 480px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* ── Side menu — anchored to right edge of the 480px column ── */
  /* Column right edge = 50vw + 240px. Closed: off-screen right. */
  .side-menu {
    right: calc(50% - 240px - 280px); /* hidden: 280px past right edge */
    left: auto;
    width: 280px;
  }
  .side-menu.open {
    right: calc(50% - 240px); /* flush with right edge of column */
  }

  /* ── Menu overlay — only covers the app column ── */
  .menu-overlay {
    width: 480px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* ── Toast — stays inside column ── */
  .toast {
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    text-align: center;
    max-width: 420px;
  }
  .toast.show {
    transform: translateX(-50%);
  }
}

/* ── Small phones: scale fonts down slightly ── */
@media (max-width: 360px) {
  :root {
    --hdr: 50px;
    --nav: 40px;
  }
  .logo-main   { font-size: 19px; }
  .logo-sub    { font-size: 11px; }
  .hero-title  { font-size: 19px; }
  .article-title { font-size: 22px; }
  .cat-btn     { font-size: 12px; padding: 0 11px; }
  .news-card-title { font-size: 14px; }
  .news-card-thumb { width: 95px; }
}

/* ── Prevent iOS input zoom ── */
input, select, textarea {
  font-size: max(16px, 1em) !important;
}
