/* ============================================================
   THEME SYSTEM — 5 Themes
   ============================================================ */
:root {
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* THEME 1: Midnight Broadcast (default) */
body.theme-midnight {
  --bg:        #0a0c14;
  --bg2:       #111520;
  --bg3:       #181d2e;
  --surface:   #1e2438;
  --border:    #2a3050;
  --text:      #e8ecf4;
  --text2:     #8b93b0;
  --accent:    #e63946;
  --accent2:   #f4a261;
  --accent3:   #2cb67d;
  --accent4:   #7b61ff;
  --live:      #e63946;
  --header-bg: rgba(10,12,20,0.96);
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* THEME 2: Caribbean Gold */
body.theme-caribbean {
  --bg:        #fefdf8;
  --bg2:       #f5f0e0;
  --bg3:       #ede8d6;
  --surface:   #ffffff;
  --border:    #d4c89a;
  --text:      #1a1206;
  --text2:     #6b5c2e;
  --accent:    #c0392b;
  --accent2:   #e67e22;
  --accent3:   #27ae60;
  --accent4:   #2980b9;
  --live:      #c0392b;
  --header-bg: rgba(254,253,248,0.97);
  --font-head: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* THEME 3: Neon Pulse */
body.theme-neon {
  --bg:        #050508;
  --bg2:       #080b12;
  --bg3:       #0c1018;
  --surface:   #0f1520;
  --border:    #1a2540;
  --text:      #ffffff;
  --text2:     #7a8ab0;
  --accent:    #00f5d4;
  --accent2:   #ff6b35;
  --accent3:   #b8ff57;
  --accent4:   #bf5af2;
  --live:      #00f5d4;
  --header-bg: rgba(5,5,8,0.97);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* THEME 4: Editorial White */
body.theme-editorial {
  --bg:        #f8f7f4;
  --bg2:       #eeece7;
  --bg3:       #e4e1d9;
  --surface:   #ffffff;
  --border:    #c8c4b8;
  --text:      #1c1a16;
  --text2:     #6e6a5f;
  --accent:    #1a1a2e;
  --accent2:   #d62828;
  --accent3:   #2d6a4f;
  --accent4:   #003566;
  --live:      #d62828;
  --header-bg: rgba(248,247,244,0.97);
  --font-head: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* THEME 5: Terminal Green */
body.theme-terminal {
  --bg:        #020f02;
  --bg2:       #041004;
  --bg3:       #061506;
  --surface:   #071a07;
  --border:    #0d2e0d;
  --text:      #a8ff78;
  --text2:     #5a9e5a;
  --accent:    #39ff14;
  --accent2:   #ffdd00;
  --accent3:   #00cfff;
  --accent4:   #ff4444;
  --live:      #39ff14;
  --header-bg: rgba(2,15,2,0.97);
  --font-head: 'Space Mono', monospace;
  --font-body: 'Space Mono', monospace;
}

/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s, color 0.5s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   THEME SWITCHER PANEL
   ============================================================ */
.theme-panel {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  border-radius: 12px 0 0 12px;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
}

.theme-panel-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin: 6px auto;
  font-family: 'DM Sans', sans-serif;
}

.theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
}

.theme-swatch:hover, .theme-swatch.active {
  border-color: white;
  transform: scale(1.15);
}

.theme-swatch[data-theme="theme-midnight"] { background: linear-gradient(135deg, #0a0c14 50%, #e63946 50%); }
.theme-swatch[data-theme="theme-caribbean"] { background: linear-gradient(135deg, #fefdf8 50%, #c0392b 50%); }
.theme-swatch[data-theme="theme-neon"]      { background: linear-gradient(135deg, #050508 50%, #00f5d4 50%); }
.theme-swatch[data-theme="theme-editorial"] { background: linear-gradient(135deg, #f8f7f4 50%, #d62828 50%); }
.theme-swatch[data-theme="theme-terminal"]  { background: linear-gradient(135deg, #020f02 50%, #39ff14 50%); }

.theme-swatch-tip {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.85);
  color: white;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.theme-swatch:hover .theme-swatch-tip { opacity: 1; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */
.ticker-bar {
  background: var(--accent);
  color: white;
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ticker-label {
  background: rgba(0,0,0,0.3);
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.ticker-blink {
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
  padding-left: 30px;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 60px;
}

.ticker-dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 22px;
  color: white;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.logo-tagline {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text2);
  font-family: var(--font-body);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-item:hover { background: var(--surface); color: var(--text); }

.nav-item.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.nav-icon { font-size: 14px; }

.nav-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-btn, .menu-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
}

.search-btn:hover, .menu-btn:hover { border-color: var(--accent); color: var(--accent); }

.subscribe-btn {
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.subscribe-btn:hover { background: var(--accent); color: white; }

/* ============================================================
   HERO — LIVE STREAM
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px;
  align-items: start;
}

.live-stream-section {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.stream-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.stream-wrapper iframe, .stream-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* MediaMTX / HLS stream placeholder + actual embed */
.stream-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, #1a0a2e 0%, #000 70%);
  gap: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.stream-overlay.visible { opacity: 1; pointer-events: all; }

.stream-pulse-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
}

.stream-pulse-ring::before, .stream-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ring-pulse 2s ease-out infinite;
}

.stream-pulse-ring::after { animation-delay: 1s; }

@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.stream-status-text {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: white;
}

.stream-subtext {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

/* Live badge */
.live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--live);
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 10;
}

.live-dot {
  width: 7px; height: 7px;
  background: white;
  border-radius: 50%;
  animation: blink 0.8s infinite;
}

.stream-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.ctrl-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s;
}

.ctrl-btn:hover { background: rgba(255,255,255,0.2); }

/* Channel info below player */
.stream-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 10px 16px;
  margin-top: -4px;
}

.channel-list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.channel-pill {
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text2);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
}

.channel-pill:hover, .channel-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ============================================================
   SIDEBAR — TOP STORIES
   ============================================================ */
.sidebar {
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 14px 0;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0;
}

.sidebar-title {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.see-all {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.see-all:hover { opacity: 0.7; }

.top-stories-list {
  display: flex;
  flex-direction: column;
}

.story-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.story-item:last-child { border-bottom: none; }
.story-item:hover { padding-left: 6px; }

.story-thumb {
  width: 72px; height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.story-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.story-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
}

.cat-health  { background: color-mix(in srgb, var(--accent3) 15%, transparent); color: var(--accent3); }
.cat-local   { background: color-mix(in srgb, var(--accent2) 15%, transparent); color: var(--accent2); }
.cat-finance { background: color-mix(in srgb, var(--accent4) 15%, transparent); color: var(--accent4); }
.cat-sports  { background: color-mix(in srgb, var(--accent) 15%, transparent);  color: var(--accent); }

.story-headline {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.story-time {
  font-size: 11px;
  color: var(--text2);
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.section-tabs {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid var(--border);
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--text); border-bottom-color: var(--accent); }

.tab-icon { font-size: 16px; }

.tab-count {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 10px;
  color: var(--text2);
}

.tab-item.active .tab-count {
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
}

/* ============================================================
   NEWS GRID — MAIN CONTENT
   ============================================================ */
.news-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.section-label {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.section-stripe {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
}

/* Main Feature Card */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  margin-bottom: 20px;
}

.feature-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  group: true;
}

.feature-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.feature-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.feature-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.feature-card:hover .feature-image { transform: scale(1.03); transition: transform 0.4s; }

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.card-image {
  aspect-ratio: 16/10;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  overflow: hidden;
  position: relative;
}

.card-image-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.card-author {
  font-size: 11px;
  color: var(--text2);
}

.card-time {
  font-size: 11px;
  color: var(--text2);
}

/* Compact list card for sidebar */
.list-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.list-card:hover { border-color: var(--accent); transform: translateX(4px); }

/* ============================================================
   HEALTH SECTION
   ============================================================ */
.health-section-bg {
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--accent3) 5%, var(--bg)) 100%);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}

/* ============================================================
   FINANCE TICKER
   ============================================================ */
.finance-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.finance-ticker {
  display: flex;
  gap: 32px;
  animation: ticker 20s linear infinite;
  padding-left: 40px;
}

.finance-ticker:hover { animation-play-state: paused; }

.finance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.finance-symbol {
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

.finance-price { font-size: 13px; }

.finance-change {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.finance-up   { color: var(--accent3); background: color-mix(in srgb, var(--accent3) 12%, transparent); }
.finance-down { color: var(--accent);  background: color-mix(in srgb, var(--accent) 12%, transparent);  }

/* ============================================================
   SPORTS SCOREBOARD
   ============================================================ */
.scoreboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.scoreboard-header {
  background: var(--accent);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.score-row:hover { background: var(--bg3); }
.score-row:last-child { border-bottom: none; }

.team { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.team-away { flex-direction: row-reverse; }

.team-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.score-center { text-align: center; }

.score-value {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text);
}

.score-dash { color: var(--text2); margin: 0 6px; }

.score-status {
  display: block;
  font-size: 10px;
  color: var(--accent2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   CABLE CHANNELS
   ============================================================ */
.cable-section {
  background: var(--bg2);
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.cable-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.cable-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cable-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cable-icon { font-size: 24px; margin-bottom: 6px; }

.cable-provider {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.cable-channel {
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

.cable-label {
  font-size: 10px;
  color: var(--text2);
  margin-top: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  font-size: 13px;
  color: var(--text2);
  transition: color 0.2s;
}

.footer-links li a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  max-width: 1400px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text2);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.section-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

/* ============================================================
   WEATHER WIDGET
   ============================================================ */
.weather-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.weather-icon { font-size: 44px; }

.weather-temp {
  font-family: var(--font-head);
  font-size: 38px;
  line-height: 1;
  color: var(--text);
}

.weather-info {
  font-size: 12px;
  color: var(--text2);
  margin-top: 4px;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 16px;
  padding: 24px;
  margin-top: 28px;
}

.newsletter-title {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 6px;
}

.newsletter-sub {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  outline: none;
  font-family: var(--font-body);
}

.newsletter-input:focus { border-color: var(--accent); }

.newsletter-btn {
  padding: 10px 18px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-body);
}

.newsletter-btn:hover { opacity: 0.85; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 32px; }

/* Mock image patterns */
.img-health  { background: linear-gradient(135deg, #1a3a2a, #2d6a4f, #52b788); }
.img-local   { background: linear-gradient(135deg, #2c1654, #7b2d8b, #c77dff); }
.img-finance { background: linear-gradient(135deg, #1a2438, #2d4a7a, #4d8fcc); }
.img-sports  { background: linear-gradient(135deg, #3a1a0a, #8b3a0a, #e67e22); }
.img-dark    { background: linear-gradient(135deg, #0a0a1a, #1a1a3a, #2a2a5a); }

/* Animated gradient background for stream */
.stream-animated-bg {
  background: linear-gradient(-45deg, #0a0c14, #1a0a2e, #0a1a3a, #1a1a0a);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   PAGE INTRO ANIMATION
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.6s ease forwards; }
.fade-in-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-4 { animation-delay: 0.4s; opacity: 0; }

/* ============================================================
   SIDEBAR CHANNEL TILE GRID
   ============================================================ */
.sidebar-channels {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.sidebar-channels .sidebar-header {
  padding: 12px 14px 10px;
  margin-bottom: 0;
}

.ch-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.ch-tile {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px 10px;
  cursor: default;
  transition: background 0.15s;
  text-align: center;
}

.ch-tile:hover {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.ch-tile-icon { font-size: 20px; line-height: 1; }

.ch-tile-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.ch-tile-num {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.04em;
}

/* ============================================================
   7-DAY WEATHER FORECAST WIDGET
   ============================================================ */
.weather-forecast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.wf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent4) 8%, var(--surface)),
    var(--surface));
  gap: 12px;
  flex-wrap: wrap;
}

.wf-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wf-loc-icon { font-size: 13px; }

.wf-now {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wf-now-icon { font-size: 32px; line-height: 1; }

.wf-now-temp {
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
}

.wf-now-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-now-detail span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.wf-now-meta {
  font-size: 10px !important;
  color: var(--text2) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
}

/* 7-day strip */
.wf-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.wf-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px 10px;
  border-right: 1px solid var(--border);
  cursor: default;
  transition: background 0.2s;
  position: relative;
}

.wf-day:last-child { border-right: none; }

.wf-day:hover { background: var(--bg3); }

.wf-day.today {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-top: 2px solid var(--accent);
}

.wf-day.today .wf-day-name {
  color: var(--accent);
  font-weight: 800;
}

.wf-today-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.wf-day-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  margin-top: 6px;
}

.wf-day-icon { font-size: 22px; line-height: 1; }

.wf-day-hi {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--text);
  line-height: 1;
}

.wf-day-lo {
  font-size: 11px;
  color: var(--text2);
  line-height: 1;
}

.wf-day-desc {
  font-size: 9px;
  color: var(--text2);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.wf-rain {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: var(--accent4);
  font-weight: 600;
}


::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   SECTION DIVIDER
   ============================================================ */
.section-divider {
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.divider-label {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.divider-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.di-health  { background: color-mix(in srgb, var(--accent3) 20%, transparent); }
.di-local   { background: color-mix(in srgb, var(--accent2) 20%, transparent); }
.di-finance { background: color-mix(in srgb, var(--accent4) 20%, transparent); }
.di-sports  { background: color-mix(in srgb, var(--accent)  20%, transparent); }

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.view-all-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.view-all-link:hover { opacity: 0.7; }

/* ============================================================
   WORDPRESS-SPECIFIC STYLES
   ============================================================ */

/* Alignments */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; }
img.alignleft, img.alignright, img.aligncenter { max-width: 100%; height: auto; }

/* Article templates */
.single-article { max-width: 1400px; margin: 0 auto; padding: 28px 24px; }
.article-container { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 860px; margin: 0 auto; }
.article-meta-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.article-date, .article-read-time { font-size: 12px; color: var(--text2); }
.article-headline { font-family: var(--font-head); font-size: 36px; line-height: 1.15; letter-spacing: 0.02em; margin-bottom: 16px; color: var(--text); }
.article-summary { font-size: 17px; color: var(--text2); line-height: 1.6; margin-bottom: 20px; border-left: 3px solid var(--accent); padding-left: 16px; }
.article-author-bar { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.author-avatar { border-radius: 50%; width: 40px; height: 40px; }
.author-name { font-size: 14px; font-weight: 600; color: var(--text); display: block; }
.author-updated { font-size: 11px; color: var(--text2); }
.article-featured-image { margin-bottom: 28px; border-radius: 12px; overflow: hidden; }
.article-featured-image img { width: 100%; height: auto; display: block; }
.image-caption { font-size: 12px; color: var(--text2); padding: 8px 12px; }
.article-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.article-content p { margin-bottom: 1.4em; }
.article-content h2 { font-family: var(--font-head); font-size: 26px; margin: 2em 0 0.6em; }
.article-content h3 { font-family: var(--font-head); font-size: 20px; margin: 1.6em 0 0.5em; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 2em 0; background: var(--surface); border-radius: 0 8px 8px 0; font-style: italic; }
.article-attribution { font-size: 12px; color: var(--text2); border-top: 1px solid var(--border); padding-top: 12px; margin-top: 24px; }
.article-attribution a { color: var(--accent); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.article-tag { padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); font-size: 12px; color: var(--text2); background: var(--surface); transition: all 0.2s; }
.article-tag:hover { border-color: var(--accent); color: var(--accent); }
.article-share { display: flex; align-items: center; gap: 8px; padding: 16px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.share-label { font-size: 13px; color: var(--text2); font-weight: 600; }
.share-btn { padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all 0.2s; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.related-articles { margin-top: 40px; }
.related-title { font-family: var(--font-head); font-size: 24px; margin-bottom: 20px; color: var(--text); }

/* Archive */
.archive-page { max-width: 1400px; margin: 0 auto; padding: 0 24px 40px; }
.archive-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 32px 24px; margin: 0 -24px 28px; }
.archive-header-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.archive-icon { font-size: 48px; }
.archive-title { font-family: var(--font-head); font-size: 36px; color: var(--text); }
.archive-desc { font-size: 14px; color: var(--text2); margin-top: 4px; }
.archive-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; }
.archive-main { min-width: 0; }
.archive-grid { grid-template-columns: repeat(3, 1fr); }
.no-results { padding: 40px; text-align: center; color: var(--text2); }

/* Search form */
.search-bar { background: var(--bg2); border-top: 1px solid var(--border); padding: 12px 24px; }
.search-form { display: flex; gap: 8px; max-width: 1400px; margin: 0 auto; }
.search-field { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; outline: none; font-family: var(--font-body); }
.search-field:focus { border-color: var(--accent); }
.search-submit { padding: 10px 20px; background: var(--accent); color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text2); font-size: 13px; transition: all 0.2s; }
.pagination .page-numbers:hover, .pagination .current { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Chat gate */
.sidebar-chat .chat-gate { padding: 16px; text-align: center; }
.sidebar-chat .chat-gate p { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.chat-register-btn { display: block; padding: 10px 18px; background: var(--accent); color: white; border-radius: 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; transition: opacity 0.2s; }
.chat-register-btn:hover { opacity: 0.85; }
.chat-login-link { font-size: 12px; color: var(--text2); }
.chat-status { font-size: 11px; color: var(--accent3); font-weight: 600; }
.chat-loading { padding: 20px; text-align: center; color: var(--text2); font-size: 13px; }

/* Footer channels */
.footer-channel { font-size: 13px; color: var(--text2); }

/* Not found */
.not-found { padding: 60px 20px; text-align: center; }
.not-found h1 { font-family: var(--font-head); font-size: 48px; margin-bottom: 12px; }
.not-found p { color: var(--text2); margin-bottom: 24px; }

/* WP admin bar offset */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Responsive */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .sidebar { padding-left: 0; }
    .archive-layout { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .wf-days { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .archive-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .article-headline { font-size: 26px; }
    .wf-days { grid-template-columns: repeat(4, 1fr); }
    .ch-tile-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .cable-grid { grid-template-columns: repeat(4, 1fr); }
}
