/* ============================================
   BISHY.TV — design tokens
   Palette: warm orange on deep purple-black
   ============================================ */
:root {
  --bg-void: #15101c;
  --bg-panel: #1d1626;
  --bg-panel-raised: #251c33;
  --line: rgba(240, 112, 48, 0.16);
  --line-bright: rgba(240, 112, 48, 0.4);

  --orange: #f07030;
  --orange-bright: #ff8c4d;
  --orange-dim: #b85622;
  --cream: #f5ead9;
  --text: #f2e9dd;
  --text-dim: #b8aec0;
  --text-faint: #7e7390;

  --live-red: #ff4757;
  --live-green: #4ade80;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg-void);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

/* ambient background hum */
.hum-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 800px 600px at 15% -5%, rgba(240, 112, 48, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 15%, rgba(184, 86, 34, 0.10), transparent 60%),
    radial-gradient(ellipse 900px 700px at 50% 100%, rgba(240, 112, 48, 0.06), transparent 60%);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 2.25rem;
  padding: 0 1.5rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.section-head p { color: var(--text-dim); font-size: 1.02rem; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 16, 28, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
  margin-right: auto;
}
.nav-bee { filter: drop-shadow(0 0 8px rgba(240,112,48,0.4)); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--orange-bright); }
.nav-social { display: flex; gap: 0.9rem; align-items: center; }
.social-icon svg { width: 19px; height: 19px; color: var(--text-dim); transition: color 0.2s, transform 0.2s; }
.social-icon:hover svg, .social-icon:focus-visible svg { color: var(--orange-bright); transform: translateY(-2px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: 0.25s; }

/* ============================================
   HERO
   ============================================ */
.hero { padding: 2.6rem 1.5rem 1.2rem; }
.hero-inner { max-width: 920px; margin: 0 auto; }

.platform-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all 0.2s;
}
.platform-btn svg { width: 16px; height: 16px; }
.platform-btn:hover { border-color: var(--line-bright); color: var(--cream); }
.platform-btn.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #1a1108;
}
.platform-btn:focus-visible { outline: 2px solid var(--orange-bright); outline-offset: 2px; }

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.status-pill.is-live .status-dot {
  background: var(--live-red);
  box-shadow: 0 0 0 0 rgba(255,71,87,0.6);
  animation: pulse-live 1.8s infinite;
}
.status-pill.is-live { color: var(--cream); border-color: rgba(255,71,87,0.35); }
@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(255,71,87,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255,71,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,71,87,0); }
}

.stream-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  aspect-ratio: 16/9;
}
.stream-embed { position: absolute; inset: 0; }
.stream-embed iframe { width: 100%; height: 100%; border: 0; }
.stream-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px var(--line-bright), 0 20px 60px -20px rgba(240,112,48,0.35);
}
.stream-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.7rem;
  color: var(--text-dim);
}
.loading-bee { font-size: 2rem; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.offline-note {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.92rem;
}

/* ============================================
   BIO
   ============================================ */
.bio { padding: 2.4rem 1.5rem; }
.bio-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
}
.bio-bee { flex-shrink: 0; }
.bio-text h2 { font-size: 1.3rem; color: var(--cream); margin-bottom: 0.5rem; }
.bio-text p { color: var(--text-dim); font-size: 0.97rem; }

/* ============================================
   RECENT UPLOADS / SHORTS
   ============================================ */
.recent { padding: 3rem 1.5rem; }
.recent-group { max-width: var(--max); margin: 0 auto 2.4rem; }
.recent-group:last-child { margin-bottom: 0; }
.recent-subhead {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}

.recent-grid--videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.recent-grid--shorts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 640px;
}

.recent-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s;
}
.recent-card:hover, .recent-card:focus-visible { transform: translateY(-4px); border-color: var(--line-bright); }

.recent-thumb-wrap { position: relative; background: var(--bg-panel-raised); }
.recent-grid--videos .recent-thumb-wrap { aspect-ratio: 16/9; }
.recent-grid--shorts .recent-thumb-wrap { aspect-ratio: 9/16; }
.recent-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }

.recent-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(21,16,28,0.35);
  transition: opacity 0.2s;
}
.recent-card:hover .recent-play, .recent-card:focus-visible .recent-play { opacity: 1; }
.recent-play svg {
  width: 46px; height: 46px;
  color: var(--orange-bright);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.recent-title {
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-grid--shorts .recent-title { font-size: 0.8rem; padding: 0.6rem 0.7rem; }

.recent-skeleton {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--bg-panel) 30%, var(--bg-panel-raised) 50%, var(--bg-panel) 70%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.6s infinite;
  border: 1px solid var(--line);
}
.recent-skeleton--tall { aspect-ratio: 9/16; }
@keyframes skeleton-sweep {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.recent-empty {
  grid-column: 1 / -1;
  color: var(--text-faint);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ============================================
   STATS
   ============================================ */
.stats { padding: 3rem 1.5rem; }
.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--orange-bright);
  line-height: 1;
}
.stat-label { color: var(--text-dim); font-size: 0.9rem; font-weight: 600; margin-top: 0.4rem; display: block; }

/* ============================================
   GAMES CAROUSEL
   ============================================ */
.games { padding: 3rem 0; }
.games-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.games-legend span { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-dim); }
.legend-icon { width: 15px; height: 15px; color: var(--orange-bright); }
.legend-100 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 18px;
  background: var(--orange);
  color: #1a1108;
  font-size: 0.62rem; font-weight: 800;
  border-radius: 5px;
}

.carousel-wrap { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.3rem 0.1rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-dim) transparent;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--orange-dim); border-radius: 4px; }

.game-card {
  position: relative;
  flex: 0 0 150px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  aspect-ratio: 3/4;
  transition: transform 0.2s, border-color 0.2s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--line-bright); }
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card .game-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 0.6rem; text-align: center;
  font-size: 0.8rem; font-weight: 700; color: var(--text-dim);
  background: linear-gradient(160deg, var(--bg-panel-raised), var(--bg-panel));
}
.game-badges {
  position: absolute;
  top: 0.45rem; right: 0.45rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.badge-star, .badge-100 {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: rgba(21,16,28,0.85);
  border: 1px solid var(--line-bright);
  backdrop-filter: blur(4px);
}
.badge-star svg { width: 13px; height: 13px; color: var(--orange-bright); }
.badge-100 { font-size: 0.58rem; font-weight: 800; color: var(--orange-bright); width: auto; padding: 0 0.35rem; }
.game-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.55rem;
  font-size: 0.74rem; font-weight: 700;
  color: var(--cream);
  background: linear-gradient(to top, rgba(21,16,28,0.92), transparent);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-panel-raised);
  border: 1px solid var(--line-bright);
  color: var(--cream);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.carousel-arrow--left { left: -6px; }
.carousel-arrow--right { right: -6px; }
.carousel-arrow:hover { background: var(--orange); color: #1a1108; }

/* ============================================
   COMMANDS
   ============================================ */
.commands { padding: 3rem 1.5rem; }
.commands-table-wrap {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.commands-table { width: 100%; border-collapse: collapse; }
.commands-table th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-bright);
  background: var(--bg-panel-raised);
  padding: 0.85rem 1.2rem;
}
.commands-table td {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text-dim);
}
.commands-table tr:nth-child(even) td { background: rgba(240,112,48,0.03); }
.commands-table code {
  font-family: 'Space Grotesk', monospace;
  color: var(--orange-bright);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ============================================
   SCHEDULE
   ============================================ */
.schedule { padding: 3rem 1.5rem; }
.schedule-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}
.schedule-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 0.9rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.schedule-card.is-today { border-color: var(--orange); background: var(--bg-panel-raised); }
.schedule-card:hover { transform: translateY(-3px); }
.schedule-day { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: 0.95rem; margin-bottom: 0.5rem; }
.schedule-time { font-size: 1.15rem; font-weight: 700; color: var(--orange-bright); }
.schedule-today-flag {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1a1108;
  background: var(--orange);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.schedule-note { text-align: center; color: var(--text-faint); font-size: 0.85rem; margin-top: 1.3rem; }

/* ============================================
   MERCH
   ============================================ */
.merch { padding: 3.5rem 1.5rem; }
.merch-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--bg-panel-raised), var(--bg-panel));
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.6rem;
  overflow: hidden;
  position: relative;
}
.merch-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-bright);
  margin-bottom: 0.6rem;
}
.merch-text h2 { color: var(--cream); font-size: 1.8rem; margin-bottom: 0.6rem; }
.merch-text p { color: var(--text-dim); max-width: 480px; margin-bottom: 1.3rem; }
.merch-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: #1a1108;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.merch-cta:hover { background: var(--orange-bright); transform: translateY(-2px); }
.merch-visual { flex-shrink: 0; opacity: 0.85; filter: drop-shadow(0 0 30px rgba(240,112,48,0.3)); }
.merch-visual img { width: 110px; height: 110px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 2.4rem 1.5rem; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; color: var(--cream); }
.footer-social { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-social a { font-size: 0.85rem; color: var(--text-dim); transition: color 0.2s; }
.footer-social a:hover { color: var(--orange-bright); }
.footer-copy { width: 100%; text-align: center; color: var(--text-faint); font-size: 0.8rem; order: 3; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .schedule-grid { grid-template-columns: repeat(3, 1fr); }
  .recent-grid--videos { grid-template-columns: repeat(2, 1fr); }
  .recent-grid--shorts { grid-template-columns: repeat(2, 1fr); max-width: none; }
}

@media (max-width: 760px) {
  .nav-links, .nav-social { display: none; }
  .nav-burger { display: flex; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-panel); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav.is-open .nav-links a { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-social {
    display: flex;
    position: absolute; top: calc(100% + 220px); left: 0; right: 0;
    background: var(--bg-panel);
    padding: 0 1.5rem 1rem; justify-content: center; gap: 1.4rem;
  }

  .stats-inner { grid-template-columns: 1fr; }
  .bio-inner { flex-direction: column; text-align: center; align-items: center; }
  .recent-grid--videos { grid-template-columns: 1fr; }
  .recent-grid--shorts { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .merch-inner { flex-direction: column; text-align: center; }
  .merch-visual { order: -1; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .schedule-grid { grid-template-columns: 1fr 1fr; }
  .platform-switch { gap: 0.5rem; }
  .status-pill { width: 100%; margin-left: 0; justify-content: center; order: 3; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 2px;
}
