/* ==========================================================================
   Modern 2026 theme layer (namespaced tb-*) — loaded after all12.css
   ========================================================================== */

:root {
  --tb-primary: #1e9bf0;
  --tb-primary-dark: #0f7dc9;
  --tb-dark: #101725;
  --tb-dark-2: #1a2436;
  --tb-text: #22304a;
  --tb-muted: #6b7a94;
  --tb-bg: #f4f7fb;
  --tb-card: #ffffff;
  --tb-radius: 14px;
  --tb-shadow: 0 2px 12px rgba(16, 23, 37, .08);
  --tb-shadow-hover: 0 8px 24px rgba(16, 23, 37, .16);
}

/* Hide the old grey sub-header search strip on the homepage (hero replaces it) */
.route-home .header-bg.non-home { display: none; }

/* Ad slot below the navbar: no reserved height — collapses when the ad
   hasn't loaded, expands automatically when it does */
.tb-ad-slot { text-align: center; line-height: 0; }
.tb-ad-slot:empty { display: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.tb-hero {
  background: linear-gradient(135deg, var(--tb-dark) 0%, var(--tb-dark-2) 55%, #12395c 100%);
  /* Extra top padding clears the absolutely-positioned floating navbar (~90px tall) */
  padding: 110px 15px 40px;
  text-align: center;
  color: #fff;
}

.tb-hero-title {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -.5px;
}

.tb-hero-tagline {
  font-size: 16px;
  color: #b9c6da;
  margin: 0 0 26px;
}

.tb-hero-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
}

.tb-hero-input {
  flex: 1;
  width: 100%;
  font-size: 17px;
  padding: 15px 20px;
  border: 0;
  border-radius: 50px 0 0 50px;
  outline: none;
  color: var(--tb-text);
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.tb-hero-btn {
  border: 0;
  background: var(--tb-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  padding: 0 28px;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background .2s ease;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

.tb-hero-btn:hover,
.tb-hero-btn:focus { background: var(--tb-primary-dark); }

/* --------------------------------------------------------------------------
   Chips
   -------------------------------------------------------------------------- */
.tb-chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tb-chips-left { justify-content: flex-start; margin-top: 0; }

.tb-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #eaf1fa;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.tb-chip:hover,
.tb-chip:focus {
  background: var(--tb-primary);
  border-color: var(--tb-primary);
  color: #fff;
  text-decoration: none;
}

.tb-chip-light {
  background: #fff;
  border: 1px solid #dde5f0;
  color: var(--tb-text);
  box-shadow: var(--tb-shadow);
}

.tb-chip-light:hover,
.tb-chip-light:focus { background: var(--tb-primary); border-color: var(--tb-primary); color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.tb-home { background: var(--tb-bg); padding-bottom: 30px; }

.tb-section { margin: 34px 0 0; }

.tb-section-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--tb-text);
  margin: 0 0 18px;
  letter-spacing: -.3px;
}

.tb-section-title .fa {
  color: var(--tb-primary);
  margin-right: 8px;
}

/* --------------------------------------------------------------------------
   Cards grid
   -------------------------------------------------------------------------- */
.tb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.tb-grid-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.tb-card {
  display: block;
  background: var(--tb-card);
  border-radius: var(--tb-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--tb-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tb-card:hover,
.tb-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--tb-shadow-hover);
  text-decoration: none;
}

.tb-card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e6ecf5;
}

.tb-card-thumb-wide { aspect-ratio: 16 / 9; }

.tb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.tb-card:hover .tb-card-thumb img { transform: scale(1.05); }

.tb-card-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 50%;
  background: var(--tb-primary);
  color: #fff;
  font-size: 13px;
  opacity: .92;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.tb-card-play .fa { margin-left: 3px; }

.tb-card-body { padding: 12px 14px 14px; }

.tb-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tb-text);
  margin: 0 0 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.tb-card-artist {
  font-size: 12px;
  color: var(--tb-muted);
  margin: 0 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-badges { display: flex; gap: 6px; }

.tb-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(30, 155, 240, .12);
  color: var(--tb-primary-dark);
}

.tb-badge-alt {
  background: rgba(46, 204, 113, .13);
  color: #1d8a4c;
}

/* --------------------------------------------------------------------------
   How-to steps
   -------------------------------------------------------------------------- */
.tb-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tb-step {
  background: var(--tb-card);
  border-radius: var(--tb-radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--tb-shadow);
}

.tb-step-num {
  display: inline-block;
  width: 42px;
  height: 42px;
  line-height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-dark));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tb-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--tb-text);
  margin: 0 0 6px;
}

.tb-step p {
  font-size: 13px;
  color: var(--tb-muted);
  margin: 0;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SEO article
   -------------------------------------------------------------------------- */
.tb-article {
  background: var(--tb-card);
  border-radius: var(--tb-radius);
  box-shadow: var(--tb-shadow);
  padding: 28px 26px;
  margin-top: 34px;
  color: var(--tb-text);
}

.tb-article h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 26px 0 12px;
  color: var(--tb-text);
}

.tb-article h2:first-child { margin-top: 0; }

.tb-article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--tb-text);
}

.tb-article p {
  font-size: 15px;
  line-height: 1.75;
  color: #3d4d68;
}

.tb-article ul {
  padding-left: 20px;
  color: #3d4d68;
  font-size: 15px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .tb-hero { padding: 100px 15px 30px; }
  .tb-hero-title { font-size: 22px; }
  .tb-hero-tagline { font-size: 14px; }
  .tb-hero-input { font-size: 15px; padding: 13px 16px; }
  .tb-hero-btn { padding: 0 18px; }
  .tb-btn-text { display: none; }
  .tb-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .tb-section-title { font-size: 18px; }
  .tb-article { padding: 20px 16px; }
}
