/* ==========================================================================
   AGT INSIDER / NEWS4YOU - DESIGN SYSTEM
   Inspired by tagDiv Newspaper Week Pro + Modern Entertainment Video Portal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Inter:wght@300;400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Work+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - tagDiv Editorial Red + Gold Accent for AGT */
  --primary-red: #ec3535;
  --primary-red-hover: #c92222;
  --primary-red-glow: rgba(236, 53, 53, 0.25);
  --gold-accent: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  --gold-glow: rgba(245, 158, 11, 0.35);

  /* Light Theme (Default) */
  --bg-body: #f8f9fa;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f3f5;
  --bg-card: #ffffff;
  --border-light: #e9ecef;
  --border-strong: #dee2e6;
  --text-main: #1a1d20;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --text-on-accent: #ffffff;

  /* Typography */
  --font-editorial: 'PT Serif', Georgia, serif;
  --font-brand: 'Cinzel', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Work Sans', sans-serif;

  /* Shadows & Layout */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 28px rgba(236, 53, 53, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1380px;
}

[data-theme="dark"] {
  --bg-body: #0d1117;
  --bg-surface: #161b22;
  --bg-subtle: #21262d;
  --bg-card: #161b22;
  --border-light: #30363d;
  --border-strong: #3b434d;
  --text-main: #f0f6fc;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: var(--transition);
}

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

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

/* ==========================================================================
   TOP BAR (tagDiv style)
   ========================================================================== */

.top-bar {
  background-color: #111418;
  color: #adb5bd;
  font-size: 12px;
  font-family: var(--font-ui);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-red);
  color: #fff;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
}

.live-pulse {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  max-width: 650px;
}

.ticker-title {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.ticker-content {
  color: #ced4da;
  font-style: normal;
  display: inline-block;
  transition: opacity 0.3s ease;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.city-weather {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-socials a {
  color: #adb5bd;
}

.top-socials a:hover {
  color: var(--primary-red);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11px;
}

.theme-toggle-btn:hover {
  background-color: var(--primary-red);
}

/* ==========================================================================
   MASTHEAD (tagDiv Newspaper Week Pro styling)
   ========================================================================== */

.masthead {
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-light);
  padding: 26px 0 20px 0;
  position: relative;
  transition: var(--transition);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.masthead-meta-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-family: var(--font-ui);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-left: 3px solid var(--primary-red);
  padding-left: 12px;
}

.masthead-meta-left strong {
  color: var(--text-main);
  font-weight: 700;
}

.brand-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.brand-main-title {
  font-family: var(--font-editorial);
  font-size: 56px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -2px;
  color: var(--primary-red);
  line-height: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.brand-pro-tag {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 1px;
  transform: translateY(-8px);
}

.brand-tagline {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.masthead-actions-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-golden-buzzer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #000;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px var(--gold-glow);
  position: relative;
  overflow: hidden;
}

.btn-golden-buzzer:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-golden-buzzer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: rotate(30deg);
  animation: shineGold 3.5s infinite;
}

@keyframes shineGold {
  0% { transform: translateX(-150%) rotate(30deg); }
  30%, 100% { transform: translateX(150%) rotate(30deg); }
}

.btn-saved-vault {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-saved-vault:hover {
  background-color: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.saved-count-badge {
  background-color: var(--primary-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.btn-saved-vault:hover .saved-count-badge {
  background-color: #fff;
  color: var(--primary-red);
}

/* ==========================================================================
   PRIMARY NAVIGATION (Sticky Navbar)
   ========================================================================== */

.main-navigation {
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--primary-red);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 14px;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background-color: var(--primary-red);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.badge-nav-hot {
  background-color: var(--primary-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 2px;
  line-height: 1.2;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.search-trigger-btn:hover {
  border-color: var(--primary-red);
  color: var(--text-main);
}

.surprise-act-btn {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.surprise-act-btn:hover {
  background-color: var(--gold-accent);
  color: #000;
  border-color: var(--gold-accent);
}

.mobile-menu-btn {
  display: none;
  font-size: 22px;
  color: var(--text-main);
}

/* ==========================================================================
   FEATURED HERO GRID (tagDiv Newspaper Flex Big Grid)
   ========================================================================== */

.hero-grid-section {
  padding: 24px 0 36px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #000;
  cursor: pointer;
  group: 1;
}

.hero-card-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-card:hover img {
  transform: scale(1.06);
}

.hero-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.95) 100%);
  pointer-events: none;
}

.hero-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px 24px 24px;
  color: #fff;
  z-index: 2;
}

.hero-card.main-hero {
  min-height: 480px;
}

.hero-card.main-hero .hero-title {
  font-family: var(--font-editorial);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin: 12px 0 10px 0;
  color: #ffffff;
  transition: color 0.2s ease;
}

.hero-card:hover .hero-title {
  color: #ffb4b4;
}

.hero-card.main-hero .hero-summary {
  font-size: 14px;
  color: #e9ecef;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.hero-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card.side-hero {
  flex: 1;
  min-height: 231px;
}

.hero-card.side-hero .hero-card-content {
  padding: 18px;
}

.hero-card.side-hero .hero-title {
  font-family: var(--font-editorial);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 0;
  color: #ffffff;
}

/* Video Badge & Play Button Overlay */
.video-play-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(236, 53, 53, 0.9);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
  z-index: 3;
}

.hero-card:hover .video-play-badge {
  transform: scale(1.15);
  background: var(--primary-red);
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-red);
  color: #fff;
}

.badge-category.golden {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 900;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #ced4da;
  font-family: var(--font-ui);
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.duration-pill {
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-ui);
}

/* ==========================================================================
   TRENDING VIDEO REEL (Horizontal Bar)
   ========================================================================== */

.video-reel-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
  margin-bottom: 36px;
}

.section-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
}

.section-title-compact .red-bar {
  width: 4px;
  height: 18px;
  background-color: var(--primary-red);
}

.video-reel-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) var(--bg-subtle);
}

.video-reel-scroll::-webkit-scrollbar {
  height: 6px;
}

.video-reel-scroll::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 3px;
}

.reel-item {
  flex: 0 0 240px;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.reel-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.reel-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.reel-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-thumb-wrap .duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.reel-info {
  padding: 10px 12px;
}

.reel-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   MAIN 2-COLUMN LAYOUT (Editorial Magazine Grid)
   ========================================================================== */

.magazine-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  margin-bottom: 60px;
}

/* Main Column */
.main-column {
  min-width: 0;
}

/* Section Header (tagDiv Newspaper Style Block Title) */
.tagdiv-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-strong);
  margin-bottom: 24px;
  padding-bottom: 0;
  position: relative;
}

.tagdiv-block-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #111418;
  color: #ffffff;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.tagdiv-block-title.red {
  background-color: var(--primary-red);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.filter-tab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--primary-red);
  background-color: var(--bg-subtle);
}

/* Article Cards Grid */
.articles-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-row-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.article-row-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(236, 53, 53, 0.4);
}

.card-media-col {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #000;
}

.card-media-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-row-card:hover .card-media-col img {
  transform: scale(1.05);
}

.card-media-col .duration-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.card-body-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-editorial);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 10px;
  cursor: pointer;
}

.article-row-card:hover .card-title {
  color: var(--primary-red);
}

.card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-light);
  padding-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

.card-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-card-action {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-card-action.watch {
  background-color: var(--primary-red);
  color: #fff;
  border-color: var(--primary-red);
}

.btn-card-action.watch:hover {
  background-color: var(--primary-red-hover);
}

.btn-card-action:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* ==========================================================================
   tagDiv YOUTUBE PLAYLIST PLAYER BLOCK
   ========================================================================== */

.playlist-block {
  background: #111418;
  color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-header {
  padding: 16px 20px;
  background: #1a1e24;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.playlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.playlist-body {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
}

.playlist-player-wrap {
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
}

.playlist-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.playlist-sidebar {
  background: #14181d;
  overflow-y: auto;
  max-height: 420px;
  scrollbar-width: thin;
}

.playlist-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.playlist-item:hover,
.playlist-item.active {
  background-color: rgba(236, 53, 53, 0.15);
}

.playlist-item-thumb {
  position: relative;
  width: 90px;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.playlist-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.playlist-item-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #e9ecef;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-item-meta {
  font-size: 10.5px;
  color: #8b949e;
  margin-top: 4px;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Trending Top 5 */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.trending-item:hover .trending-item-title {
  color: var(--primary-red);
}

.trending-rank {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-muted);
  width: 24px;
  text-align: center;
}

.trending-item:nth-child(1) .trending-rank { color: var(--gold-accent); }
.trending-item:nth-child(2) .trending-rank { color: var(--primary-red); }
.trending-item:nth-child(3) .trending-rank { color: #3b82f6; }

.trending-item-content {
  flex: 1;
}

.trending-item-title {
  font-family: var(--font-editorial);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.trending-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-ui);
}

/* Judges Corner Widget */
.judges-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.judge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.judge-card:hover {
  background-color: var(--primary-red);
  color: #fff;
}

.judge-card:hover .judge-role,
.judge-card:hover .judge-quote {
  color: #ffe5e5;
}

.judge-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-red);
}

.judge-info {
  flex: 1;
}

.judge-name {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.judge-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* Interactive Fan Poll Widget */
.poll-widget-wrap {
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-subtle));
}

.poll-question {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-option-btn {
  width: 100%;
  text-align: left;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.poll-option-btn:hover {
  border-color: var(--gold-accent);
}

.poll-fill-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--gold-glow);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.poll-opt-text {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.poll-total-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: right;
  font-family: var(--font-ui);
}

/* Newsletter Widget */
.newsletter-widget {
  background: #111418;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.newsletter-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.newsletter-title {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-desc {
  font-size: 12px;
  color: #adb5bd;
  margin-bottom: 16px;
  line-height: 1.5;
}

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

.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #30363d;
  background-color: #161b22;
  color: #fff;
  font-size: 13px;
}

.newsletter-btn {
  background-color: var(--primary-red);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
}

.newsletter-btn:hover {
  background-color: var(--primary-red-hover);
}

/* Social Counters */
.social-counters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-stat-box {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.social-stat-count {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  display: block;
}

.social-stat-label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ==========================================================================
   VIDEO PLAYER MODAL (Cinema / Theater Mode)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-container {
  background-color: #111418;
  color: #fff;
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-backdrop.open .video-modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-close-btn {
  color: #adb5bd;
  font-size: 24px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--primary-red);
}

.video-screen-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  width: 100%;
}

.video-screen-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-details-body {
  padding: 24px;
}

.modal-video-title {
  font-family: var(--font-editorial);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.modal-judge-quote-box {
  background: rgba(236, 53, 53, 0.1);
  border-left: 3px solid var(--primary-red);
  padding: 12px 16px;
  margin: 16px 0;
  font-style: italic;
  font-size: 13.5px;
  color: #ffd8d8;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   ARTICLE READER MODAL / DRAWER
   ========================================================================== */

.article-modal-container {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  position: relative;
}

.article-reader-content {
  font-family: var(--font-editorial);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-main);
}

.article-reader-content h2,
.article-reader-content h3 {
  font-family: var(--font-ui);
  margin: 28px 0 12px 0;
  color: var(--text-main);
}

.article-reader-content blockquote {
  border-left: 4px solid var(--gold-accent);
  padding: 14px 20px;
  margin: 24px 0;
  background-color: var(--bg-subtle);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */

.search-modal {
  max-width: 650px;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
}

.search-input-field {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-red);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  outline: none;
}

.search-results-list {
  margin-top: 16px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-color: var(--bg-subtle);
  transition: var(--transition);
}

.search-result-row:hover {
  background-color: var(--primary-red);
  color: #fff;
}

/* ==========================================================================
   FOOTER (tagDiv 4-Column Editorial Footer)
   ========================================================================== */

.site-footer {
  background-color: #111418;
  color: #adb5bd;
  padding: 60px 0 24px 0;
  border-top: 4px solid var(--primary-red);
  font-size: 13px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-red);
  display: inline-block;
}

.footer-brand .brand-main-title {
  font-size: 38px;
  text-align: left;
}

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

.footer-links-list a:hover {
  color: var(--primary-red);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #6c757d;
}

/* ==========================================================================
   TOAST NOTIFICATION & CONFETTI CANVAS
   ========================================================================== */

.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #111418;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-left: 4px solid var(--gold-accent);
  font-size: 13px;
  font-weight: 600;
  z-index: 20000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast-box.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15000;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* ==========================================================================
   LOAD MORE PAGINATION & SORT BAR (tagDiv Style)
   ========================================================================== */

.filter-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 24px;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
}

.sort-select-dropdown {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.load-more-section {
  text-align: center;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-tagdiv-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-red);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px var(--primary-red-glow);
  transition: var(--transition);
}

.btn-tagdiv-load-more:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-red-glow);
}

.load-more-stats-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .magazine-grid {
    grid-template-columns: 1fr;
  }
  .playlist-body {
    grid-template-columns: 1fr;
  }
  .playlist-sidebar {
    max-height: 250px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .masthead-meta-left, .masthead-actions-right {
    display: none;
  }
  .brand-main-title {
    font-size: 38px;
  }
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .article-row-card {
    grid-template-columns: 1fr;
  }
  .card-media-col {
    aspect-ratio: 16 / 9;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
/* ==========================================================================
   ADVERTISING SYSTEM (Adskeeper, AdSense & Native Ad Slots)
   ========================================================================== */

.ad-slot-wrapper {
  margin: 20px auto;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.ad-slot-wrapper.hidden {
  display: none !important;
}

.ad-slot-label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.ad-slot-content {
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ad-header-slot .ad-slot-content {
  max-width: 970px;
  min-height: 90px;
  margin: 0 auto;
}

.ad-sidebar-slot .ad-slot-content {
  max-width: 336px;
  min-height: 250px;
  margin: 0 auto;
}

.ad-infeed-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-red);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.ad-modal-slot .ad-slot-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  min-height: 100px;
  max-width: 728px;
  margin: 16px auto 0;
}

/* Demo Native Ad Banner Styling (When custom script is not provided) */
.demo-ad-native-box {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px;
  text-align: left;
  background: linear-gradient(135deg, rgba(236,53,53,0.04) 0%, rgba(245,158,11,0.06) 100%);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}

.demo-ad-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.demo-ad-info {
  flex: 1;
}

.demo-ad-tag {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  color: #10b981;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.demo-ad-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 4px;
}

.demo-ad-cta {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--primary-red);
  font-weight: 700;
}

/* Top bar Admin Quick Link */
.top-bar-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(236, 53, 53, 0.12);
  color: var(--primary-red);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(236, 53, 53, 0.25);
  transition: var(--transition);
}

.top-bar-admin-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
  transform: translateY(-1px);
}


