:root {
  --ink: #1c1730;
  --muted: #6f6980;
  --paper: #f7f5fa;
  --surface: #ffffff;
  --violet: #6f3cff;
  --violet-dark: #4b22c7;
  --coral: #ff6b62;
  --line: #e4dfeb;
  --soft: #eee9f8;
  --shadow: 0 18px 50px rgba(42, 25, 75, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; line-height: 1.65; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(111, 60, 255, .4); outline-offset: 3px; }

.site-header { height: 76px; padding: 0 clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; background: rgba(247, 245, 250, .9); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 10px 4px 10px 4px; background: var(--ink); color: white; font-weight: 900; letter-spacing: -.1em; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); font-size: 14px; font-weight: 700; }
nav a { color: var(--muted); }
nav a:hover, nav a.active { color: var(--ink); }
nav .admin-link { color: var(--violet); }

main { min-height: 70vh; }
.hero { min-height: 500px; padding: 88px clamp(20px, 7vw, 112px) 72px; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); gap: clamp(42px, 8vw, 120px); align-items: center; background: radial-gradient(circle at 83% 20%, rgba(255,107,98,.14), transparent 28%), linear-gradient(138deg, #f7f5fa 58%, #eee9fb); border-bottom: 1px solid var(--line); }
.hero-copy h1 { margin: 0 0 24px; max-width: 720px; font-size: clamp(40px, 5vw, 72px); line-height: 1.16; letter-spacing: -.055em; }
.hero-copy p { margin: 0; max-width: 540px; color: var(--muted); font-size: 17px; }
.search-shell { padding: clamp(24px, 4vw, 42px); background: var(--surface); box-shadow: var(--shadow); border-radius: 28px 10px 28px 10px; }
.search-shell > label { display: block; margin-bottom: 14px; font-weight: 800; font-size: 15px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, select { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 0 15px; color: var(--ink); }
input:focus, select:focus { border-color: var(--violet); outline: 3px solid rgba(111,60,255,.12); }
.button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 800; }
.button-primary { background: var(--violet); color: #fff; box-shadow: 0 8px 20px rgba(111,60,255,.2); }
.button-primary:hover { background: var(--violet-dark); }
.button-quiet { background: var(--soft); color: var(--ink); }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.chip:hover, .chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.content-section, .creator-section { padding: 76px clamp(20px, 7vw, 112px); }
.creator-section { background: var(--ink); color: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.creator-section .section-heading p { color: #aaa2b9; }
.section-heading.compact { margin: 0 0 20px; }
.section-heading.compact h2 { font-size: 22px; }
.period-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; }
.creator-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.creator-sort select { padding: 8px; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.period-tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--muted); }
.period-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(28,23,48,.08); }
.results-meta { min-height: 28px; display: flex; gap: 18px; align-items: center; margin: -18px 0 18px; color: var(--muted); font-size: 13px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--violet); cursor: pointer; text-decoration: underline; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
.video-card { min-width: 0; }
.preview { position: relative; aspect-ratio: 16/10; border-radius: 18px 6px 18px 6px; overflow: hidden; background: var(--preview, #6f3cff); isolation: isolate; }
.preview::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -15%; top: -45%; border-radius: 50%; background: rgba(255,255,255,.22); filter: blur(3px); }
.preview::after { content: ""; position: absolute; inset: 40% 16% -30% 10%; transform: rotate(-8deg); border-radius: 45%; background: rgba(25,15,45,.38); }
.preview.has-thumbnail::before, .preview.has-thumbnail::after { content: none; }
.thumbnail-link { position: absolute; inset: 0; z-index: 2; }
.thumbnail-link:focus-visible { outline-offset: -4px; }
.related-posts { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related-posts[hidden] { display: none; }
.related-reason { margin: 0 0 7px; color: var(--violet-dark); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.card-date { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tag-row a { color: var(--violet-dark); overflow-wrap: anywhere; }
.tag-row a:hover { text-decoration: underline; }
.more-posts { display: block; margin: 28px auto 0; }
.more-posts[hidden] { display: none; }
#relatedGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { #relatedGrid { grid-template-columns: minmax(0, 1fr); } }
.preview .rank, .preview .duration { pointer-events: none; }
.preview.coral { --preview: #e85d68; }
.preview.blue { --preview: #2774d6; }
.preview.amber { --preview: #d58028; }
.preview.violet { --preview: #7650df; }
.rank { position: absolute; left: 12px; top: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.92); border-radius: 9px 3px 9px 3px; font-weight: 900; }
.play-button { position: absolute; z-index: 2; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.play-button::after { content: ""; margin-left: 4px; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.duration { position: absolute; right: 10px; bottom: 9px; z-index: 2; background: rgba(20,15,32,.78); color: #fff; padding: 2px 7px; border-radius: 5px; font-size: 12px; }
.card-body { padding: 13px 4px 0; }
.card-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; letter-spacing: -.015em; }
.creator-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.creator-line a:hover { color: var(--violet); }
.metric { white-space: nowrap; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.tag-row span { color: var(--violet-dark); font-size: 12px; }
.save-button { position: absolute; z-index: 3; right: 10px; top: 10px; border: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; font-size: 17px; }
.save-button.saved { background: var(--coral); color: white; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed #cfc7db; border-radius: 18px; }
.empty-state h3 { margin: 0 0 5px; }
.empty-state p { margin: 0; color: var(--muted); }

.creator-list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #3a3349; }
.creator-item { padding: 24px 18px 24px 0; border-bottom: 1px solid #3a3349; display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; }
.creator-avatar { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 900; background: var(--avatar, var(--violet)); }
.creator-item strong { display: block; font-size: 14px; }
.creator-item span { display: block; color: #aaa2b9; font-size: 12px; }
.creator-item:hover strong { color: #bba7ff; }

.profile-hero { padding: 80px clamp(20px, 7vw, 112px) 60px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: linear-gradient(120deg, #e9e3fb, #f7f5fa 58%); border-bottom: 1px solid var(--line); }
.profile-avatar { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: var(--avatar, var(--violet)); color: white; font-weight: 900; font-size: 32px; box-shadow: 0 0 0 8px rgba(255,255,255,.65); }
.profile-copy h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.05em; }
.profile-copy .handle { margin: 0 0 12px; color: var(--violet-dark); }
.profile-copy .bio { margin: 0; max-width: 640px; color: var(--muted); }
.profile-stats { display: flex; gap: 22px; }
.profile-stats span { display: block; color: var(--muted); font-size: 12px; }
.profile-stats strong { font-size: 22px; }

.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(22,17,35,.78); backdrop-filter: blur(18px); }
.age-gate[hidden] { display: none; }
.age-panel { width: min(460px, 100%); padding: 42px; background: #fff; border-radius: 30px 10px 30px 10px; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.age-kicker { margin: 20px 0 5px; color: var(--violet); font-weight: 800; }
.age-panel h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.age-panel p { color: var(--muted); }
.age-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translate(-50%, 30px); padding: 11px 18px; border-radius: 10px; background: var(--ink); color: #fff; opacity: 0; pointer-events: none; transition: .2s ease; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.admin-body { background: #efecf5; }
.admin-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(300px, .7fr) minmax(520px, 1.3fr); }
.admin-intro { padding: clamp(50px, 7vw, 100px); background: var(--ink); color: #fff; }
.admin-badge { display: inline-block; margin: 0 0 40px; padding: 5px 10px; border: 1px solid #50475f; border-radius: 6px; color: #c9bed8; font-size: 12px; }
.admin-intro h1 { margin: 0 0 24px; font-size: clamp(42px, 5vw, 72px); line-height: 1.08; letter-spacing: -.06em; }
.admin-intro > p:not(.admin-badge) { max-width: 520px; color: #b9b0c6; }
.admin-note { margin-top: 60px; padding-top: 24px; border-top: 1px solid #423a50; display: grid; gap: 7px; color: #b9b0c6; font-size: 13px; }
.admin-note strong { color: #fff; }
.form-panel { padding: clamp(38px, 6vw, 82px); background: #fff; }
#postForm, #creatorForm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; max-width: 820px; }
#creatorStatus { grid-column: 1 / -1; }
#creatorCancel[hidden] { display: none; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.profile-links .button { min-width: 0; }
#postEditForm { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 820px; }
#postEditForm[hidden] { display: none; }
#creatorBio { width: 100%; box-sizing: border-box; padding: 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 800; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; padding-top: 10px; }
.saved-list-wrap { max-width: 820px; margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--line); }
.draft-list { display: grid; gap: 9px; }
.draft-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; padding: 13px 15px; background: var(--paper); border-radius: 9px; }
.draft-item strong { display: block; font-size: 14px; }
.draft-item span { color: var(--muted); font-size: 12px; }
.draft-item button { border: 0; background: transparent; color: #a13b46; cursor: pointer; }
.draft-item > span > span { display: block; overflow-wrap: anywhere; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.draft-actions a { font-size: 13px; }
/* Keep post text above controls: the action row must never squeeze the title. */
.form-panel { min-width: 0; }
#draftList { min-width: 0; }
.admin-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 16px; }
.admin-filters > * { min-width: 0; }
.admin-filters select, .admin-filters input { width: 100%; min-width: 0; }
.admin-filters > button { justify-self: start; align-self: end; }
#draftList .draft-item { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
#draftList .draft-item > span { min-width: 0; }
#draftList .draft-item strong { font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
#draftList .draft-item > span > span { margin-top: 5px; line-height: 1.6; }
#draftList .draft-actions { min-width: 0; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
#draftList .draft-actions > button,
#draftList .draft-actions > a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; line-height: 1.5; white-space: nowrap; }
#draftList .draft-actions > label { flex: 1 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 12px; color: var(--muted); }
#draftList .draft-actions select { width: 100%; min-width: 0; max-width: 100%; padding: 9px; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
#adminStatus { grid-column: 1 / -1; overflow-wrap: anywhere; }
.admin-body button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 640px) { .draft-item { grid-template-columns: 1fr; } }

footer { padding: 44px clamp(20px, 7vw, 112px); display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer strong { color: var(--ink); font-size: 15px; }
footer p { margin: 5px 0 0; max-width: 620px; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 80px); max-width: 1400px; margin: 0 auto; padding: 50px clamp(20px, 7vw, 112px) 100px; }
.back-link { display: inline-block; margin-bottom: 36px; color: var(--violet-dark); font-size: 13px; font-weight: 800; }
.post-head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.post-head h1 { margin: 4px 0 26px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.32; letter-spacing: -.04em; }
.post-date { margin: 0; color: var(--muted); font-size: 13px; }
.post-author { display: inline-flex; align-items: center; gap: 11px; }
.post-author .creator-avatar { width: 40px; height: 40px; font-size: 11px; }
.post-author strong, .post-author small { display: block; }
.post-author small { color: var(--muted); }
.embed-shell { margin: 30px 0 20px; min-height: 400px; display: grid; place-items: center; padding: 25px; border-radius: 18px 6px 18px 6px; background: #eae6f3; }
.embed-before { max-width: 440px; text-align: center; }
.embed-before[hidden] { display: none; }
.embed-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; background: var(--ink); color: #fff; }
.embed-before h2 { margin: 0 0 8px; font-size: 24px; }
.embed-before p { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.embed-target { width: min(100%, 550px); }
.embed-target[hidden] { display: none; }
.embed-target .twitter-tweet { margin: 0 auto !important; }
.native-videos { width: 100%; display: grid; gap: 20px; min-width: 0; }
.native-videos[hidden] { display: none; }
.native-videos video { display: block; width: 100%; max-height: 72vh; background: #000; border-radius: 10px; }
.video-status { font-size: 13px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.video-status:empty { display: none; }
#loadVideo { margin-top: 12px; }
#loadVideo[hidden] { display: none; }
#loadVideo:disabled { opacity: .6; cursor: wait; }
.post-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.post-tags span { padding: 5px 11px; border-radius: 999px; background: var(--soft); color: var(--violet-dark); font-size: 13px; }
.embed-fallback { margin-top: 24px; color: var(--muted); font-size: 13px; }
.embed-fallback a { color: var(--violet-dark); text-decoration: underline; }
.post-aside { padding-top: 107px; }
.aside-panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.aside-panel h2 { margin: 0 0 11px; font-size: 18px; }
.aside-panel p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.aside-cta { width: 100%; }
.aside-panel small { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; }
.aside-empty { padding: 18px; background: var(--paper); border-radius: 8px; color: var(--muted); text-align: center; font-size: 13px; }
.aside-author a { color: var(--violet-dark); font-size: 13px; font-weight: 800; }
.aside-video-list { display: grid; gap: 14px; }
.aside-video { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 50px; }
.aside-video-thumb { display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; border-radius: 6px; background: var(--soft); color: var(--violet-dark); }
.aside-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aside-video-title { min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.aside-video:hover .aside-video-title { color: var(--violet-dark); text-decoration: underline; }
.aside-tags { display: grid; gap: 6px; }
.aside-tag { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 6px; background: var(--paper); font-size: 13px; color: var(--violet-dark); }
.aside-tag > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.aside-tag-count { flex-shrink: 0; color: var(--muted); font-size: 12px; }
.post-missing { padding: 60px 0; }
.post-missing p { color: var(--muted); }

@media (max-width: 900px) {
  .site-header { height: auto; min-height: 76px; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
  .site-header nav { flex-wrap: wrap; gap: 4px 14px; }
  .site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { padding-top: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy h1 { font-size: clamp(38px, 8vw, 60px); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creator-list { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-intro { padding-bottom: 55px; }
  .profile-hero { grid-template-columns: auto 1fr; }
  .profile-stats { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .post-layout { padding: 32px 18px 65px; gap: 30px; }
  .embed-shell { min-height: 0; padding: 10px; margin-top: 22px; }
  .embed-before { padding: 22px 8px; }
  .native-videos video { max-width: 100%; max-height: 65svh; object-fit: contain; }
  .site-header { position: relative; min-height: 0; padding: 12px 18px 8px; display: block; }
  .site-header .brand { min-height: 44px; }
  .site-header nav { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
  .site-header nav a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 10px; border-radius: 8px; flex: 1 0 auto; font-size: 13px; }
  .site-header nav a.active, .site-header nav a[aria-current="page"] { background: var(--soft); }
  .hero { min-height: 0; padding: 46px 18px 48px; gap: 34px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy br { display: none; }
  .search-shell { padding: 21px; border-radius: 20px 7px 20px 7px; }
  .search-row { grid-template-columns: 1fr; }
  .content-section, .creator-section { padding: 54px 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .video-grid { grid-template-columns: 1fr; gap: 30px; }
  .creator-list { grid-template-columns: 1fr; }
  .creator-item { padding-right: 0; }
  .profile-hero { padding: 55px 20px 42px; grid-template-columns: 1fr; }
  .profile-avatar { width: 86px; height: 86px; }
  .age-panel { padding: 30px 24px; }
  .age-actions { grid-template-columns: 1fr; }
  .form-panel { padding: 38px 20px; }
  #postForm, #creatorForm { grid-template-columns: 1fr; }
  .field, .field.full { grid-column: 1; }
  input, select, textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  #draftList .draft-actions select { font-size: 16px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions > .button { flex: 1 1 100%; padding: 10px 14px; }
  .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .period-tabs { width: 100%; }
  .period-tabs button { min-height: 44px; flex: 1 1 auto; }
  .chip, .text-button { min-height: 44px; }
  .save-button { width: 44px; height: 44px; }
  .tag-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 8px; background: var(--soft); border-radius: 6px; }
  .preview { aspect-ratio: 16/9; }
  .creator-line { flex-wrap: wrap; }
  .creator-line a { min-width: 0; overflow-wrap: anywhere; }
  .post-main, .post-aside, .profile-copy, .field, .draft-item > span { min-width: 0; }
  .post-head h1, .card-body h3, .profile-copy, .post-author, .embed-fallback, .aside-panel, .draft-item strong { overflow-wrap: anywhere; }
  .results-meta { flex-wrap: wrap; gap: 8px; }
  .draft-actions { width: 100%; }
  #draftList .draft-actions > button, #draftList .draft-actions > a,
  .draft-actions > button, .draft-actions > a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; white-space: normal; padding: 10px; }
  .draft-item { grid-template-columns: minmax(0, 1fr); }
  #backupFile { padding: 10px 8px; }
  #exportBackup, #restoreBackup { width: 100%; margin: 8px 0; padding: 10px; }
  .saved-list-wrap { margin-top: 38px; padding-top: 24px; }
  .age-gate { overflow-y: auto; }
  .age-panel { max-height: calc(100svh - 40px); overflow-y: auto; }
  .toast { width: max-content; max-width: calc(100% - 32px); bottom: max(16px, env(safe-area-inset-bottom)); }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
