/* BIG5 - тема по Claude Design „BIG5 Homepage v2“. Червено #d71920, сив фон #f4f4f4, бели карти, Golos Text.
   Категорията и статията не са в дизайна - направени са със същите елементи. */
:root {
    --b5-red: #d71920;
    --b5-ink: #141414;
    --b5-bg: #f4f4f4;
    --b5-muted: #8a8a8a;
    --b5-line: #ececec;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--b5-bg); color: var(--b5-ink); font-family: 'Golos Text', system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--b5-red); }
*:focus-visible { outline: 2px solid var(--b5-red); outline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
.b5-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.b5-in { max-width: 1280px; margin: 0 auto; padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }

/* ---------- header ---------- */
.b5-header { background: #fff; border-bottom: 1px solid #e4e4e4; position: sticky; top: 0; z-index: 10; }
.b5-header-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.b5-logo { background: var(--b5-red); color: #fff; font-weight: 800; font-size: 26px; letter-spacing: -.02em; padding: 2px 10px; line-height: 1.2; flex: none; }
.b5-logo:hover { color: #fff; }
.b5-logo-lg { display: inline-block; font-size: 30px; padding: 2px 12px; }
.b5-nav { display: flex; gap: 16px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.b5-nav::-webkit-scrollbar { display: none; }
.b5-nav a { padding: 22px 0; }
.b5-nav a.active { color: var(--b5-red); box-shadow: inset 0 -3px 0 var(--b5-red); }
.b5-search-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--b5-ink); flex: none; }
.b5-search { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--b5-line); }
.b5-search[hidden] { display: none; }
.b5-search input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid #ddd; font: inherit; font-size: 16px; }
.b5-search button { height: 44px; padding: 0 20px; border: 0; background: var(--b5-red); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.b5-search-inline { max-width: 560px; padding: 0; border: 0; }

/* ---------- общи ---------- */
.b5-tag { display: inline-block; background: var(--b5-red); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; }
.b5-kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--b5-red); }
.b5-note { font-size: 15px; color: #555; }
.b5-crumbs { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--b5-muted); margin-bottom: 12px; }
.b5-page { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.b5-main { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.b5-article.b5-main, .b5-main:has(> .b5-crumbs) { gap: 16px; }

/* ---------- hero ---------- */
.b5-hero { position: relative; height: clamp(380px, 52vw, 560px); background: #222; }
.b5-hero-link, .b5-hero-link:hover { display: block; height: 100%; color: #fff; }
.b5-hero img { width: 100%; height: 100%; object-fit: cover; }
.b5-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0) 60%); }
.b5-hero-txt { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 40px; display: block; }
.b5-hero-txt h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: 12px 0 10px; max-width: 16ch; text-wrap: balance; }
.b5-hero-date { font-size: 13px; opacity: .8; }

/* ---------- мнения ---------- */
.b5-opinions { display: flex; flex-direction: column; gap: 20px; }
.b5-op { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; background: #fff; padding: 16px; align-items: start; }
.b5-op-img { aspect-ratio: 16/10; background: #ddd; display: block; }
.b5-op-img img, .b5-card-img img { width: 100%; height: 100%; object-fit: cover; }
.b5-op h3 { font-size: 22px; font-weight: 700; line-height: 1.2; margin: 6px 0 8px; }
.b5-op p { margin: 0; font-size: 14px; line-height: 1.55; color: #555; }

/* ---------- секции ---------- */
.b5-section { display: flex; flex-direction: column; gap: 16px; }
.b5-section-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--b5-ink); padding-bottom: 8px; }
.b5-section-head h1, .b5-section-head h2 { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; flex: 1; }
.b5-section-head h1 { font-size: clamp(24px, 3vw, 32px); }
.b5-section-head a { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--b5-red); }
.b5-feature, .b5-feature:hover { display: block; position: relative; aspect-ratio: 16/9; background: #222; color: #fff; overflow: hidden; }
.b5-feature img { width: 100%; height: 100%; object-fit: cover; }
.b5-feature-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88), rgba(0,0,0,0) 55%); }
.b5-feature-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 3vw, 28px); display: block; }
.b5-feature-txt h2, .b5-feature-txt h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; margin: 10px 0 8px; text-wrap: balance; }
.b5-feature-txt p { margin: 0; font-size: 14px; line-height: 1.5; opacity: .85; max-width: 70ch; }
.b5-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.b5-section > .b5-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 6 малки = 2 реда по 3 */
@media (max-width: 760px) { .b5-section > .b5-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.b5-cards-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.b5-card { display: flex; flex-direction: column; gap: 10px; background: #fff; }
.b5-card-img { aspect-ratio: 16/10; background: #ddd; display: block; }
.b5-card-title { font-size: 15px; font-weight: 700; line-height: 1.3; padding: 0 12px; }
.b5-card-title:last-child { padding-bottom: 14px; }
.b5-card-date { font-size: 12px; color: var(--b5-muted); padding: 0 12px 14px; margin-top: -4px; }
.b5-pages ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.b5-pages a, .b5-pages span { min-width: 44px; height: 44px; padding: 0 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #fff; border: 1px solid #e4e4e4; }
.b5-pages a:hover { border-color: var(--b5-red); }
.b5-pages .active span, .b5-pages .active a, .b5-pages span.current { background: var(--b5-red); border-color: var(--b5-red); color: #fff; }

/* ---------- дясна колона ---------- */
.b5-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.b5-box { background: #fff; padding: 20px; }
.b5-box-title { margin: 0 0 8px; font-size: 16px; font-weight: 800; text-transform: uppercase; border-left: 4px solid var(--b5-red); padding-left: 10px; }
.b5-rank { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--b5-line); font-size: 14px; font-weight: 600; line-height: 1.35; }
.b5-rank-n { font-size: 24px; font-weight: 800; color: var(--b5-red); line-height: 1; font-variant-numeric: tabular-nums; }
.b5-box-scroll { max-height: clamp(220px, calc(50vh - 110px), 440px); overflow-y: auto; overscroll-behavior: contain; margin-right: -10px; padding-right: 10px; scrollbar-width: thin; scrollbar-color: #ccc transparent; }
/* „Последни“ е по-висока (около 7 видими), „Най-четени“ взима остатъка - двете се побират в екрана, защото колоната е sticky */
.b5-box-scroll-latest { max-height: clamp(300px, calc(62vh - 90px), 640px); }
.b5-aside .b5-box:last-child .b5-box-scroll:not(.b5-box-scroll-latest) { max-height: clamp(150px, calc(38vh - 175px), 440px); }
.b5-latest { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--b5-line); }
.b5-latest-img { aspect-ratio: 16/10; background: #ddd; display: block; overflow: hidden; }
.b5-latest-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b5-latest-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; }
.b5-latest-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--b5-muted); font-variant-numeric: tabular-nums; }

/* ---------- статия ---------- */
.b5-article-card { background: #fff; padding: clamp(18px, 3vw, 36px); }
.b5-article-card h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.015em; margin: 8px 0 14px; text-wrap: balance; }
.b5-admin-edit { display: inline-block; margin-bottom: 10px; border: 1px solid var(--b5-red); color: var(--b5-red); padding: 6px 12px; font-size: 13px; }
.b5-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--b5-line); font-size: 13px; color: #666; }
.b5-hero-media { margin: 20px 0; width: 100%; }
video.b5-hero-media { aspect-ratio: 16/9; background: #000; }
.b5-hero-media img { width: 100%; height: auto; }
.b5-hero-media figcaption { font-size: 12px; color: var(--b5-muted); margin-top: 6px; }
.b5-lead-p { font-weight: 700; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; margin: 0 0 24px; padding-left: 16px; border-left: 4px solid var(--b5-red); }
.b5-body { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.7; color: #222; overflow-wrap: break-word; }
.b5-body p { margin: 0 0 18px; text-wrap: pretty; }
.b5-body h2, .b5-body h3, .b5-body h4 { font-weight: 800; line-height: 1.25; margin: 32px 0 14px; }
.b5-body h2 { font-size: clamp(21px, 2.6vw, 27px); }
.b5-body h3, .b5-body h4 { font-size: clamp(19px, 2.2vw, 23px); }
.b5-body a { color: var(--b5-red); text-decoration: underline; text-underline-offset: 2px; }
.b5-body img { height: auto; margin: 24px auto; }
.b5-body figure { margin: 24px 0; max-width: 100%; }
.b5-body figcaption, .b5-body .wp-caption-text { font-size: 13px; color: var(--b5-muted); }
/* 16:9 само за видео; останалите вградени (пост от Facebook и др.) пазят своята височина */
.b5-body iframe { max-width: 100%; display: block; margin: 24px auto; border: 0; }
.b5-body video, .b5-body iframe[src*="youtube"], .b5-body iframe[src*="youtu.be"], .b5-body iframe[src*="vimeo"], .b5-body iframe[src*="dailymotion"], .b5-body iframe[src*="facebook.com/plugins/video"], .b5-body iframe[src*="player."] { width: 100%; aspect-ratio: 16/9; height: auto; background: #000; margin: 24px 0; }
.b5-body .wp-video { width: 100% !important; }
.b5-body blockquote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--b5-red); font-style: italic; }
.b5-body ul, .b5-body ol { padding-left: 1.3em; margin: 0 0 18px; }
.b5-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.b5-tags a { font-size: 12px; font-weight: 700; background: var(--b5-bg); padding: 6px 10px; }
.b5-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--b5-line); }
.b5-share-row > span { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.b5-prevnext { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.b5-prevnext a { display: block; padding: 16px; background: #fff; }
.b5-prevnext a span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--b5-red); }
.b5-prevnext a strong { display: block; margin-top: 6px; font-size: 15px; line-height: 1.3; }
.b5-prevnext .b5-next { text-align: right; }

/* ---------- footer ---------- */
.b5-footer { background: var(--b5-ink); color: #d8d8d8; margin-top: 24px; }
.b5-footer-grid { padding-top: 48px; padding-bottom: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.b5-footer p { font-size: 14px; line-height: 1.6; color: #a8a8a8; margin: 16px 0 0; }
.b5-footer h3 { margin: 0 0 12px; font-size: 14px; font-weight: 800; text-transform: uppercase; color: #fff; }
.b5-footer-pick { display: block; padding: 10px 0; font-size: 14px; font-weight: 600; line-height: 1.35; border-bottom: 1px solid #2b2b2b; }
.b5-footer-cat { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid #2b2b2b; }
.b5-num { color: var(--b5-muted); font-variant-numeric: tabular-nums; }
.b5-footer-bottom { border-top: 1px solid #2b2b2b; }
.b5-footer-bottom .b5-in { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--b5-muted); }
.b5-footer-bottom .b5-in div { display: flex; flex-wrap: wrap; gap: 16px; }
.b5-footer a:hover { color: #fff; }

@media (max-width: 560px) {
    .b5-op { grid-template-columns: 1fr; }
    .b5-aside { position: static; }
}

/* Споделяне като на оригиналния сайт (TagDiv style1): 40x40, радиус 2px, бели икони на цвета на мрежата */
.share-td { display: flex; flex-wrap: wrap; gap: 6px; }
.share-td-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; color: #fff; border: 0; padding: 0; cursor: pointer; }
.share-td-btn:hover { opacity: .8; color: #fff; }
.share-td-btn svg { display: block; }
.share-td-facebook { background: #516eab; }
.share-td-twitter { background: #29c5f6; }
.share-td-pinterest { background: #ca212a; }
.share-td-whatsapp { background: #7bbf6a; }
.share-td-more { background: #fff; color: #444; border: 1px solid #e9e9e9; }
.share-td-more:hover { color: #444; }
.share-td-more.is-done { color: #7bbf6a; }
