/**
 * Știrea deschisă (pilot v3): dialogul de peste feed și pagina individuală.
 * Scroll: un singur container (.tt-detail-scroll, flex:1, min-height:0),
 * acțiunile + taburile sticky în el, composerul în afara lui, jos.
 */

/* ===== Dialogul (non-modal, ca autentificarea și toasturile să rămână deasupra) ===== */
.tt-detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: #040507bf;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.tt-detail-backdrop.is-visible { opacity: 1; }
.tt-detail-backdrop[hidden] { display: none; }

.tt-topic-dialog {
    position: fixed;
    z-index: 1100;
    inset: 16px 0 auto;
    margin: 0 auto;
    width: min(760px, calc(100vw - 48px));
    height: min(920px, calc(var(--tt-visual-height) - 32px));
    max-height: calc(var(--tt-visual-height) - 32px);
    border: 1px solid #3b414d;
    border-radius: 22px;
    background: #111317;
    color: var(--tt-text);
    box-shadow: 0 40px 180px #000b;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0, 0, 0.2, 1);
}
.tt-topic-dialog.is-visible { opacity: 1; transform: none; }
.tt-topic-dialog:not([open]) { display: none; }

/* ===== Structura comună ===== */
.tt-topic-detail {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--tt-sans);
    --category-accent: #fa737b;
}

.tt-detail-header {
    padding: 11px 22px;
    min-height: 65px;
    background: #111317;
    border-bottom: 1px solid #2b303a;
    flex-shrink: 0;
}
.tt-detail-header .tt-icon-button {
    background: #1c2027;
    border: 1px solid #353c49;
    width: 38px;
    height: 38px;
}
.tt-detail-header .tt-icon-button::before {
    /* zona de apăsare de minimum 44 px */
    content: '';
    position: absolute;
    inset: -4px;
}
.tt-detail-close { position: relative; }

.tt-detail-brand {
    font-family: var(--tt-brand-font);
    font-size: 23px;
    letter-spacing: -1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #f0f0f3;
}
.tt-detail-brand > span { color: var(--tt-red); }
.tt-detail-brand small {
    font: 500 8px var(--tt-sans);
    letter-spacing: 1.15px;
    color: #868f9f;
    border-left: 1px solid #343b47;
    margin-left: 17px;
    padding-left: 17px;
}

.tt-detail-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 130px;
    scrollbar-width: thin;
    scrollbar-color: #586170 #15181e;
    background: #121418;
    padding: 0;
    outline: none;
}

/* Cardul vizual */
.tt-detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 90px;
    background: var(--tt-card-bg);
    min-height: 290px;
    display: flex;
    align-items: flex-end;
    margin: 0;
}
.tt-detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    z-index: -2;
    opacity: 0.78;
}
.tt-detail-hero img[hidden] { display: none; }
.tt-detail-hero.no-image {
    background:
        radial-gradient(ellipse at 28% 18%, color-mix(in srgb, var(--category-accent) 24%, transparent), transparent 62%),
        var(--tt-card-bg);
}
.tt-detail-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #14151800 0%, #14151866 28%, #141518e6 68%, #141518 100%);
}
.tt-detail-copy { padding: 25px 30px 27px; width: 100%; position: relative; }
/* Fundal închis sub text, indiferent de lungimea descrierii și de luminozitatea fotografiei */
.tt-detail-copy::before {
    content: '';
    position: absolute;
    inset: -56px 0 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #14151800 0%, #141518b0 46px, #141518e6 90px, #141518f2 100%);
}
.tt-detail-description { text-shadow: 0 1px 14px rgba(8, 9, 11, 0.55); }
.tt-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 13px;
}
.tt-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #ffffff32;
    padding: 6px 8px;
    border-radius: 5px;
    background: #0b0d1275;
    color: #f0f2f7;
}
.tt-detail-category::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--category-accent);
}
.tt-detail-category:empty { display: none; }
.tt-detail-scope {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 10px;
    color: #c0c6d1;
}
.tt-detail-scope .tt-ico,
.tt-detail-time .tt-ico { width: 12px; height: 12px; }
.tt-detail-description {
    margin: 0;
    font-size: 22px;
    line-height: 1.48;
    color: var(--tt-card-text);
    font-weight: 500;
    letter-spacing: -0.35px;
    max-width: 660px;
    text-wrap: pretty;
    overflow-wrap: anywhere;
}
.tt-detail-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: #aab3c3;
    margin-top: 15px;
    font-variant-numeric: tabular-nums;
}

/* Acțiunile + taburile rămân vizibile la derularea surselor */
.tt-detail-controls {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #14171df5;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 25px #0002;
}
.tt-detail-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 10px 19px 9px;
    gap: 8px;
    border-top: 1px solid #ffffff0c;
    border-bottom: 1px solid #ffffff0d;
}
.tt-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 58px;
    min-width: 0;
    padding: 7px 3px;
    border-radius: 9px;
    font-size: 10px;
    color: #a8b3c7;
    background: #ffffff03;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.tt-action:hover { background: #ffffff0b; color: #fff; }
.tt-action .tt-ico { width: 22px; height: 22px; }
.tt-action.liked { color: var(--tt-red); }
.tt-action.liked .tt-ico { fill: var(--tt-red); stroke: var(--tt-red); }
.tt-action.saved { color: #f1eee9; }
.tt-action.saved .tt-ico { fill: #f1eee9; stroke: #f1eee9; }
.tt-action.tt-image-action { color: #d5abc6; }
.tt-action.tt-image-action:hover,
.tt-action.tt-image-action.shared { color: var(--tt-red); }
.tt-action.tt-source-trigger.selected { color: #e9edf5; background: #ffffff07; }
.tt-action.loading { opacity: 0.6; pointer-events: none; }
.tt-action.loading .tt-ico { animation: tt-pulse 0.9s ease-in-out infinite; }
.tt-action-label {
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}
.tt-action-value {
    font-variant-numeric: tabular-nums;
    font-size: 10px;
    line-height: 1;
}
.tt-action-chip {
    position: absolute;
    top: 5px;
    left: calc(50% + 9px);
    min-width: 16px;
    padding: 0 4px;
    height: 15px;
    line-height: 15px;
    border-radius: 8px;
    background: #262b35;
    color: #c3ccdc;
    font-size: 8px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.tt-action-chip:empty { display: none; }

@keyframes tt-pulse { 50% { opacity: 0.4; } }
.like-bounce .tt-ico { animation: tt-like-bounce 0.6s ease; }
@keyframes tt-like-bounce { 30% { transform: scale(1.25); } 60% { transform: scale(0.92); } }
.save-pulse .tt-ico { animation: tt-like-bounce 0.4s ease; }

.tt-detail-tabs { padding: 0 25px; gap: 28px; min-height: 52px; border-bottom: 1px solid #343b48; }
.tt-detail-tabs > button { padding: 15px 1px; font-size: 12px; color: #a5b0c3; font-family: inherit; }
.tt-detail-tabs .tt-ico { width: 16px; height: 16px; }
.tt-tab-count {
    min-width: 22px;
    height: 19px;
    background: #2c323d;
    color: #c3ccdc;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.tt-detail-tabs .selected .tt-tab-count { background: #fa4d581c; color: #ff8d98; }

.tt-detail-body { padding: 20px 25px 29px; }
.tt-detail-panel[hidden] { display: none; }

.tt-detail-loading,
.tt-detail-message {
    text-align: center;
    color: #8e9fb9;
    font-size: 12px;
    padding: 30px 10px;
    line-height: 1.7;
}
.tt-detail-loading .tt-search-spinner { display: block; margin: 0 auto 12px; }
.tt-detail-message p { margin: 0 0 14px; }
.tt-empty-icon {
    width: 51px;
    height: 51px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #fa4d5814;
    border: 1px solid #fa4d582d;
    color: #ee8d9c;
    margin: 0 auto 16px;
}
.tt-empty-icon .tt-ico { width: 25px; height: 25px; }

/* ===== Surse ===== */
.tt-source-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8e9aaf;
    font-size: 10px;
    margin-bottom: 15px;
    gap: 10px;
}
.tt-source-info strong { color: #c9d1df; font-weight: 500; }
.tt-source-info > span { display: flex; align-items: center; gap: 6px; }
.tt-source-info .tt-ico { width: 12px; height: 12px; }

.tt-source-article {
    display: block;
    background: #1b1e25;
    border: 1px solid #343a47;
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 17px 18px 14px;
    box-shadow: 0 4px 15px #0001;
    transition: background 0.15s, border-color 0.15s;
    color: inherit;
    text-decoration: none;
}
.tt-source-article:hover { background: #20252e; border-color: #616d82; }
.tt-source-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.tt-source-avatar {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1px solid #ffffff15;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    background: #c5c7d1;
    color: #232631;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 1px 8px #0002;
}
.tt-source-avatar.has-logo { background: #f3f3f3; }
.tt-source-avatar img { width: 70%; height: 70%; object-fit: contain; }
.tt-source-publisher { display: block; min-width: 0; flex: 1; }
.tt-source-publisher strong { display: block; font-size: 11px; line-height: 1.4; color: #e5e9f1; font-weight: 600; }
.tt-source-publisher small { display: block; font-size: 9px; line-height: 1.4; color: #8694ac; margin-top: 3px; overflow-wrap: anywhere; }
.tt-source-relative {
    align-self: flex-start;
    white-space: nowrap;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    color: #a2aec3;
    padding-top: 4px;
    margin-left: 6px;
}
.tt-source-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: #dce2ed;
    letter-spacing: -0.1px;
}
.tt-source-article:hover .tt-source-title { color: #fff; }
.tt-source-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 15px;
    border-top: 1px solid #ffffff09;
    padding-top: 11px;
}
.tt-source-published {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8f9db6;
    font-size: 10px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}
.tt-source-published .tt-ico { width: 12px; height: 12px; }
.tt-source-open { display: flex; gap: 5px; align-items: center; font-size: 9px; color: #c7d0df; white-space: nowrap; }
.tt-source-open .tt-ico { width: 13px; height: 13px; }
.tt-source-end {
    font-size: 9px;
    line-height: 1.7;
    color: #7b8ca7;
    text-align: center;
    padding: 10px 0 0;
    margin: 0;
}
.tt-source-end i {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--tt-red);
    margin-right: 6px;
    vertical-align: middle;
}

/* ===== Comentarii ===== */
.tt-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    flex-shrink: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--avatar, #5e35b1) 30%, #1c1f26);
    border: 1px solid color-mix(in srgb, var(--avatar, #5e35b1) 60%, transparent);
    color: #f3f4f8;
    font-size: 10px;
    font-weight: 600;
}
.tt-comment {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 19px;
}
.tt-comment-main { min-width: 0; flex: 1; }
.tt-comment-bubble {
    background: #1c212b;
    border: 1px solid #394352;
    border-radius: 3px 13px 13px 13px;
    padding: 14px 15px 15px;
}
.tt-comment-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #e0e6f2;
    font-size: 11px;
    font-weight: 600;
}
.tt-comment-byline strong { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.tt-comment-byline time { color: #95a4bc; font-size: 9px; font-weight: 400; white-space: nowrap; }
.tt-comment-text {
    color: #c7d2e4;
    line-height: 1.75;
    font-size: 13px;
    margin-top: 9px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.tt-comment-text p { margin: 0; }
.tt-comment-date { color: #7f91ad; font-size: 9px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.tt-comment-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.tt-reaction,
.tt-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 9px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: none;
    color: #8e9fb9;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}
.tt-reaction { font-size: 13px; }
.tt-reaction:hover,
.tt-reply-btn:hover { background: #ffffff08; color: #dfe6f2; }
.tt-reaction.active { border-color: #fa4d5855; background: #fa4d5814; }
.tt-reaction-count { font-size: 10px; color: #a8b5c9; font-variant-numeric: tabular-nums; }
.tt-reply-btn .tt-ico { width: 14px; height: 14px; }
.tt-comment-replies { margin-top: 12px; }
.tt-comment.is-reply { margin-bottom: 12px; }
.tt-comment.is-reply .tt-avatar { width: 27px; height: 27px; font-size: 9px; }
.tt-comment.is-reply .tt-comment-bubble { padding: 11px 13px 12px; }

.tt-comment-empty {
    border: 1px dashed #3e485a;
    border-radius: 14px;
    padding: 32px 24px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0, #fa4d580b, transparent 70%), #181c24;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.tt-comment-empty .tt-empty-icon { margin-bottom: 16px; }
.tt-comment-empty h3 { margin: 0; font-weight: 500; font-size: 17px; letter-spacing: -0.3px; color: #e6ebf5; }
.tt-comment-empty p { font-size: 11px; line-height: 1.8; color: #8e9fb9; max-width: 275px; margin: 9px 0 0; }

/* ===== Composer (în afara zonei de scroll, fixat jos) ===== */
.tt-composer {
    flex-shrink: 0;
    padding: 14px 24px 12px;
    border-top: 1px solid #363e4c;
    background: #181c23;
    box-shadow: 0 -8px 25px #0002;
    margin: 0;
}
.tt-composer[hidden] { display: none; }
.tt-composer-row { display: flex; gap: 11px; align-items: flex-end; }
.tt-reader-avatar { width: 37px; height: 37px; margin-bottom: 3px; }
.tt-reader-avatar.is-guest { background: #2b313c; border-color: #505967; color: #d8e0ef; }
.tt-reader-avatar .tt-ico { width: 18px; height: 18px; }
.tt-composer textarea {
    flex: 1;
    min-width: 0;
    resize: none;
    min-height: 44px;
    max-height: 118px;
    overflow-y: hidden;
    background: #0e1219;
    border: 1px solid #454f61;
    border-radius: 11px;
    padding: 12px 14px;
    color: #e8eef8;
    font-size: 13px;
    line-height: 1.4;
    outline-offset: 2px;
    scrollbar-width: thin;
    font-family: inherit;
}
.tt-composer textarea::placeholder { color: #8494af; }
.tt-composer textarea:focus { border-color: #ce5964; outline: none; }
.tt-composer button[type="submit"] {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--tt-red);
    color: #101216;
    border: 0;
    cursor: pointer;
}
.tt-composer button[type="submit"]:disabled { background: #3b323d; color: #947886; cursor: default; }
.tt-composer button[type="submit"] .tt-ico { width: 20px; height: 20px; }
.tt-composer-login {
    flex: 1;
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid #454f61;
    background: #0e1219;
    color: #c9d3e4;
    font-size: 13px;
    text-align: left;
    padding: 0 14px;
    cursor: pointer;
    font-family: inherit;
}
.tt-composer-login:hover { border-color: #ce5964; color: #fff; }
.tt-composer-note {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #7f8ca3;
    font-size: 9px;
    line-height: 1.5;
    margin: 8px 0 0 48px;
    font-variant-numeric: tabular-nums;
}
.tt-composer-error { color: #ff8d98; }
.tt-reply-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px 48px;
    padding: 6px 6px 6px 12px;
    border-radius: 8px;
    background: #fa4d5812;
    color: #c9d3e4;
    font-size: 11px;
}
.tt-reply-context[hidden] { display: none; }
.tt-reply-context button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    background: none;
    color: #c9d3e4;
    cursor: pointer;
    border-radius: 50%;
}
.tt-reply-context .tt-ico { width: 15px; height: 15px; }

/* ===== Mobil ===== */
@media (max-width: 760px) {
    .tt-topic-dialog {
        width: 100%;
        top: calc(var(--tt-visual-top) + var(--tt-sheet-top));
        bottom: auto;
        left: 0;
        right: 0;
        height: calc(var(--tt-visual-height) - var(--tt-sheet-top));
        max-height: calc(var(--tt-visual-height) - var(--tt-sheet-top));
        border-radius: 21px 21px 0 0;
        border-bottom: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        transform: translateY(24px);
    }
    .tt-topic-dialog.is-visible { transform: none; }
    .tt-detail-header { min-height: 56px; padding: 5px 17px 7px; }
    .tt-detail-brand { font-size: 21px; }
    .tt-detail-brand small { display: none; }
    .tt-detail-header .tt-icon-button { width: 36px; height: 36px; }
    .tt-detail-header .tt-icon-button::before { inset: -5px; }
    .tt-detail-hero { padding-top: 56px; min-height: 260px; }
    .tt-detail-copy { padding: 20px 22px 23px; }
    .tt-detail-meta { gap: 10px; margin-bottom: 12px; }
    .tt-detail-category { font-size: 8px; padding: 5px 7px; }
    .tt-detail-scope { font-size: 9px; }
    .tt-detail-description { font-size: 17px; line-height: 1.58; letter-spacing: -0.2px; }
    .tt-detail-time { font-size: 9px; margin-top: 13px; }
    .tt-detail-actions { padding: 8px 12px 7px; gap: 5px; }
    .tt-action { min-height: 57px; padding: 7px 1px; gap: 7px; }
    .tt-action .tt-ico { width: 21px; height: 21px; }
    .tt-action-label { font-size: 8px; }
    .tt-detail-tabs { padding: 0 22px; gap: 24px; min-height: 49px; }
    .tt-detail-tabs > button { font-size: 12px; padding: 14px 0; gap: 7px; }
    .tt-detail-body { padding: 18px 17px 25px; }
    .tt-source-article { padding: 15px 14px 13px; border-radius: 11px; }
    .tt-source-head { gap: 9px; margin-bottom: 12px; }
    .tt-source-avatar { width: 32px; height: 32px; }
    .tt-source-publisher small { font-size: 8px; }
    .tt-source-relative { font-size: 8px; margin-left: 3px; }
    .tt-source-title { font-size: 13px; line-height: 1.65; }
    .tt-source-published { font-size: 9px; }
    .tt-source-open { font-size: 8px; }
    .tt-source-footer { margin-top: 12px; padding-top: 10px; }
    .tt-source-info { font-size: 9px; margin-bottom: 14px; }
    .tt-composer { padding: 12px 16px 10px; }
    .tt-composer-row { gap: 9px; }
    .tt-composer textarea { font-size: 16px; padding: 11px 12px; }
    .tt-reader-avatar { width: 32px; height: 32px; margin-bottom: 6px; }
    .tt-composer-note { margin-left: 41px; font-size: 8px; }
    .tt-reply-context { margin-left: 41px; }
    .tt-comment { gap: 10px; }
    .tt-avatar { width: 29px; height: 29px; font-size: 9px; }
    .tt-comment-bubble { padding: 12px 13px; }
    .tt-comment-byline { font-size: 10px; }
    .tt-comment-byline time { font-size: 8px; }
    .tt-comment-date { font-size: 8px; }
    .tt-comment-empty { padding: 27px 20px; }
}

@media (max-width: 370px) {
    .tt-detail-description { font-size: 16px; }
    .tt-detail-copy { padding-left: 20px; padding-right: 20px; }
    .tt-detail-actions { gap: 3px; padding-left: 10px; padding-right: 10px; }
    .tt-action-label { font-size: 7px; }
    .tt-detail-body { padding-left: 14px; padding-right: 14px; }
    .tt-source-published { font-size: 8px; }
    .tt-source-open, .tt-source-relative { font-size: 7px; }
}

/* ===== Pagina individuală a topicului (URL direct) ===== */
.tt-topic-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    padding-left: 38px;
    padding-right: 38px;
}
.tt-topic-page-panel {
    position: sticky;
    top: calc(var(--tt-header) + 0px);
    width: min(760px, 100%);
    height: calc(var(--tt-visual-height) - var(--tt-header) - 16px);
    border: 1px solid #3b414d;
    border-radius: 22px;
    background: #111317;
    margin-bottom: 16px;
}

@media (max-width: 760px) {
    body.tt-topic-body { overflow: hidden; }
    .tt-topic-page {
        padding: 0;
        min-height: 0;
    }
    .tt-topic-page-panel {
        position: fixed;
        z-index: 800;
        left: 0;
        right: 0;
        top: calc(var(--tt-visual-top) + var(--tt-header) + env(safe-area-inset-top, 0px));
        height: calc(var(--tt-visual-height) - var(--tt-header) - env(safe-area-inset-top, 0px) - var(--tt-mobile-nav) - env(safe-area-inset-bottom, 0px));
        width: 100%;
        border-radius: 0;
        border: 0;
        margin: 0;
    }
    .tt-topic-page-panel .tt-detail-header,
    .tt-topic-page-panel .tt-sheet-handle { display: none; }
    body.tt-topic-body.tt-keyboard-open .tt-topic-page-panel {
        height: calc(var(--tt-visual-height) - var(--tt-header) - env(safe-area-inset-top, 0px));
    }
}

/* ===== Lizibilitate: textele secundare au minimum 11 px (iPhone și ecrane mici) ===== */
.tt-detail-category { font-size: 10px; }
.tt-detail-scope,
.tt-detail-time { font-size: 12px; }
.tt-action-label { font-size: 10.5px; }
.tt-action-value { font-size: 12px; }
.tt-action-chip { font-size: 10px; height: 16px; line-height: 16px; }
.tt-tab-count { font-size: 11px; }
.tt-source-info { font-size: 12px; }
.tt-source-publisher strong { font-size: 13px; }
.tt-source-publisher small { font-size: 11px; }
.tt-source-relative { font-size: 11px; }
.tt-source-title { font-size: 15px; }
.tt-source-published { font-size: 12px; }
.tt-source-open { font-size: 11.5px; }
.tt-source-end { font-size: 11px; }
.tt-comment-byline { font-size: 13px; }
.tt-comment-byline time { font-size: 11px; }
.tt-comment-text { font-size: 14px; }
.tt-comment-date { font-size: 11px; }
.tt-reaction-count,
.tt-reply-btn { font-size: 12px; }
.tt-comment-empty p { font-size: 13px; }
.tt-composer-note { font-size: 11px; }
.tt-reply-context { font-size: 12px; }
.tt-detail-loading,
.tt-detail-message { font-size: 13px; }
@media (max-width: 760px) {
    .tt-detail-category { font-size: 10px; }
    .tt-detail-scope,
    .tt-detail-time { font-size: 12px; }
    .tt-action-label { font-size: 10.5px; }
    .tt-action-value { font-size: 12px; }
    .tt-source-info { font-size: 12px; }
    .tt-source-publisher strong { font-size: 13px; }
    .tt-source-publisher small { font-size: 11px; }
    .tt-source-relative { font-size: 11px; }
    .tt-source-title { font-size: 14.5px; }
    .tt-source-published { font-size: 12px; }
    .tt-source-open { font-size: 11.5px; }
    .tt-comment-byline { font-size: 13px; }
    .tt-comment-byline time { font-size: 11px; }
    .tt-comment-date { font-size: 11px; }
    .tt-composer-note { font-size: 11px; }
}
@media (max-width: 370px) {
    .tt-action-label { font-size: 10px; }
    .tt-source-published, .tt-source-open, .tt-source-relative { font-size: 11px; }
}
