/* ==========================================
   RESET & BASE
========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: #0e0e0e;
  color: #e5e5e5;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: #1e90ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Shared container used in header, content, footer */
.bt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Main wrapper from header.php */
.bt-main {
  padding: 16px 0 40px;
}

/* ==========================================
   HEADER (matches header.php)
========================================== */
.bt-header {
  background: #111;
  border-bottom: 1px solid #222;
  padding: 10px 0;
}

.bt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.bt-logo a,
.bt-logo span {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

/* Main nav */
.bt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.bt-nav a {
  color: #ccc;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.bt-nav a:hover {
  background: #222;
  color: #fff;
}

/* ==========================================
   HOMEPAGE  HERO & SECTIONS
========================================== */

.bt-hero {
  margin: 20px 0 18px;
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #2e2e2e 0, #111 45%, #050505 100%);
  border: 1px solid #222;
}

.bt-hero h1 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.bt-hero-tagline {
  font-size: 0.98rem;
  color: #c7c7c7;
  max-width: 700px;
  margin-bottom: 0.8rem;
}

.bt-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #9d9d9d;
}

.bt-hero-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid #2b2b2b;
}

.bt-section {
  margin-top: 10px;
}

.bt-section-header {
  margin-bottom: 1rem;
}

.bt-section-header h2 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.bt-section-subtitle {
  font-size: 0.9rem;
  color: #aaa;
}

/* ==========================================
   HOMEPAGE VIDEO GRID  4-WIDE ON DESKTOP
========================================== */

.bt-video-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

/* = 640px: 2 columns */
@media (min-width: 640px) {
  .bt-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* = 900px: 3 columns */
@media (min-width: 900px) {
  .bt-video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* = 1200px: 4 columns */
@media (min-width: 1200px) {
  .bt-video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Video card */
.bt-video-card {
  background: #181818;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bt-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.55);
  border-color: #333;
}

/* Thumbnail wrapper  16:9 */
.bt-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.bt-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bt-video-card:hover .bt-thumb-wrap img {
  transform: scale(1.04);
}

/* Watch badge */
.bt-thumb-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Card body */
.bt-video-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bt-video-title {
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0;
}

.bt-video-title a {
  color: #fff;
  text-decoration: none;
}
.bt-video-title a:hover {
  text-decoration: underline;
}

/* Meta pills & date */
.bt-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: #aaa;
}

.bt-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #252525;
  font-size: 0.75rem;
  color: #ddd;
}

.bt-pill-ghost {
  background: transparent;
  border: 1px solid #333;
  color: #aaa;
}

.bt-meta-date {
  font-size: 0.75rem;
  color: #888;
}

/* Excerpt */
.bt-video-excerpt {
  font-size: 0.8rem;
  color: #b5b5b5;
  margin-top: 4px;
}

/* ==========================================
   PAGINATION
========================================== */
.bt-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 2rem 0 0;
  font-size: 0.9rem;
}

.bt-page-link {
  padding: 6px 12px;
  border-radius: 999px;
  background: #222;
  color: #ddd;
  text-decoration: none;
}
.bt-page-link:hover {
  background: #333;
}
.bt-page-status {
  color: #aaa;
}

/* ==========================================
   VIDEO PAGE PLAYER (for video.php)
========================================== */
.bt-video-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.bt-video-container {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 30px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.bt-video-container::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.bt-video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================
   FOOTER (matches footer.php)
========================================== */
.bt-footer {
  background: #111;
  border-top: 1px solid #222;
  padding: 24px 0 18px;
  color: #b5b5b5;
  font-size: 0.9rem;
}

.bt-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
}

.bt-footer-col {
  flex: 1 1 220px;
  min-width: 0;
}

.bt-footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.bt-footer-col ul {
  list-style: none;
  padding-left: 0;
}

.bt-footer-col li {
  margin-bottom: 0.25rem;
}

.bt-footer a {
  color: #d0d0d0;
}
.bt-footer a:hover {
  color: #fff;
}

.bt-footer-bottom {
  border-top: 1px solid #222;
  padding-top: 0.6rem;
  font-size: 0.8rem;
  color: #969696;
}


/* ==========================================
   CHANNELS GRID (channels.php)
========================================== */

.bt-channel-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .bt-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .bt-channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bt-channel-card {
  background: #181818;
  border-radius: 14px;
  border: 1px solid #222;
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.bt-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.55);
  border-color: #333;
}

.bt-channel-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.bt-channel-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bt-channel-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bt-channel-name {
  font-size: 1rem;
  margin: 0;
}

.bt-channel-name a {
  color: #fff;
  text-decoration: none;
}
.bt-channel-name a:hover {
  text-decoration: underline;
}

.bt-channel-handle {
  font-size: 0.82rem;
  color: #aaa;
}

.bt-channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
}

.bt-channel-excerpt {
  font-size: 0.86rem;
  color: #c5c5c5;
}

.bt-channel-actions {
  margin-top: 6px;
}

.bt-btn.bt-btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* ==========================================
   CHANNEL HERO (channel.php)
========================================== */

.bt-channel-hero {
  margin: 20px 0 18px;
  padding: 18px 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #232323 0, #111 60%, #050505 100%);
  border: 1px solid #222;
}

.bt-channel-hero-inner {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.bt-channel-hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.bt-channel-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bt-channel-hero-text {
  flex: 1 1 240px;
}

.bt-channel-hero h1 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.bt-channel-hero-handle {
  font-size: 0.85rem;
  color: #c0c0c0;
  margin-bottom: 0.4rem;
}

.bt-channel-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}

.bt-channel-hero-desc {
  font-size: 0.9rem;
  color: #d0d0d0;
  max-width: 800px;
}

/* Tighten grid slightly under hero on channel.php */
.bt-channel-videos-grid {
  margin-top: 0.5rem;
}


/* Buttons (used on video page etc.) */
.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.bt-btn-primary {
  background: #1e90ff;
  border-color: #1e90ff;
  color: #fff;
}

.bt-btn-ghost {
  background: #181818;
  border-color: #333;
  color: #ddd;
}

/* Breadcrumbs (used in video.php) */
.bt-breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: #a0a0a0;
}

.bt-breadcrumbs a {
  color: #a0a0a0;
  text-decoration: none;
}
.bt-breadcrumbs a:hover {
  color: #fff;
}



/* ==========================================
   SUBMIT PAGE  FORM STYLING
   ========================================== */

.bt-section h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.bt-section > p {
  max-width: 720px;
  font-size: 0.95rem;
  color: #b5b5b5;
  margin-bottom: 1.5rem;
}

/* Alerts (success / error messages) */
.bt-alert {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  border: 1px solid transparent;
}

.bt-alert-success {
  background: #062712;
  border-color: #0f4a23;
  color: #b6f3c6;
}

.bt-alert-error {
  background: #2b0a0a;
  border-color: #6b1818;
  color: #f4bcbc;
}

/* Form wrapper */
.bt-form {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  background: #111;
  padding: 1.75rem 1.6rem;
  border-radius: 0.9rem;
  border: 1px solid #222;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* Each row: label + input */
.bt-form-row {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}

/* Labels */
.bt-form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 0.4rem;
}

/* Inputs & textarea */
.bt-form-row input[type="text"],
.bt-form-row input[type="email"],
.bt-form-row input[type="url"],
.bt-form-row textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0.7rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: #fff;
}

.bt-form-row textarea {
  min-height: 110px;
  resize: vertical;
}

/* Focus state */
.bt-form-row input[type="text"]:focus,
.bt-form-row input[type="email"]:focus,
.bt-form-row input[type="url"]:focus,
.bt-form-row textarea:focus {
  outline: none;
  border-color: #e60023;
  box-shadow: 0 0 0 2px rgba(230,0,35,0.35);
}

/* Submit button */
.bt-form-row button[type="submit"] {
  align-self: flex-start;
  background: #e60023;
  color: #fff;
  border: none;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.bt-form-row button[type="submit"]:hover {
  background: #ff002b;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .bt-form {
    padding: 1.3rem 1rem;
    margin-bottom: 2rem;
  }
}

