/* Dictionary */
.app-dictionary { background: var(--surface); container-type: inline-size; --dc-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif; }
.dc-toolbar { gap: 4px; }
.dc-search { flex: 1; max-width: 520px; margin-left: 6px; position: relative; }
.dc-search .input { height: 34px; }
.dc-sugg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; padding: 5px; border-radius: 12px; display: flex; flex-direction: column; background: var(--glass-solid) !important; }
.dc-sugg[hidden] { display: none; }
.dc-sugg-row { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); text-align: left; font-size: 13.5px; }
.dc-sugg-row b { color: var(--text); font-weight: 700; }
.dc-sugg-row:hover, .dc-sugg-row.on { background: var(--hover); }
.dc-sugg-row .ic { color: var(--text-3); }

.dc-content { flex: 1; }
.dc-page { max-width: 720px; margin: 0 auto; padding: 26px 30px 36px; display: flex; flex-direction: column; gap: 14px; }

/* word of the day */
.dc-wotd {
  position: relative; overflow: hidden; padding: 24px 26px 22px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #fb7185 0%, transparent 55%), linear-gradient(135deg, #7f1d1d, #b91c1c 55%, #ea580c);
  box-shadow: 0 14px 34px -18px rgba(185, 28, 28, .8);
}
.dc-wotd::after { content: '“'; position: absolute; right: 18px; top: -30px; font: 200px/1 var(--dc-serif); color: rgba(255, 255, 255, .12); pointer-events: none; }
.dc-wotd-k { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; opacity: .9; }
.dc-wotd-w { margin: 10px 0 0; font: 600 44px/1.05 var(--dc-serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.dc-wotd-p { margin-top: 4px; font-style: italic; opacity: .85; font-family: var(--dc-serif); font-size: 16px; }
.dc-wotd-d { margin: 12px 0 18px; font-size: 16px; line-height: 1.5; max-width: 520px; }
.dc-wotd-a { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.dc-wotd .btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.dc-wotd .btn:hover { background: rgba(255, 255, 255, .26); }
.dc-wotd .btn-primary { background: #fff; color: #991b1b; box-shadow: none; }
.dc-wotd .btn-primary:hover { background: #fff; filter: brightness(.96); }

.dc-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.dc-sec-h h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-3); }
.dc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dc-chips.center { justify-content: center; margin-top: 6px; }
.dc-chip { font-weight: 500; color: var(--text); }
.dc-chip.ant { color: var(--text-2); }
.dc-saved { display: flex; flex-direction: column; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.dc-saved-row { display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; min-width: 0; }
.dc-saved-row:last-child { border-bottom: 0; }
.dc-saved-row:hover { background: var(--hover); }
.dc-saved-row b { font: 600 16px var(--dc-serif); flex: 0 0 auto; }
.dc-saved-row span { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dc-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(var(--accent-rgb), .1); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.dc-hint > span:first-child { color: var(--accent); display: grid; padding-top: 1px; }
.dc-hint.small { padding: 8px 12px; font-size: 12.5px; align-items: center; }
.dc-credit { margin: 14px 0 0; font-size: 11.5px; color: var(--text-3); }
.dc-credit a { color: var(--text-2); }

/* entry */
.dc-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.dc-title { display: flex; align-items: center; gap: 4px; }
.dc-word { margin: 0 8px 0 0; font: 600 46px/1.08 var(--dc-serif); letter-spacing: -.01em; overflow-wrap: anywhere; min-width: 0; }
.dc-save.on { color: var(--accent); }
.dc-save.on svg { fill: currentColor; }
.dc-pron { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dc-ipa { font-size: 18px; color: var(--accent); font-family: 'Charis SIL', 'Doulos SIL', 'Lucida Sans Unicode', var(--font); margin-right: 4px; }
.dc-play { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; border-radius: 15px; border: 0; background: rgba(var(--accent-rgb), .14); color: var(--accent); font-size: 12px; font-weight: 700; }
.dc-play:hover { background: rgba(var(--accent-rgb), .22); }
.dc-play.playing { background: var(--accent); color: var(--accent-fg); }
.dc-parts { display: flex; gap: 6px; flex-wrap: wrap; }
.dc-meaning { scroll-margin-top: 12px; }
.dc-part { display: flex; align-items: center; gap: 12px; margin: 10px 0 8px; font: italic 600 20px var(--dc-serif); }
.dc-part i { flex: 1; height: 1px; background: var(--line-2); }
.dc-defs { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 10px; }
.dc-defs li::marker { color: var(--text-3); font-weight: 700; font-size: 13px; }
.dc-def { margin: 0; font-size: 15px; line-height: 1.55; }
.dc-ex { margin: 4px 0 0; color: var(--text-2); font-style: italic; font-size: 14px; line-height: 1.5; padding-left: 12px; border-left: 2px solid rgba(var(--accent-rgb), .45); }
.dc-rel { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; }
.dc-rel-k { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--text-3); width: 72px; }

.dc-skel { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.dc-skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: dc-sh 1.2s linear infinite; }
@keyframes dc-sh { to { background-position: -200% 0; } }

.dc-empty { padding-top: 60px; }
.dc-empty-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.dc-builtin { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; justify-content: center; max-width: 420px; margin: 4px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); color: var(--text); }
.dc-builtin b { font: 600 18px var(--dc-serif); }
.dc-builtin i { color: var(--text-3); }

@container (max-width: 560px) {
  .dc-page { padding: 18px 16px 28px; }
  .dc-word { font-size: 36px; }
  .dc-wotd { padding: 20px 18px; }
  .dc-wotd-w { font-size: 36px; }
  .dc-rel { flex-direction: column; gap: 6px; }
  .dc-toolbar .icon-btn:nth-child(3) { display: none; }
}
