/* ============================================================
   O2Movie.com — Exact Design Recreation for NaijaPrey v5 PRO
   Pure black cinema • No sidebar • Bottom nav • 6-col grid
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variable Overrides ── */
:root {
  --bg:          #0f0f0f;
  --bg2:         #141414;
  --bg3:         #1a1a1a;
  --bg4:         #222222;
  --accent:      #2563eb;
  --accent2:     #1d4ed8;
  --accent-glow: rgba(37,99,235,.25);
  --gold:        #f5c518;
  --gold2:       #e6b800;
  --green:       #22c55e;
  --txt:         #ffffff;
  --txt2:        #aaaaaa;
  --txt3:        #666666;
  --border:      #2a2a2a;
  --border2:     #333333;
  --radius:      8px;
  --radius2:     8px;
  --shadow:      0 8px 32px rgba(0,0,0,.8);
  --hdr:         56px;
  --fdisplay:    'Inter', sans-serif;
  --fbody:       'Inter', sans-serif;
  --trans:       .2s ease;
  --bottom-nav:  62px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg) !important;
  font-family: 'Inter', sans-serif !important;
  color: var(--txt) !important;
  padding-bottom: var(--bottom-nav);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Inter', sans-serif !important; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }

/* Text selection */
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   HIDE: Notice bar, Ticker, Genres bar
   ============================================================ */
.notice-bar,
.ticker-bar,
.np-genres-bar,
.genres-bar,
.hdr-search,
.hdr-actions,
.primary-nav { display: none !important; }

/* ============================================================
   HEADER — minimal: logo left + hamburger right
   ============================================================ */
.site-header {
  background: rgba(15,15,15,0.96) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
}

.hdr-inner {
  height: var(--hdr) !important;
  padding: 0 !important;
  gap: 0 !important;
}

/* Logo */
.site-logo a {
  font-family: 'Inter', sans-serif !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.5px !important;
  gap: 10px !important;
}

.logo-accent {
  color: #fff !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.np-logo-box {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.np-logo-box svg { fill: #fff; }

/* Hamburger stays visible */
.menu-toggle {
  display: flex !important;
  margin-left: auto !important;
  padding: 8px !important;
}
.menu-toggle span { background: #fff !important; width: 22px !important; }

/* ============================================================
   LAYOUT — no sidebar, 100% width content
   ============================================================ */
.site-wrap { padding-top: 0 !important; }
.site-main  { padding: 0 !important; }

.main-layout {
  display: block !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.sidebar-right,
.sidebar-left { display: none !important; }

.main-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Container max-width */
.container {
  max-width: 1380px !important;
  padding: 0 20px !important;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.section-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: -0.3px !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Remove the red left bar */
.section-title::before { display: none !important; }

.view-all {
  font-size: 13px !important;
  color: var(--accent) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
  border-radius: 0 !important;
}
.view-all:hover { background: none !important; color: #fff !important; text-decoration: underline; }

/* Sections */
.np-section,
.hero-section { margin-bottom: 48px !important; padding: 0 !important; }

/* ============================================================
   MOVIE CARDS — o2movie exact style
   ============================================================ */
.post-card {
  background: transparent !important;
  border: none !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  transition: transform var(--trans), box-shadow var(--trans) !important;
  cursor: pointer;
  position: relative !important;
}

.post-card:hover {
  transform: translateY(-6px) scale(1.03) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.9) !important;
  border: none !important;
  z-index: 10;
}

/* Poster image */
.post-card-thumb {
  aspect-ratio: 2/3 !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  overflow: hidden !important;
  background: var(--bg3) !important;
  position: relative !important;
}

.post-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .4s ease !important;
  display: block !important;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.08) !important;
}

/* Very subtle bottom gradient for readability */
.post-card-thumb .thumb-grad {
  background: linear-gradient(to top, rgba(15,15,15,.5) 0%, transparent 40%) !important;
}

/* Hide play button */
.play-btn { display: none !important; }

/* Quality badge — small, subtle, top-right */
.badge-quality {
  top: 6px !important;
  right: 6px !important;
  background: rgba(0,0,0,.75) !important;
  color: var(--gold) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
}

/* Rating badge — hide from thumb (will show in body) */
.badge-rating { display: none !important; }

/* Comment chip — hide */
.np-comment-chip, .np-comment-zero { display: none !important; }

/* Card body */
.post-card-body {
  padding: 8px 6px 10px !important;
  background: transparent !important;
  position: relative !important;
  z-index: 2 !important;
}

/* Title */
.post-card-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.3 !important;
  margin-bottom: 5px !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  display: -webkit-box !important;
  overflow: hidden !important;
}

.post-card:hover .post-card-title { color: #fff !important; }

/* Date row → year + rating */
.post-card-date {
  font-size: 11px !important;
  color: #888 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  margin-bottom: 0 !important;
}

/* Excerpt — hide */
.post-card-excerpt { display: none !important; }

/* Star rating row */
.card-star-rating {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  display: none !important; /* we show it inline via date area */
}

/* ── Inline rating display (inject via CSS on date span) ── */
.np-card-rating-inline {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  color: var(--gold) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* ============================================================
   6-COLUMN GRIDS
   ============================================================ */
.posts-grid,
.posts-grid-5,
.featured-grid,
.featured-grid-6,
.np-grid-6 {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 10px !important;
}

/* ============================================================
   HERO SECTION — full-screen cinematic
   ============================================================ */
.o2-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--hdr));
  min-height: 520px;
  max-height: 780px;
  overflow: hidden;
  margin-bottom: 48px;
}

.o2-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 15%;
  z-index: 0;
}

.o2-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(15,15,15,.98) 0%, rgba(15,15,15,.75) 38%, rgba(15,15,15,.15) 65%, transparent 100%),
    linear-gradient(to top,    rgba(15,15,15,1)   0%, rgba(15,15,15,.5)  25%, transparent 55%);
}

.o2-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 32px 52px;
  max-width: 580px;
}

.o2-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1.0;
  margin-bottom: 14px;
  letter-spacing: -2px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.o2-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.o2-hero-year {
  font-size: 13px;
  color: #bbb;
  font-weight: 500;
}

.o2-hero-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.o2-hero-rating svg { fill: var(--gold); flex-shrink: 0; }

.o2-hero-votes {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.o2-hero-lang {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #ddd;
  letter-spacing: .5px;
}

.o2-hero-desc {
  font-size: 14px;
  color: #bbb;
  line-height: 1.65;
  max-width: 470px;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.o2-hero-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.o2-btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  transition: background var(--trans), transform var(--trans);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.o2-btn-watch:hover { background: var(--accent2); color: #fff; transform: translateY(-1px); }
.o2-btn-watch svg { fill: #fff; flex-shrink: 0; }

.o2-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid rgba(255,255,255,.35);
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.o2-btn-download:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; transform: translateY(-1px); }
.o2-btn-download svg { fill: currentColor; flex-shrink: 0; }

/* ============================================================
   TOP 10 SECTION — horizontal scroll carousel
   ============================================================ */
.o2-top10-section { margin-bottom: 48px; }

.o2-top10-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.o2-top10-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.o2-top10-live {
  font-size: 11px;
  color: #888;
  font-weight: 400;
}
.o2-top10-live .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.o2-scroll-wrap { position: relative; }

.o2-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 60px;
  background: rgba(0,0,0,.85);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 20;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background var(--trans);
  border-radius: 4px;
}
.o2-scroll-arrow:hover { background: var(--accent); }
.o2-scroll-arrow.prev { left: -14px; border-radius: 4px 0 0 4px; }
.o2-scroll-arrow.next { right: -14px; border-radius: 0 4px 4px 4px; }

.o2-top10-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
}
.o2-top10-row::-webkit-scrollbar { display: none; }

.o2-top10-card {
  flex: 0 0 160px;
  min-width: 160px;
  scroll-snap-align: start;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg3);
  transition: transform var(--trans);
}
.o2-top10-card:hover { transform: translateY(-5px) scale(1.03); }

.o2-top10-thumb {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
}
.o2-top10-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Numbered badge */
.o2-rank-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  letter-spacing: .3px;
}

.o2-top10-info {
  padding: 8px 8px 10px;
  background: var(--bg3);
}
.o2-top10-title-text {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.o2-top10-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
}
.o2-top10-meta-row .type-year { color: #777; }
.o2-top10-meta-row .o2-star { color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 3px; }

/* ============================================================
   TOP THIS WEEK — 4-col list layout
   ============================================================ */
.o2-this-week-section {
  background: var(--bg3);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 48px;
}

.o2-this-week-section .section-title { margin-bottom: 20px; }

.o2-week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.o2-week-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--trans);
  text-decoration: none;
}
.o2-week-item:hover { background: var(--bg4); }

.o2-week-thumb {
  width: 52px;
  min-width: 52px;
  height: 74px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bg4);
  flex-shrink: 0;
}
.o2-week-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.o2-week-info { flex: 1; min-width: 0; }
.o2-week-year  { font-size: 10px; color: #555; margin-bottom: 3px; font-family: 'Inter', sans-serif; }
.o2-week-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.o2-week-item:hover .o2-week-title { color: var(--gold); }
.o2-week-type { font-size: 10px; color: #666; }

.o2-week-badge {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  transition: background var(--trans), color var(--trans);
}
.o2-week-item:hover .o2-week-badge { background: var(--gold); color: #000; }

/* ============================================================
   BOTTOM NAVIGATION BAR — fixed
   ============================================================ */
.o2-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav);
  background: rgba(20,20,20,.98);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 9999;
  padding: 0 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.o2-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #666;
  text-decoration: none;
  transition: color var(--trans);
  flex: 1;
  padding: 6px 2px;
  min-width: 0;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
}
.o2-nav-item:hover,
.o2-nav-item.active { color: #fff; }

.o2-nav-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
}

.o2-nav-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.o2-nav-item.active .o2-nav-label { color: #fff; }

/* ============================================================
   STREAMING PLATFORM LABEL (below hero)
   ============================================================ */
.o2-platform-label {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
  padding-top: 4px;
}

/* ============================================================
   CATEGORY SECTION (generic genre sections)
   ============================================================ */
.np-cat-section { margin-bottom: 48px; }

/* ============================================================
   LOAD MORE BUTTON
   ============================================================ */
.load-more-wrap { text-align: center; margin-top: 24px; }

.load-more-btn {
  background: var(--bg3) !important;
  border: 1px solid var(--border2) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  border-radius: 6px !important;
  padding: 11px 32px !important;
  transition: background var(--trans), border-color var(--trans) !important;
}
.load-more-btn:hover { background: var(--accent) !important; border-color: var(--accent) !important; }

/* ============================================================
   FOOTER — hide, replaced by bottom nav
   ============================================================ */
.site-footer { display: none !important; }
.back-top {
  bottom: calc(var(--bottom-nav) + 16px) !important;
  background: var(--accent) !important;
  border-radius: 6px !important;
}

/* Scroll progress */
#np-scroll-progress { background: var(--accent) !important; height: 2px !important; }

/* ============================================================
   SWIPER / RECENTLY ADDED — restyle
   ============================================================ */
.recently-section,
.np-recently-section { margin-bottom: 0 !important; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.np-empty-state { text-align: center; padding: 80px 20px; }
.np-empty-state i { color: var(--accent); font-size: 48px; margin-bottom: 16px; }

/* ============================================================
   CATEGORY SECTIONS from NaijaPrey np_category_section()
   ============================================================ */
.np-section .section-header { margin-bottom: 16px; }
.np-section .section-title { font-size: 20px !important; }

/* ============================================================
   SINGLE POST PAGE — keep clean
   ============================================================ */
.np-single .post-hdr h1 { font-family: 'Inter', sans-serif !important; font-weight: 900 !important; letter-spacing: -1px !important; }
.cat-pill { background: var(--accent) !important; color: #fff !important; border-radius: 4px !important; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1280px) {
  .posts-grid, .posts-grid-5, .featured-grid, .featured-grid-6 {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .posts-grid, .posts-grid-5, .featured-grid, .featured-grid-6 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .o2-week-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .posts-grid, .posts-grid-5, .featured-grid, .featured-grid-6 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .o2-week-grid { grid-template-columns: repeat(2, 1fr); }
  .o2-hero-content { max-width: 100%; padding: 0 20px 44px; }
  .o2-hero-title { font-size: 36px; letter-spacing: -1px; }
}

@media (max-width: 480px) {
  .posts-grid, .posts-grid-5, .featured-grid, .featured-grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .o2-week-grid { grid-template-columns: repeat(1, 1fr); }
  .o2-hero-title { font-size: 28px; }
  .o2-btn-watch, .o2-btn-download { padding: 10px 18px; font-size: 13px; }
  .container { padding: 0 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
