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

:root {
  --bg: #0a0a0c;
  --bg2: #111114;
  --bg3: #18181d;
  --border: #222228;
  --accent: #532a45;
  --accent2: #7a3d64;
  --text: #f0f0f5;
  --muted: #888894;
  --card-hover: #1e1e24;
  --live: #532a45;
  --nav-h: 64px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

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

/* ─── NAVBAR ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,10,12,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  flex: 1;
}

.nav-links a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg3);
}

.nav-live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--live);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-left: auto;
  text-transform: uppercase;
  animation: pulse-badge 2s infinite;
}

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

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ─── LAYOUT ──────────────────────────────────────────────────────── */
.main-content {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── HERO / FEATURED ─────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1.04); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,12,0.95) 40%, transparent 100%),
              linear-gradient(to top, rgba(10,10,12,0.9) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2rem;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}

.hero-badge.live { background: var(--live); }

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.hero-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #3d1f33; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { background: var(--bg3); border-color: var(--muted); }

/* ─── SECTION HEADERS ──────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 1.2rem;
  background: var(--accent);
  border-radius: 2px;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.section-link:hover { color: var(--accent2); }

/* ─── VIDEO CARDS — PORTRAIT POSTER STYLE (9:16) ──────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.video-card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.video-card:hover {
  border-color: #444;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.card-thumb {
  position: relative;
  aspect-ratio: 9 / 16;   /* ← PORTRAIT poster ratio */
  overflow: hidden;
}

.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

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

/* Gradient overlay always visible at bottom for legibility */
.card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 50%);
  pointer-events: none;
}

.card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.video-card:hover .card-play { opacity: 1; }

.play-icon {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(230,57,70,0.5);
}

.play-icon::after {
  content: '';
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 3px;
}

.card-cat {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  background: rgba(0,0,0,0.8);
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  z-index: 2;
}

/* Title overlaid on bottom of poster */
.card-body {
  padding: 0.7rem 0.75rem 0.8rem;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

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

.card-meta {
  font-size: 0.7rem;
  color: var(--muted);
}

/* ─── LIVE STREAM SECTION ─────────────────────────────────────────── */
.live-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3rem;
}

.live-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--live);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
}

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

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

.live-embed {
  aspect-ratio: 16/9;
  width: 100%;
}

.live-embed iframe { width: 100%; height: 100%; border: none; }

.offline-state {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  color: var(--muted);
  gap: 1rem;
}

.offline-icon { font-size: 3rem; opacity: 0.3; }

/* ─── NEWS CARDS — PORTRAIT POSTER STYLE (9:16) ─────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

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

.news-card:hover {
  border-color: #444;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.news-thumb {
  position: relative;
  aspect-ratio: 9 / 16;   /* ← PORTRAIT poster ratio */
  overflow: hidden;
  flex-shrink: 0;
}

.news-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.news-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 55%);
  pointer-events: none;
}

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

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

.news-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

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

.news-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.news-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

.news-author { font-weight: 600; color: var(--text); }

/* ─── FEATURED NEWS BANNER ───────────────────────────────────────── */
.news-featured {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.news-featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3);
}

.news-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,12,0.95) 50%, transparent);
}

.news-featured-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  max-width: 550px;
}

/* ─── VIDEO PLAYER PAGE ──────────────────────────────────────────── */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  padding: 2rem 0;
}

.player-embed {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.player-info { margin-top: 1rem; }

.player-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.player-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.player-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

.sidebar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.related-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
  align-items: flex-start;
}

.related-card:hover { opacity: 0.75; }

.related-thumb {
  width: 72px;
  flex-shrink: 0;
  aspect-ratio: 9 / 16;   /* ← portrait */
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.related-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.related-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta { font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; }

/* ─── ARTICLE PAGE ───────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  padding: 2rem 0;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/6;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.article-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.article-byline {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.article-author { font-weight: 700; color: var(--text); }

.article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #ccc;
}

.article-body p { margin-bottom: 1.25rem; }

/* ─── FILTER BAR ─────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── FLASH MESSAGES ─────────────────────────────────────────────── */
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.flash-success { background: #1a3a1a; color: #4caf50; border: 1px solid #2d5a2d; }
.flash-error { background: #3a1a1a; color: #f44336; border: 1px solid #5a2d2d; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 3rem;
}

footer .footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

footer .footer-logo span { color: var(--accent); }

/* ─── PAGE HEADER ─────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(to bottom, var(--bg3), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
}

.page-header p { color: var(--muted); font-size: 0.9rem; }

/* ─── NO CONTENT STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .player-layout,
  .article-layout { grid-template-columns: 1fr; }
  .hero { height: 380px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .news-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .container { padding: 0 1rem; }
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

@media (max-width: 400px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
