/* ==========================================================================
   BeeHiwe Watch (Videos) discovery - /videos/latest body only.

   Loaded by layout/videos/beehiwe/shell.html and by nothing else, so no other
   /videos/* page, and no other theme, can pick these rules up. The header,
   sidebar and footer belong to the parent theme and are untouched: every rule
   is namespaced under .bh-app / .bh-watch-app, and the one rule that reaches
   outside (#main-container, below) is safe because the theme's page swap
   replaces #container_content wholesale and takes this <link> with it.

   PARENT THEME LEAKS
   ------------------
   youplay's stylesheets style bare elements, and night-mode.css does it with
   !important, so a plain class rule here loses:

     style.css:922      header { background: white; height: 56px; ... }
     night-mode.css:84  p, span, h1..h6, button, input, li { color: #eee !important }
     night-mode.css:83  a { color: #eee !important }
     night-mode.css:85  li { background: #212121 !important; border-color: #444 !important }
     night-mode.css:89  ul { background: #212121 !important; border-color: #444 !important }

   That is neutralised by the reset block below, which is why colour and
   background declarations on p / span / h1-h3 / a / button / ul / li carry
   !important throughout this file. They are ordered after the reset, so
   equal-specificity component rules win on source order.
   ========================================================================== */

/* --- page canvas -------------------------------------------------------- */

/* `latest` is already in container.html's container-full list, so this only
   caps the line length on very wide displays and restores the gutter. */
#main-container.container {
   box-sizing: border-box;
   width: 100%;
   max-width: 1750px;
   margin-left: auto;
   margin-right: auto;
   padding-left: 20px;
   padding-right: 20px;
}

.bh-app {
   --bh-card:        #202325;
   --bh-raise:       #2b2e31;
   --bh-line:        rgba(255, 255, 255, .09);
   --bh-line-soft:   rgba(255, 255, 255, .07);
   --bh-text:        #e8eaed;
   --bh-text-dim:    #aab0b6;
   --bh-text-mute:   #8f969d;
   --bh-accent:      #ffb800;
   --bh-accent-wash: rgba(255, 184, 0, .10);
   --bh-accent-line: rgba(255, 184, 0, .24);
   --bh-select:      #a78bfa;
   --bh-select-wash: rgba(167, 139, 250, .15);
   --bh-select-line: rgba(167, 139, 250, .42);

   --bh-rail:   clamp(280px, 23%, 380px);
   --bh-gap:    18px;
   --bh-r-card: 12px;
   --bh-r-btn:  9px;

   color: var(--bh-text);
   font-size: 15px;
}

.bh-app *,
.bh-app *::before,
.bh-app *::after { box-sizing: border-box; }

/* --- parent theme reset (see header note) ------------------------------- */

.bh-app :where(p, span, h1, h2, h3, h4, a, button, input, li, small, b, strong) {
   color: inherit !important;
}
.bh-app :where(ul, ol, li) {
   background: transparent !important;
   border-color: var(--bh-line-soft) !important;
}

.bh-app :where(a) { text-decoration: none; }
.bh-app :where(a:hover) { text-decoration: none; }
.bh-app :where(img) { max-width: 100%; display: block; }
.bh-app :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; font-weight: inherit; }
.bh-app :where(ul, ol) { list-style: none; }
.bh-app :where(button) { font: inherit; background: none; border: 0; cursor: pointer; }

.bh-app :focus-visible {
   outline: 2px solid var(--bh-accent);
   outline-offset: 2px;
   border-radius: 4px;
}

.bh-dot { color: var(--bh-text-mute) !important; margin: 0 4px; }
.bh-verified { flex: none; vertical-align: -2px; }

/* duration chip - one definition, every surface */
.bh-duration {
   position: absolute; left: 8px; bottom: 8px;
   background: rgba(0, 0, 0, .84);
   color: #fff !important;
   font-size: 11.5px; font-weight: 500;
   font-variant-numeric: tabular-nums;
   padding: 3px 7px; border-radius: 5px;
   pointer-events: none;
}
.bh-duration-xs { left: 5px; bottom: 5px; font-size: 10.5px; padding: 2px 5px; }

/* --- page heading ------------------------------------------------------- */

.bh-page-head { padding-top: 16px; }

.bh-page-title {
   display: flex; align-items: center; gap: 10px;
   font-size: clamp(26px, 1.9vw, 30px);
   font-weight: 700; letter-spacing: -.022em;
   line-height: 1.18;
   color: var(--bh-text) !important;
}
.bh-page-icon { display: inline-flex; }
.bh-page-icon svg { width: 25px; height: 25px; }
.bh-ico-watch { color: var(--bh-select) !important; }

.bh-page-sub {
   margin-top: 6px;
   font-size: 14.5px; line-height: 1.5;
   color: var(--bh-text-dim) !important;
}

/* --- filter bar --------------------------------------------------------- */

.bh-filters {
   display: flex; align-items: center; gap: 14px;
   margin: 16px 0 18px;
}

.bh-filter-scroll {
   display: flex; align-items: center; gap: 9px;
   flex: 1 1 auto; min-width: 0;
   overflow-x: auto; overflow-y: visible;
   scrollbar-width: none; -ms-overflow-style: none;
}
.bh-filter-scroll::-webkit-scrollbar { display: none; }

.bh-pill {
   display: inline-flex; align-items: center; gap: 7px;
   height: 36px; padding: 0 14px; flex: none;
   border-radius: var(--bh-r-btn);
   background: var(--bh-raise);
   border: 1px solid var(--bh-line);
   font-size: 13.5px; font-weight: 500;
   color: var(--bh-text) !important;
   white-space: nowrap;
   transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.bh-pill:hover { background: #3a3e42; border-color: rgba(255, 255, 255, .18); }

/* Selected discovery state is the one place purple appears in the bar. */
.bh-pill.is-active {
   background: var(--bh-select-wash);
   border-color: var(--bh-select-line);
   color: #e2d9ff !important;
}
.bh-pill.is-active:hover { background: rgba(167, 139, 250, .21); }
.bh-pill.is-active .bh-pill-icon { color: var(--bh-select) !important; }

.bh-pill-icon { display: inline-flex; color: var(--bh-text-mute) !important; }
.bh-pill-icon svg { width: 15px; height: 15px; }
.bh-pill-caret { display: inline-flex; margin-left: 1px; color: var(--bh-text-mute) !important; }
.bh-ico-fire  { color: #f97316 !important; }
.bh-ico-clock { color: #60a5fa !important; }
.bh-ico-eye   { color: #4ade80 !important; }
.bh-ico-grid  { color: var(--bh-select) !important; }

.bh-hue-0 { color: #a78bfa !important; }
.bh-hue-1 { color: #60a5fa !important; }
.bh-hue-2 { color: #4ade80 !important; }
.bh-hue-3 { color: #f472b6 !important; }
.bh-hue-4 { color: #22d3ee !important; }

.bh-pill-sep {
   flex: none; width: 1px; height: 22px;
   background: var(--bh-line); margin: 0 3px;
}

/* --- more dropdown ------------------------------------------------------ */

.bh-more { position: relative; flex: none; }

.bh-more-menu {
   position: absolute; top: calc(100% + 7px); right: 0; z-index: 30;
   min-width: 210px; max-height: 320px; overflow-y: auto;
   padding: 6px;
   background: var(--bh-raise) !important;
   border: 1px solid var(--bh-line) !important;
   border-radius: var(--bh-r-btn);
   box-shadow: 0 10px 26px rgba(0, 0, 0, .40);
}
.bh-more-menu[hidden] { display: none; }
.bh-more-menu li { background: transparent !important; }
.bh-more-menu a {
   display: flex; align-items: center; justify-content: space-between; gap: 10px;
   padding: 8px 10px; border-radius: 6px;
   font-size: 13.5px; color: var(--bh-text) !important;
}
.bh-more-menu a:hover { background: rgba(255, 255, 255, .08); }
.bh-more-count { font-size: 12px; color: var(--bh-text-mute) !important; }

/* --- shared controls ---------------------------------------------------- */

.bh-btn-primary {
   display: inline-flex; align-items: center; justify-content: center; gap: 7px;
   height: 38px; padding: 0 18px;
   border-radius: var(--bh-r-btn);
   background: linear-gradient(135deg, #ffc62b 0%, #ff9d00 100%);
   color: #17120a !important;
   font-size: 14px; font-weight: 600; white-space: nowrap;
   transition: filter .15s ease;
}
.bh-btn-primary:hover { filter: brightness(1.07); }

/* Video actions are the purple surface, matching the discovery pills. */
.bh-btn-purple {
   display: inline-flex; align-items: center; justify-content: center; gap: 7px;
   height: 38px; padding: 0 18px;
   border-radius: var(--bh-r-btn);
   background: #7c5cf0;
   color: #fff !important;
   font-size: 14px; font-weight: 600; white-space: nowrap;
   transition: background .15s ease;
}
.bh-btn-purple:hover { background: #8b6df5; }

.bh-btn-ghost {
   display: inline-flex; align-items: center; justify-content: center; gap: 7px;
   height: 38px; padding: 0 18px;
   border-radius: var(--bh-r-btn);
   background: rgba(255, 255, 255, .07);
   border: 1px solid var(--bh-line);
   color: var(--bh-text) !important;
   font-size: 14px; font-weight: 500; white-space: nowrap;
   transition: background .15s ease;
}
.bh-btn-ghost:hover { background: rgba(255, 255, 255, .14); }

.bh-btn-lg { height: 40px; padding: 0 20px; font-size: 14.5px; }

.bh-card {
   background: var(--bh-card);
   border: 1px solid var(--bh-line);
   border-radius: var(--bh-r-card);
   padding: 16px;
}

.bh-sec-head {
   display: flex; align-items: center; justify-content: space-between;
   gap: 14px; margin-bottom: 13px;
}
.bh-sec-title {
   display: flex; align-items: center; gap: 9px;
   font-size: 17px; font-weight: 600; letter-spacing: -.015em;
   color: var(--bh-text) !important;
}
.bh-sec-icon { display: inline-flex; }
.bh-sec-icon svg { width: 17px; height: 17px; }

.bh-view-all {
   display: inline-flex; align-items: center; gap: 5px;
   font-size: 12.5px; font-weight: 500;
   color: var(--bh-text-dim) !important;
   white-space: nowrap;
   transition: color .15s ease;
}
.bh-view-all:hover { color: var(--bh-accent) !important; }

/* --- layout ------------------------------------------------------------- */

.bh-body {
   display: grid;
   grid-template-columns: minmax(0, 1fr) var(--bh-rail);
   gap: var(--bh-gap);
   align-items: start;
   padding-bottom: 28px;
}
.bh-col-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.bh-col-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ==========================================================================
   C. Featured video hero - image left, information right
   ========================================================================== */

.bh-vhero { position: relative; }

.bh-vhero-slide {
   display: grid;
   grid-template-columns: minmax(0, 59fr) minmax(0, 41fr);
   gap: 22px;
   align-items: center;
}
.bh-vhero-slide:not(.is-active) { display: none; }

.bh-vhero-media {
   position: relative; display: block;
   aspect-ratio: 16 / 9;
   border-radius: var(--bh-r-card);
   overflow: hidden;
   background: var(--bh-raise);
   border: 1px solid var(--bh-line);
}
.bh-vhero-img { width: 100%; height: 100%; object-fit: cover; }

/* Just enough to keep the badge and play control legible on a bright frame. */
.bh-vhero-shade {
   position: absolute; inset: 0;
   background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, transparent 34%,
                                       transparent 62%, rgba(0, 0, 0, .42) 100%);
}

.bh-vhero-badge {
   position: absolute; top: 12px; left: 12px;
   display: inline-flex; align-items: center; gap: 6px;
   height: 26px; padding: 0 10px;
   border-radius: 6px;
   background: var(--bh-accent);
   color: #17120a !important;
   font-size: 11.5px; font-weight: 700;
   letter-spacing: .05em; text-transform: uppercase;
}

.bh-vhero-play {
   position: absolute; right: 16px; bottom: 16px;
   width: 54px; height: 54px;
   display: flex; align-items: center; justify-content: center;
   border-radius: 50%;
   background: rgba(124, 92, 240, .92);
   color: #fff !important;
   padding-left: 4px;
   box-shadow: 0 6px 20px rgba(0, 0, 0, .38);
   transition: transform .2s ease, background .2s ease;
}
.bh-vhero-media:hover .bh-vhero-play { transform: scale(1.07); background: #8b6df5; }
.bh-vhero-duration { left: auto; right: 16px; bottom: 16px; }
/* the play control owns the lower-right corner, so the chip steps aside */
.bh-vhero-media .bh-vhero-duration { right: 80px; }

.bh-vhero-body { min-width: 0; }

.bh-vhero-title {
   font-size: clamp(21px, 1.6vw, 26px);
   font-weight: 700; line-height: 1.22;
   letter-spacing: -.022em;
   color: var(--bh-text) !important;
   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
   overflow: hidden;
}
.bh-vhero-title a { color: var(--bh-text) !important; transition: color .15s ease; }
.bh-vhero-title a:hover { color: var(--bh-select) !important; }

.bh-vhero-desc {
   margin-top: 10px;
   font-size: 14px; line-height: 1.55;
   color: var(--bh-text-dim) !important;
   display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
   overflow: hidden;
}

.bh-vhero-meta { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.bh-vhero-avatar {
   width: 38px; height: 38px; border-radius: 50%;
   overflow: hidden; flex: none; display: block;
}
.bh-vhero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bh-vhero-meta-text { min-width: 0; }
.bh-vhero-owner {
   display: flex; align-items: center; gap: 6px;
   font-size: 14px; font-weight: 600;
   color: var(--bh-text) !important;
}
.bh-vhero-sub { font-size: 12.5px; color: var(--bh-text-mute) !important; margin-top: 2px; }

.bh-vhero-actions {
   display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
   margin-top: 18px;
}

.bh-vhero-dots {
   display: flex; align-items: center; gap: 6px;
   margin-top: 14px;
   /* sits under the thumbnail, not the copy */
   width: 59%;
   justify-content: center;
}
.bh-vhero-dot {
   width: 20px; height: 3px; border-radius: 2px;
   background: rgba(255, 255, 255, .24);
   padding: 0; transition: background .2s ease, width .2s ease;
}
.bh-vhero-dot.is-active { width: 30px; background: var(--bh-select); }

/* ==========================================================================
   D. Featured categories
   ========================================================================== */

.bh-vcat-rail {
   --bh-cat-cols: 6;
   --bh-cat-gap: 14px;
   display: flex; gap: var(--bh-cat-gap);
   overflow-x: auto; overflow-y: hidden;
   scrollbar-width: none; -ms-overflow-style: none;
   padding-bottom: 2px;
}
.bh-vcat-rail::-webkit-scrollbar { display: none; }

/* Cards hold one column's width whatever the count: a site with a single
   category gets one normal card, not one stretched across the row (and, with
   the 16/10 ratio below, several hundred pixels tall). More cards than
   columns overflow into the rail's own horizontal scroll. */
.bh-vcat {
   flex: 0 0 auto;
   width: calc((100% - (var(--bh-cat-cols) - 1) * var(--bh-cat-gap)) / var(--bh-cat-cols));
   min-width: 168px;
}

.bh-vcat-card {
   position: relative; display: block;
   aspect-ratio: 16 / 10;
   border-radius: var(--bh-r-card);
   overflow: hidden;
   background: var(--bh-raise);
   border: 1px solid var(--bh-line);
}
.bh-vcat-img {
   position: absolute; inset: 0;
   width: 100%; height: 100%; object-fit: cover;
   transition: transform .35s ease;
}
.bh-vcat-card:hover .bh-vcat-img { transform: scale(1.05); }

/* The tint keeps the six cards distinguishable when several categories share
   similar cover art, and gives a card with no cover at all a real surface. */
.bh-vcat-shade {
   position: absolute; inset: 0;
   background:
      linear-gradient(180deg, rgba(8, 10, 12, .18) 0%, rgba(8, 10, 12, .55) 52%, rgba(8, 10, 12, .90) 100%),
      var(--bh-tint, linear-gradient(135deg, #3b3f45, #24272a));
   background-blend-mode: normal;
}
.bh-vcat-img + .bh-vcat-shade { background-image: linear-gradient(180deg, rgba(8, 10, 12, .18) 0%, rgba(8, 10, 12, .55) 52%, rgba(8, 10, 12, .90) 100%); }

.bh-tint-0 { --bh-tint: linear-gradient(135deg, #4c3a8f, #241f3d); }
.bh-tint-1 { --bh-tint: linear-gradient(135deg, #1f4d78, #16283a); }
.bh-tint-2 { --bh-tint: linear-gradient(135deg, #1f6b4a, #143026); }
.bh-tint-3 { --bh-tint: linear-gradient(135deg, #8a3a5e, #3a1e2c); }
.bh-tint-4 { --bh-tint: linear-gradient(135deg, #1c5f6b, #133038); }
.bh-tint-5 { --bh-tint: linear-gradient(135deg, #7a4a1e, #34220f); }

.bh-vcat-icon {
   position: absolute; top: 10px; left: 10px;
   width: 28px; height: 28px;
   display: flex; align-items: center; justify-content: center;
   border-radius: 8px;
   background: rgba(10, 12, 14, .62);
   border: 1px solid rgba(255, 255, 255, .16);
   color: #fff !important;
}

.bh-vcat-body {
   position: absolute; left: 0; right: 0; bottom: 0;
   display: block; padding: 12px;
}
.bh-vcat-name {
   display: block;
   font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
   color: #fff !important;
   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bh-vcat-count {
   display: block; margin-top: 2px;
   font-size: 12px;
   color: rgba(255, 255, 255, .74) !important;
}

/* ==========================================================================
   E. Recent videos
   ========================================================================== */

.bh-vgrid {
   display: grid;
   grid-template-columns: repeat(5, minmax(0, 1fr));
   gap: 16px 14px;
}

.bh-vcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.bh-vcard-thumb {
   position: relative; display: block;
   aspect-ratio: 16 / 9;
   border-radius: 10px; overflow: hidden;
   background: var(--bh-raise);
   border: 1px solid var(--bh-line-soft);
}
.bh-vcard-thumb img {
   width: 100%; height: 100%; object-fit: cover;
   transition: transform .3s ease;
}
.bh-vcard:hover .bh-vcard-thumb img { transform: scale(1.04); }

.bh-vcard-body { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }

.bh-vcard-avatar {
   width: 30px; height: 30px; border-radius: 50%;
   overflow: hidden; flex: none; display: block; margin-top: 1px;
}
.bh-vcard-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bh-vcard-text { min-width: 0; flex: 1 1 auto; }
.bh-vcard-title {
   font-size: 14px; font-weight: 600; line-height: 1.34;
   letter-spacing: -.006em;
   color: var(--bh-text) !important;
   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
   overflow: hidden;
   transition: color .15s ease;
}
.bh-vcard:hover .bh-vcard-title { color: var(--bh-select) !important; }
.bh-vcard-owner {
   display: flex; align-items: center; gap: 5px;
   margin-top: 5px;
   font-size: 12.5px; font-weight: 500;
   color: var(--bh-text-dim) !important;
   white-space: nowrap; overflow: hidden;
}
.bh-vcard-owner a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-vcard-owner a:hover { color: var(--bh-text) !important; }
.bh-vcard-sub {
   margin-top: 2px;
   font-size: 11.5px; color: var(--bh-text-mute) !important;
}

/* --- three-dot menu ----------------------------------------------------- */

.bh-vmenu { position: relative; flex: none; }

.bh-vmenu-btn {
   width: 26px; height: 26px;
   display: flex; align-items: center; justify-content: center;
   border-radius: 6px;
   color: var(--bh-text-mute) !important;
   opacity: 0;
   transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.bh-vcard:hover .bh-vmenu-btn,
.bh-trend-item:hover .bh-vmenu-btn,
.bh-vmenu-btn:focus-visible,
.bh-vmenu-btn[aria-expanded="true"] { opacity: 1; }
.bh-vmenu-btn:hover {
   background: rgba(255, 255, 255, .10);
   color: var(--bh-text) !important;
}

.bh-vmenu-list {
   position: absolute; top: calc(100% + 5px); right: 0; z-index: 25;
   min-width: 172px; padding: 5px;
   background: var(--bh-raise) !important;
   border: 1px solid var(--bh-line) !important;
   border-radius: var(--bh-r-btn);
   box-shadow: 0 10px 26px rgba(0, 0, 0, .40);
}
.bh-vmenu-list[hidden] { display: none; }
.bh-vmenu-list li { background: transparent !important; }
.bh-vmenu-list a,
.bh-vmenu-list button {
   display: flex; align-items: center; gap: 9px; width: 100%;
   padding: 8px 10px; border-radius: 6px;
   font-size: 13px; text-align: left;
   color: var(--bh-text) !important;
}
.bh-vmenu-list a:hover,
.bh-vmenu-list button:hover { background: rgba(255, 255, 255, .08); }
.bh-vmenu-list .bh-save-btn[data-bh-saved] { color: var(--bh-accent) !important; }

/* --- pagination --------------------------------------------------------- */

.bh-pager {
   display: flex; align-items: center; justify-content: center;
   gap: 14px; margin-top: 20px;
}
.bh-pager-btn {
   display: inline-flex; align-items: center; gap: 6px;
   height: 36px; padding: 0 15px;
   border-radius: var(--bh-r-btn);
   background: var(--bh-raise);
   border: 1px solid var(--bh-line);
   font-size: 13.5px; font-weight: 500;
   color: var(--bh-text) !important;
   transition: background .15s ease;
}
.bh-pager-btn:hover { background: #3a3e42; }
.bh-pager-at {
   font-size: 13px; color: var(--bh-text-mute) !important;
   font-variant-numeric: tabular-nums;
}
.bh-pager-at b { color: var(--bh-text) !important; font-weight: 600; }

/* ==========================================================================
   G. Trending rail
   ========================================================================== */

.bh-trend-list { display: flex; flex-direction: column; }

.bh-trend-item {
   display: grid;
   grid-template-columns: 24px 80px minmax(0, 1fr) 26px;
   align-items: center; gap: 10px;
   padding: 11px 0;
   border-bottom: 1px solid var(--bh-line-soft);
}
.bh-trend-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bh-trend-item:first-child { padding-top: 0; }

.bh-trend-rank {
   font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums;
   color: var(--bh-accent) !important; letter-spacing: -.03em;
}

.bh-trend-thumb {
   position: relative;
   display: block; width: 80px; height: 53px;
   border-radius: 8px; overflow: hidden;
   background: var(--bh-raise);
}
.bh-trend-thumb img { width: 100%; height: 100%; object-fit: cover; }

.bh-trend-body { min-width: 0; }
.bh-trend-title {
   font-size: 13px; font-weight: 500; line-height: 1.38;
   color: var(--bh-text) !important;
   display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
   overflow: hidden;
   transition: color .15s ease;
}
.bh-trend-item:hover .bh-trend-title { color: var(--bh-select) !important; }
.bh-trend-sub {
   margin-top: 4px;
   font-size: 11.5px; color: var(--bh-text-mute) !important;
}

/* ==========================================================================
   H. Top creators
   ========================================================================== */

.bh-writer-list { display: flex; flex-direction: column; }

.bh-writer {
   display: flex; align-items: center; gap: 11px;
   padding: 11px 0;
   border-bottom: 1px solid var(--bh-line-soft);
}
.bh-writer:last-child { border-bottom: 0; padding-bottom: 0; }
.bh-writer:first-child { padding-top: 0; }

.bh-writer-avatar {
   width: 40px; height: 40px; border-radius: 50%;
   overflow: hidden; flex: none; display: block;
}
.bh-writer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.bh-writer-body { min-width: 0; flex: 1 1 auto; }
.bh-writer-name {
   display: flex; align-items: center; gap: 5px;
   font-size: 13.5px; font-weight: 600;
   color: var(--bh-text) !important;
   white-space: nowrap; overflow: hidden;
}
.bh-writer-name a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bh-writer-meta {
   margin-top: 3px;
   font-size: 11.5px; line-height: 1.45;
   color: var(--bh-text-mute) !important;
   overflow: hidden;
}

.bh-follow {
   flex: none;
   min-width: 68px; height: 32px; padding: 0 14px;
   border-radius: 999px;
   background: rgba(255, 255, 255, .09);
   border: 1px solid var(--bh-line);
   font-size: 12.5px; font-weight: 600;
   color: var(--bh-text) !important;
   white-space: nowrap;
   transition: background .15s ease, color .15s ease;
}
.bh-follow:hover { background: rgba(255, 255, 255, .16); }
.bh-follow.is-following {
   background: transparent;
   border-color: var(--bh-accent-line);
   color: var(--bh-accent) !important;
}

/* ==========================================================================
   I. Creator CTA
   ========================================================================== */

.bh-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px; }
.bh-cta-icon {
   flex: none; width: 40px; height: 40px;
   display: flex; align-items: center; justify-content: center;
   border-radius: 10px;
   background: var(--bh-accent-wash);
   color: var(--bh-accent) !important;
}
.bh-cta-body { min-width: 0; flex: 1 1 auto; }
.bh-cta-title {
   font-size: 17px; font-weight: 600; letter-spacing: -.015em;
   color: var(--bh-text) !important;
}
.bh-cta-sub { font-size: 13px; color: var(--bh-text-mute) !important; margin-top: 3px; }
.bh-cta-btn { flex: 1 1 100%; height: 40px; font-size: 14.5px; }

/* --- empty states ------------------------------------------------------- */

.bh-blank {
   display: flex; flex-direction: column; align-items: center;
   text-align: center; gap: 9px;
   padding: 56px 24px;
   margin-bottom: 28px;
}
.bh-blank-sm { padding: 40px 24px; margin-bottom: 0; }
.bh-blank-icon { color: var(--bh-text-mute) !important; }
.bh-blank-title { font-size: 16px; font-weight: 600; color: var(--bh-text) !important; }
.bh-blank-sub {
   font-size: 13.5px; color: var(--bh-text-mute) !important;
   max-width: 420px; line-height: 1.55;
}
.bh-blank .bh-btn-primary { margin-top: 8px; }

/* ==========================================================================
   Light mode - follows the parent theme's day/night cookie
   ========================================================================== */

.bh-app.bh-light {
   --bh-card:        #ffffff;
   --bh-raise:       #eef0f2;
   --bh-line:        rgba(0, 0, 0, .10);
   --bh-line-soft:   rgba(0, 0, 0, .08);
   --bh-text:        #16191d;
   --bh-text-dim:    #545b63;
   --bh-text-mute:   #6b727a;
   --bh-accent:      #a86800;
   --bh-accent-wash: rgba(255, 152, 0, .12);
   --bh-accent-line: rgba(255, 152, 0, .34);
   --bh-select:      #6d3fe0;
   --bh-select-wash: rgba(109, 63, 224, .10);
   --bh-select-line: rgba(109, 63, 224, .32);
}
.bh-app.bh-light .bh-pill:hover { background: #e3e6e9; border-color: rgba(0, 0, 0, .16); }
.bh-app.bh-light .bh-pill.is-active { color: #4a24ad !important; }
.bh-app.bh-light .bh-pill.is-active:hover { background: rgba(109, 63, 224, .16); }
.bh-app.bh-light .bh-btn-ghost { background: rgba(0, 0, 0, .04); }
.bh-app.bh-light .bh-btn-ghost:hover { background: rgba(0, 0, 0, .08); }
.bh-app.bh-light .bh-follow { background: rgba(0, 0, 0, .04); }
.bh-app.bh-light .bh-follow:hover { background: rgba(0, 0, 0, .08); }
.bh-app.bh-light .bh-vmenu-btn:hover { background: rgba(0, 0, 0, .06); }
.bh-app.bh-light .bh-vmenu-list a:hover,
.bh-app.bh-light .bh-vmenu-list button:hover { background: rgba(0, 0, 0, .05); }
.bh-app.bh-light .bh-more-menu a:hover { background: rgba(0, 0, 0, .05); }
.bh-app.bh-light .bh-more-menu,
.bh-app.bh-light .bh-vmenu-list { box-shadow: 0 10px 26px rgba(0, 0, 0, .13); }
.bh-app.bh-light .bh-pager-btn:hover { background: #e3e6e9; }
.bh-app.bh-light .bh-vhero-dot { background: rgba(0, 0, 0, .18); }
/* category cards keep white type over their own dark gradient */
.bh-app.bh-light .bh-vcat-name { color: #fff !important; }

/* ==========================================================================
   Responsive

   Recent Videos uses a fixed column count per breakpoint rather than
   auto-fill, so the grid is always flush.
   ========================================================================== */

@media (max-width: 1500px) {
   .bh-vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
   .bh-vcat-rail { --bh-cat-cols: 5; }
}

@media (max-width: 1280px) {
   .bh-app { --bh-rail: clamp(272px, 26%, 320px); }
   .bh-vcat-rail { --bh-cat-cols: 4; }
   .bh-vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
   .bh-vhero-slide { gap: 18px; }
   .bh-vhero-play { width: 46px; height: 46px; right: 12px; bottom: 12px; }
   .bh-vhero-media .bh-vhero-duration { right: 68px; bottom: 12px; }
}

/* rail drops under the main column; sections take the mobile reading order */
@media (max-width: 1024px) {
   .bh-body {
      display: flex; flex-direction: column;
      align-items: stretch; gap: 20px;
   }
   .bh-col-main, .bh-col-side { display: contents; }

   .bh-vhero    { order: 1; }
   .bh-vcats    { order: 2; }
   .bh-vrecent  { order: 3; }
   .bh-trending { order: 4; }
   .bh-writers  { order: 5; }
   .bh-cta      { order: 6; }

   .bh-vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
   .bh-vcat-rail { --bh-cat-cols: 4; }
}

@media (max-width: 860px) {
   .bh-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .bh-vcat-rail { --bh-cat-cols: 3; }

   /* hero image above hero text */
   .bh-vhero-slide { grid-template-columns: minmax(0, 1fr); gap: 14px; }
   .bh-vhero-dots { width: 100%; }
}

@media (max-width: 560px) {
   #main-container.container { padding-left: 14px; padding-right: 14px; }
   .bh-app { --bh-gap: 14px; font-size: 14.5px; }
   .bh-card { padding: 14px; }

   .bh-page-head { padding-top: 14px; }
   .bh-page-title { font-size: 23px; }
   .bh-page-icon svg { width: 21px; height: 21px; }

   .bh-vhero-title { font-size: 19px; }
   .bh-vhero-desc { -webkit-line-clamp: 2; }
   .bh-vhero-actions .bh-btn-lg { flex: 1 1 0; }
   .bh-vhero-play { width: 42px; height: 42px; }

   .bh-vcat-rail { --bh-cat-cols: 2; }
   .bh-vcat { min-width: 150px; }

   .bh-vgrid { gap: 14px 12px; }

   /* the menu button has no hover to reveal it on touch */
   .bh-vmenu-btn { opacity: 1; }

   .bh-trend-item { grid-template-columns: 22px 72px minmax(0, 1fr); }
   .bh-trend-thumb { width: 72px; height: 48px; }
   .bh-trend-item .bh-vmenu { display: none; }
}

@media (max-width: 400px) {
   .bh-vgrid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
   .bh-app *, .bh-app *::before, .bh-app *::after {
      transition-duration: .01ms !important;
      animation-duration: .01ms !important;
   }
}
