/* ===== Motion Timeline renderer (shared by editor, viewer, export) ===== */
.otl {
  --bg: #eef0f5;
  --surface: #f3f5f9;
  --ink: #26324a;
  --ink-2: #5b6782;
  --ink-3: #94a0b8;
  --hl: #ffffff;
  --sh: #c9d0dd;
  --neu: 9px 9px 20px var(--sh), -9px -9px 20px var(--hl);
  --neu-sm: 5px 5px 12px var(--sh), -5px -5px 12px var(--hl);
  --neu-in: inset 4px 4px 10px var(--sh), inset -4px -4px 10px var(--hl);
  --pink: #ef5e8f; --orange: #f7a64a; --teal: #22c3a0; --blue: #3fa2f6;
  position: relative;
  font-family: 'Pretendard Variable', Pretendard, 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}
.otl * { box-sizing: border-box; }

/* floating organic background blobs */
.otl-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.otl-bg i {
  position: absolute; display: block; width: 420px; height: 420px; opacity: .55;
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #e7eaf1 55%, #dfe3ec 100%);
  box-shadow: 18px 18px 40px rgba(180,188,205,.35), -18px -18px 40px rgba(255,255,255,.8);
  animation: otl-float 18s ease-in-out infinite, otl-morph 14s ease-in-out infinite;
}
.otl-bg i:nth-child(1) { top: -140px; right: -100px; }
.otl-bg i:nth-child(2) { bottom: -180px; left: -120px; width: 520px; height: 520px; animation-delay: -6s, -3s; }
.otl-bg i:nth-child(3) { top: 40%; left: 55%; width: 220px; height: 220px; opacity: .35; animation-delay: -10s, -7s; }
@keyframes otl-float { 0%,100% { transform: translate(0,0) rotate(0) } 50% { transform: translate(30px,-24px) rotate(14deg) } }
@keyframes otl-morph {
  0%,100% { border-radius: 58% 42% 63% 37% / 45% 55% 45% 55% }
  33% { border-radius: 40% 60% 45% 55% / 60% 40% 60% 40% }
  66% { border-radius: 65% 35% 50% 50% / 38% 62% 38% 62% }
}

/* header */
.otl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 34px 40px 10px; }
.otl-dots { display: flex; gap: 7px; margin-bottom: 18px; }
.otl-dots b { width: 12px; height: 12px; border-radius: 4px; display: block; }
.otl-dots b:nth-child(1) { background: var(--pink) } .otl-dots b:nth-child(2) { background: var(--orange) } .otl-dots b:nth-child(3) { background: var(--teal) }
.otl-title { margin: 0; font-size: clamp(26px, 3.4vw, 44px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.otl-title strong { font-weight: 800; }
.otl-title .w { display: inline-block; }
.otl-sub { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; max-width: 680px; line-height: 1.6; }
.otl-badge {
  flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); box-shadow: var(--neu); position: relative;
}
.otl-badge::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; box-shadow: var(--neu-in); }
.otl-badge span { position: relative; font-size: 26px; font-weight: 800; }
.otl-badge small { position: absolute; bottom: 20px; font-size: 9px; letter-spacing: .14em; color: var(--ink-3); font-weight: 700; }

/* controls */
.otl-ctrl { display: flex; align-items: center; gap: 10px; padding: 8px 40px 4px; flex-wrap: wrap; }
.otl-btn {
  border: 0; background: var(--bg); color: var(--ink); box-shadow: var(--neu-sm); border-radius: 14px;
  height: 40px; min-width: 40px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: box-shadow .2s, transform .2s, color .2s;
}
.otl-btn:hover { color: var(--pink); transform: translateY(-1px); }
.otl-btn:active, .otl-btn.on { box-shadow: var(--neu-in); }
.otl-btn svg { width: 16px; height: 16px; }
.otl-progress { flex: 1; min-width: 120px; height: 8px; border-radius: 8px; box-shadow: var(--neu-in); overflow: hidden; }
.otl-progress i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--pink), var(--orange), var(--teal), var(--blue)); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.otl-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.otl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.otl-legend span i { width: 10px; height: 10px; border-radius: 50% 40% 55% 45%; }

/* ===== horizontal layout ===== */
.otl-scroller { position: relative; overflow-x: auto; overflow-y: hidden; padding: 10px 0 30px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #cfd5e2 transparent; }
.otl-scroller::-webkit-scrollbar { height: 8px } .otl-scroller::-webkit-scrollbar-thumb { background: #cfd5e2; border-radius: 8px }
.otl-track { position: relative; }
.otl-svg { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.otl-path { fill: none; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 3px 4px rgba(0,0,0,.08)); }
.otl-path-bg { fill: none; stroke: #dfe3ec; stroke-width: 10; stroke-linecap: round; }
.otl-year { position: absolute; top: 0; font-size: 64px; font-weight: 900; color: #e3e7ef; letter-spacing: -.04em; line-height: 1; pointer-events: none; text-shadow: 1px 1px 0 #fff; user-select: none; }

.otl-lane-label {
  position: absolute; left: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; background: var(--bg); box-shadow: var(--neu-sm); border-radius: 22px 18px 20px 16px;
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.otl-lane-label i { width: 22px; height: 22px; display: block; border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; box-shadow: inset -3px -3px 6px rgba(0,0,0,.12); }
.otl-lane-band { position: absolute; left: 0; right: 0; border-radius: 26px; box-shadow: var(--neu-in); opacity: .5; }

.otl-dot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; z-index: 3;
  background: var(--c); box-shadow: 0 0 0 5px var(--bg), 0 4px 10px rgba(0,0,0,.18);
  transform: scale(0);
}
.otl-dot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
.otl.ready .otl-dot { animation: otl-pop .7s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: var(--d, 0s); }
.otl-node.active .otl-dot::after, .otl-dot.active::after { animation: otl-ring 1.4s ease-out infinite; }
@keyframes otl-pop { to { transform: scale(1) } }
@keyframes otl-ring { 0% { opacity: .8; transform: scale(.6) } 100% { opacity: 0; transform: scale(2.2) } }

.otl-stem { position: absolute; width: 2px; background: repeating-linear-gradient(to bottom, var(--c) 0 4px, transparent 4px 8px); opacity: .55; z-index: 1; transform: scaleY(0); transition: transform .6s .1s ease; }
.otl-stem.up { transform-origin: bottom } .otl-stem.down { transform-origin: top }
.otl-stem.in { transform: scaleY(1); }

/* card */
.otl-card {
  position: absolute; z-index: 4; width: var(--cw, 250px); background: var(--surface); border-radius: 24px;
  box-shadow: var(--neu); padding: 14px; cursor: pointer; text-align: left;
  opacity: 0; transform: translateY(26px) scale(.96);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.25,1), box-shadow .3s;
  will-change: transform;
}
.otl-card.flip { transform: translateY(-26px) scale(.96); }
.otl-card.in { opacity: 1; transform: none; }
.otl-card.in:hover { box-shadow: 14px 14px 28px var(--sh), -10px -10px 24px var(--hl), 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.otl-node.active .otl-card, .otl-card.active { box-shadow: 14px 14px 30px var(--sh), -10px -10px 24px var(--hl), 0 0 0 3px var(--c); }
.otl-card.dim { opacity: .35; }

.otl-media { position: relative; height: var(--mh, 132px); margin: -2px -2px 12px; }
.otl-media .blob {
  position: absolute; inset: 0; overflow: hidden; background: #e4e8f0;
  border-radius: 42% 58% 38% 62% / 52% 44% 56% 48%;
  box-shadow: 6px 6px 14px var(--sh), -6px -6px 14px var(--hl);
  animation: otl-morph 12s ease-in-out infinite; animation-delay: var(--md, 0s);
}
.otl-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.otl-card:hover .otl-media img { transform: scale(1.07); }
.otl-media.noimg .blob { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 35%, #fff), color-mix(in srgb, var(--c) 75%, #fff)); }
.otl-media.noimg .blob span { font-size: 34px; font-weight: 900; color: #fff; opacity: .9; letter-spacing: -.03em; }
.otl-yt {
  position: absolute; right: 6px; bottom: 2px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #ff3d3d; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(255,61,61,.45), 0 0 0 4px var(--surface);
  transition: transform .25s;
}
.otl-yt:hover { transform: scale(1.12); }
.otl-yt svg { width: 18px; height: 18px; margin-left: 3px; }
.otl-icon {
  position: absolute; left: 4px; top: -6px; width: 40px; height: 40px; display: grid; place-items: center; z-index: 2;
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; background: var(--c); color: #fff; font-size: 12px; font-weight: 900;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 45%, transparent), inset -3px -3px 6px rgba(0,0,0,.12);
}

.otl-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--c); letter-spacing: .02em; }
.otl-date::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.otl-card h4 { margin: 6px 0 6px; font-size: 16px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.otl-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: var(--clamp, 3); -webkit-box-orient: vertical; overflow: hidden; }
.otl-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.otl-tags span { font-size: 10.5px; font-weight: 700; color: var(--ink-3); padding: 3px 8px; border-radius: 10px; box-shadow: var(--neu-in); }
.otl-mini { display: flex; gap: 4px; margin-top: 10px; }
.otl-mini b { width: 6px; height: 6px; border-radius: 50%; }
.otl-mini b:nth-child(1){background:var(--pink)} .otl-mini b:nth-child(2){background:var(--orange)} .otl-mini b:nth-child(3){background:var(--teal)}

/* ===== vertical layout ===== */
.otl-v { position: relative; padding: 20px 24px 40px; }
.otl-v-grid { position: relative; display: grid; gap: 26px 22px; }
.otl-v-spine { position: absolute; top: 0; bottom: 0; width: 4px; border-radius: 4px; transform-origin: top; transform: scaleY(0); transition: transform 2.2s cubic-bezier(.4,0,.2,1); }
.otl.ready .otl-v-spine { transform: scaleY(1); }
.otl-v .otl-card { position: relative; width: auto; }
.otl-v-cell { position: relative; }
.otl-v-cell .otl-dot { top: 26px; }
.otl-v-head { position: sticky; top: 0; z-index: 6; text-align: center; padding: 10px 6px; }
.otl-v-head .otl-lane-label { position: relative; left: 0; }
.otl-v.single .otl-v-grid { grid-template-columns: 1fr 1fr; column-gap: 70px; }
.otl-v.single .otl-v-cell.l { grid-column: 1; }
.otl-v.single .otl-v-cell.r { grid-column: 2; }
.otl-v.narrow .otl-v-grid { grid-template-columns: 1fr; padding-left: 34px; }

/* ===== modal ===== */
.otl-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: rgba(38,50,74,.35); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.otl-modal.show { opacity: 1; }
.otl-modal-box {
  position: relative; width: min(860px, 100%); max-height: 92vh; overflow: auto; background: #f2f4f8; border-radius: 30px; padding: 26px;
  box-shadow: 0 30px 80px rgba(38,50,74,.35); transform: translateY(30px) scale(.96); transition: transform .45s cubic-bezier(.2,.9,.25,1);
  font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif; color: #26324a;
}
.otl-modal.show .otl-modal-box { transform: none; }
.otl-modal-x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef0f5; box-shadow: 5px 5px 12px #c9d0dd, -5px -5px 12px #fff; cursor: pointer; font-size: 20px; color: #26324a; z-index: 2; }
.otl-modal-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 40% 60% 46% 54% / 18% 22% 18% 22%; box-shadow: 8px 8px 20px #c9d0dd; display: block; }
.otl-modal-yt { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 8px 8px 20px #c9d0dd; }
.otl-modal-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.otl-modal h3 { font-size: 26px; margin: 18px 0 6px; letter-spacing: -.02em; }
.otl-modal p { color: #5b6782; line-height: 1.75; white-space: pre-wrap; margin: 0; }
.otl-credit { font-size: 11px; color: #94a0b8; margin-top: 8px; }
.otl-credit a { color: inherit; }
.otl-modal-media { display: grid; gap: 14px; }
.otl-modal-nav { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }

@media (max-width: 720px) {
  .otl-head { padding: 24px 20px 6px; }
  .otl-ctrl { padding: 6px 20px; }
  .otl-badge { width: 70px; height: 70px; } .otl-badge span { font-size: 20px; } .otl-badge small { bottom: 13px; }
  .otl-v { padding: 16px 14px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .otl *, .otl-bg i { animation: none !important; transition: none !important; }
  .otl-card { opacity: 1; transform: none; } .otl-dot { transform: scale(1); } .otl-stem { transform: none; }
}

/* ===== orientation toggle ===== */
.otl-orient { display: inline-flex; gap: 3px; padding: 4px; border-radius: 14px; box-shadow: var(--neu-in); }
.otl-orient button { border: 0; background: none; height: 32px; padding: 0 11px; border-radius: 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: .2s; }
.otl-orient button svg { width: 15px; height: 15px; }
.otl-orient button.on { background: var(--surface); color: var(--pink); box-shadow: var(--neu-sm); }
@media (max-width: 720px) { .otl-orient button span, .otl-ctrl [data-a=present] span { display: none; } }

/* ===== presentation mode ===== */
.otp { position: fixed; inset: 0; z-index: 10000; border-radius: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; overflow: hidden; }
.otp-top { min-width: 0; }
.otp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px 0; }
.otp-brand { display: flex; align-items: center; gap: 14px; font-size: 15px; min-width: 0; }
.otp-brand .otl-dots { margin: 0; }
.otp-brand > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.otp-tools { display: flex; align-items: center; gap: 8px; }
.otp-count { font-size: 13px; font-weight: 800; color: var(--ink-2); padding: 0 8px; letter-spacing: .04em; }
.otp-int { border: 0; background: var(--bg); box-shadow: var(--neu-in); border-radius: 12px; height: 40px; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.otp-stage { position: relative; min-height: 0; }
.otp-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 5vw, 80px); padding: 10px clamp(70px, 8vw, 130px); }
.otp-text { min-width: 0; }
.otp-num { font-size: clamp(54px, 8vw, 120px); font-weight: 900; line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 55%, #fff); margin-bottom: 14px; }
.otp-num small { font-size: 18px; -webkit-text-stroke: 0; color: var(--ink-3); letter-spacing: 0; margin-left: 10px; font-weight: 700; }
.otp-date { font-size: 16px; }
.otp-lane { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 14px; vertical-align: middle; padding: 6px 14px 6px 8px; border-radius: 20px; box-shadow: var(--neu-sm); font-size: 13px; font-weight: 800; }
.otp-lane i { width: 16px; height: 16px; border-radius: 55% 45% 60% 40%; background: var(--c); }
.otp-h1 { font-size: clamp(36px, 5.4vw, 78px); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; margin: 18px 0 0; }
.otp-h1 strong { font-weight: 800; }
.otp-h2 { font-size: clamp(30px, 4vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 16px 0 0; }
.otp-lead { font-size: clamp(16px, 1.5vw, 21px); color: var(--ink-2); line-height: 1.6; margin: 18px 0 0; max-width: 640px; }
.otp-desc { font-size: clamp(15px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.75; margin: 18px 0 0; max-width: 620px; white-space: pre-wrap; }
.otp-tags { margin-top: 20px; }
.otp-tags span { font-size: 12.5px; padding: 6px 12px; }
.otp-legend { margin-top: 22px; font-size: 14px; }
.otp-range { margin-top: 26px; font-size: 14px; font-weight: 800; color: var(--ink-3); letter-spacing: .08em; }
.otp-start { margin-top: 28px; height: 52px; padding: 0 26px; font-size: 15px; border-radius: 18px; background: linear-gradient(135deg, var(--pink), var(--orange)); color: #fff; box-shadow: 8px 8px 18px rgba(239,94,143,.35), -6px -6px 14px var(--hl); }
.otp-start:hover { color: #fff; }

.otp-media { position: relative; min-width: 0; height: min(64vh, 620px); display: grid; place-items: center; }
.otp-blob { position: relative; width: 100%; height: 100%; overflow: hidden; background: #e4e8f0; border-radius: 42% 58% 38% 62% / 52% 44% 56% 48%; box-shadow: 18px 18px 40px var(--sh), -14px -14px 34px var(--hl); animation: otl-morph 14s ease-in-out infinite; }
.otp-blob img { width: 100%; height: 100%; object-fit: cover; display: block; animation: otp-kenburns 16s ease-in-out infinite alternate; }
@keyframes otp-kenburns { from { transform: scale(1.02) } to { transform: scale(1.12) translate(-1.5%, -1%) } }
.otp-blob.empty { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 30%, #fff), var(--c)); }
.otp-blob.empty span { font-size: clamp(60px, 9vw, 140px); font-weight: 900; color: #fff; letter-spacing: -.05em; opacity: .92; }
.otp-frame { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 100%; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 18px 18px 40px var(--sh), -14px -14px 34px var(--hl); }
.otp-frame.map { background: #e4e8f0; }
.otp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.otp-ytplay { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 0; cursor: pointer; background: #ff3d3d; color: #fff; display: grid; place-items: center; transition: transform .25s; animation: otp-ring 2s ease-out infinite; }
.otp-ytplay:hover { transform: scale(1.1); }
.otp-ytplay svg { width: 34px; height: 34px; margin-left: 5px; }
@keyframes otp-ring { 0% { box-shadow: 0 12px 30px rgba(255,61,61,.5), 0 0 0 0 rgba(255,61,61,.45) } 100% { box-shadow: 0 12px 30px rgba(255,61,61,.5), 0 0 0 26px rgba(255,61,61,0) } }
.otp-credit { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; }
.otp-tabs { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(243,245,249,.85); backdrop-filter: blur(6px); box-shadow: var(--neu-sm); z-index: 2; }
.otp-tabs button { border: 0; background: none; padding: 7px 12px; border-radius: 10px; font: inherit; font-size: 12px; font-weight: 800; color: var(--ink-2); cursor: pointer; }
.otp-tabs button.on { background: var(--c, var(--pink)); color: #fff; }

.otp-cover-badge { position: absolute; z-index: 2; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: var(--neu); }
.otp-cover-badge::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; box-shadow: var(--neu-in); }
.otp-cover-badge span { position: relative; font-size: 44px; font-weight: 900; }
.otp-cover-badge small { position: absolute; bottom: 34px; font-size: 10px; letter-spacing: .16em; color: var(--ink-3); font-weight: 800; }
.otp-cover-blobs { position: absolute; inset: 0; }
.otp-cover-blobs i { position: absolute; width: 46%; height: 46%; border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 25%, #fff), var(--c)); opacity: .9; box-shadow: 0 20px 40px color-mix(in srgb, var(--c) 35%, transparent); animation: otl-morph 12s ease-in-out infinite, otl-float 16s ease-in-out infinite; animation-delay: calc(var(--k) * -3s), calc(var(--k) * -4s); }
.otp-cover-blobs i:nth-child(1) { left: 6%; top: 8%; } .otp-cover-blobs i:nth-child(2) { right: 4%; top: 14%; width: 38%; height: 38%; }
.otp-cover-blobs i:nth-child(3) { left: 16%; bottom: 4%; width: 34%; height: 34%; } .otp-cover-blobs i:nth-child(4) { right: 12%; bottom: 8%; width: 30%; height: 30%; }

.otp-nav { position: absolute; top: 50%; z-index: 3; width: 54px; height: 54px; margin-top: -27px; border: 0; border-radius: 50%; background: var(--bg); box-shadow: var(--neu-sm); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: .2s; }
.otp-nav svg { width: 22px; height: 22px; }
.otp-nav:hover { color: var(--pink); transform: scale(1.06); }
.otp-nav:disabled { opacity: .25; cursor: default; transform: none; }
.otp-nav.prev { left: 18px; } .otp-nav.next { right: 18px; }

.otp-rail { position: relative; margin: 0 clamp(20px, 6vw, 110px) 26px; padding-top: 8px; }
.otp-line { position: absolute; left: 0; right: 0; top: 23px; height: 6px; border-radius: 6px; box-shadow: var(--neu-in); overflow: hidden; }
.otp-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--orange), var(--teal), var(--blue)); border-radius: 6px; transition: width .6s cubic-bezier(.2,.9,.25,1); }
.otp-dots { position: relative; display: flex; justify-content: space-between; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.otp-dots::-webkit-scrollbar { display: none; }
.otp-rd { flex: 1 0 34px; min-width: 34px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 0; font: inherit; color: var(--ink-3); }
.otp-rd b { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: var(--neu-sm); transition: .3s cubic-bezier(.3,1.6,.5,1); border: 3px solid var(--c, #c6cddb); }
.otp-rd.start b { border-color: var(--ink-3); }
.otp-rd.past b { background: var(--c, #c6cddb); }
.otp-rd.on b { transform: scale(1.45); background: var(--c, var(--ink)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--c, #26324a) 22%, transparent); }
.otp-rd span { font-size: 10.5px; font-weight: 700; white-space: nowrap; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
.otp-rd.on span { color: var(--ink); }
.otp-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.otp-timer i { display: block; height: 100%; width: 0; background: var(--pink); }

@media (max-width: 860px) {
  .otp-top { padding: 12px 14px 0; }
  .otp-brand > span, .otp-int { display: none; }
  .otp-slide { grid-template-columns: 1fr; grid-template-rows: minmax(0, 42%) auto; align-content: center; gap: 18px; padding: 8px 22px; overflow: auto; }
  .otp-slide .otp-media { order: -1; height: 100%; min-height: 200px; }
  .otp-slide.cover .otp-media { height: 220px; }
  .otp-num { font-size: 48px; margin-bottom: 6px; }
  .otp-nav { top: auto; bottom: 86px; width: 44px; height: 44px; }
  .otp-nav.prev { left: 10px; } .otp-nav.next { right: 10px; }
  .otp-rail { margin: 0 16px 16px; }
  .otp-rd span { display: none; }
  .otp-cover-badge { width: 110px; height: 110px; } .otp-cover-badge span { font-size: 32px; } .otp-cover-badge small { bottom: 24px; }
}
.otp-slide.leaving { pointer-events: none; z-index: 0; }
.otp-slide:not(.leaving) { z-index: 1; }

/* ===== enhanced node motion ===== */
@property --otl-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* staggered inner reveal (uses --rd = reveal delay) */
.otl-card .otl-media .blob { clip-path: circle(0% at 50% 50%); transition: clip-path 1.1s cubic-bezier(.65,0,.25,1) calc(var(--rd, 0s) + .12s); }
.otl-card.in .otl-media .blob { clip-path: circle(80% at 50% 50%); }
.otl-card .otl-icon { transform: scale(0) rotate(-140deg); transition: transform .8s cubic-bezier(.3,1.7,.5,1) calc(var(--rd, 0s) + .38s); }
.otl-card.in .otl-icon { transform: none; animation: otl-icon-float 4.5s ease-in-out calc(var(--rd, 0s) + 1.4s) infinite; }
@keyframes otl-icon-float { 0%,100% { translate: 0 0; rotate: 0deg } 50% { translate: 0 -4px; rotate: -8deg } }
.otl-card .otl-yt { scale: 0; transition: scale .6s cubic-bezier(.3,1.8,.5,1) calc(var(--rd, 0s) + .7s), transform .25s; }
.otl-card.in .otl-yt { scale: 1; }
.otl-card > .otl-date, .otl-card > h4, .otl-card > p, .otl-card > .otl-tags, .otl-card > .otl-mini {
  opacity: 0; translate: 0 14px; filter: blur(4px);
  transition: opacity .6s ease, translate .7s cubic-bezier(.2,.9,.25,1), filter .6s ease;
}
.otl-card.in > .otl-date { opacity: 1; translate: 0; filter: none; transition-delay: calc(var(--rd, 0s) + .42s); }
.otl-card.in > h4 { opacity: 1; translate: 0; filter: none; transition-delay: calc(var(--rd, 0s) + .5s); }
.otl-card.in > p { opacity: 1; translate: 0; filter: none; transition-delay: calc(var(--rd, 0s) + .58s); }
.otl-card.in > .otl-tags { opacity: 1; translate: 0; filter: none; transition-delay: calc(var(--rd, 0s) + .66s); }
.otl-card.in > .otl-mini { opacity: 1; translate: 0; filter: none; transition-delay: calc(var(--rd, 0s) + .74s); }
.otl-mini b { animation: otl-mini 2.4s ease-in-out infinite; }
.otl-mini b:nth-child(2) { animation-delay: .2s } .otl-mini b:nth-child(3) { animation-delay: .4s }
@keyframes otl-mini { 0%,60%,100% { transform: none } 30% { transform: translateY(-4px) scale(1.25) } }

/* image parallax (scroll --px/--py + mouse --mx/--my) */
.otl-media img { transform: translate3d(calc(var(--px, 0px) + var(--mx, 0px)), calc(var(--py, 0px) + var(--my, 0px)), 0) scale(var(--is, 1.14)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.otl-card:hover .otl-media img { --is: 1.22; transform: translate3d(calc(var(--px, 0px) + var(--mx, 0px)), calc(var(--py, 0px) + var(--my, 0px)), 0) scale(var(--is)); }

/* light sheen + spotlight following mouse */
.otl-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 48%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; opacity: .9; mix-blend-mode: soft-light;
}
.otl-card.in::after { animation: otl-sheen 1.3s ease calc(var(--rd, 0s) + .6s) 1 both; }
.otl-card.in:hover::after { animation: otl-sheen .9s ease 1; }
@keyframes otl-sheen { from { background-position: 130% 0 } to { background-position: -40% 0 } }
.otl-card.in:hover { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), #fff 0%, var(--surface) 55%); }

/* active (playing / focused) — rotating gradient ring + float */
.otl-card::before {
  content: ""; position: absolute; inset: -4px; border-radius: 28px; padding: 3px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--otl-ang), var(--pink), var(--orange), var(--teal), var(--blue), var(--pink));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.otl-card.active::before { opacity: 1; animation: otl-spin 2.6s linear infinite; }
.otl-card.active { animation: otl-bob 2.8s ease-in-out infinite; }
@keyframes otl-spin { to { --otl-ang: 360deg } }
@keyframes otl-bob { 0%,100% { translate: 0 0 } 50% { translate: 0 -7px } }

/* dots: squash landing, breathing glow, hover magnet */
.otl-dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%); opacity: 0; }
.otl-dot.landed { animation: otl-land .6s cubic-bezier(.3,1.6,.5,1) forwards; }
.otl-dot.landed::before { animation: otl-breathe 3.2s ease-in-out var(--d, 0s) infinite; }
@keyframes otl-land { 0% { transform: scale(1) } 30% { transform: scale(1.35, .7) } 60% { transform: scale(.85, 1.2) } 100% { transform: scale(1) } }
@keyframes otl-breathe { 0%,100% { opacity: .2; transform: scale(.8) } 50% { opacity: .9; transform: scale(1.6) } }
.otl-dot { transition: transform .35s cubic-bezier(.3,1.6,.5,1), box-shadow .3s; }
.otl-dot.hot, .otl-dot.active { transform: scale(1.4) !important; box-shadow: 0 0 0 5px var(--bg), 0 0 0 9px color-mix(in srgb, var(--c) 30%, transparent), 0 6px 18px color-mix(in srgb, var(--c) 60%, transparent); }
.otl-stem.hot { opacity: 1; filter: drop-shadow(0 0 4px var(--c)); }
.otl-part, .otl-shock { position: absolute; left: 50%; top: 50%; border-radius: 50% 40% 55% 45%; pointer-events: none; }
.otl-shock { width: 22px; height: 22px; border: 2px solid var(--c); border-radius: 50%; }

/* lane energy flow + comets */
.otl-flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 26; opacity: 0; filter: drop-shadow(0 0 3px currentColor); animation: otl-flow-in .8s ease forwards, otl-flow 1.6s linear infinite; }
.otl-flow { stroke: #fff; }
@keyframes otl-flow-in { to { opacity: .95 } }
@keyframes otl-flow { to { stroke-dashoffset: -28 } }
.otl-comet { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.otl-year { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .otl-card .otl-media .blob { clip-path: none; }
  .otl-card .otl-icon, .otl-card .otl-yt { transform: none; scale: 1; }
  .otl-card > .otl-date, .otl-card > h4, .otl-card > p, .otl-card > .otl-tags, .otl-card > .otl-mini { opacity: 1; translate: 0; filter: none; }
  .otl-comet, .otl-flow { display: none; }
}

/* ===== node text style ===== */
.otl-bl { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; }
.otl-bl li { position: relative; padding-left: 15px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.otl-bl li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 7px; height: 7px; border-radius: 55% 45% 60% 40%; background: var(--c, var(--pink)); opacity: .85; }
.otl-bl li.more { padding-left: 0; font-size: 11px; font-weight: 800; color: var(--ink-3); }
.otl-bl li.more::before { display: none; }
.otl-card .otl-bl li:not(.more) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.otl.d-brief .otl-card p { -webkit-line-clamp: 2; }
.otl.d-normal .otl-card p { -webkit-line-clamp: 4; }
.otl.d-detail .otl-card p { -webkit-line-clamp: 9; }
.otl.d-brief .otl-card .otl-bl li:not(.more) { -webkit-line-clamp: 1; }
.otl.d-detail .otl-card .otl-bl li:not(.more) { -webkit-line-clamp: 3; }
.otl.d-detail .otl-card p, .otl.d-detail .otl-bl li { font-size: 12.8px; }
.otl.d-brief .otl-card > .otl-tags { display: none; }
.otl-card > ul { opacity: 0; translate: 0 14px; filter: blur(4px); transition: opacity .6s ease, translate .7s cubic-bezier(.2,.9,.25,1), filter .6s ease; }
.otl-card.in > ul { opacity: 1; translate: 0; filter: none; transition-delay: calc(var(--rd, 0s) + .58s); }
.otl-modal-desc.otl-bl li, .otp-desc.otl-bl li { font-size: inherit; line-height: 1.7; padding-left: 20px; }
.otl-modal-desc.otl-bl li::before, .otp-desc.otl-bl li::before { width: 9px; height: 9px; top: .62em; }
.otl-modal .otl-modal-desc.otl-bl { color: #5b6782; font-size: 15px; gap: 6px; }
ul.otp-desc { display: grid; gap: 8px; }
.otp-slide ul.otp-desc li { font-size: clamp(15px, 1.35vw, 19px); }
@media (prefers-reduced-motion: reduce) { .otl-card > ul { opacity: 1; translate: 0; filter: none; } }

/* ===== presentation slide — enhanced motion ===== */
.otp-slide { --mx: 0; --my: 0; --dir: 1; }
.otp-slide .otp-text { position: relative; z-index: 2; }

/* giant ghost year drifting behind */
.otp-ghost {
  position: absolute; z-index: 0; right: 4%; bottom: 2%; font-size: clamp(120px, 26vw, 420px); font-weight: 900; line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 18%, transparent); pointer-events: none; user-select: none;
  transform: translate(calc(var(--mx) * 40px), calc(var(--my) * 24px));
  animation: otp-ghost 1.6s cubic-bezier(.2,.9,.25,1) both;
}
@keyframes otp-ghost { from { opacity: 0; translate: calc(var(--dir) * 220px) 0; letter-spacing: .1em } to { opacity: 1; translate: 0 0 } }

/* soft accent blob behind the text */
.otp-accent {
  position: absolute; z-index: 1; left: clamp(20px, 4vw, 70px); top: 14%; width: min(38vw, 520px); height: min(38vw, 520px); pointer-events: none;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--c) 22%, transparent), transparent 68%);
  border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%;
  animation: otp-accent-in 1.2s cubic-bezier(.2,.9,.25,1) both, otl-morph 12s ease-in-out infinite;
  transform: translate(calc(var(--mx) * -26px), calc(var(--my) * -18px));
}
@keyframes otp-accent-in { from { opacity: 0; scale: .3 } to { opacity: 1; scale: 1 } }

/* big outlined number: stroke draw → gradient fill sweep */
.otp-num { display: flex; align-items: flex-end; gap: 6px; -webkit-text-stroke: 0; color: inherit; font-size: inherit; transform: translate(calc(var(--mx) * -22px), calc(var(--my) * -14px)); }
.otp-numsvg { width: clamp(120px, 15vw, 250px); height: auto; overflow: visible; }
.otp-numsvg text { font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif; font-size: 134px; font-weight: 900; letter-spacing: -6px; }
.otp-numsvg .st { fill: none; stroke: color-mix(in srgb, var(--c) 70%, #fff); stroke-width: 2.4; stroke-dasharray: 520; stroke-dashoffset: 520; animation: otp-draw 1.5s cubic-bezier(.65,0,.35,1) .1s forwards; }
.otp-numsvg .fl { opacity: 0; clip-path: inset(100% 0 0 0); animation: otp-fill 1s cubic-bezier(.2,.9,.25,1) 1.15s forwards; }
@keyframes otp-draw { to { stroke-dashoffset: 0 } }
@keyframes otp-fill { to { opacity: .22; clip-path: inset(0 0 0 0) } }
.otp-num small { margin: 0 0 18px 2px; font-size: 18px; color: var(--ink-3); font-weight: 800; animation: otp-up .6s ease .9s both; }

/* meta row: date odometer + lane chip */
.otp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.otp-meta .otp-lane { margin: 0; animation: otp-pop .7s cubic-bezier(.3,1.7,.5,1) .55s both; }
.otp-date { font-variant-numeric: tabular-nums; animation: otp-up .6s cubic-bezier(.2,.9,.25,1) .3s both; }
.otp-date::before { animation: otp-dotpulse 2s ease-in-out 1.2s infinite; }
@keyframes otp-dotpulse { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 50%, transparent) } 50% { box-shadow: 0 0 0 7px transparent } }

/* title: per-character rise with blur + rotation */
.otp-h2, .otp-h1 { transform: translate(calc(var(--mx) * -10px), calc(var(--my) * -6px)); }
.otp-slide .wd { display: inline-block; white-space: nowrap; overflow: hidden; padding: .06em .02em .1em; margin: -.06em -.02em -.1em; vertical-align: top; }
.otp-slide .ch { display: inline-block; transform-origin: 0 100%; animation: otp-ch .9s cubic-bezier(.2,.9,.25,1) calc(.42s + var(--i) * 32ms) both; }
@keyframes otp-ch { from { transform: translateY(110%) rotate(14deg); opacity: 0; filter: blur(6px) } 60% { filter: blur(0) } to { transform: none; opacity: 1; filter: none } }
.otp-h2.saying .ch { color: var(--c); transition: color .3s; }

/* gradient underline sweep */
.otp-bar { display: block; height: 6px; width: 140px; margin-top: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, #fff)); transform-origin: 0 50%; animation: otp-bar .9s cubic-bezier(.65,0,.35,1) calc(.6s + var(--n, 10) * 32ms) both; }
@keyframes otp-bar { from { transform: scaleX(0) } to { transform: scaleX(1) } }

/* description: words fade up, bullets slide in */
.otp-desc .dw { display: inline-block; animation: otp-word .7s cubic-bezier(.2,.9,.25,1) calc(1s + var(--i) * 22ms) both; transition: color .25s, background-color .25s; border-radius: 4px; }
@keyframes otp-word { from { opacity: 0; transform: translateY(14px); filter: blur(4px) } to { opacity: 1; transform: none; filter: none } }
ul.otp-desc li { animation: otp-li .7s cubic-bezier(.2,.9,.25,1) calc(.95s + var(--li, 0) * 140ms) both; }
ul.otp-desc li::before { animation: otp-pop .6s cubic-bezier(.3,1.8,.5,1) calc(1.05s + var(--li, 0) * 140ms) both; }
@keyframes otp-li { from { opacity: 0; transform: translateX(-26px) } to { opacity: 1; transform: none } }

/* karaoke while narrating */
.otp.speaking .otp-desc .dw { color: color-mix(in srgb, var(--ink-2) 55%, transparent); }
.otp.speaking .otp-desc .dw.said { color: var(--ink); }
.otp.speaking .otp-desc .dw.now { color: #fff; background: var(--c); box-shadow: 0 0 0 3px var(--c); }

/* tags: spring pop + idle float */
.otp-tags span { animation: otp-pop .7s cubic-bezier(.3,1.7,.5,1) calc(1.3s + var(--i, 0) * 110ms) both, otp-float 4s ease-in-out calc(2.2s + var(--i, 0) * .4s) infinite; }
@keyframes otp-pop { from { transform: scale(0) rotate(-12deg); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes otp-float { 0%,100% { translate: 0 0 } 50% { translate: 0 -5px } }
@keyframes otp-up { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

/* media: parallax + orbiting blobs */
.otp-slide .otp-media { transform: translate(calc(var(--mx) * 18px), calc(var(--my) * 12px)); }
.otp-orb { position: absolute; z-index: 3; border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%; pointer-events: none; box-shadow: 0 10px 24px rgba(0,0,0,.12), inset -4px -4px 8px rgba(0,0,0,.08); }
.otp-orb.o1 { width: 54px; height: 54px; background: var(--c); left: -14px; top: 12%; animation: otp-orbit 9s linear infinite, otp-pop .8s cubic-bezier(.3,1.7,.5,1) .9s both; }
.otp-orb.o2 { width: 30px; height: 30px; background: var(--orange); right: 6%; top: -8px; animation: otp-orbit 7s linear infinite reverse, otp-pop .8s cubic-bezier(.3,1.7,.5,1) 1.1s both; }
.otp-orb.o3 { width: 40px; height: 40px; background: var(--teal); right: -10px; bottom: 14%; animation: otp-orbit 11s linear infinite, otp-pop .8s cubic-bezier(.3,1.7,.5,1) 1.3s both; }
@keyframes otp-orbit { from { rotate: 0deg; translate: 0 0 } 25% { translate: 8px -10px } 50% { rotate: 180deg; translate: 0 -16px } 75% { translate: -8px -6px } to { rotate: 360deg; translate: 0 0 } }

/* narration UI */
.otp [data-p=voice].on { color: #fff; background: linear-gradient(135deg, var(--pink), var(--orange)); }
.otp.speaking [data-p=voice] svg path:last-child { animation: otp-wave 1s ease-in-out infinite; }
@keyframes otp-wave { 50% { opacity: .2 } }
.otp.tts-busy .otp-count::after { content: ' · 음성 생성 중…'; color: var(--pink); }
.otp-note { position: absolute; left: 50%; bottom: 110px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 14px; font-size: 13px; font-weight: 600; opacity: 0; transition: .3s; z-index: 5; pointer-events: none; }
.otp-note.show { opacity: 1; transform: translate(-50%, 0); }

/* card narration button */
.otl-say { position: absolute; left: 8px; bottom: 4px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 0 0 3px var(--surface), 0 6px 12px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .25s; }
.otl-say svg { width: 16px; height: 16px; }
.otl-say:hover { transform: scale(1.12); }
.otl-say.playing { animation: otp-dotpulse 1s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .otp-slide .ch, .otp-desc .dw, ul.otp-desc li, .otp-tags span, .otp-bar, .otp-ghost, .otp-accent, .otp-orb { animation: none !important; }
  .otp-numsvg .st { stroke-dashoffset: 0; animation: none; } .otp-numsvg .fl { opacity: .22; clip-path: none; animation: none; }
}

/* ===== big year on nodes ===== */
.otl-ydate { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; line-height: 1; margin: 2px 0 2px; }
.otl-ydate::before { display: none; }
.otl-ydate .yr {
  font-size: 34px; font-weight: 900; letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #ffffff)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(1px 2px 0 rgba(255,255,255,.9)) drop-shadow(2px 3px 4px color-mix(in srgb, var(--c) 25%, transparent));
}
.otl-ydate .md { font-size: 12.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .02em; position: relative; padding-left: 9px; }
.otl-ydate .md::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--c); }
.otl.d-brief .otl-ydate .yr { font-size: 30px; }
.otl-card[style*="--mh: 100px"] .otl-ydate .yr, .otl-card[style*="--mh: 84px"] .otl-ydate .yr { font-size: 27px; }
.otl-card h4 { margin-top: 8px; }
.otl-ydate.lg .yr { font-size: 52px; }
.otl-ydate.lg .md { font-size: 15px; }
.otl-v.single .otl-v-cell.l .otl-ydate { justify-content: flex-end; }

/* ===== spoken caption (narration subtitle) ===== */
.otp-caption { position: absolute; left: 50%; bottom: 96px; z-index: 4; width: min(900px, calc(100% - 140px)); transform: translate(-50%, 16px); padding: 12px 20px; border-radius: 18px;
  background: rgba(243,245,249,.9); backdrop-filter: blur(10px); box-shadow: 8px 8px 22px var(--sh), -6px -6px 16px var(--hl);
  font-size: clamp(14px, 1.25vw, 18px); line-height: 1.65; color: var(--ink-3); text-align: center; opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.2,.9,.25,1); pointer-events: none; }
.otp-caption.show { opacity: 1; transform: translate(-50%, 0); }
.otp-caption span { transition: color .2s, background-color .2s; border-radius: 4px; }
.otp-caption span.said { color: var(--ink); }
.otp-caption span.now { color: #fff; background: var(--pink); box-shadow: 0 0 0 3px var(--pink); }
@media (max-width: 860px) { .otp-caption { bottom: 140px; width: calc(100% - 28px); font-size: 14px; } }

/* card map button */
.otl-mapbtn { position: absolute; right: 6px; bottom: 2px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #22c3a0, #3fa2f6); box-shadow: 0 0 0 3px var(--surface), 0 6px 12px rgba(34,195,160,.4); transition: transform .25s; scale: 0; }
.otl-mapbtn.shift { right: 56px; }
.otl-mapbtn svg { width: 17px; height: 17px; }
.otl-mapbtn:hover { transform: scale(1.12) translateY(-2px); }
.otl-card.in .otl-mapbtn { scale: 1; transition: scale .6s cubic-bezier(.3,1.8,.5,1) calc(var(--rd, 0s) + .8s), transform .25s; }
@media (prefers-reduced-motion: reduce) { .otl-mapbtn { scale: 1; } }

/* ======================= LAYOUT TEMPLATES (all keep the Organic Soft colours) ======================= */

/* 2 · Compact Row — round thumbnail left, text right; dense */
.otl.theme-compact .otl-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 14px; border-radius: 22px; }
.otl.theme-compact .otl-card > :not(.otl-media) { grid-column: 2; }
.otl.theme-compact .otl-media { grid-column: 1; grid-row: 1 / span 8; height: 84px !important; margin: 0; }
.otl.theme-compact .otl-media .blob { border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%; }
.otl.theme-compact .otl-icon { width: 28px; height: 28px; left: -6px; top: -6px; font-size: 10px; }
.otl.theme-compact .otl-yt, .otl.theme-compact .otl-mapbtn, .otl.theme-compact .otl-say { width: 28px; height: 28px; }
.otl.theme-compact .otl-yt svg, .otl.theme-compact .otl-mapbtn svg, .otl.theme-compact .otl-say svg { width: 13px; height: 13px; }
.otl.theme-compact .otl-yt { right: -4px; bottom: -4px; }
.otl.theme-compact .otl-mapbtn { right: auto; left: -4px; bottom: -4px; }
.otl.theme-compact .otl-mapbtn.shift { right: auto; }
.otl.theme-compact .otl-say { left: 28px; bottom: -6px; }
.otl.theme-compact .otl-ydate .yr { font-size: 26px; }
.otl.theme-compact .otl-card h4 { font-size: 14.5px; margin: 4px 0 4px; }
.otl.theme-compact .otl-card p { -webkit-line-clamp: 2 !important; font-size: 12px; }
.otl.theme-compact .otl-card .otl-bl li { font-size: 11.8px; }
.otl.theme-compact .otl-card > .otl-tags { margin-top: 6px; }
.otl.theme-compact .otl-mini { display: none; }

/* 3 · Year Stamp — giant year leads, small round photo, no card box */
.otl.theme-yearfocus .otl-card { background: transparent; box-shadow: none; padding: 6px 4px 6px 18px; border-radius: 0; }
.otl.theme-yearfocus .otl-card::before { display: none; }
.otl.theme-yearfocus .otl-card::after { display: none; }
.otl.theme-yearfocus .otl-card > :not(.otl-media) { position: relative; }
.otl.theme-yearfocus .otl-card { border-left: 4px solid color-mix(in srgb, var(--c) 70%, transparent); }
.otl.theme-yearfocus .otl-card.in:hover { background: transparent; }
.otl.theme-yearfocus .otl-card.active { box-shadow: none; border-left-width: 7px; }
.otl.theme-yearfocus .otl-media { position: absolute; right: 0; top: 2px; width: 74px; height: 74px !important; margin: 0; }
.otl.theme-yearfocus .otl-media .blob { border-radius: 50%; animation: none; }
.otl.theme-yearfocus .otl-icon { display: none; }
.otl.theme-yearfocus .otl-yt, .otl.theme-yearfocus .otl-mapbtn, .otl.theme-yearfocus .otl-say { width: 28px; height: 28px; }
.otl.theme-yearfocus .otl-yt svg, .otl.theme-yearfocus .otl-mapbtn svg, .otl.theme-yearfocus .otl-say svg { width: 13px; height: 13px; }
.otl.theme-yearfocus .otl-yt { right: -6px; bottom: -6px; }
.otl.theme-yearfocus .otl-mapbtn, .otl.theme-yearfocus .otl-mapbtn.shift { right: auto; left: -8px; bottom: -6px; }
.otl.theme-yearfocus .otl-say { left: auto; right: 22px; bottom: -10px; }
.otl.theme-yearfocus .otl-ydate { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 78px; padding-right: 80px; }
.otl.theme-yearfocus .otl-ydate .yr { font-size: 60px; letter-spacing: -.06em; }
.otl.theme-yearfocus .otl-ydate .md { padding-left: 0; } .otl.theme-yearfocus .otl-ydate .md::before { display: none; }
.otl.theme-yearfocus .otl-card h4 { font-size: 17px; }
.otl.theme-yearfocus .otl-mini { display: none; }

/* 4 · Photo Story — full-bleed photo with text on a soft gradient */
.otl.theme-magazine .otl-card { padding: 0; overflow: hidden; min-height: 330px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 28px; }
.otl.theme-magazine .otl-card.in:hover { background: var(--surface); }
.otl.theme-magazine .otl-media { position: absolute; inset: 0; height: auto !important; margin: 0; }
.otl.theme-magazine .otl-media .blob { border-radius: 0; animation: none; box-shadow: none; }
.otl.theme-magazine .otl-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(38,50,74,0) 25%, rgba(38,50,74,.55) 55%, rgba(30,38,60,.9) 100%); }
.otl.theme-magazine .otl-card > :not(.otl-media) { position: relative; z-index: 2; margin-left: 18px; margin-right: 18px; }
.otl.theme-magazine .otl-card > :last-child { margin-bottom: 18px; }
.otl.theme-magazine .otl-icon { left: 14px; top: 14px; z-index: 3; }
.otl.theme-magazine .otl-yt { top: 14px; right: 14px; bottom: auto; z-index: 3; box-shadow: 0 6px 14px rgba(255,61,61,.45); }
.otl.theme-magazine .otl-mapbtn, .otl.theme-magazine .otl-mapbtn.shift { top: 14px; right: 66px; bottom: auto; z-index: 3; box-shadow: 0 6px 12px rgba(34,195,160,.4); }
.otl.theme-magazine .otl-say { left: auto; right: 14px; top: 66px; bottom: auto; z-index: 3; box-shadow: none; }
.otl.theme-magazine .otl-ydate .yr { background: none; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); font-size: 40px; }
.otl.theme-magazine .otl-ydate .md { color: rgba(255,255,255,.8); }
.otl.theme-magazine .otl-card h4 { color: #fff; font-size: 18px; }
.otl.theme-magazine .otl-card p, .otl.theme-magazine .otl-card .otl-bl li { color: rgba(255,255,255,.86); }
.otl.theme-magazine .otl-card .otl-tags span { color: #fff !important; box-shadow: none; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.otl.theme-magazine .otl-mini { display: none; }
.otl.theme-magazine .otl-media.noimg .blob span { font-size: 70px; opacity: .45; align-self: start; margin-top: 30px; }

/* 5 · Bubble Flow — big organic bubble image, centred text, no card box */
.otl.theme-bubble .otl-card { background: transparent; box-shadow: none; text-align: center; padding: 4px 6px; }
.otl.theme-bubble .otl-card.in:hover { background: transparent; }
.otl.theme-bubble .otl-card::after { display: none; }
.otl.theme-bubble .otl-card.active { box-shadow: none; }
.otl.theme-bubble .otl-card.active::before { inset: -2px; border-radius: 50%; width: 182px; height: 182px; left: 50%; margin-left: -91px; top: 2px; }
.otl.theme-bubble .otl-media { width: 178px; height: 178px !important; margin: 0 auto 12px; }
.otl.theme-bubble .otl-media .blob { box-shadow: 12px 12px 26px var(--sh), -10px -10px 22px var(--hl), inset 0 0 0 5px var(--surface); }
.otl.theme-bubble .otl-ydate { justify-content: center; }
.otl.theme-bubble .otl-tags, .otl.theme-bubble .otl-mini { justify-content: center; }
.otl.theme-bubble .otl-bl { justify-items: center; }
.otl.theme-bubble .otl-bl li { text-align: left; }
.otl.theme-bubble .otl-icon { left: 8px; top: 4px; }
.otl.theme-bubble .otl-card h4 { font-size: 16.5px; }
.otl.theme-bubble .otl-v.single .otl-v-cell.l .otl-card { text-align: center; }

/* ===== filter / search / range / zoom ===== */
.otl-ctrl .otl-btn.on { color: var(--pink); }
.otl-filter { display: none; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 40px 0; padding: 12px 14px; border-radius: 20px; box-shadow: var(--neu-in); font-size: 12.5px; }
.otl-filter.show { display: flex; animation: otl-fin .35s ease; }
@keyframes otl-fin { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }
.otl-fsearch { display: flex; align-items: center; gap: 6px; flex: 1 1 200px; padding: 0 12px; height: 38px; border-radius: 12px; background: var(--surface); box-shadow: var(--neu-sm); }
.otl-fsearch svg { width: 15px; height: 15px; color: var(--ink-3); }
.otl-fsearch input { border: 0; outline: 0; background: none; font: inherit; color: var(--ink); width: 100%; }
.otl-flanes { display: flex; gap: 6px; flex-wrap: wrap; }
.otl-flanes button { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--bg); box-shadow: var(--neu-in); }
.otl-flanes button i { width: 10px; height: 10px; border-radius: 50%; background: #cfd5e2; }
.otl-flanes button.on { color: var(--ink); box-shadow: var(--neu-sm); }
.otl-flanes button.on i { background: var(--c); }
.otl-frange { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.otl-frange input { width: 74px; height: 36px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: var(--neu-sm); text-align: center; font: inherit; font-weight: 800; color: var(--ink); }
.otl-frange em { font-style: normal; color: var(--ink-3); }
.otl-fzoom { display: flex; align-items: center; gap: 4px; }
.otl-fzoom button, .otl-freset { border: 0; cursor: pointer; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 10px; background: var(--surface); box-shadow: var(--neu-sm); font: inherit; font-weight: 800; color: var(--ink); }
.otl-fzoom b { min-width: 44px; text-align: center; font-size: 12px; }
.otl-fcount { color: var(--ink-3); font-weight: 700; }
@media (max-width: 720px) { .otl-filter { margin: 4px 16px 0; } }

/* ===== drag to another lane ===== */
.otl-card { touch-action: pan-y; }
.otl.drag-mode .otl-card:not(.dragging) { opacity: .55; }
.otl-card.dragging { z-index: 50 !important; cursor: grabbing; transition: none !important; box-shadow: 0 30px 60px rgba(38,50,74,.28) !important; }
.otl-lane-band.drop, .otl-v-head.drop { opacity: 1 !important; box-shadow: inset 0 0 0 3px var(--pink), var(--neu-in); background: rgba(239,94,143,.06); }
.otl-v-head.drop { border-radius: 16px; }

/* ===== comment badge ===== */
.otl-cc { position: absolute; left: 6px; top: 40px; z-index: 3; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px 3px 6px; border-radius: 10px; font-size: 11px; font-weight: 800; color: #fff; background: var(--ink); box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.otl-cc svg { width: 12px; height: 12px; }

/* ===== modal comments ===== */
.otl-cmt { margin-top: 22px; padding: 16px; border-radius: 20px; box-shadow: inset 4px 4px 10px #c9d0dd, inset -4px -4px 10px #fff; }
.otl-cmt h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 14px; }
.otl-cmt h5 svg { width: 16px; height: 16px; }
.otl-cmt-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; max-height: 260px; overflow: auto; }
.otl-cmt-list li { padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 4px 10px rgba(201,208,221,.4); }
.otl-cmt-list li b { font-size: 13px; margin-right: 8px; }
.otl-cmt-list li small { color: #94a0b8; font-size: 11px; }
.otl-cmt-list li p { margin: 4px 0 0; white-space: pre-wrap; font-size: 13.5px; color: #26324a; }
.otl-cmt-list li.muted { background: none; box-shadow: none; color: #94a0b8; font-size: 13px; padding: 4px; }
.otl-cmt-form { display: flex; gap: 8px; flex-wrap: wrap; }
.otl-cmt-form input { height: 40px; border: 0; border-radius: 12px; padding: 0 12px; background: #eef0f5; box-shadow: inset 3px 3px 8px #c9d0dd, inset -3px -3px 8px #fff; font: inherit; color: #26324a; }
.otl-cmt-form input[name=n] { width: 110px; } .otl-cmt-form input[name=t] { flex: 1; min-width: 160px; }

/* ===== static capture (PNG / print) ===== */
.otl-static *, .otl-static *::before, .otl-static *::after { animation: none !important; transition: none !important; }
.otl-static .otl-dot { transform: scale(1); }
.otl-static .otl-path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.otl-static .otl-ctrl, .otl-static .otl-filter, .otl-static .otl-yt, .otl-static .otl-say, .otl-static .otl-mapbtn, .otl-static .otl-comet { display: none !important; }
.otl-static .otl-v-spine { transform: scaleY(1); }
@media print {
  .otl-card { break-inside: avoid; page-break-inside: avoid; }
  .otl-static { box-shadow: none !important; }
}

/* ===== quiz ===== */
.otq { position: fixed; inset: 0; z-index: 10001; border-radius: 0; display: grid; place-items: center; padding: 18px; overflow: auto; }
.otq-box { position: relative; width: min(720px, 100%); padding: 30px 30px 26px; border-radius: 32px; background: var(--surface); box-shadow: var(--neu); animation: otq-in .5s cubic-bezier(.2,.9,.25,1); }
@keyframes otq-in { from { opacity: 0; transform: translateY(20px) scale(.97) } to { opacity: 1; transform: none } }
.otq-x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; background: var(--bg); box-shadow: var(--neu-sm); color: var(--ink); display: grid; place-items: center; }
.otq-x svg { width: 16px; height: 16px; }
.otq-top { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; color: var(--ink-3); padding-right: 50px; }
.otq-top .otl-dots { margin: 0; }
.otq-score { margin-left: auto; color: var(--pink); }
.otq-bar { height: 8px; border-radius: 8px; box-shadow: var(--neu-in); overflow: hidden; margin: 14px 0 18px; }
.otq-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--orange), var(--teal)); border-radius: 8px; transition: width .5s; }
.otq-img { height: 190px; border-radius: 42% 58% 38% 62% / 52% 44% 56% 48%; overflow: hidden; box-shadow: var(--neu-sm); animation: otl-morph 12s infinite; }
.otq-img img { width: 100%; height: 100%; object-fit: cover; }
.otq-badge { width: 70px; height: 70px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: var(--c); border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; animation: otl-morph 6s infinite; }
.otq-badge svg { width: 32px; height: 32px; }
.otq-q { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -.02em; line-height: 1.35; margin: 20px 0 18px; text-align: center; }
.otq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.otq-opts button { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; cursor: pointer; padding: 14px 16px; border-radius: 18px; background: var(--bg); box-shadow: var(--neu-sm); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); transition: transform .2s, box-shadow .2s, background .2s; animation: otq-opt .5s cubic-bezier(.2,.9,.25,1) calc(.1s + var(--i) * 70ms) both; }
@keyframes otq-opt { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
.otq-opts button:hover:not(:disabled) { transform: translateY(-2px); color: var(--pink); }
.otq-opts button b { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; box-shadow: var(--neu-in); font-size: 13px; color: var(--ink-3); }
.otq-opts button:disabled { cursor: default; opacity: .6; }
.otq-opts button.right { opacity: 1; background: rgba(34,195,160,.14); box-shadow: inset 0 0 0 2px var(--teal); }
.otq-opts button.right b { background: var(--teal); color: #fff; box-shadow: none; }
.otq-opts button.wrong { opacity: 1; background: rgba(239,94,143,.12); box-shadow: inset 0 0 0 2px var(--pink); animation: otq-shake .45s; }
.otq-opts button.wrong b { background: var(--pink); color: #fff; box-shadow: none; }
@keyframes otq-shake { 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }
.otq-fb { min-height: 24px; margin-top: 16px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.otq-fb b.ok { color: var(--teal); } .otq-fb b.no { color: var(--pink); }
.otq-fb small { display: block; color: var(--ink-3); margin-top: 4px; }
.otq-next { margin-top: 14px; float: right; }
.otq-box.is-ok .otq-badge, .otq-box.is-ok .otq-img { animation: otq-pop .6s cubic-bezier(.3,1.7,.5,1); }
@keyframes otq-pop { 50% { transform: scale(1.08) } }
.otq-box.result { text-align: center; }
.otq-ring { --p: 0; width: 170px; height: 170px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pink) calc(var(--p) * 1%), #e3e7ef 0); animation: otq-in .8s; }
.otq-ring b { width: 130px; height: 130px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 46px; font-weight: 900; box-shadow: var(--neu-in); }
.otq-ring small { font-size: 18px; color: var(--ink-3); }
.otq-box.result h2 { margin: 6px 0; } .otq-box.result p { color: var(--ink-2); margin: 0; }
.otq-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
@media (max-width: 560px) { .otq-opts { grid-template-columns: 1fr; } .otq-box { padding: 24px 18px 20px; } }

/* ===== presentation recording ===== */
.otp-recbtn svg { color: #ff3d3d; }
.otp.recording .otp-recbtn { color: #fff; background: #ff3d3d; }
.otp.recording .otp-recbtn svg { color: #fff; animation: otp-dotpulse 1s infinite; }
.otp.recording .otp-recbtn span::after { content: ' 중지'; }
.otq-next[hidden] { display: none !important; }

/* ===== vertical layout: node width 60% (v2.1.1) ===== */
.otl-v .otl-card { width: max(60%, min(100%, 260px)); }
.otl-v.single .otl-v-cell.l .otl-card { margin-left: auto; }           /* left column hugs the spine */
.otl-v.single .otl-v-cell.r .otl-card { margin-right: auto; }
.otl-v:not(.single):not(.narrow) .otl-v-cell .otl-card { margin-left: 0; }
/* right-aligned (left column) cards: bullets, tags and dots on the spine side */
.otl-v.single .otl-v-cell.l .otl-bl { justify-items: end; }
.otl-v.single .otl-v-cell.l .otl-bl li { padding-left: 0; padding-right: 15px; text-align: right; }
.otl-v.single .otl-v-cell.l .otl-bl li::before { left: auto; right: 2px; }
.otl-v.single .otl-v-cell.l .otl-tags, .otl-v.single .otl-v-cell.l .otl-mini { justify-content: flex-end; }

/* ===== fact basis badge (원문 근거 / AI 보강 / 확인 필요 / 확인됨) ===== */
.otl-basis { display: inline-flex; align-items: center; gap: 4px; width: max-content; margin: 6px 0 2px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; cursor: help; }
.otl-basis.src { background: #d9f6ee; color: #12896f; }
.otl-basis.sup { background: #fff1dd; color: #c27417; }
.otl-basis.gen { background: #fde2ea; color: #c23b68; }
.otl-basis.ver { background: #dcecff; color: #1f6fc4; }
.otl-basis.lg { font-size: 12.5px; padding: 4px 11px; margin: 0; }
.otl-card > .otl-basis { opacity: 0; translate: 0 10px; transition: opacity .6s ease, translate .7s cubic-bezier(.2,.9,.25,1); }
.otl-card.in > .otl-basis { opacity: 1; translate: 0; transition-delay: calc(var(--rd, 0s) + .46s); }
.otl-static .otl-card > .otl-basis { opacity: 1; translate: 0; }
.otl-proof { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.6); box-shadow: inset 2px 2px 6px rgba(38,50,74,.06); font-size: 13.5px; color: #5b6782; line-height: 1.6; }
.otl-proof blockquote { margin: 10px 0 0; padding-left: 12px; border-left: 3px solid #22c3a0; color: #26324a; font-style: normal; }
.otl-proof cite { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: #94a0b8; }
.otl-proof p { margin: 8px 0 0; }
.otl-proof a { display: inline-block; margin-top: 8px; font-weight: 700; color: #1f6fc4; text-decoration: none; }

/* ===== YouTube Shorts embedded on the first screen ===== */
.otl-shorts { flex: none; width: 168px; margin-left: auto; margin-right: 14px; display: grid; gap: 6px; justify-items: center; animation: otl-shorts-in .9s cubic-bezier(.2,.9,.25,1.2) .3s both; }
.otl-shorts iframe, .otl-shorts img { display: block; width: 168px; aspect-ratio: 9 / 16; height: auto; border: 0; border-radius: 18px; background: #111; box-shadow: 0 14px 30px rgba(38,50,74,.28), 0 0 0 3px #fff; object-fit: cover; }
.otl-shorts-cap { font-size: 11.5px; font-weight: 800; color: #ef5e8f; text-decoration: none; }
@keyframes otl-shorts-in { from { opacity: 0; transform: translateY(18px) rotate(3deg) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .otl-shorts { width: 120px; margin-right: 8px; } .otl-shorts iframe, .otl-shorts img { width: 120px; border-radius: 14px; } }

.otl-shorts .otl-yt-slot { display: block; width: 168px; aspect-ratio: 9 / 16; border-radius: 18px; background: #111; box-shadow: 0 14px 30px rgba(38,50,74,.28), 0 0 0 3px #fff; }
@media (max-width: 720px) { .otl-shorts .otl-yt-slot { width: 120px; border-radius: 14px; } }
/* presentation cover: shorts video */
.otp-shorts { position: relative; display: grid; justify-items: center; gap: 10px; animation: otl-shorts-in 1s cubic-bezier(.2,.9,.25,1.2) .3s both; }
.otp-shorts .otp-shorts-frame { display: block; height: min(62vh, 560px); aspect-ratio: 9 / 16; width: auto; border: 0; border-radius: 26px; background: #111; box-shadow: 0 30px 60px rgba(38,50,74,.3), 0 0 0 5px #fff; }
.otp-shorts > span { font-size: 13px; font-weight: 800; color: #ef5e8f; }
.otp-slide.cover .otp-media .otp-cover-badge { z-index: 3; }
@media (max-width: 760px) { .otp-shorts .otp-shorts-frame { height: 34vh; border-radius: 18px; } .otp-shorts > span { font-size: 11px; } }
.otp-slide .otp-media.has-shorts { transform: none; }
@media (max-width: 760px) { .otp-slide.cover .otp-media.has-shorts { height: auto; min-height: 0; padding-top: 8px; } .otp-shorts .otp-shorts-frame { height: min(30vh, 300px); } }

/* ===== presentation top bar: responsive ===== */
.otp-tools { flex: none; min-width: 0; }
.otp-tools .otl-btn { flex: none; }
@media (max-width: 1100px) {            /* icon-only buttons, keep the title */
  .otp-tools .otl-btn > span { display: none; }
  .otp-tools .otl-btn { padding: 0; width: 40px; }
}
@media (max-width: 860px) {             /* title + interval hidden (rule above), smaller controls */
  .otp-tools { gap: 6px; }
  .otp-tools .otl-btn { width: 36px; height: 36px; min-width: 36px; border-radius: 12px; }
  .otp-count { font-size: 12px; padding: 0 4px; }
}
@media (max-width: 480px) {             /* phones: brand dots out, tight row that always fits */
  .otp-top { padding: 10px 10px 0; gap: 6px; }
  .otp-brand { display: none; }
  .otp-tools { width: 100%; justify-content: flex-end; gap: 5px; }
  .otp-tools .otl-btn { width: 34px; height: 34px; min-width: 34px; border-radius: 11px; }
  .otp-tools .otl-btn svg { width: 15px; height: 15px; }
  .otp-count { margin-right: auto; padding: 0 2px; }
}

/* width-driven steps set by fitTop() in timeline.js (works regardless of viewport media queries) */
.otp.fit1 .otp-tools .otl-btn > span, .otp.fit2 .otp-tools .otl-btn > span, .otp.fit3 .otp-tools .otl-btn > span { display: none; }
.otp.fit1 .otp-tools .otl-btn, .otp.fit2 .otp-tools .otl-btn, .otp.fit3 .otp-tools .otl-btn { padding: 0; width: 40px; }
.otp.fit2 .otp-brand > span, .otp.fit2 .otp-int, .otp.fit3 .otp-int { display: none; }
.otp.fit2 .otp-tools, .otp.fit3 .otp-tools { gap: 6px; }
.otp.fit2 .otp-tools .otl-btn, .otp.fit3 .otp-tools .otl-btn { width: 36px; height: 36px; min-width: 36px; border-radius: 12px; }
.otp.fit3 .otp-top { padding-left: 10px; padding-right: 10px; gap: 6px; }
.otp.fit3 .otp-brand { display: none; }
.otp.fit3 .otp-tools { width: 100%; justify-content: flex-end; gap: 5px; }
.otp.fit3 .otp-tools .otl-btn { width: 34px; height: 34px; min-width: 34px; }
.otp.fit3 .otp-count { margin-right: auto; padding: 0 2px; }
