/* =====================
   ROOT
===================== */
:root {
  --bg: #050505;
  --card: #141414;
  --border: #2a2a2a;
  --accent: #ff9900;
  --accent-soft: rgba(255,153,0,0.35);
  --text: #fff;
  --muted: #aaa;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 🔥 REMOVE ALL LINK UNDERLINES */
a,
a:visited,
a:hover,
a:active {
  text-decoration: none !important;
  color: inherit;
}

/* 🔥 GLOBAL OVERFLOW SAFETY */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #0f0f0f, #050505 70%);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =====================
   HEADER
===================== */
.topbar {
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  padding: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.logo span {
  color: #fff;
}

/* =====================
   MAIN CONTAINER
===================== */
main.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

/* =====================
   HEADINGS
===================== */
h2 {
  color: var(--accent);
  margin: 12px 0 16px;
  font-size: 20px;
  font-weight: 600;
}

h2::after {
  display: none;
}

/* =====================
   CATEGORY STRIP (NO SCROLLBAR LINE)
===================== */
.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;

  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* Edge */
}

.category-strip::-webkit-scrollbar {
  display: none;                /* Chrome / Safari */
}

/* 🔥 641px ROUNDING BUG FIX */
@media (min-width: 620px) and (max-width: 680px) {
  .category-strip {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}

.cat-pill {
  border: 1px solid rgba(255,153,0,0.25);
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(145deg, #151515, #0b0b0b);
  color: var(--accent);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.cat-pill:hover {
  background: linear-gradient(145deg, #ffb347, #ff7a00);
  color: #000;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 18px var(--accent-soft);
}

/* =====================
   VIDEO GRID
===================== */
.video-grid {
  display: grid;
  gap: 14px;
  width: 100%;
}

/* MOBILE */
@media (max-width: 599px) {
  .video-grid {
    grid-template-columns: 1fr !important;
  }
}

/* TABLET */
@media (min-width: 600px) and (max-width: 1023px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =====================
   VIDEO CARD
===================== */
.video-card {
  display: block;
  background: linear-gradient(180deg, #181818, #0f0f0f);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow:
    0 14px 35px rgba(0,0,0,0.7),
    0 0 22px var(--accent-soft);
}

/* =====================
   THUMB
===================== */
.thumb {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* PLAY ICON */
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: 0.3s ease;
}

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

/* =====================
   TITLE
===================== */
.title {
  padding: 10px 12px;
  font-size: 14px;
  color: #eee;
  text-align: center;
  line-height: 1.4;
}

/* =====================
   FOOTER
===================== */
footer {
  border-top: 1px solid var(--border);
  background: #0b0b0b;
  color: var(--muted);
  text-align: center;
  padding: 12px;
  font-size: 12px;
}
/* =====================
   CATEGORY STRIP – SCROLLBAR FIX (641px ISSUE)
===================== */
.category-strip {
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #333 transparent;     /* Firefox */
}

/* Chrome / Edge / Safari */
.category-strip::-webkit-scrollbar {
  height: 4px;
}

.category-strip::-webkit-scrollbar-track {
  background: transparent;
}

.category-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(
    90deg,
    transparent,
    #333,
    transparent
  );
  border-radius: 10px;
}

