/* newson.tr — haber akışı */
:root {
    --bg: #0b0d11;
    --surface: #151821;
    --text: #f3f4f6;
    --text-soft: #d5d8de;
    --muted: #9aa0ab;
    --accent: #e0263f;
    --chrome: rgba(255, 255, 255, .12);
    --chrome-border: rgba(255, 255, 255, .18);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --controls-space: calc(104px + var(--safe-bottom));
    --text-scale: 1;
    /* kontroller (alt butonlar, masaüstünde üst çubuk) */
    --ctrl-bg: rgba(20, 22, 28, .55);
    --ctrl-hover: rgba(40, 44, 54, .7);
    --ctrl-fg: #fff;
    --progress-track: rgba(255, 255, 255, .12);
    --noimg-from: #2a1a22;
    color-scheme: dark;
}

/* Açık tema */
:root[data-theme="light"] {
    --bg: #f5f5f2;
    --surface: #e6e6e1;
    --text: #15171b;
    --text-soft: #2f333a;
    --muted: #666c76;
    --accent: #d11a33;
    --chrome: rgba(0, 0, 0, .05);
    --chrome-border: rgba(0, 0, 0, .14);
    --ctrl-bg: rgba(255, 255, 255, .8);
    --ctrl-hover: #fff;
    --ctrl-fg: #15171b;
    --progress-track: rgba(0, 0, 0, .1);
    --noimg-from: #f1d9de;
    color-scheme: light;
}

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

html, body { margin: 0; height: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

a { color: var(--accent); }

/* ---------------------------------------------------------------- uygulama iskeleti */
.app {
    position: fixed;
    inset: 0;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg);
}

.stage {
    position: absolute;
    inset: 0;
    touch-action: pan-y;      /* yatay hareket JS'e (swipe), dikey kaydırma özete */
    user-select: none;
    -webkit-user-select: none;
}

/* ---------------------------------------------------------------- kart */
/*
 * Telefon: görsel (üstte, kenardan kenara) → başlık → metin.
 * Geniş ekran: üstte tam genişlik başlık; altında solda görsel, sağda metin.
 * HTML sırası: head, main(media, body). Telefonda main "display: contents" ile açılıp order ile dizilir.
 */
.card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 16px var(--controls-space);
    background: var(--bg);
    will-change: transform, opacity;
}

.card-head {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.card-main { display: contents; }

.card-media {
    order: 1;
    position: relative;
    flex-shrink: 0;
    width: calc(100% + 32px);
    margin: 0 -16px;
    aspect-ratio: 16 / 9;
    max-height: 38vh;
    overflow: hidden;
    background: var(--surface);
}
/* telefonda üst çubuk görselin üstünde: altta metne yumuşak geçiş */
.card-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}
.card-media img,
.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
}

/* Düşük çözünürlüklü görsel: sündürülmez; bulanık kopya arka planda, net görsel orantılı ortada */
.card-media.is-lowres { background: #000; }
.card-media.is-lowres .media-backdrop {
    position: absolute;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    filter: blur(24px) brightness(.55);
    transform: scale(1.1);
}
.card-media.is-lowres img:not(.media-backdrop) { position: relative; object-fit: contain; }

.card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(120% 90% at 20% 10%, var(--noimg-from) 0%, var(--surface) 55%, var(--bg) 100%);
}
.card-noimg span {
    font-size: clamp(24px, 5vw, 48px);
    font-weight: 800;
    color: color-mix(in srgb, var(--text) 16%, transparent);
    letter-spacing: -.02em;
    text-align: center;
    padding: 0 24px;
}

.card-body {
    order: 3;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: calc(14px * var(--text-scale));
    color: var(--muted);
}
.card-logo {
    width: var(--ui-logo-m, 24px);
    height: var(--ui-logo-m, 24px);
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}
.card-source { color: var(--text); font-weight: 700; }
.card-date,
.card-ago { font-size: .82em; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-ago::before { content: "·"; margin-right: 6px; }
.card-ago:empty { display: none; }
.card-category {
    margin-left: 2px;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--chrome-border);
    font-size: .85em;
}

.card-title {
    margin: 0;
    font-size: calc(clamp(20px, 5.4vw, 38px) * var(--text-scale) * var(--ui-title-m, 1));
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -.015em;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-summary {
    margin: 0;
    font-size: calc(clamp(17px, 4.5vw, 24px) * var(--text-scale) * var(--ui-summary-m, 1));
    line-height: 1.6;
    color: var(--text-soft);
    overflow-y: auto;
    min-height: 0;
    flex: 0 1 auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    /* kesilen satır yerine yumuşak solma: devamı kaydırılabilir */
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.6em), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 1.6em), transparent);
    padding-bottom: .8em;
}
.card-summary::-webkit-scrollbar { display: none; }

/* uzun özet: soluk ince kaydırma çubuğu + küçük "devamını kaydır" düğmesi (JS: setupSummaryScroll) */
.summary-wrap { position: relative; display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto; }
.summary-wrap .card-summary { flex: 0 1 auto; }
.summary-wrap.has-more .card-summary {
    padding-right: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 128, 128, .38) transparent;
}
.summary-wrap.has-more .card-summary::-webkit-scrollbar { display: block; width: 4px; }
.summary-wrap.has-more .card-summary::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, .38); border-radius: 4px; }
.summary-wrap.has-more .card-summary::-webkit-scrollbar-track { background: transparent; }
.summary-more {
    position: absolute;
    right: 10px;
    bottom: 2px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--chrome-border);
    background: var(--bg);
    color: var(--muted);
    opacity: .78;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.summary-wrap.has-more .summary-more { display: inline-flex; }
.summary-wrap.at-end .summary-more { display: none; }
.summary-more:hover, .summary-more:focus-visible { opacity: 1; color: var(--text); }
.summary-more .ico-stop { display: none; }
.summary-more[aria-pressed="true"] { opacity: 1; color: var(--accent); }
.summary-more[aria-pressed="true"] .ico-down { display: none; }
.summary-more[aria-pressed="true"] .ico-stop { display: block; }
.summary-wrap.at-end .card-summary { -webkit-mask-image: none; mask-image: none; }

.card-link {
    align-self: flex-start;
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--chrome-border);
    background: var(--chrome);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}
.card-link:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.card-link-source { font-weight: 800; }

/* ---- kart eylemleri: kaynağa git / burada oku ---- */
.action-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--chrome-border);
    background: var(--chrome);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color .15s ease;
}
.action-btn:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.action-wa { color: #25d366; }

/* ⋯ menüsü: ilgilenmiyorum / kaynağı gizle */
.more { position: relative; display: inline-flex; }
.more-menu {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    min-width: 190px;
    padding: 6px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--chrome-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
    animation: share-up .18s ease-out;
}
.more-menu[hidden] { display: none; }
.more-item {
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.more-item:hover { background: var(--chrome); }

/* genel paylaş: yukarı doğru açılan ikon menüsü */
.share { position: relative; display: inline-flex; }
.share-menu {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--chrome-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
    animation: share-up .18s ease-out;
}
.share-menu[hidden] { display: none; }
@keyframes share-up {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.share-item {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    color: #fff;
}
.share-item[data-share="facebook"] { background: #1877f2; }
.share-item[data-share="instagram"] { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-item[data-share="x"] { background: #000; }
.share-item[data-share="linkedin"] { background: #0a66c2; }
.share-item[data-share="copy"] { background: var(--chrome); color: var(--text); border: 1px solid var(--chrome-border); }
.share-item:hover { filter: brightness(1.1); }
@media (prefers-reduced-motion: reduce) { .share-menu { animation: none; } }

/* ---- "Burada oku" modalı ---- */
.reader {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.reader[hidden] { display: none; }
.reader-box {
    width: min(1100px, 94vw);
    height: 92dvh;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.reader-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 16px;
    border-bottom: 1px solid var(--chrome-border);
    background: var(--bg);
}
.reader-back {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--chrome-border);
    background: var(--chrome);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.reader-back[hidden] { display: none; }
.reader-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; flex-shrink: 0; }
.reader-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reader-source { font-size: 13px; font-weight: 700; color: var(--accent); }
.reader-title {
    font-size: 17px;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.reader-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    background: var(--chrome);
    color: var(--text);
    cursor: pointer;
}
.reader-icon:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.reader-body { position: relative; flex: 1; min-height: 0; background: #fff; }
.reader-frame { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.reader-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 15px;
    pointer-events: none;
}
.reader-blocked {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 24px;
    text-align: center;
    background: var(--surface);
    color: var(--text);
    font-size: 17px;
}
.reader-blocked[hidden], .reader-loading[hidden], .reader-frame[hidden], .reader-icon[hidden] { display: none; }
.reader-open {
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.is-reading .controls, .is-reading .topbar { visibility: hidden; }
@media (max-width: 699px) {
    .reader-box { width: 100%; height: 100%; border-radius: 0; }
    .reader-head { padding-top: calc(10px + var(--safe-top)); }
}

/* ---- aynı olay, diğer kaynaklar ---- */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex-shrink: 0; }
.others-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 1px dashed var(--chrome-border);
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.others-toggle:hover { background: var(--chrome); }
.others-logos { display: inline-flex; }
.others-logos img,
.others-initial {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 2px solid var(--bg);
    margin-left: -6px;
}
.others-logos > :first-child { margin-left: 0; }
.others-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #15171b;
    background: #d5d8de;
}

/* pasif "burada oku" (yayıncı iframe'e izin vermiyor) */
.action-btn.is-disabled, .story-read.is-disabled { opacity: .35; cursor: not-allowed; }

/* "+N kaynak daha" modal listesi (kendi verimiz) */
.reader-list {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--surface);
    color: var(--text);
}
.reader-list[hidden] { display: none; }
/* liste modunda modal içeriğe göre yükselir */
.reader.is-list .reader-box { height: auto; max-height: 92dvh; }
.reader.is-list .reader-body { flex: 0 1 auto; overflow-y: auto; background: var(--surface); }
.reader.is-list .reader-list { position: static; }
.story-item {
    display: flex;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--chrome-border);
}
.story-img { width: 220px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: var(--surface); }
.story-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.story-title { margin: 0; font-size: 20px; line-height: 1.3; }
.story-summary { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-soft); }
.story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.story-actions .reader-open { padding: 9px 16px; font-size: 14px; }
.story-read {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--chrome-border);
    background: var(--chrome);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 699px) {
    .story-item { flex-direction: column; }
    .story-img { width: 100%; }
}

/* akış sonu kartı */
.card-end { display: flex; align-items: center; justify-content: center; }
.end-inner {
    max-width: 560px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    align-items: center;
}
.card-end .card-link { align-self: center; }

/* ---------------------------------------------------------------- üst çubuk */
.progress {
    position: absolute;
    top: var(--safe-top);
    left: 0;
    right: 0;
    height: 3px;
    background: var(--progress-track);
    z-index: 6;
}
.progress-bar {
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
}
.is-manual .progress { opacity: 0; }

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + var(--safe-top)) 16px 28px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
    pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.01em;
    text-decoration: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.top-actions { display: flex; align-items: center; gap: 8px; }

.chip,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--chrome-border);
    background: rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.icon-btn { width: 36px; padding: 0; position: relative; }
.icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.icon-badge[hidden], .icon-btn[hidden] { display: none; }
/* tema düğmesi: koyu temada güneş (açığa geç), açık temada ay */
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.is-manual .chip-dot { background: var(--muted); }

/* ---------------------------------------------------------------- oynat / durdur */
.controls {
    position: absolute;
    left: 50%;
    bottom: calc(20px + var(--safe-bottom));
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 18px;
}
.ctrl-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid var(--chrome-border);
    background: var(--ctrl-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--ctrl-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    transition: transform .15s ease, background-color .15s ease;
}
.ctrl-btn:active { transform: scale(.94); }
.ctrl-btn:hover { background: var(--ctrl-hover); }
.ctrl-btn:disabled { opacity: .35; cursor: default; transform: none; }
.play-btn .icon-play { display: none; }
.is-paused .play-btn .icon-play { display: block; }
.is-paused .play-btn .icon-pause { display: none; }
.is-manual .play-btn { display: none; }

/* çift dokunma geri bildirimi */
.tap-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: 96px;
    height: 96px;
    margin: -48px 0 0 -48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    opacity: 0;
    pointer-events: none;
}
.tap-flash.is-on { animation: tap-flash .7s ease-out; }


@keyframes tap-flash {
    0% { opacity: 0; transform: scale(.7); }
    25% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
    .tap-flash.is-on { animation-duration: .4s; }
}

/* ---------------------------------------------------------------- bildirim */
.toast {
    position: absolute;
    left: 50%;
    bottom: calc(104px + var(--safe-bottom));
    transform: translateX(-50%);
    z-index: 7;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .75);
    color: #fff;
    font-size: 14px;
    text-align: center;
}


.empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--muted);
    font-size: 18px;
    text-align: center;
}

/* odak görünürlüğü (klavye) */
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------------------------------------------------------------- tablet + masaüstü (700px ve üstü) */
@media (min-width: 700px) {
    .card {
        justify-content: center;
        gap: 28px;
        padding: calc(84px + var(--safe-top)) clamp(40px, 4.5vw, 96px) calc(116px + var(--safe-bottom));
    }
    .card-head { gap: 14px; }
    .card-title { font-size: calc(clamp(28px, 2.6vw, 54px) * var(--text-scale) * var(--ui-title-d, 1)); -webkit-line-clamp: 3; max-width: 100%; }
    .card-meta { font-size: calc(16px * var(--text-scale)); }
    .card-logo { width: var(--ui-logo-d, 30px); height: var(--ui-logo-d, 30px); }

    .card-main {
        order: 2;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        min-height: 0;
        gap: clamp(28px, 3vw, 56px);
    }
    .card-head { order: 1; }
    .card-media {
        width: var(--ui-media-d, 42%);
        margin: 0;
        max-height: 100%;
        border-radius: 18px;
    }
    .card-media::after { display: none; }
    .card-body { max-height: 100%; gap: 22px; }
    .card-summary { font-size: calc(clamp(23px, 1.9vw, 38px) * var(--text-scale) * var(--ui-summary-d, 1)); line-height: 1.6; }

    .topbar { padding: calc(18px + var(--safe-top)) clamp(40px, 4.5vw, 96px) 36px; background: none; }
    .brand { font-size: 20px; color: var(--text); text-shadow: none; }
    /* masaüstünde üst çubuk görselin değil zeminin üstünde: temaya uyar */
    .chip, .icon-btn { background: var(--ctrl-bg); color: var(--ctrl-fg); }
}

/* yatay telefon (alçak ekran): yan yana, küçük */
@media (max-height: 500px) and (min-aspect-ratio: 5/4) {
    .card { padding: 52px 20px 12px; gap: 8px; }
    .card-head { order: 1; }
    .card-title { font-size: 20px; -webkit-line-clamp: 2; }
    .card-main { order: 2; display: flex; flex-direction: row; min-height: 0; gap: 16px; }
    .card-media { width: 38%; margin: 0; max-height: 100%; border-radius: 12px; }
    .card-media::after { display: none; }
    .card-summary { font-size: 16px; }
    .controls { left: auto; right: 16px; transform: none; bottom: 12px; }
    .ctrl-btn { width: 52px; height: 52px; }
    .controls { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .ctrl-btn, .card-link { transition: none; }
}

/* ---------------------------------------------------------------- hata sayfaları */
.placeholder {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
}
.placeholder h1 { margin: 0; font-size: clamp(28px, 6vw, 48px); }
.placeholder p { margin: 0; color: var(--muted); font-size: 18px; }
.debug { max-width: 100%; text-align: left; white-space: pre-wrap; word-break: break-word; font-size: 12px; }

/* ================================================================ tercihler */
/* favori (yıldız) */
.action-fav.is-on { color: #f5b301; }
.action-fav.is-on svg path { fill: currentColor; }

/* ayarlar paneli: masaüstünde sağdan, telefonda alttan */
.sheet-backdrop {
    position: absolute;
    inset: 0;
    z-index: 18;
    background: rgba(0, 0, 0, .45);
    display: flex;
    justify-content: flex-end;
}
.sheet-backdrop[hidden] { display: none; }
.sheet {
    width: min(440px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    color: var(--text);
    box-shadow: -16px 0 48px rgba(0, 0, 0, .3);
    animation: sheet-in .22s ease-out;
}
@keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(14px + var(--safe-top)) 16px 14px 20px;
    border-bottom: 1px solid var(--chrome-border);
}
.sheet-head h2 { margin: 0; font-size: 20px; }
.sheet-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px calc(24px + var(--safe-bottom));
}
.pref { padding: 16px 0; border-bottom: 1px solid var(--chrome-border); }
.pref h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pref-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.pref-footer { padding-top: 16px; }
.pref-actions { display: flex; flex-direction: column; gap: 8px; }

/* segmentli seçim */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
    flex: 1 1 auto;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--chrome-border);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* kategori çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty::before { content: attr(data-empty); color: var(--muted); font-size: 14px; }
.chip-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--chrome-border);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* kaynak aç/kapat */
.source-toggles { display: flex; flex-direction: column; }
.source-toggles:empty::before { content: attr(data-empty); color: var(--muted); font-size: 14px; }
.source-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
}
.source-toggle + .source-toggle { border-top: 1px solid var(--chrome-border); }
.source-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.source-toggle > span:not(.switch) { flex: 1; }
.switch {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--chrome-border);
    position: relative;
    flex-shrink: 0;
    transition: background-color .15s ease;
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
}
.source-toggle input:checked ~ .switch { background: var(--accent); }
.source-toggle input:checked ~ .switch::after { transform: translateX(18px); }
.source-toggle input:focus-visible ~ .switch { outline: 2px solid var(--text); outline-offset: 2px; }

.pref-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--chrome-border);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.pref-count { padding: 2px 8px; border-radius: 999px; background: var(--chrome); font-size: 13px; }
.story-show { background: var(--accent); border-color: var(--accent); color: #fff; }
.list-empty { margin: 24px 8px; text-align: center; color: var(--muted); }

/* ilk kullanım (tanıtım) */
.onb-box {
    width: min(560px, 94vw);
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.onb-steps { display: flex; gap: 6px; }
.onb-steps span { height: 4px; flex: 1; border-radius: 2px; background: var(--chrome-border); }
.onb-steps span.is-on { background: var(--accent); }
.onb-step { overflow-y: auto; min-height: 0; }
.onb-step[hidden] { display: none; }
.onb-step h2 { margin: 0 0 6px; font-size: 24px; }
.onb-step p { margin: 0 0 16px; color: var(--text-soft); }
.onb-foot { display: flex; justify-content: space-between; gap: 12px; }
.onb-foot .pref-btn { width: auto; }
.onb-next {
    padding: 12px 28px;
    border-radius: 999px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 699px) {
    .sheet-backdrop { align-items: flex-end; }
    .sheet { width: 100%; height: auto; max-height: 88dvh; border-radius: 18px 18px 0 0; animation-name: sheet-up; }
    @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
    .onb-box { width: 100%; max-height: 100%; height: 100%; border-radius: 0; padding-top: calc(24px + var(--safe-top)); }
    .onb-step { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .sheet { animation: none; }
    .switch, .switch::after { transition: none; }
}

/* ================================================================ sesli okuma + video */
.icon-btn .icon-tts-on { display: none; }
.icon-btn.is-on .icon-tts-on { display: block; }
.icon-btn.is-on .icon-tts-off { display: none; }
.icon-btn#tts-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.tts-start {
    position: absolute;
    top: calc(64px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    padding: 12px 20px;
    border-radius: 999px;
    border: 0;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    cursor: pointer;
}
.tts-start[hidden] { display: none; }

/* video üstünde ses düğmesi */
.video-sound {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
}
.video-sound .icon-vol-on { display: none; }
.video-sound.is-on .icon-vol-on { display: block; }
.video-sound.is-on .icon-vol-off { display: none; }
.card-media video { background: #000; object-fit: contain; }

/* ayarlar: alt satırlar */
.pref-sub { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.pref-sub[hidden] { display: none; }
.pref-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.voice-row { display: flex; gap: 8px; }
.pref-select {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid var(--chrome-border);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.pref-btn-inline { width: auto; flex-shrink: 0; }

/* ================================================================ kamera ile temassız kontrol */
.icon-btn#cam-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pref-list { margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.pref-list b { font-weight: 700; }

/* Görünür kamera göstergesi: kamera açık olduğu sürece ekranda kalır */
.cam-live {
    position: absolute;
    right: calc(12px + var(--safe-right, 0px));
    bottom: calc(96px + var(--safe-bottom, 0px));
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 6px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    font-size: 12px;
}
.cam-live[hidden] { display: none; }
.cam-live video {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 9px;
    background: #111;
    transform: scaleX(-1);          /* ayna: kullanıcı kendini doğal yönde görür */
}
.cam-live-info { display: flex; flex-direction: column; gap: 2px; min-width: 76px; }
.cam-live-text { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.cam-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b3b;
    animation: cam-pulse 1.6s ease-in-out infinite;
}
.cam-live-gesture { min-height: 15px; color: #ffd166; font-weight: 700; }
.cam-live-off {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
}
.cam-live-off:hover, .cam-live-off:focus-visible { background: rgba(255, 255, 255, .3); }
@keyframes cam-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cam-live-dot { animation: none; } }

/* ================================================================ üyelik sayfaları */
.acc {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: calc(16px + var(--safe-top)) 16px calc(40px + var(--safe-bottom));
    font-size: 16px;
    line-height: 1.5;
}
.acc-wide { max-width: 640px; }
.acc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.acc-brand { color: var(--text); font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.acc-back { color: var(--muted); font-size: 14px; text-decoration: none; }
.acc-back:hover, .acc-back:focus-visible { color: var(--text); }
.acc-title { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
.acc-lead, .acc-text { margin: 0 0 18px; color: var(--text-soft); }
.acc-note { margin: 10px 0; color: var(--muted); font-size: 14px; }
.acc-msg { margin: 12px 0 16px; padding: 10px 14px; border-radius: 10px; font-size: 15px; background: var(--chrome); border: 1px solid var(--chrome-border); }
.acc-msg[hidden] { display: none; }
.acc-msg.is-ok { border-color: #2e9e5b; background: rgba(46, 158, 91, .14); }
.acc-msg.is-error { border-color: var(--accent); background: rgba(224, 38, 63, .12); }
.acc-form { display: flex; flex-direction: column; gap: 14px; margin: 0 0 8px; }
.acc-form[hidden] { display: none; }
.acc-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.acc-field small { font-weight: 400; color: var(--muted); }
.acc-field input, .acc-field select, .acc-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--chrome-border);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 16px;            /* iOS yakınlaştırmasın */
    font-weight: 400;
}
.acc-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.acc-field input:focus-visible, .acc-field select:focus-visible, .acc-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.acc-field input[aria-invalid="true"] { border-color: var(--accent); }
.acc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-soft); }
.acc-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.field-error { color: var(--accent); font-size: 13px; font-weight: 600; }
.acc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.acc-btn:disabled { opacity: .6; cursor: progress; }
.acc-btn-ghost { background: transparent; color: var(--text); border-color: var(--chrome-border); }
.acc-btn-ghost:hover, .acc-btn-ghost:focus-visible { background: var(--chrome); }
.acc-btn-danger { background: transparent; color: var(--accent); }
.acc-btn-danger:hover, .acc-btn-danger:focus-visible { background: var(--accent); color: #fff; }
.acc-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 18px 0 8px; font-size: 15px; }
.acc-oauth { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.acc-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 6px 0 4px; }
.acc-or::before, .acc-or::after { content: ""; flex: 1; height: 1px; background: var(--chrome-border); }
.acc-card { margin: 0 0 16px; padding: 18px; border-radius: 16px; background: var(--surface); }
.acc-card h2 { margin: 0 0 12px; font-size: 18px; }
.acc-card .acc-field input { background: var(--bg); }
.acc-danger { border: 1px solid rgba(224, 38, 63, .35); }
.acc-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; font-size: 15px; }
.acc-dl dt { color: var(--muted); }
.acc-dl dd { margin: 0; word-break: break-word; }
.acc-inline { flex-direction: row; align-items: flex-end; }
.acc-inline .acc-field { flex: 1; }
.acc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0 0 6px; padding: 0; }
.acc-stats li { padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 14px; }
.acc-stats strong { display: block; color: var(--text); font-size: 20px; }
@media (max-width: 420px) {
    .acc-inline { flex-direction: column; align-items: stretch; }
}

/* ayarlar paneli: hesap bölümü + üst çubuk hesap düğmesi */
.account-box { display: flex; flex-direction: column; gap: 10px; }
.account-box[hidden] { display: none; }
.account-who { margin: 0; font-weight: 700; word-break: break-word; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.account-actions a, .account-actions button { text-decoration: none; }
.icon-btn#account-btn.is-on { border-color: var(--accent); color: var(--accent); }
.pref[hidden] { display: none; }
.account-actions .pref-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }

/* Telefonda üst çubuk sığsın: tema, tam ekran ve hesap Ayarlar panelinde de var (kamera üstte görünür) */
@media (max-width: 699px) {
    #theme-btn, #fs-btn, #account-btn { display: none; }
    .top-actions { gap: 6px; }
}
@media (max-width: 360px) {
    .top-actions { gap: 4px; }
    .brand { font-size: 15px; }
    .chip { padding: 0 10px; }
}
.pref-btn[hidden] { display: none; }

.video-sound[hidden] { display: none; }

/* ================================================================ okunma sayısı + önem etiketi (küçük, ikincil) */
.card-reads { font-size: .82em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-reads::before { content: "·"; margin-right: 6px; }
.card-badge {
    padding: 1px 8px;
    border-radius: 999px;
    font-size: .76em;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: .01em;
}
.card-badge-trending { background: rgba(224, 38, 63, .16); color: var(--accent); }
.card-badge-trending::before { content: "🔥 "; }
.card-badge-popular { background: var(--chrome); color: var(--text-soft); border: 1px solid var(--chrome-border); }

/* ================================================================ tepkiler (sade: haberden dikkat çalmasın) */
.card-react { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.react-bar { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; }
.react-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    opacity: .62;
    filter: saturate(.75);
    transition: opacity .15s, transform .15s, filter .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.react-btn img { width: 22px; height: 22px; pointer-events: none; }
.react-btn:hover, .react-btn:focus-visible { opacity: 1; filter: none; transform: scale(1.18); background: var(--chrome); }
.react-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.react-btn.is-on { opacity: 1; filter: none; background: var(--chrome); box-shadow: inset 0 0 0 1.5px var(--chrome-border); }
.react-btn:active { transform: scale(.9); }
.react-sep { width: 1px; height: 18px; margin: 0 6px; background: var(--chrome-border); }
.react-more { position: relative; }
.react-open { opacity: .55; }
.react-open.is-on img { width: 22px; height: 22px; }
.react-picker {
    /* ekranda sabit yer: alt denetimlerin hemen üstünde, ortada (kart içeriği kaymaz, kesilmez) */
    position: fixed;
    left: 50%;
    bottom: calc(var(--controls-space) + 8px);
    transform: translateX(-50%);
    z-index: 9;
    display: grid;
    grid-template-columns: repeat(8, 36px);
    gap: 2px;
    padding: 8px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--chrome-border);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .32);
    animation: react-up .16s ease-out;
}
@keyframes react-up { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.react-picker[hidden] { display: none; }
.react-picker .react-btn { opacity: 1; filter: none; width: 36px; height: 36px; }
.react-picker .react-btn img { width: 26px; height: 26px; }
.react-summary { display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden; gap: 4px 12px; min-height: 18px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.react-summary.is-empty { visibility: hidden; }   /* yer ayrılı kalır */
.react-count { display: inline-flex; align-items: center; gap: 4px; }
.react-count img { width: 16px; height: 16px; }
.react-total { opacity: .85; }
@media (max-width: 400px) {
    .react-btn { width: 30px; height: 30px; }
    .react-btn img { width: 20px; height: 20px; }
    .react-sep { margin: 0 3px; }
    .react-picker { grid-template-columns: repeat(8, 36px); }
}
@media (max-width: 360px) {
    .react-quick:nth-of-type(n+8) { display: none; }   /* en dar ekranda hızlı satır kısalır; hepsi ⋯ içinde */
}
@media (prefers-reduced-motion: reduce) {
    .react-btn { transition: none; }
    .react-btn:hover, .react-btn:focus-visible { transform: none; }
}

/* ---- telefon: özet her zaman okunur kalsın (en az 3 satır); gerekirse görsel küçülür; tepkiler tek satır */
@media (max-width: 699px) {
    .card-media { flex-shrink: 1; min-height: 20vh; }
    /* özet küçülebilir ama 3 satırın altına inmez; fazlası kaydırılır (ince çubuk + düğme) */
    /* contain: size → özetin uzunluğu yerleşimi büyütmez; kalan boşluğu doldurur, en az 3 satır, fazlası kaydırılır */
    .card-summary { flex: 1 1 0; min-height: calc(1.6em * 3 + .8em); contain: size; }
    .summary-wrap { flex: 1 1 0; min-height: calc(1.6em * 3 + .8em); contain: size; font-size: calc(clamp(17px, 4.5vw, 24px) * var(--text-scale) * var(--ui-summary-m, 1)); }
    .summary-wrap .card-summary { min-height: 0; flex: 1 1 0; contain: none; }
    .card-body { gap: 10px; min-height: auto; }    /* içerik sığmazsa önce görsel küçülür (min 20vh) */
    .card-react { flex-direction: row; align-items: center; gap: 6px; }
    .react-bar { flex-shrink: 0; }
    .react-quick:nth-of-type(n+6) { display: none; }      /* 👍 👎 + 5 hızlı; kalanı ⋯ içinde */
    .react-summary { flex: 1 1 auto; justify-content: flex-end; min-width: 0; gap: 4px 8px; }
}
/* kısa ekranlı telefonlar (iPhone SE vb.) */
@media (max-width: 699px) and (max-height: 620px) {
    .card { gap: 10px; }
    .card-media { min-height: 12vh; }
    .card-title { font-size: calc(clamp(18px, 5vw, 30px) * var(--text-scale) * var(--ui-title-m, 1)); }
    .action-btn { width: 40px; height: 40px; }
    .card-actions { gap: 8px; }
    .others-toggle { padding-top: 3px; padding-bottom: 3px; }
}

/* ================================================================ yardım turu */
.tour-box { gap: 14px; }
.tour-top { display: flex; align-items: center; gap: 12px; }
.tour-top .tour-dots { flex: 1; }
.tour-close { flex-shrink: 0; }
.tour-step { text-align: center; overflow-y: auto; min-height: 0; }
.tour-step[hidden] { display: none; }
.tour-step h2 { margin: 6px 0 8px; font-size: 22px; }
.tour-step p { margin: 0 auto 10px; max-width: 440px; color: var(--text-soft); line-height: 1.55; }
.tour-note { font-size: 14px; color: var(--muted); }
.tour-note[hidden], .tour-action [hidden], #tour-tts[hidden], #tour-cam[hidden] { display: none; }
.tour .only-touch { display: none; }
.tour.is-touch .only-touch { display: block; }
.tour.is-touch .only-mouse { display: none; }
.tour-box .onb-foot { justify-content: space-between; }

/* küçük canlandırmalar (hareketi azalt açıksa durağan) */
.tour-art { position: relative; height: 128px; margin: 4px auto 6px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.ta-card { position: relative; width: 132px; height: 92px; padding: 14px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--chrome-border); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.ta-line { height: 7px; border-radius: 4px; background: var(--chrome-border); }
.ta-line.w80 { width: 80%; } .ta-line.w70 { width: 70%; } .ta-line.w60 { width: 60%; } .ta-line.w50 { width: 50%; }
.ta-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 14px 14px 0 0; overflow: hidden; }
.ta-bar span { display: block; height: 100%; background: var(--accent); animation: ta-fill 3s linear infinite; }
.tour-art-auto .ta-next { position: absolute; left: calc(50% + 40px); opacity: .55; transform: scale(.85); animation: ta-slide 3s ease-in-out infinite; }
.ta-finger { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: rgba(224, 38, 63, .25); border: 2px solid var(--accent); animation: ta-tap 2.4s ease-in-out infinite; }
.ta-pause { position: absolute; right: calc(50% - 92px); top: 14px; color: var(--accent); animation: ta-pop 2.4s ease-in-out infinite; }
.ta-halves { flex-direction: row; gap: 0; padding: 0; overflow: hidden; width: 170px; }
.ta-half { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--muted); }
.ta-half:first-child { border-right: 1px dashed var(--chrome-border); animation: ta-flash 2.6s infinite 1.3s; }
.ta-half:last-child { animation: ta-flash 2.6s infinite; }
.ta-swipe { display: none; }
.tour.is-touch .ta-halves .ta-half { animation: none; }
.tour.is-touch .ta-swipe { display: block; position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(224, 38, 63, .25); border: 2px solid var(--accent); animation: ta-swipe 2.4s ease-in-out infinite; }
.tour-art-tts .ta-wave1 { animation: ta-wave 1.4s ease-in-out infinite; }
.tour-art-tts .ta-wave2 { animation: ta-wave 1.4s ease-in-out infinite .3s; }
.tour-art-cam .ta-hand { position: absolute; font-size: 38px; top: 18px; animation: ta-hand 2.8s ease-in-out infinite; }
@keyframes ta-fill { from { width: 0; } to { width: 100%; } }
@keyframes ta-slide { 0%, 70% { transform: translateX(0) scale(.85); opacity: .55; } 100% { transform: translateX(-40px) scale(.85); opacity: 0; } }
@keyframes ta-tap { 0%, 100% { transform: scale(.7); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 55% { transform: scale(.9); opacity: .3; } }
@keyframes ta-pop { 0%, 30% { opacity: 0; transform: scale(.6); } 45%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes ta-flash { 0%, 100% { background: transparent; color: var(--muted); } 10%, 25% { background: rgba(224, 38, 63, .14); color: var(--accent); } }
@keyframes ta-swipe { 0% { transform: translateX(50px); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateX(-50px); opacity: 1; } 100% { opacity: 0; } }
@keyframes ta-wave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ta-hand { 0%, 100% { transform: translateX(60px) rotate(8deg); } 50% { transform: translateX(-60px) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) {
    .tour-art * { animation: none !important; }
}
/* dar telefon üst çubuğu: yardım düğmesi de sığsın */
@media (max-width: 420px) {
    .topbar { padding-left: 14px; padding-right: 12px; }
    .top-actions { gap: 4px; }
    .top-actions .icon-btn { width: 34px; height: 34px; }
    .chip { padding: 0 10px; gap: 6px; }
    .brand { font-size: 15px; }
}
.tour-action { display: flex; justify-content: center; }


/* ================================================================ SABİT İSKELET (haberden habere hiçbir şey kaymaz)
   Başlık hep üstte başlar; düğmeler + tepkiler en altta sabit; özet aradaki boşluğu doldurur (fazlası kaydırılır);
   "+N kaynak" düğmelerin üstünde ayrı satırda (varsa özetten yer alır, düğmeleri itmez). */
.card-others { flex-shrink: 0; display: flex; }
.card-actions { flex-shrink: 0; }
.card-react { flex-shrink: 0; }
.card-summary, .summary-wrap { flex: 1 1 0; min-height: calc(1.6em * 2.5); contain: size; }
.summary-wrap { font-size: calc(clamp(17px, 4.5vw, 24px) * var(--text-scale) * var(--ui-summary-m, 1)); }
.summary-wrap .card-summary { min-height: 0; flex: 1 1 0; contain: none; }
.card-body > .card-summary:last-child { flex: 1 1 0; }
.card-body .card-spacer { flex: 1 1 0; }

@media (min-width: 700px) {
    .card { justify-content: flex-start; }
    .card-main { flex: 1 1 0; min-height: 0; align-items: stretch; }
    .card-media { align-self: flex-start; }
    .card-body { flex: 1 1 0; min-width: 0; max-height: none; height: 100%; gap: 18px; }
    .summary-wrap { font-size: calc(clamp(23px, 1.9vw, 38px) * var(--text-scale) * var(--ui-summary-d, 1)); }
}
@media (max-width: 699px) {
    /* telefonda görsel yüksekliği sabit (ekrana göre), içerikle değişmez */
    .card-media { flex-shrink: 0; height: min(34vh, 56.25vw); min-height: 0; max-height: none; aspect-ratio: auto; }
    .card-body { min-height: 0; }
}
@media (max-width: 699px) and (max-height: 620px) {
    .card-media { height: 24vh; }
}

/* özeti kaydır düğmesi: telefonda parmakla basılacak boyutta */
@media (pointer: coarse), (max-width: 699px) {
    .summary-more { width: 44px; height: 44px; right: 6px; bottom: 0; opacity: .9; }
    .summary-more svg { width: 22px; height: 22px; }
}
.card-body > :first-child:not(.card-summary):not(.summary-wrap) { margin-top: auto; }   /* özetsiz haberde de düğmeler en altta */
@media (max-width: 699px) {
    .card-media { height: min(30vh, 56.25vw); }
    .card-summary, .summary-wrap { min-height: calc(1.6em * 2); }
    .summary-wrap .card-summary { min-height: 0; }
}
@media (max-width: 699px) and (max-height: 620px) {
    .card-media { height: 22vh; }
}
@media (max-width: 699px) { .card { gap: 10px; } .card-body { gap: 8px; } }

/* WhatsApp düğmesi: "paylaş" olduğu anlaşılsın — sağ altta küçük paylaş rozeti */
.action-wa { position: relative; }
.action-wa::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #25d366 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M14 5l6 6-6 6M20 11h-8a7 7 0 0 0-7 7'/%3E%3C/svg%3E") center / 11px no-repeat;
    box-shadow: 0 0 0 2px var(--bg);
    pointer-events: none;
}

/* Ayarlar → Haber görselleri: Gizle */
html[data-noimg] .card-media { display: none; }
html[data-noimg] .card-main { gap: 0; }


/* ================================================================ sade düğmeler + mod simgesi */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mode-btn .ico-manual { display: none; }
.app.is-manual .mode-btn .ico-auto { display: none; }
.app.is-manual .mode-btn .ico-manual { display: block; }
/* renk diğer üst çubuk düğmeleriyle aynı (görsel üstünde beyaz, masaüstünde temaya göre); otomatikte vurgulu */
.app:not(.is-manual) .mode-btn .ico-auto { color: #ff4d64; }

/* işlem düğmeleri biraz küçük */
.action-btn { width: 44px; height: 44px; }
.action-btn svg { width: 20px; height: 20px; }
.action-react img { width: 20px; height: 20px; pointer-events: none; }
.action-react { display: none; }                         /* masaüstünde emoji satırı var */
.action-react.is-on { background: var(--chrome); box-shadow: inset 0 0 0 1.5px var(--accent); }
.more-emojis { display: none; }

/* masaüstü: emoji satırının yeri baştan ayrılı (kart açılırken düğmeler oynamaz) */
@media (min-width: 700px) {
    .card-react { min-height: 58px; }
}

/* telefon: TEK SATIR (görüntüle, oku, favori, WhatsApp, paylaş, 👍, 👎, ⋯) — emojiler ⋯ içinde; okuma alanı büyük */
@media (max-width: 699px) {
    .card-actions { flex-wrap: nowrap; gap: 6px; justify-content: space-between; }
    .action-btn { width: 38px; height: 38px; flex-shrink: 0; }
    .action-btn svg { width: 19px; height: 19px; }
    .action-wa::after { width: 14px; height: 14px; background-size: 9px; right: -1px; bottom: -1px; }
    .action-react { display: inline-flex; }
    .react-bar { display: none; }
    .card-react { min-height: 16px; }
    .react-summary { justify-content: flex-start; min-height: 16px; font-size: 12px; }
    .react-count img { width: 14px; height: 14px; }
    .more-emojis { display: grid; grid-template-columns: repeat(7, 38px); gap: 2px; padding: 4px 2px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--chrome-border); }
    .more-emojis .react-btn { width: 38px; height: 38px; opacity: 1; filter: none; }
    .more-emojis .react-btn img { width: 26px; height: 26px; }
    /* ⋯ menüsü ekranda sabit yerde, ortada (kart içeriği kaymaz) */
    .more-menu { position: fixed; left: 50%; bottom: calc(var(--controls-space) + 8px); transform: translateX(-50%); z-index: 9; animation: react-up .16s ease-out; }
}
@media (max-width: 360px) {
    .action-btn { width: 34px; height: 34px; }
    .card-actions { gap: 3px; }
    .more-emojis { grid-template-columns: repeat(6, 38px); }
}


/* ================================================================ giriş / üye ol penceresi */
.auth-box { width: min(440px, 94vw); padding: 18px 20px 20px; gap: 12px; }
.auth-head { display: flex; align-items: center; gap: 12px; }
.auth-tabs { flex: 1; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); }
.auth-tab { flex: 1; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.auth-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.auth-scroll { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-msg { margin: 0; }
.auth-social { display: flex; flex-direction: column; gap: 8px; }
.auth-social[hidden], .auth-or[hidden], .auth-sent[hidden], [data-auth-form][hidden] { display: none; }
.auth-social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--chrome-border);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.auth-social-btn:hover, .auth-social-btn:focus-visible { background: var(--chrome); }
.auth-social-btn.is-soon { opacity: .55; cursor: not-allowed; }
.auth-soon { position: absolute; right: 14px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.auth-or { margin: 2px 0; }
.auth-links { margin: 2px 0 0; display: flex; justify-content: center; }
.auth-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
@media (max-width: 699px) {
    .auth-box { width: 100%; height: 100%; max-height: none; border-radius: 0; padding-top: calc(14px + var(--safe-top)); }
}


/* ================================================================ logo (newson.tr) */
.logo { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; line-height: 1; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(200, 16, 46, .35)); }
.logo-name { font-weight: 800; letter-spacing: -.025em; font-size: 20px; }
.logo-on { color: #ff4a5f; }
:root[data-theme="light"] .logo-on { color: var(--accent); }
.logo-tld { font-weight: 700; opacity: .55; }
.brand.logo { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.brand .logo-name { font-size: 19px; }
@media (min-width: 700px) {
    .brand.logo { color: var(--text); text-shadow: none; }
    .brand .logo-mark { width: 32px; height: 32px; }
    .brand .logo-name { font-size: 22px; }
}
@media (max-width: 420px) {
    .brand .logo-mark { width: 24px; height: 24px; }
    .brand .logo-name { font-size: 16px; }
    .brand.logo { gap: 6px; }
}
@media (max-width: 300px) {
    .brand .logo-name { display: none; }        /* çok dar ekranda yalnız işaret */
}
.acc-brand.logo .logo-name { font-size: 21px; }
.onb-logo { justify-content: center; margin: 0 auto 4px; }
.onb-logo .logo-mark { width: 44px; height: 44px; }
.onb-logo .logo-name { font-size: 28px; }

.logo-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; list-style: none; margin: 10px 0 14px; padding: 0; }
.logo-features li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--chrome); border: 1px solid var(--chrome-border); font-size: 13px; font-weight: 600; color: var(--text-soft); }
.logo-features svg { color: #ff4a5f; flex-shrink: 0; }
.onb-logo { display: flex; width: fit-content; }

/* sesli okuma: daha iyi ses yönlendirmesi */
.voice-help { display: inline-block; margin-top: 4px; color: var(--text-soft); }

/* telefon: içerik düğmeleri alta yakın, yazı alanı daha yüksek (alt oynat düğmeleri biraz küçük ve aşağıda) */
@media (max-width: 699px) {
    :root { --controls-space: calc(70px + var(--safe-bottom)); }
    .controls { bottom: calc(8px + var(--safe-bottom)); gap: 16px; }
    .ctrl-btn { width: 54px; height: 54px; }
    .card-media { height: min(27vh, 56.25vw); }
    .card-react { min-height: 14px; }
    .react-summary { min-height: 14px; }
}
@media (max-width: 699px) and (max-height: 620px) {
    .card-media { height: 20vh; }
}

/* telefon: aşağı çekince ana sayfa göstergesi */
.pull-home {
    position: absolute; top: calc(var(--safe-top) + 64px); left: 50%; z-index: 7;
    width: 42px; height: 42px; margin-top: -42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--chrome); color: var(--text-soft); border: 1px solid var(--chrome-border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18); opacity: 0; pointer-events: none;
    transform: translate(-50%, 0); transition: opacity .15s;
}
.pull-home.is-ready { color: #fff; background: var(--accent); border-color: var(--accent); }
.pull-home.is-going svg { animation: pull-spin .7s linear infinite; }
@keyframes pull-spin { to { transform: rotate(360deg); } }

/* üst çubuk: solda menü (ayarlar) + logo, sağda diğer düğmeler */
.topbar-start { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* alt sıra: solda önceki / oynat / sonraki (biraz büyük), sağda sesli okuma + kamera + otomatik akış */
.controls {
    left: 0; right: 0; transform: none; padding: 0 12px;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    pointer-events: none;
}
.controls-main { display: flex; align-items: center; gap: 18px; }
.controls-side { display: flex; align-items: center; gap: 12px; }
.controls-main > *, .controls-side > * { pointer-events: auto; }
.ctrl-btn.ctrl-sm { width: 54px; height: 54px; }
.ctrl-btn[hidden] { display: none; }
.tts-ctrl .icon-tts-on { display: none; }
.tts-ctrl.is-on .icon-tts-on { display: block; }
.tts-ctrl.is-on .icon-tts-off { display: none; }
.ctrl-btn.tts-ctrl.is-on, .ctrl-btn.cam-ctrl.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 699px) {
    .controls { gap: 10px; padding: 0 12px; }
    .controls-main { gap: 12px; }
    .controls-side { gap: 8px; }
    .ctrl-btn.ctrl-sm { width: 44px; height: 44px; }
}
@media (max-width: 360px) {
    .controls { gap: 6px; padding: 0 6px; }
    .controls-main { gap: 8px; }
    .controls-side { gap: 6px; }
    .ctrl-btn { width: 48px; height: 48px; }
    .ctrl-btn.ctrl-sm { width: 38px; height: 38px; }
}
@media (max-height: 500px) and (min-aspect-ratio: 5/4) {
    .controls { display: flex; left: auto; right: 16px; padding: 0; gap: 8px; }
    .controls-main, .controls-side { gap: 8px; }
    .ctrl-btn.ctrl-sm { width: 40px; height: 40px; }
}

/* telefon: üst çubuk ayrı bir şerit; görsel çubuğun altından başlar */
@media (max-width: 699px) and (min-height: 501px) {
    :root { --topbar-h: calc(54px + var(--safe-top)); }
    .topbar {
        height: var(--topbar-h); box-sizing: border-box;
        padding: calc(7px + var(--safe-top)) 10px 7px;
        background: var(--bg); border-bottom: 1px solid var(--chrome-border);
    }
    .stage { top: var(--topbar-h); }
    .brand.logo { color: var(--text); text-shadow: none; }
    .topbar .icon-btn, .topbar .chip { background: var(--ctrl-bg); color: var(--ctrl-fg); }
}

@media (max-width: 699px) and (min-height: 501px) and (max-height: 700px) {
    .card-media { height: min(23vh, 56.25vw); }
}
@media (max-width: 699px) and (min-height: 501px) and (max-height: 620px) {
    .card-media { height: 17vh; }
}
@media (max-width: 340px) {
    .topbar-start { gap: 6px; }
    .top-actions .icon-btn { width: 32px; height: 32px; }
}
@media (min-width: 700px) and (min-height: 501px) {
    .controls { padding: 0 clamp(40px, 4.5vw, 96px); }
}

/* kamera: görüntü ekranda gösterilmez (yalnız "Kamera açık" göstergesi); kare okumak için öğe sayfada kalır */
.cam-live video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ayarlar: sol üstteki menü düğmesiyle soldan açılan panel (her ekranda) */
#settings.sheet-backdrop { justify-content: flex-start; align-items: stretch; }
#settings .sheet {
    width: min(400px, 88vw); height: 100%; max-height: none;
    border-radius: 0 18px 18px 0; box-shadow: 16px 0 48px rgba(0, 0, 0, .3);
    animation: sheet-left .24s ease-out;
}
@keyframes sheet-left { from { transform: translateX(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { #settings .sheet { animation: none; } }

/* üye formlarında reCAPTCHA kutusu */
.acc-captcha { min-height: 78px; margin: 4px 0; max-width: 100%; overflow: hidden; }

a.pref-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }

/* logo yazısı daha büyük ve okunaklı */
.brand .logo-name { font-size: 22px; }
.acc-brand.logo .logo-name { font-size: 23px; }
@media (min-width: 700px) {
    .brand .logo-name { font-size: 25px; }
    .brand .logo-mark { width: 34px; height: 34px; }
}
@media (max-width: 420px) {
    .brand .logo-mark { width: 28px; height: 28px; }
    .brand .logo-name { font-size: 20px; }
}
@media (max-width: 340px) {
    .brand .logo-name { font-size: 18px; }
}

