/* ============================================
   NuuTV — Sport-focused Dark Theme
   Palette:
     --bg-primary:    #0a0a0f  (deep black)
     --bg-secondary:  #12121a  (card/navbar dark)
     --bg-tertiary:   #1a1a28  (hover/elevated)
     --accent:        #e94560  (crimson red — energy, sport)
     --accent-hover:  #ff6b81  (lighter red on hover)
     --accent-alt:    #00d4aa  (teal — live/active indicator)
     --text-primary:  #f0f0f5  (off-white)
     --text-secondary:#a0a0b8  (muted)
     --text-tertiary: #6b6b80  (subtle)
     --border:        #2a2a3a  (subtle borders)
   ============================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a28;
  --accent: #e94560;
  --accent-hover: #ff6b81;
  --accent-alt: #00d4aa;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-tertiary: #6b6b80;
  --border: #2a2a3a;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.navbar-brand .nuu {
  color: var(--accent);
}

.navbar-brand .tv {
  color: var(--text-primary);
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.navbar-nav::-webkit-scrollbar {
  display: none;
}

.navbar-nav a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.navbar-nav a.active {
  border-bottom: 2px solid var(--accent);
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    gap: 0.25rem;
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-nav a {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
}

/* ---- Page container ---- */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---- Hero / Page header ---- */
.page-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-header h1 .highlight {
  color: var(--accent);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 3rem;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.card-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-sport {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(233, 69, 96, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

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

.card-brand {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.card-link:hover {
  color: var(--accent-hover);
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* ---- Subpage / Widget page ---- */
.widget-page-header {
  padding: 2rem 0 1rem;
}

.widget-page-header .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.widget-page-header .breadcrumb a {
  color: var(--text-secondary);
}

.widget-page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.widget-page-header .meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.widget-page-header .meta-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: rgba(233, 69, 96, 0.12);
  color: var(--accent);
}

.widget-page-header .meta-brand {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.widget-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 3rem;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-placeholder {
  text-align: center;
  padding: 3rem;
  color: var(--text-tertiary);
}

.widget-placeholder .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.widget-placeholder p {
  font-size: 0.9rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.site-footer .brand {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .page-header h1 {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .widget-page-header h1 {
    font-size: 1.5rem;
  }
}
