/* ニュースオッズでおしゃべり（/apps/newsodds/）。共通の見た目（色・サイドバー）は /apps/updown/style.css。
   1列のカード。各カードの 💬 で、その下にスレッド（コメント）が開く（PC でも横のチャットは出さない） */
body { overflow: hidden; }
.shell .app.no { max-width: none; }
@media (min-width: 900px) { .shell .app.no { flex: 1 1 auto; max-width: 860px; border-right: 1px solid var(--line); } }

.app.no .hd { gap: 10px; }
.no-tabs { margin-left: auto; display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.no-tabs button { position: relative; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 800; padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.no-tabs button.on { background: var(--text); color: #111; }
.no-tabs .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: glow 1.8s infinite; }
.no-tabs .live-dot[hidden] { display: none; }
@media (max-width: 400px) { .no-tabs button { padding: 5px 8px; } .hd-title { font-size: 14px; } }

.no-body { flex: 1; min-height: 0; display: flex; }
.feed { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ラベルで絞る */
.chips { flex: none; display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; }
.chips button.on { background: #e8eaed; color: #111; border-color: #e8eaed; }
.chips button small { opacity: .7; margin-left: 3px; font-weight: 600; }

.feed-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.items { list-style: none; margin: 0; padding: 0; }
.feed-note { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 16px; line-height: 1.7; }

/* カード（ニュース .it / オッズ .od） */
.it, .od { padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.it.gone, .od.gone { opacity: .4; }
.it-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.it-meta .src { font-weight: 800; color: #b5bac1; }
.it-meta .new { font-weight: 900; color: #fff; background: #f23f43; border-radius: 4px; padding: 0 5px; font-size: 9.5px; letter-spacing: .04em; }
.tg { font-size: 10px; font-weight: 800; padding: 0 6px; border-radius: 999px; line-height: 16px; border: 1px solid currentColor; }
.tg.semi { color: #f0b232; } .tg.ai { color: #c77dff; } .tg.macro { color: #4ea4ff; } .tg.fx { color: #3ddc84; }
.tg.geo { color: #ff7a7c; } .tg.energy { color: #ff9f43; } .tg.stocks { color: #b5bac1; }
.it-title { display: block; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.it-title:visited { color: #b5bac1; }
.it-orig { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.admin-note { font-size: 10.5px; color: #ff7a7c; font-weight: 700; }

.od-head { display: flex; gap: 10px; align-items: flex-start; }
.od-icon { flex: none; width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: var(--card2); }
.od-title { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 800; line-height: 1.45; overflow-wrap: anywhere; }
.od-orig { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; overflow-wrap: anywhere; }
.od-rows { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.od-row { position: relative; display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 3px 10px; border-radius: 8px; background: var(--card); overflow: hidden; }
.od-row.mv { box-shadow: inset 0 0 0 1.5px #f0b232; }
.od-row .bar { position: absolute; inset: 0 auto 0 0; background: rgba(78,164,255,.16); transition: width .5s; }
.od-row .lbl { position: relative; flex: 1; min-width: 0; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-row .lbl small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.od-row .d1 { position: relative; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.od-row.mv .d1 { font-size: 13px; }
.od-row .d1.u { color: var(--up); } .od-row .d1.d { color: var(--down); }
.od-row .pct { position: relative; min-width: 46px; text-align: right; font-size: 16px; font-weight: 900; font-variant-numeric: tabular-nums; border-radius: 6px; padding: 0 3px; }
.od-row .pct.flash-u { animation: flu 1.2s ease-out; } .od-row .pct.flash-d { animation: fld 1.2s ease-out; }
@keyframes flu { 0% { background: rgba(35,165,90,.55); color: #fff; } 100% { background: transparent; } }
@keyframes fld { 0% { background: rgba(242,63,66,.55); color: #fff; } 100% { background: transparent; } }
.od-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--muted); }
.od-info a { color: var(--muted); }
.mv-badge { font-weight: 900; color: #111; background: #f0b232; border-radius: 4px; padding: 0 6px; line-height: 17px; }
.od-more { border: 0; background: none; color: var(--muted); font-size: 11px; padding: 0; text-decoration: underline; }

/* カードの下の行: リアクション・💬・✕ */
.it-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.rxs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.rxs button { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; height: 26px; padding: 0 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rxs .rx.mine { border-color: #f0b232; background: rgba(240,178,50,.14); }
.rxs .rx-add { color: var(--muted); font-size: 12px; }
.rx-add-row { display: inline-flex; gap: 2px; padding: 1px 3px; border-radius: 999px; background: var(--card2); }
.rx-add-row[hidden] { display: none; }
.rxs .rx-p { border: 0; background: none; font-size: 17px; padding: 0 4px; height: 26px; }
.rxs .rx-p:hover { background: var(--card); }
.it-foot .talk-b { position: relative; margin-left: auto; flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; height: 28px; padding: 0 12px; font-size: 12px; font-weight: 800; }
.it-foot .talk-b.on { background: var(--text); color: #111; border-color: var(--text); }
.it-foot .talk-b .dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: #f23f43; }
.it-foot .x { flex: none; width: 30px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13px; padding: 0; }
.it-foot .x:hover { color: #ff7a7c; }

/* スレッド（カードの下に開く） */
.thread { margin: 10px 0 4px; padding: 10px 10px 8px; border-radius: 12px; background: #17181b; border: 1px solid var(--line); }
.th-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.th-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 6px 0; }
.th-c { display: flex; gap: 8px; }
.th-c.muted { opacity: .45; }
.th-ava { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.th-ava.fb { display: inline-grid; place-items: center; background: #5865f2; color: #fff; font-weight: 800; font-size: 12px; }
.th-main { flex: 1; min-width: 0; }
.th-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.th-meta b { color: #dbdee1; font-size: 12.5px; }
.th-c.own .th-meta b { color: #6fe09b; }
.th-del { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 11px; padding: 0; text-decoration: underline; }
.th-body { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: 1px 0 4px; }
.th-body a { color: #00a8fc; }
.th-c .rxs button { height: 22px; font-size: 11px; padding: 0 6px; }
.th-c .rxs .rx-p { font-size: 15px; height: 22px; }
.th-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.th-input { flex: 1; min-width: 0; resize: none; font: inherit; font-size: 16px; line-height: 20px; height: 40px; max-height: 120px; padding: 9px 13px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.th-send { flex: none; height: 40px; border: 0; border-radius: 999px; padding: 0 15px; background: var(--text); color: #111; font-weight: 800; font-size: 13px; }
.th-send:disabled { opacity: .5; }
.th-login { margin: 6px 2px 0; font-size: 11px; color: var(--muted); }
.th-login[hidden] { display: none; }
.th-login a { color: #dbdee1; margin-left: 4px; }
.sbar .app-nav { margin-bottom: 4px; }

/* 「無関係」のあとの「元に戻す」 */
.undo { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 12px;
  background: #f2f3f5; color: #111; border-radius: 999px; padding: 8px 8px 8px 16px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.45); max-width: calc(100vw - 32px); }
.undo[hidden] { display: none; }
.undo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo button { flex: none; border: 0; background: #111; color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 12px; }

/* 一覧のカードの下のコメント（新しい3件）。押すとスレッドが開く */
.pv { list-style: none; margin: 8px 0 2px; padding: 8px 10px; border-radius: 10px; background: #17181b; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.pv:hover { border-color: #3a3c42; }
.pv-c { display: flex; align-items: baseline; gap: 6px; font-size: 13px; line-height: 1.45; min-width: 0; }
.pv-c b { flex: none; font-size: 12px; color: #b5bac1; }
.pv-c.own b { color: #6fe09b; }
.pv-body { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-c time { flex: none; font-size: 10.5px; color: var(--muted); }
.pv-more { font-size: 11.5px; color: var(--muted); text-decoration: underline; }


/* カードの「現在値」の行（DEX。株価の線の間に差し込む） */
.od-row.now { min-height: 26px; background: transparent; border: 1px dashed #f0b232; }
.od-row.now[hidden] { display: none; }
.od-row.now .lbl { color: #f0b232; font-weight: 900; }
.od-row.now .lbl small { color: var(--muted); }
.od-row.now .chg { font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.od-row.now .chg.u { color: var(--up); } .od-row.now .chg.d { color: var(--down); }
.od-row.now .pct { font-size: 15px; color: #f0b232; }
.od-row.now .now-px { color: #f0b232; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.od-row.now .chg { font-size: 13px; padding-right: 3px; }

/* 𝕏 でシェア */
.it-foot .share-b { flex: none; margin-left: auto; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; height: 28px; padding: 0 11px; font-size: 12px; font-weight: 800; }
.it-foot .share-b + .talk-b { margin-left: 0; }
.share-box { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); }
.share-box[hidden] { display: none; }
.sh-card { width: min(640px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sh-top { display: flex; align-items: center; }
.sh-top .sh-close { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 22px; }
.sh-card img { width: 100%; border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 1200 / 630; }
.sh-card img[hidden] { display: none; }
.sh-card p { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }
.sh-post { display: block; text-align: center; background: #f2f3f5; color: #000; font-weight: 900; text-decoration: none; border-radius: 999px; padding: 12px; }
.sh-post[hidden] { display: none; }

/* 名前が長くなった（ニュースオッズでおしゃべり）ので、狭い画面では見出しを省略し、タブは選んでいるものだけ文字を出す */
.app.no .hd-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.app.no .no-tabs { flex: none; }
@media (max-width: 560px) { .no-tabs button span { display: none; } .no-tabs button.on span { display: inline; } }
