/* ═══════════════════════════════════════════════════
   ITACHI UCHIHA AI v2.1 — Full-width dark crimson theme
   Spectra One / Astra theme override included
   ═══════════════════════════════════════════════════ */

:root {
    --ig:  #b91c1c;
    --igd: #991b1b;
    --ia:  #fca5a5;
    --bg:  #050505;
    --pn:  #0a0a0a;
    --bd:  #2a1010;
    --bd2: #222;
    --tx:  #e0e0e0;
    --tm:  #555;
    --red: #ef4444;
    --r:   8px;
    --rs:  4px;
}

/* ─── FULL-WIDTH: BREAK OUT OF SPECTRA ONE / ASTRA THEME ─────────────────── */
body.itachi-ai-page .ast-container,
body.itachi-ai-page .ast-article-post,
body.itachi-ai-page .entry-content,
body.itachi-ai-page .wp-block-post-content,
body.itachi-ai-page .is-layout-constrained > *,
body.itachi-ai-page .is-layout-flow > *,
body.itachi-ai-page article,
body.itachi-ai-page .post-content,
body.itachi-ai-page .page-content,
body.itachi-ai-page #content,
body.itachi-ai-page #primary,
body.itachi-ai-page .site-content,
body.itachi-ai-page #page,
body.itachi-ai-page main#main,
body.itachi-ai-page .ast-separate-container,
body.itachi-ai-page .ast-single-post-order {
    max-width: 100% !important;
    width: 100%   !important;
    padding: 0    !important;
    margin: 0     !important;
}

body.itachi-ai-page {
    padding: 0   !important;
    margin: 0    !important;
    overflow-x: hidden;
    background: #050505 !important;
}

body.itachi-ai-page #wpadminbar ~ * { margin-top: 0; }

body.itachi-ai-page #masthead,
body.itachi-ai-page .site-header,
body.itachi-ai-page header.site-header,
body.itachi-ai-page .ast-site-header-wrap,
body.itachi-ai-page #ast-desktop-header,
body.itachi-ai-page .ast-primary-header-bar {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
body.itachi-ai-page.itachi-header-visible #masthead,
body.itachi-ai-page.itachi-header-visible .site-header,
body.itachi-ai-page.itachi-header-visible header.site-header,
body.itachi-ai-page.itachi-header-visible .ast-site-header-wrap,
body.itachi-ai-page.itachi-header-visible #ast-desktop-header,
body.itachi-ai-page.itachi-header-visible .ast-primary-header-bar {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.itachi-ai-page footer,
body.itachi-ai-page .site-footer,
body.itachi-ai-page #ast-footer-widget-area,
body.itachi-ai-page #colophon { padding-top: 0 !important; }

.itachi-seo-block {
    position: absolute;
    left: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ─── PAGE WRAPPER ─────────────────────────────────────────────────────────── */
#itachi-page-wrapper {
    width: 100%;
    background: var(--bg);
    color: var(--tx);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
    margin: 0;
    padding: 0;
}

/* ─── CHAT APP ─────────────────────────────────────────────────────────────── */
#otaku-app {
    display: grid;
    grid-template-columns: 1fr 270px;
    width: 100%;
    height: 100dvh;
    min-height: 500px;
    background: var(--bg);
    border-bottom: 1px solid var(--bd);
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(185,28,28,0.12);
}

body.admin-bar #otaku-app { height: calc(100dvh - 32px); }
@media (max-width: 782px) {
    body.admin-bar #otaku-app { height: calc(100dvh - 46px); }
}

/* ─── SIDEBAR ──────────────────────────────────────────────────────────────── */
#mode-sidebar {
    background: var(--pn);
    border-left: 1px solid var(--bd);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: var(--bd) transparent;
}
#mode-sidebar::-webkit-scrollbar { width: 4px; }
#mode-sidebar::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }

.sidebar-label { font-size: 10px; color: var(--tm); font-weight: 800; margin-top: 12px; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 4px 0; user-select: none; }
.sidebar-label:hover { color: var(--ia); }
.sidebar-history-label { cursor: default; }
.login-history-link { font-size: 9px; color: var(--ia); text-decoration: none; font-weight: 400; letter-spacing: 0; }
.login-history-link:hover { text-decoration: underline; }

.menu-content { display: none; flex-direction: column; gap: 2px; padding-left: 8px; border-left: 2px solid var(--igd); margin-bottom: 6px; }
.menu-content.open { display: flex; }

.mode-btn { padding: 9px 10px; border-radius: var(--rs); font-size: 12px; cursor: pointer; color: #888; transition: all .2s; display: flex; align-items: center; gap: 7px; user-select: none; }
.mode-btn:hover { background: #1a0808; color: #fff; }
.mode-btn.active { background: #1f0d0d; color: var(--ia); border-left: 3px solid var(--ig); }

.new-chat-btn { background: var(--igd); color: #fff; text-align: center; padding: 10px; border-radius: var(--rs); font-weight: 700; cursor: pointer; margin-bottom: 10px; transition: background .2s; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; user-select: none; }
.new-chat-btn:hover { background: var(--ig); }

.history-item { padding: 7px 8px; font-size: 11px; color: #777; border-radius: var(--rs); display: flex; justify-content: space-between; align-items: center; }
.history-item:hover { background: #1a0808; color: #ccc; }
.history-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin-right: 4px; font-size: 11px; cursor: pointer; }
.history-del-btn { background: none; border: none; color: #333; cursor: pointer; font-size: 12px; padding: 2px 4px; border-radius: 2px; transition: color .2s; flex-shrink: 0; }
.history-del-btn:hover { color: var(--red); }

.history-login-notice { padding: 10px 4px; font-size: 11px; color: #555; line-height: 1.5; }
.history-login-notice p { margin-bottom: 8px; }
.btn-login-save { display: block; background: var(--igd); color: #fff; text-align: center; padding: 7px; border-radius: var(--rs); font-size: 11px; font-weight: 600; text-decoration: none; transition: background .2s; }
.btn-login-save:hover { background: var(--ig); color: #fff; }

/* ─── CHAT MAIN ────────────────────────────────────────────────────────────── */
#chat-main { display: flex; flex-direction: column; height: 100%; background: radial-gradient(circle at center, #0f0505 0%, #050505 100%); position: relative; overflow: hidden; min-width: 0; }

#message-flow { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--bd) transparent; }
#message-flow::-webkit-scrollbar { width: 5px; }
#message-flow::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 3px; }

.bubble-container { display: flex; flex-direction: column; max-width: 80%; }
.bubble-container.user { align-self: flex-end; align-items: flex-end; }
.bubble-container.ai   { align-self: flex-start; align-items: flex-start; }

.bubble { padding: 12px 16px; border-radius: var(--r); line-height: 1.65; font-size: 14px; word-wrap: break-word; overflow-wrap: anywhere; }
.user-node { background: #181818; border: 1px solid #2a2a2a; color: #f0f0f0; border-radius: var(--r) var(--r) 2px var(--r); }
.ai-node   { background: rgba(185,28,28,.06); border: 1px solid rgba(185,28,28,.25); color: #fef2f2; border-radius: 2px var(--r) var(--r) var(--r); }
.ai-node b { color: var(--ia); }
.bubble img { max-width: 100%; border-radius: var(--rs); margin-top: 12px; border: 1px solid var(--bd); display: block; }

.ai-node p { margin: 6px 0; }
.ai-node ul, .ai-node ol { padding-left: 20px; margin: 8px 0; }
.ai-node li { margin: 3px 0; }
.ai-node strong { color: var(--ia); }
.ai-node h1,.ai-node h2,.ai-node h3 { color: var(--ia); margin: 10px 0 4px; }
.ai-node code { background: #1f0d0d; color: var(--ia); padding: 1px 5px; border-radius: 3px; font-size: 12px; }

.msg-tools { display: flex; gap: 6px; margin-top: 4px; opacity: 0; transition: opacity .2s; }
.bubble-container:hover .msg-tools { opacity: 1; }
.tool-btn { cursor: pointer; color: #555; background: none; border: none; font-size: 11px; padding: 2px 7px; border-radius: 3px; transition: all .2s; }
.tool-btn:hover { color: var(--ia); background: #1a0808; }

/* Loader / Sharingan Spinner */
.infinity-loader { width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.08); border-top-color: var(--ig); border-radius: 50%; animation: itachi-spin .7s linear infinite; flex-shrink: 0; }
@keyframes itachi-spin { to { transform: rotate(360deg); } }
.loader-container { display: flex; align-items: center; gap: 12px; color: var(--ig); font-size: 13px; font-weight: 600; }

/* ─── INPUT DOCK ───────────────────────────────────────────────────────────── */
#input-dock { padding: 10px 16px 14px; background: var(--bg); border-top: 1px solid var(--bd); flex-shrink: 0; }

#quick-prompts { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
#quick-prompts::-webkit-scrollbar { display: none; }
.quick-btn { flex-shrink: 0; padding: 5px 11px; border-radius: 20px; font-size: 11px; cursor: pointer; color: #888; background: #0f0a0a; border: 1px solid #2a1010; transition: all .2s; white-space: nowrap; }
.quick-btn:hover { background: #1a0a0a; color: var(--ia); border-color: var(--igd); }

.input-bar { background: #0c0808; border: 1px solid var(--bd); border-radius: 12px; padding: 10px 12px; display: flex; align-items: flex-end; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.input-bar:focus-within { border-color: var(--igd); box-shadow: 0 0 0 2px rgba(185,28,28,.15); }

.textarea-wrap { flex: 1; min-width: 0; }
#user-query { width: 100%; background: transparent; border: none; color: #f0f0f0; outline: none; font-size: 14px; line-height: 1.6; resize: none; min-height: 24px; max-height: 200px; overflow-y: auto; display: block; font-family: inherit; scrollbar-width: thin; }
#user-query::placeholder { color: #3a2020; }

.input-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.word-count { font-size: 10px; color: #333; transition: color .2s; }
.word-count.warn { color: #ca8a04; }
.word-count.over { color: var(--red); }
.input-actions { display: flex; align-items: center; gap: 4px; }

.icon-btn { width: 30px; height: 30px; border-radius: var(--rs); border: none; background: #1a0a0a; color: #555; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.icon-btn:hover { background: #2a1010; color: var(--ia); }
#itachi-mic-btn.recording { background: #7f1d1d; color: #fca5a5; }

.send-btn { width: 34px; height: 34px; border-radius: var(--rs); border: none; background: var(--igd); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.send-btn:hover:not(:disabled) { background: var(--ig); transform: scale(1.05); }
.send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

#mobile-menu-toggle { position: absolute; top: 12px; right: 12px; z-index: 200; background: #1a0808; color: #fff; border: 1px solid #2a1010; padding: 6px 10px; border-radius: var(--rs); font-size: 12px; cursor: pointer; display: none; }

/* ─── MODALS ───────────────────────────────────────────────────────────────── */
.itachi-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 999999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); padding: 20px; }
.itachi-modal { background: #0f0808; border: 1px solid var(--bd); border-radius: 14px; padding: 28px 28px 24px; width: 100%; max-width: 460px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.8),0 0 30px rgba(185,28,28,.15); animation: itachi-modal-in .2s ease; }
@keyframes itachi-modal-in { from{opacity:0;transform:scale(.95) translateY(10px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-header h3 { font-size: 18px; color: var(--ia); margin: 0; }
.modal-close { background: none; border: none; color: #555; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: color .2s; line-height: 1; }
.modal-close:hover { color: #ccc; }
.modal-sub { font-size: 13px; color: #555; margin-bottom: 20px; }

.share-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.share-option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 10px; background: #1a0808; border: 1px solid #2a1010; font-size: 11px; color: #ccc; text-decoration: none; cursor: pointer; transition: all .2s; font-weight: 500; }
.share-option svg { width: 24px; height: 24px; }
.share-option:hover { transform: translateY(-2px); }
.share-fb:hover { background:rgba(249,115,22,.15);border-color:#f97316;color:#f97316; }
.share-tw:hover { background:rgba(245,158,11,.15);border-color:#f59e0b;color:#f59e0b; }
.share-wa:hover { background:rgba(77,124,15,.15);border-color:#4d7c0f;color:#4d7c0f; }
.share-li:hover { background:rgba(217,119,6,.15);border-color:#d97706;color:#d97706; }
.share-ig:hover { background:rgba(190,18,60,.15);border-color:#be123c;color:#be123c; }
.share-cp { border: none; font-family: inherit; }
.share-cp:hover { background: #2a1010; color: var(--ia); border-color: var(--igd); }

.report-form { display: flex; flex-direction: column; gap: 12px; }
.form-label { font-size: 12px; color: #888; margin-bottom: -6px; }
.form-select,.form-textarea { background: #150808; border: 1px solid #2a1010; color: #ccc; padding: 9px 12px; border-radius: var(--rs); font-size: 13px; width: 100%; font-family: inherit; }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select:focus,.form-textarea:focus { outline: none; border-color: var(--igd); }
.btn-submit-report { background: var(--igd); color: #fff; border: none; padding: 11px; border-radius: var(--rs); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-submit-report:hover { background: var(--ig); }
.report-success { color: #f87171; font-size: 13px; text-align: center; padding: 8px; }

/* ─── CHARACTER CAROUSEL ───────────────────────────────────────────────────── */
#character-carousel { background: var(--bg); border-top: 1px solid var(--bd); padding-bottom: 20px; }
.stories-container { width: 100%; padding: 20px 0 0; position: relative; }
.section-title { padding: 0 20px; margin-bottom: 16px; font-size: 17px; font-weight: 700; color: var(--ia); }
.stories-wrapper { display: flex; gap: 14px; overflow-x: auto; padding: 4px 20px 10px; scroll-behavior: smooth; scrollbar-width: none; }
.stories-wrapper::-webkit-scrollbar { display: none; }
.story-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; flex: 0 0 calc(25% - 12px); min-width: 70px; max-width: 130px; }
.img-ring { width: 100%; max-width: 90px; aspect-ratio: 1/1; border-radius: 50%; padding: 3px; background: linear-gradient(45deg,#991b1b,#b91c1c,#fca5a5); }
.story-item img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #000; background: #1c0a0a; }
.see-more-ring { background: #222; }
.see-more-icon { color: #fff; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #000; background: #1c0a0a; display: flex; align-items: center; justify-content: center; }
.see-more-icon svg { width: 40%; height: 40%; }
.story-username { margin-top: 8px; font-size: 12px; color: #ccc; text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-btn { position: absolute; top: 58%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(255,255,255,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.5); z-index: 20; border: none; transition: opacity .3s,transform .2s; }
.nav-btn svg { color: #000; width: 20px; height: 20px; }
.nav-btn:active { transform: translateY(-50%) scale(.9); }
.prev-btn { left: 8px; } .next-btn { right: 8px; }

/* ─── COMMENTS ─────────────────────────────────────────────────────────────── */
#itachi-comments-section { background: var(--bg); border-top: 1px solid var(--bd); padding-bottom: 40px; }
.comments-container { max-width: 780px; margin: 0 auto; padding: 24px 20px 0; }
.comment-login-notice { background: #0f0808; border: 1px solid #2a1010; border-radius: var(--r); padding: 14px 18px; font-size: 13px; color: #666; margin-bottom: 20px; }
.comment-login-notice a { color: var(--ia); text-decoration: none; }

.comment-composer { display: flex; gap: 12px; margin-bottom: 24px; align-items: flex-start; }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--bd); flex-shrink: 0; object-fit: cover; }
.composer-inner { flex: 1; min-width: 0; }
.format-toolbar { display: flex; gap: 6px; margin-bottom: 8px; }
.fmt-btn { padding: 4px 10px; border-radius: 4px; border: 1px solid #2a1010; background: #150808; color: #666; font-size: 11px; cursor: pointer; transition: all .2s; }
.fmt-btn.active { background: #1f0d0d; color: var(--ia); border-color: var(--igd); }
.fmt-btn:hover:not(.active) { background: #2a1010; color: #aaa; }

.comment-textarea { width: 100%; background: #0c0808; border: 1px solid #2a1010; color: var(--tx); padding: 10px 12px; border-radius: var(--rs); font-size: 13px; resize: vertical; min-height: 70px; font-family: inherit; line-height: 1.55; transition: border-color .2s; }
.comment-textarea:focus { outline: none; border-color: var(--igd); }
.comment-textarea::placeholder { color: #3a1515; }
.composer-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.char-count { font-size: 11px; color: #333; }
.char-count.warn { color: #ca8a04; }
.btn-post-comment { background: var(--igd); color: #fff; border: none; padding: 7px 18px; border-radius: var(--rs); font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-post-comment:hover { background: var(--ig); }

#comments-list { display: flex; flex-direction: column; gap: 4px; }
.comments-loading { display: flex; align-items: center; gap: 12px; color: #444; font-size: 13px; padding: 20px 0; }

.comment-item { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid #150808; animation: comment-in .3s ease; }
@keyframes comment-in { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.comment-body { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.comment-author { font-size: 13px; font-weight: 600; color: #ccc; }
.comment-time { font-size: 11px; color: #444; }
.comment-content { font-size: 13px; line-height: 1.6; color: #bbb; }
.comment-content.format-heading    { font-size: 17px; font-weight: 700; color: var(--ia); }
.comment-content.format-subheading { font-size: 15px; font-weight: 600; color: #d78080; }

.comment-actions { display: flex; gap: 12px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.comment-action-btn { background: none; border: none; color: #444; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: color .2s; padding: 0; }
.comment-action-btn:hover { color: #888; }
.comment-action-btn.liked { color: #f87171; }
.comment-action-btn.reply-btn:hover { color: var(--ia); }
.comment-action-btn.del-btn:hover { color: var(--red); }

.replies-container { margin-top: 10px; padding-left: 20px; border-left: 2px solid #1f0d0d; display: flex; flex-direction: column; gap: 0; }
.reply-composer { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding-top: 10px; animation: comment-in .2s ease; }
.reply-textarea { flex: 1; background: #0c0808; border: 1px solid #2a1010; color: var(--tx); padding: 8px 10px; border-radius: var(--rs); font-size: 12px; resize: none; font-family: inherit; min-height: 50px; transition: border-color .2s; }
.reply-textarea:focus { outline: none; border-color: var(--igd); }
.btn-post-reply { background: var(--igd); color: #fff; border: none; padding: 7px 14px; border-radius: var(--rs); font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s; align-self: flex-end; }
.btn-post-reply:hover { background: var(--ig); }

/* ─── FAQ ──────────────────────────────────────────────────────────────────── */
#itachi-faq { background: var(--bg); border-top: 1px solid var(--bd); padding-bottom: 60px; }
.faq-container { max-width: 860px; margin: 0 auto; padding: 28px 20px 0; }
.faq-intro { font-size: 13px; color: var(--tm); margin-bottom: 24px; line-height: 1.6; }
.faq-grid { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: #0a0505; border: 1px solid #1f0d0d; border-radius: var(--rs); overflow: hidden; transition: border-color .2s; }
.faq-item:hover { border-color: #2a1010; }
.faq-question { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: none; color: #ccc; padding: 14px 16px; font-size: 14px; text-align: left; cursor: pointer; font-family: inherit; transition: color .2s; font-weight: 500; line-height: 1.4; }
.faq-question:hover { color: var(--ia); }
.faq-question[aria-expanded="true"] { color: var(--ia); }
.faq-num { font-size: 11px; color: var(--ig); font-weight: 800; flex-shrink: 0; font-family: monospace; }
.faq-chevron { margin-left: auto; flex-shrink: 0; color: #444; transition: transform .25s; font-size: 13px; }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 16px 16px 48px; }
.faq-answer p { font-size: 13px; color: #888; line-height: 1.7; margin-bottom: 12px; }
.btn-ask-itachi { background: none; border: 1px solid var(--igd); color: var(--ia); padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: all .2s; }
.btn-ask-itachi:hover { background: var(--igd); color: #fff; }

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #otaku-app { grid-template-columns: 1fr; }
    #mode-sidebar { position: fixed; top: 0; right: 0; bottom: 0; width: 270px; transform: translateX(100%); transition: transform .3s ease; z-index: 1000; border-left: 1px solid var(--bd); }
    #mode-sidebar.mobile-open { transform: translateX(0); }
    #mobile-menu-toggle { display: block; }
    #message-flow { padding: 14px; gap: 12px; }
    .bubble-container { max-width: 92%; }
    .bubble { font-size: 13px; padding: 10px 14px; }
    #input-dock { padding: 8px 12px 12px; }
    .share-grid { grid-template-columns: 1fr 1fr; }
    .story-item { flex: 0 0 calc(33% - 10px); }
    .faq-answer { padding-left: 36px; }
    .comments-container { padding: 18px 14px 0; }
}

@media (min-width: 1400px) {
    #otaku-app { grid-template-columns: 1fr 300px; }
    .bubble { font-size: 15px; }
}

@media (min-width: 1920px) {
    #otaku-app { grid-template-columns: 1fr 340px; }
    .bubble { font-size: 16px; padding: 16px 22px; }
    .story-item { flex: 0 0 calc(12.5% - 12px); }
    .img-ring { max-width: 110px; }
    .section-title { font-size: 20px; }
    .faq-question { font-size: 15px; }
}
