:root{
  --bg: #0b0b0e;
  --text: #ffffff;
  --muted: rgba(255,255,255,.70);

  --card: rgba(0,0,0,.45);
  --border: rgba(255,255,255,.14);

  --accent: #ffd84a;
  --accent2: #ff4a6a;

  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.55);

  --max: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: 'Trebuchet MS','Lucida Sans Unicode','Lucida Grande','Lucida Sans',Arial,sans-serif;
  color: var(--text);

  background-image:
    linear-gradient(rgba(0,0,0,.68), rgba(0,0,0,.68)),
    url("https://github.com/braydenhanning/youtube-hub/blob/main/images/bg/bg%20design%206%20low%20res.jpg?raw=true");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a{ color: inherit; text-decoration:none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px;
}

/* ================= HEADER ================= */

header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.35));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 22px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand:hover{ opacity:.9; }

.navlinks{
  display:flex;
  gap: 14px;
  font-size: .92rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.navlinks a:hover{ color:#fff; }

/* ================= MAIN / HERO ================= */

main{
  min-height: calc(100vh - 66px);
  display:flex;
  align-items:center;
}

.hero{
  display:flex;
  justify-content:center;
  padding: 26px 0;
}

.hero-center{
  width:100%;
  display:flex;
  justify-content:center;
}

.logo-hub{
  padding: 26px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 16px;
  text-align:center;
  max-width: 720px;
  width: 100%;
}

.no-card{
  background:none;
  border:none;
  box-shadow:none;
}

.bh-logo{
  width: min(320px, 75%);
  height:auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55));
}

.main-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
}

/* ================= BUTTONS ================= */

.btnrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}

.btn:hover{
  transform: scale(1.05);
  background: rgba(0,0,0,.5);
}

.btn.primary{
  border:none;
  color:#241300;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* ================= SOCIAL ================= */

.social-row{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.social-btn{
  width:54px;
  height:54px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.18);
  transition: transform .15s ease, background .15s ease;
}

.social-btn:hover{
  transform: scale(1.05);
  background: rgba(0,0,0,.5);
}

.social-btn svg{
  width:24px;
  height:24px;
  fill:#fff;
  opacity:.9;
}

/* ================= CARDS / SECTIONS ================= */

.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title{
  font-size:.95rem;
  letter-spacing:.6px;
  text-transform:uppercase;
  margin-bottom: 12px;
}

.below{
  margin-top: 18px;
  padding: 16px;
  text-align: center;
}

/* ================= START HERE CARD ================= */

.hero-right{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 12px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.linklist{
  display:grid;
  gap: 10px;
  margin-top: 6px;
}

.linkpill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: var(--muted);
  transition: transform .15s ease, background .15s ease;
}

.linkpill strong{ color:#fff; font-size:.95rem; font-weight:600; }

.linkpill:hover{
  background: rgba(0,0,0,.52);
  transform: scale(1.02);
}

/* ================= VIDEOS GRID ================= */

.videos{
  display:grid;
  gap:20px;
  margin:12px auto 0;
  max-width: 1300px;
  justify-items:center;
  align-items:start;
}

@media (min-width:860px){
  .videos{
    grid-template-columns: 1fr 1.15fr 1fr; /* center slightly bigger */
  }
}

.video{
  background: transparent;
  text-align:center;
}

.video h3{
  margin: 10px 0 6px;
}

.date{
  font-size:.85rem;
  opacity:.7;
}

/* Mobile ordering: upcoming first, current second */
@media (max-width: 859px){
  .videos{ grid-template-columns:1fr; }
  .videos .video.current{ order:2; }
  .videos .video:not(.current):not(.upcoming){ order:3; }
  .videos .video.upcoming{ order:1; }
}

/* ================= THUMBNAILS (HOME + EPISODES) ================= */
/* This is the ONE place thumbs are defined, so nothing fights. */

.thumb{
  position: relative;
  display: block;                 /* IMPORTANT for <a> */
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  margin: 0 auto 10px;
  transition: transform .18s ease, box-shadow .18s ease;
  will-change: transform;
}

/* Bigger thumbs on homepage */
.videos .thumb{
  max-width: 600px;
}

/* Slightly smaller thumbs elsewhere by default */
.episodes .thumb{
  max-width: 520px;
}

/* Blurred background fill (removes “letterbox feel”) */
.thumb::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--thumb-bg);
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  transform: scale(1.18);
  opacity: 0.55;
  z-index: 0;
  border-radius: inherit;
  pointer-events:none;
}

/* Glass-floor sheen (optional but nice) */
.thumb::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: 40%;
  background: linear-gradient(to top, rgba(255,255,255,.20), rgba(255,255,255,0));
  opacity: .22;
  z-index: 1;
  border-radius: inherit;
  pointer-events:none;
}

/* Actual thumbnail image */
.thumb img{
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;           /* shows full image, no crop */
  display:block;
}

/* Hover float + scale */
.thumb:hover{
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 35px rgba(0,0,0,.45);
}

/* A little “current” highlight */
.video.current .thumb{
  outline: 2px solid rgba(255,255,255,.28);
  outline-offset: 3px;
}

/* ================= EPISODES PAGE ================= */

.episodes{
  display:grid;
  gap:18px;
  max-width:1100px;
  margin:0 auto;
}

.episode{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  padding:16px;
  text-align:left;
}

@media (min-width:860px){
  .episode{
    grid-template-columns: 520px 1fr;
    align-items:start;
  }
  .episode .thumb{
    margin: 0;
  }
}

.episode-meta{
  max-width:70ch;
}

.synopsis{
  color: var(--muted);
  font-size:.92rem;
  line-height:1.35;
  margin: 0 0 12px;
}

/* Corner logo (if you’re using it on episodes page) */
.corner-logo{
  display: inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease;
}
.corner-logo:hover{
  transform: scale(1.06);
  background: rgba(0,0,0,.4);
}
.corner-logo img{
  width:34px;
  height:34px;
  object-fit: contain;
  display:block;
}

/* ================= FOOTER ================= */

footer{
  margin-top:18px;
  text-align:center;
  font-size:.85rem;
  opacity:.65;
  padding-bottom:6px;
}
