/* ═══════════════════════════════════════════
   BYTE TEMPLATE — Homepage CSS
   Tech/Verge/TechCrunch inspired
   Prefix: bt-
   ═══════════════════════════════════════════ */

/* ── BREAKING TICKER ── */
.bt-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0a0f1a, #111827);
    padding: 0;
    overflow: hidden;
    height: 38px;
}
.bt-ticker__badge {
    flex-shrink: 0;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    background: var(--bt-accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.bt-ticker__wrap { flex: 1; overflow: hidden; position: relative; }
.bt-ticker__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: btTickerScroll 45s linear infinite;
    gap: 24px;
}
.bt-ticker__item { color: rgba(255,255,255,0.85); font-size: 0.82rem; transition: color 0.2s; }
.bt-ticker__item:hover { color: var(--bt-accent); }
.bt-ticker__sep { color: var(--bt-accent); font-size: 0.6rem; }
@keyframes btTickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
[dir="rtl"] @keyframes btTickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* ── STORIES ── */
.bt-stories { max-width: var(--bt-max-w); margin: 16px auto 0; padding: 0 20px; }
@media (max-width: 768px) { .bt-stories { padding: 0; } }

/* ── HERO SECTION ── */
.bt-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2px;
    max-width: var(--bt-max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.bt-hero__main {
    position: relative;
    border-radius: var(--bt-radius-lg);
    overflow: hidden;
    min-height: 420px;
}
.bt-hero__main-link {
    display: block;
    height: 100%;
}
.bt-hero__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.bt-hero__main:hover .bt-hero__main-img { transform: scale(1.03); }
.bt-hero__main-overlay {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    padding: 40px 28px 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: #fff;
}
.bt-hero__main-cat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-block-end: 10px;
    background: var(--cat-color, var(--bt-accent));
    color: var(--cat-text, #000);
}
.bt-hero__main-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-block-end: 8px;
}
.bt-hero__main-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    margin-block-end: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bt-hero__main-meta { font-size: 0.8rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; }

/* Hero side articles */
.bt-hero__side {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bt-hero__side-card {
    flex: 1;
    position: relative;
    border-radius: var(--bt-radius);
    overflow: hidden;
}
.bt-hero__side-link {
    display: flex;
    height: 100%;
    background: var(--color-eee);
}
.bt-hero__side-img {
    width: 45%;
    object-fit: cover;
    min-height: 120px;
}
.bt-hero__side-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bt-hero__side-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cat-text, var(--bt-accent));
    margin-block-end: 6px;
}
.bt-hero__side-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bt-hero__side-time { font-size: 0.75rem; color: var(--color-999); margin-block-start: auto; padding-block-start: 6px; }

@media (max-width: 768px) {
    .bt-hero { grid-template-columns: 1fr; padding: 0; }
    .bt-hero__main { min-height: 260px; border-radius: 0; }
    .bt-hero__side { flex-direction: row; overflow-x: auto; }
    .bt-hero__side-card { min-width: 260px; border-radius: 0; }
}

/* ── SECTION HEADERS ── */
.bt-section {
    max-width: var(--bt-max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.bt-section__title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-block-end: 10px;
    margin-block: 28px 16px;
    border-block-end: 3px solid var(--bt-accent);
    display: inline-block;
}
.bt-section__title a { color: inherit; }
.bt-section__title a:hover { color: var(--bt-accent); }

/* ── ARTICLE GRID ── */
.bt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bt-card {
    background: var(--color-fff);
    border: 1px solid var(--color-eee);
    border-radius: var(--bt-radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.bt-card:hover { box-shadow: 0 8px 24px rgba(0,208,132,0.1); transform: translateY(-2px); }
.bt-card__link { display: block; }
.bt-card__fig { overflow: hidden; aspect-ratio: 16/10; }
.bt-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.bt-card:hover .bt-card__img { transform: scale(1.05); }
.bt-card__body { padding: 14px; }
.bt-card__cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cat-text, var(--bt-accent));
    margin-block-end: 6px;
    display: inline-block;
}
.bt-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bt-card__time { font-size: 0.75rem; color: var(--color-999); margin-block-start: 8px; display: block; }

@media (max-width: 768px) {
    .bt-grid { grid-template-columns: 1fr; }
    .bt-section { padding: 0 12px; }
}
@media (min-width: 481px) and (max-width: 768px) {
    .bt-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── SHORTS ── */
.bt-shorts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}
.bt-shorts__card {
    background: var(--color-eee);
    border-radius: var(--bt-radius);
    overflow: hidden;
    transition: transform 0.2s;
}
.bt-shorts__card:hover { transform: translateY(-3px); }
.bt-shorts__thumb {
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: #111;
}
.bt-shorts__thumb img { width: 100%; height: 100%; object-fit: cover; }
.bt-shorts__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bt-shorts__play::after {
    content: '';
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,208,132,0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}
.bt-shorts__title {
    padding: 8px 10px 4px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bt-shorts__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px 8px;
    font-size: 0.72rem;
    color: var(--color-999);
}
.bt-shorts__meta svg { width: 12px; height: 12px; }

/* ── CATEGORY BLOCKS ── */
.bt-cat-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bt-cat-block__featured { border-radius: var(--bt-radius); overflow: hidden; }
.bt-cat-block__featured a { display: block; }
.bt-cat-block__feat-fig {
    overflow: hidden;
    aspect-ratio: 16/10;
    border-radius: var(--bt-radius);
}
.bt-cat-block__feat-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.bt-cat-block__featured:hover .bt-cat-block__feat-fig img { transform: scale(1.05); }
.bt-cat-block__feat-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-block-start: 10px;
}
.bt-cat-block__feat-time { font-size: 0.75rem; color: var(--color-999); margin-block-start: 4px; display: block; }

.bt-cat-block__list { display: flex; flex-direction: column; gap: 12px; }
.bt-cat-block__item {
    display: flex;
    gap: 12px;
    padding-block-end: 12px;
    border-block-end: 1px solid var(--color-eee);
    transition: color 0.2s;
}
.bt-cat-block__item:last-child { border: none; padding: 0; }
.bt-cat-block__item:hover .bt-cat-block__item-title { color: var(--bt-accent); }
.bt-cat-block__item-img { width: 100px; height: 68px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.bt-cat-block__item-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.bt-cat-block__item-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.bt-cat-block__item-time { font-size: 0.72rem; color: var(--color-999); margin-block-start: 4px; }

@media (max-width: 768px) {
    .bt-cat-block { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   LISTING PAGES (category, author, search, page)
   All listings share .bt-layout + .bt-grid + .bt-card from home.
   ═══════════════════════════════════════════ */

/* ── BREADCRUMB ── */
.bt-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--color-555); margin: 24px 0 20px; letter-spacing: 0.02em; font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; }
.bt-breadcrumb a { color: var(--color-555); text-decoration: none; transition: color 0.15s; display: inline-flex; align-items: center; gap: 4px; }
.bt-breadcrumb a:hover { color: var(--bt-accent); }
.bt-breadcrumb a:last-child { color: var(--color-000); font-weight: 600; }
.bt-breadcrumb a .icon { width: 12px; height: 12px; }
.bt-breadcrumb__sep { color: var(--color-999); font-size: 10px; }

/* ── CATEGORY HEADER ── */
.bt-cat-head { border-block-start: 2px solid var(--cat-accent, var(--bt-accent)); border-block-end: 1px solid var(--color-eee); padding: 22px 0 20px; margin-block-end: 28px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.bt-cat-head__body { min-width: 0; }
.bt-cat-head__prompt { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bt-accent); margin-block-end: 8px; font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; }
.bt-cat-head__title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 900; line-height: 1.15; color: var(--color-000); letter-spacing: -0.02em; margin: 0 0 8px; }
.bt-cat-head__desc { font-size: 14px; color: var(--color-555); line-height: 1.55; margin: 0; max-width: 640px; }
.bt-cat-head__follow { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--bt-accent); color: #000; border: 1px solid var(--bt-accent); border-radius: var(--bt-radius); font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; font-family: inherit; }
.bt-cat-head__follow:hover { background: transparent; color: var(--bt-accent); transform: translateY(-1px); }
.bt-cat-head__follow .icon { width: 16px; height: 16px; }

/* ── FEATURED CARD (first article in listings) ── */
.bt-cat-feat { margin-block-end: 32px; }
.bt-cat-feat__link { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; text-decoration: none; color: var(--color-000); align-items: center; }
.bt-cat-feat__fig { margin: 0; overflow: hidden; border-radius: var(--bt-radius); aspect-ratio: 16 / 10; background: var(--color-eee); }
.bt-cat-feat__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.bt-cat-feat__link:hover .bt-cat-feat__img { transform: scale(1.04); }
.bt-cat-feat__body { display: flex; flex-direction: column; gap: 10px; }
.bt-cat-feat__cat { display: inline-flex; align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #000; background: var(--bt-accent); padding: 4px 10px; border-radius: 3px; font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; }
.bt-cat-feat__title { font-size: clamp(1.25rem, 2.1vw, 1.7rem); font-weight: 800; line-height: 1.22; color: var(--color-000); letter-spacing: -0.015em; }
.bt-cat-feat__link:hover .bt-cat-feat__title { color: var(--bt-accent); }
.bt-cat-feat__sub { font-size: 14px; line-height: 1.55; color: var(--color-555); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bt-cat-feat__meta { font-size: 12px; color: var(--color-555); display: flex; align-items: center; gap: 6px; margin-block-start: 4px; }
.bt-cat-feat__author { font-weight: 600; color: var(--color-333); }
.bt-cat-feat__sep { color: var(--color-999); }

/* ── LISTING GRID MODIFIER — richer layout than homepage grid ── */
.bt-grid--listing { margin-block-end: 32px; }
.bt-grid--listing:empty { display: none; }
.bt-grid--listing .bt-card__body { padding: 16px; }
.bt-grid--listing .bt-card__sub { font-size: 0.82rem; color: var(--color-555); line-height: 1.45; margin-block-start: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-grid--listing .bt-card__meta { display: flex; gap: 6px; font-size: 0.72rem; color: var(--color-999); margin-block-start: 10px; }
.bt-grid--listing .bt-card__sep { color: var(--color-999); }

/* ── EMPTY STATE ── */
.bt-empty { padding: 56px 20px; text-align: center; background: var(--color-eee); border-radius: var(--bt-radius); color: var(--color-555); font-size: 14px; border: 1px dashed rgba(128,128,128,0.25); }
.bt-empty p { margin: 0; }
.bt-empty::before { content: '>_'; display: block; font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--bt-accent); font-weight: 700; margin-block-end: 6px; font-size: 1.1rem; }

@media (max-width: 768px) {
    .bt-cat-head { grid-template-columns: 1fr; }
    .bt-cat-head__follow { justify-self: start; }
    .bt-cat-feat__link { grid-template-columns: 1fr; gap: 14px; }
}

/* ═══════════════════════════════════════════
   AUTHOR PAGE
   ═══════════════════════════════════════════ */
.bt-author-head { display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: start; padding: 32px 0 26px; margin-block-end: 20px; border-block-end: 1px solid var(--color-eee); }
.bt-author-head__avatar-wrap { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; border: 3px solid var(--bt-accent); background: var(--color-eee); box-shadow: 0 0 0 1px var(--color-eee), 0 6px 18px rgba(0,0,0,0.08); }
.bt-author-head__avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.bt-author-head__body { min-width: 0; }
.bt-author-head__role { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bt-accent); background: var(--bt-accent-soft); padding: 3px 10px; border-radius: 3px; margin-block-end: 10px; font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; }
.bt-author-head__name { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 900; color: var(--color-000); line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
.bt-author-head__bio { font-size: 14px; color: var(--color-555); line-height: 1.55; margin: 0 0 16px; max-width: 640px; }
.bt-author-head__stats { display: flex; gap: 28px; margin-block-end: 18px; }
.bt-author-head__stat { display: flex; flex-direction: column; align-items: flex-start; background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; transition: opacity 0.15s; }
.bt-author-head__stat:hover { opacity: 0.75; }
.bt-author-head__stat strong { font-size: 1.3rem; font-weight: 900; color: var(--color-000); line-height: 1; }
.bt-author-head__stat span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-555); margin-block-start: 4px; }
.bt-author-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.bt-author-head__follow { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--bt-accent); color: #000; border: 1px solid var(--bt-accent); border-radius: var(--bt-radius); font-size: 13px; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.15s; font-family: inherit; }
.bt-author-head__follow:hover { background: transparent; color: var(--bt-accent); transform: translateY(-1px); }
.bt-author-head__follow .icon { width: 14px; height: 14px; }
.bt-author-head__links { display: flex; gap: 6px; }
.bt-author-head__link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-eee); color: var(--color-555); transition: background 0.15s, color 0.15s; }
.bt-author-head__link:hover { background: var(--bt-accent); color: #000; }
.bt-author-head__link .icon { width: 16px; height: 16px; }

@media (max-width: 640px) {
    .bt-author-head { grid-template-columns: 1fr; gap: 16px; text-align: start; }
    .bt-author-head__avatar-wrap { width: 96px; height: 96px; }
}

/* ═══════════════════════════════════════════
   TABS (author + search)
   ═══════════════════════════════════════════ */
.bt-tabs { display: flex; gap: 0; border-block-end: 1px solid var(--color-eee); margin-block-end: 24px; overflow-x: auto; scrollbar-width: none; }
.bt-tabs::-webkit-scrollbar { display: none; }
.bt-tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: transparent; border: 0; border-block-end: 2px solid transparent; font-size: 13px; font-weight: 600; color: var(--color-555); cursor: pointer; font-family: inherit; transition: color 0.15s, border-color 0.15s, background 0.15s; white-space: nowrap; margin-block-end: -1px; }
.bt-tab:hover { color: var(--color-000); background: var(--bt-accent-soft); }
.bt-tab.active { color: var(--bt-accent); border-block-end-color: var(--bt-accent); }
.bt-tab .icon { width: 14px; height: 14px; }
.bt-tab__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 0 7px; height: 18px; font-size: 10px; font-weight: 700; background: var(--bt-accent-soft); color: var(--bt-accent); border-radius: 9px; margin-inline-start: 2px; }
.bt-tab.active .bt-tab__count { background: var(--bt-accent); color: #000; }

.author-view-content { min-height: 120px; }

/* ═══════════════════════════════════════════
   COMMENTS LIST (author page)
   ═══════════════════════════════════════════ */
.bt-comments { display: flex; flex-direction: column; gap: 12px; }
.bt-comment-card { background: var(--color-fff); border: 1px solid var(--color-eee); border-inline-start: 3px solid var(--bt-accent); border-radius: var(--bt-radius); padding: 16px 18px; }
.bt-comment-card__content { font-size: 14px; line-height: 1.55; color: var(--color-333); margin-block-end: 10px; }
.bt-comment-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--color-999); }
.bt-comment-card__date { display: inline-flex; align-items: center; gap: 4px; }
.bt-comment-card__date .icon { width: 12px; height: 12px; }
.bt-comment-card__sep { color: var(--color-999); }
.bt-comment-card__link { display: inline-flex; align-items: center; gap: 4px; color: var(--color-555); text-decoration: none; transition: color 0.15s; }
.bt-comment-card__link:hover { color: var(--bt-accent); }
.bt-comment-card__link .icon { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════
   SHORTS GRID (author + search tabs)
   ═══════════════════════════════════════════ */
.bt-shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.bt-shorts-grid .bt-shorts__card { background: var(--color-eee); border-radius: var(--bt-radius); overflow: hidden; display: block; transition: transform 0.2s; text-decoration: none; color: inherit; }
.bt-shorts-grid .bt-shorts__card:hover { transform: translateY(-3px); }
.bt-shorts-grid .bt-shorts__thumb { position: relative; aspect-ratio: 9/16; overflow: hidden; background: #111; }
.bt-shorts-grid .bt-shorts__img { width: 100%; height: 100%; object-fit: cover; }
.bt-shorts-grid .bt-shorts__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0.85; pointer-events: none; }
.bt-shorts-grid .bt-shorts__play .icon { width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.bt-shorts-grid .bt-shorts__overlay { position: absolute; inset-block-end: 8px; inset-inline-start: 8px; inset-inline-end: 8px; display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.bt-shorts-grid .bt-shorts__overlay .icon { width: 12px; height: 12px; vertical-align: -2px; margin-inline-end: 2px; }
.bt-shorts-grid .bt-shorts__body { padding: 10px 12px; }
.bt-shorts-grid .bt-shorts__title { font-size: 0.85rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-shorts-grid .bt-shorts__meta { font-size: 0.72rem; color: var(--color-999); margin-block-start: 4px; display: block; }

/* ═══════════════════════════════════════════
   USER CARDS (followers / following)
   ═══════════════════════════════════════════ */
.bt-users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bt-user-card { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--color-fff); border: 1px solid var(--color-eee); border-radius: var(--bt-radius); transition: border-color 0.15s, box-shadow 0.15s; }
.bt-user-card:hover { border-color: var(--bt-accent); box-shadow: 0 4px 12px rgba(0, 208, 132, 0.12); }
.bt-user-card__link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.bt-user-card__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--color-eee); }
.bt-user-card__info { min-width: 0; flex: 1; }
.bt-user-card__name { font-size: 14px; font-weight: 700; color: var(--color-000); margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-user-card__username { font-size: 12px; color: var(--color-555); margin: 0 0 3px; }
.bt-user-card__bio { font-size: 12px; color: var(--color-555); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bt-user-card__action { padding: 7px 14px; background: var(--bt-accent); color: #000; border: 1px solid var(--bt-accent); border-radius: var(--bt-radius); font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s; flex-shrink: 0; }
.bt-user-card__action:hover { background: transparent; color: var(--bt-accent); }

/* ═══════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════ */
.bt-search-form { background: var(--color-fff); border: 1px solid var(--color-eee); border-radius: var(--bt-radius-lg); padding: 20px; margin: 16px 0 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.bt-search-form__main { display: flex; align-items: center; gap: 10px; border: 2px solid var(--bt-accent); border-radius: 999px; padding: 4px 6px 4px 16px; background: var(--color-fff); transition: box-shadow 0.2s; }
.bt-search-form__main:focus-within { box-shadow: 0 0 0 3px var(--bt-accent-dim); }
.bt-search-form__icon { color: var(--bt-accent); flex-shrink: 0; }
.bt-search-form__icon .icon { width: 18px; height: 18px; }
.bt-search-form__input { flex: 1; min-width: 0; padding: 12px 4px; background: transparent; border: 0; outline: 0; font-size: 15px; font-family: inherit; color: var(--color-000); }
.bt-search-form__input::placeholder { color: var(--color-999); }
.bt-search-form__btn { padding: 10px 22px; background: var(--bt-accent); color: #000; border: 0; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background 0.15s, transform 0.15s; white-space: nowrap; }
.bt-search-form__btn:hover { background: #00e892; transform: translateY(-1px); }
.bt-search-form__filters { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 14px; }
.bt-search-form__field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.bt-search-form__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bt-accent); font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; }
.bt-search-form__select { padding: 8px 12px; background: var(--color-fff); border: 1px solid var(--color-eee); border-radius: var(--bt-radius); font-size: 13px; font-family: inherit; color: var(--color-000); cursor: pointer; transition: border-color 0.15s; }
.bt-search-form__select:hover,
.bt-search-form__select:focus { border-color: var(--bt-accent); outline: 0; }

.bt-search-head { margin-block-end: 20px; display: flex; align-items: baseline; gap: 10px; }
.bt-search-head__prompt { color: var(--bt-accent); font-weight: 800; font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; }
.bt-search-head__title { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; color: var(--color-000); margin: 0; }
.bt-search-head__title #LA7Query { color: var(--bt-accent); }

@media (max-width: 640px) {
    .bt-search-form__main { flex-wrap: wrap; }
    .bt-search-form__btn { width: 100%; border-radius: var(--bt-radius); margin-block-start: 6px; }
}

/* ═══════════════════════════════════════════
   PAGE (static DB pages + errors + breaking)
   ═══════════════════════════════════════════ */
.bt-page-head { margin: 20px 0 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bt-page-head__prompt { color: var(--bt-accent); font-weight: 800; font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; }
.bt-page-head__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--color-000); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.bt-page-thumb { margin: 0 0 24px; border-radius: var(--bt-radius); overflow: hidden; background: var(--color-eee); }
.bt-page-thumb img { width: 100%; height: auto; display: block; }
.bt-page-content { max-width: 760px; margin: 0 auto; padding-block-end: 40px; color: var(--color-333); }
@media (max-width: 640px) {
    .bt-page-content.rich_text:not([data-type="front"]) { padding: 0; }
}

/* ── BREAKING LIST ── */
.bt-breaking-list { display: flex; flex-direction: column; gap: 12px; margin-block-end: 40px; }
.bt-breaking-item { background: var(--color-fff); border: 1px solid var(--color-eee); border-inline-start: 3px solid var(--bt-accent); border-radius: var(--bt-radius); padding: 16px 18px; position: relative; }
.bt-breaking-item__time { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bt-accent); margin-block-end: 6px; font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; }
.bt-breaking-item__title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--color-000); margin: 0 0 8px; padding-inline-end: 30px; }
.bt-breaking-item__content { font-size: 14px; line-height: 1.55; color: var(--color-555); display: none; }
.bt-breaking-item__content.open { display: block; margin-block-start: 6px; }
.bt-breaking-item__icon-wrap { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; cursor: pointer; }
.bt-breaking-item__icon { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-eee); color: var(--color-555); transition: transform 0.2s, background 0.15s, color 0.15s; }
.bt-breaking-item__icon:hover { background: var(--bt-accent); color: #000; }
.bt-breaking-item__icon .icon { width: 14px; height: 14px; }
.bt-breaking-item__icon-wrap.open .bt-breaking-item__icon { transform: rotate(180deg); }

/* ── ERROR PAGE ── */
.bt-error { padding: 60px 20px 80px; text-align: center; max-width: 560px; margin: 20px auto 40px; }
.bt-error__code { font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(5rem, 12vw, 8rem); font-weight: 900; line-height: 1; color: var(--bt-accent); letter-spacing: -0.04em; margin-block-end: 12px; position: relative; display: inline-block; }
.bt-error__code::before { content: '>_'; display: block; font-size: 1.2rem; color: var(--color-555); letter-spacing: 0; font-weight: 700; margin-block-end: 4px; }
.bt-error__title { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 800; color: var(--color-000); margin: 0 0 10px; letter-spacing: -0.01em; }
.bt-error__sub { font-size: 14px; line-height: 1.6; color: var(--color-555); margin: 0 0 28px; }
.bt-error__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bt-error__btn { padding: 11px 22px; background: transparent; color: var(--color-000); border: 1px solid var(--color-eee); border-radius: var(--bt-radius); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.bt-error__btn:hover { border-color: var(--bt-accent); color: var(--bt-accent); }
.bt-error__btn--primary { background: var(--bt-accent); color: #000; border-color: var(--bt-accent); }
.bt-error__btn--primary:hover { background: #00e892; color: #000; }

.bt-page-wrap { min-height: 50vh; }

@media (max-width: 768px) {
    .bt-cat-feat { margin-block-end: 22px; }
    .bt-breadcrumb { margin: 16px 0 14px; }
}
