/* © 2026 IG Tools — All rights reserved. */
/* Reels Template — on top of lyrics-video's lv.css (top bar, dock, player row, busy window), only what this tool adds. */
/* the faces for the user's own words in the opening (the original is traced, these are the nearest free faces, measured) */
@font-face{font-family:"RT Wide";src:url(https://cdn.jsdelivr.net/npm/@fontsource/lexend-mega/files/lexend-mega-latin-900-normal.woff2) format('woff2');font-weight:900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RT Wide";src:url(https://cdn.jsdelivr.net/npm/@fontsource/lexend-mega/files/lexend-mega-latin-ext-900-normal.woff2) format('woff2');font-weight:900;font-style:normal;font-display:swap;unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"RT Sora";src:url(https://cdn.jsdelivr.net/npm/@fontsource/sora/files/sora-latin-800-normal.woff2) format('woff2');font-weight:800;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RT Sora";src:url(https://cdn.jsdelivr.net/npm/@fontsource/sora/files/sora-latin-ext-800-normal.woff2) format('woff2');font-weight:800;font-style:normal;font-display:swap;unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"RT Sora";src:url(https://cdn.jsdelivr.net/npm/@fontsource/sora/files/sora-latin-700-normal.woff2) format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RT Sora";src:url(https://cdn.jsdelivr.net/npm/@fontsource/sora/files/sora-latin-ext-700-normal.woff2) format('woff2');font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

@font-face{font-family:"RT Figtree";src:url(https://cdn.jsdelivr.net/npm/@fontsource-variable/figtree/files/figtree-latin-wght-normal.woff2) format('woff2-variations');font-weight:300 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RT Figtree";src:url(https://cdn.jsdelivr.net/npm/@fontsource-variable/figtree/files/figtree-latin-ext-wght-normal.woff2) format('woff2-variations');font-weight:300 900;font-style:normal;font-display:swap;unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Summer 2026: Italiana (no Turkish letters → those fall back to Aboreto) + Aboreto */
@font-face{font-family:"RT Italiana";src:url(https://cdn.jsdelivr.net/npm/@fontsource/italiana/files/italiana-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RT Aboreto";src:url(https://cdn.jsdelivr.net/npm/@fontsource/aboreto/files/aboreto-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RT Aboreto";src:url(https://cdn.jsdelivr.net/npm/@fontsource/aboreto/files/aboreto-latin-ext-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* The Labels: Bodoni Moda italic, registered as its own upright family so canvas needs no 'italic' keyword */
@font-face{font-family:"RT Bodoni It";src:url(https://cdn.jsdelivr.net/npm/@fontsource/bodoni-moda/files/bodoni-moda-latin-400-italic.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RT Bodoni It";src:url(https://cdn.jsdelivr.net/npm/@fontsource/bodoni-moda/files/bodoni-moda-latin-ext-400-italic.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Loading: Kalam */
@font-face{font-family:"RT Kalam";src:url(https://cdn.jsdelivr.net/npm/@fontsource/kalam/files/kalam-latin-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RT Kalam";src:url(https://cdn.jsdelivr.net/npm/@fontsource/kalam/files/kalam-latin-ext-400-normal.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* landing: the openings above the picker */
.rt-tplw{max-width:760px;margin:0 auto 14px}
body.ready .rt-tplw{display:none}
/* lv.css hides #drop for Lyrics Video's shared entry fan; this tool shows its picker at once */
body:not(.ready) #drop{visibility:visible;animation:none}
.rt-tplh{font:600 13px/1 var(--sans);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:4px 2px 10px}
.rt-tpls{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none}
.rt-tpl{flex:none;width:150px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:0;border:0;background:none;color:var(--text);text-align:left;cursor:pointer;font-family:var(--sans)}
.rt-tplv{display:block;width:150px;height:266px;border-radius:14px;overflow:hidden;background:#0B0404;box-shadow:var(--sh)}
.rt-tplv canvas{width:100%;height:100%;display:block}
/* the picked opening stands out (Osman 2026-11-02): bigger, ring + glow, badge; the others step back */
.rt-tpls{align-items:flex-end;padding:10px 6px 8px}
.rt-tpl{transition:width .22s ease,opacity .2s,filter .2s}
.rt-tplv{position:relative;transition:width .22s ease,height .22s ease,box-shadow .2s}
.rt-tpls:has(.rt-tpl.on) .rt-tpl:not(.on){opacity:.55;filter:saturate(.6)}
.rt-tpls .rt-tpl:not(.on):hover{opacity:.9;filter:none}
.rt-tpl.on{width:176px}
.rt-tpl.on .rt-tplv{width:176px;height:312px;outline:3px solid var(--accent);outline-offset:3px;box-shadow:0 0 0 9px color-mix(in srgb,var(--accent) 22%,transparent),0 14px 34px rgba(0,0,0,.4)}
.rt-tpl.on b{color:var(--accent);font-size:15px}
.rt-tplok{position:absolute;left:8px;top:8px;display:flex;align-items:center;gap:4px;padding:5px 9px 5px 7px;border-radius:99px;background:var(--accent);color:#fff;font:700 12px/1 var(--sans);box-shadow:0 2px 8px rgba(0,0,0,.35)}
.rt-tplok svg{width:14px;height:14px}
@media(prefers-reduced-motion:reduce){ .rt-tpl,.rt-tplv{transition:none} }
.rt-tpl b{font:700 14px/1.2 var(--sans)}
.rt-tpl small{font:500 12px/1.3 var(--sans);color:var(--muted)}
.rt-soon{cursor:default;opacity:.55}
.rt-soon .rt-tplv{background:var(--fill);box-shadow:none}

/* the 9:16 preview */
.lv-box canvas#pv{aspect-ratio:9/16;height:min(62vh,640px);height:min(62dvh,640px);width:auto}
/* Biçim: 4:5 keeps the height, 16:9 is sized by its width (never taller than the 9:16 one) */
.lv-box[data-fmt="45"] canvas#pv{aspect-ratio:4/5}
.lv-box[data-fmt="169"] canvas#pv{aspect-ratio:16/9;height:auto;width:min(100%,960px,calc(62vh*16/9));width:min(100%,960px,calc(62dvh*16/9))}
body.mcs-prev .rt-strip{display:none}

/* the slot strip under the preview */
.rt-strip{max-width:760px;margin:12px auto 0;padding:0 2px}
.rt-sh{display:flex;align-items:baseline;gap:8px;margin:0 2px 8px}
.rt-sh b{font:700 15px/1 var(--sans);color:var(--text)}
.rt-sh span{font:500 12.5px/1.3 var(--sans);color:var(--muted)}
.rt-row{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin}
.rt-slot{position:relative;flex:none;width:54px;height:96px;border-radius:10px;overflow:hidden;border:0;padding:0;background:var(--fill);cursor:pointer;box-shadow:inset 0 0 0 1px var(--line)}
.rt-slot img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;-webkit-user-drag:none;user-select:none}
/* drag to reorder: the row still scrolls sideways under a finger (pan-x); a held tile lifts */
.rt-slot[data-k]{touch-action:pan-x;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:grab}
.rt-slot.lift{transform:scale(1.08);opacity:.9;z-index:5;cursor:grabbing;box-shadow:0 8px 20px rgba(0,0,0,.45),0 0 0 3px var(--accent);transition:transform .12s}
.rt-slot i{position:absolute;left:4px;top:4px;min-width:18px;height:18px;border-radius:9px;background:rgba(0,0,0,.6);color:#fff;font:700 11px/18px var(--sans);font-style:normal;text-align:center}
.rt-slot em{position:absolute;right:4px;bottom:4px;font:600 10px/1 var(--sans);font-style:normal;color:#fff;background:rgba(0,0,0,.55);border-radius:6px;padding:3px 4px}
.rt-slot.rt-rep img{opacity:.45}
.rt-slot.on{box-shadow:0 0 0 3px var(--accent)}
.rt-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--accent);font:600 11px/1 var(--sans);border:2px dashed var(--accent);background:transparent;box-shadow:none}
.rt-act{display:flex;flex-wrap:wrap;gap:8px;margin:6px 2px 0}
.rt-act .ig-btn{min-height:44px}
.rt-del{color:#FF3B30}
.rt-off{display:flex;flex-direction:column;gap:6px;margin:12px 2px 0;font:500 13px/1.3 var(--sans);color:var(--muted)}
.rt-off b{color:var(--text)}

/* text and sound sheets */
.rt-seg{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.rt-seg button{min-height:56px;border-radius:14px;border:1px solid var(--line);background:var(--panel);color:var(--text);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;padding:8px 12px;text-align:left;cursor:pointer;font-family:var(--sans)}
.rt-seg button b{font:600 14px/1.2 var(--sans)}
.rt-seg button small{font:500 11.5px/1.3 var(--sans);color:var(--muted)}
.rt-seg button.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.rt-pre{display:flex;gap:8px;margin-bottom:10px}
.rt-pre .ig-btn{min-height:40px}
.rt-in{display:flex;flex-direction:column;gap:5px;margin-bottom:10px;font:500 12.5px/1 var(--sans);color:var(--muted)}
.rt-in input{min-height:46px;border-radius:12px;border:1.5px solid var(--line);background:var(--panel);color:var(--text);font:600 16px/1 var(--sans);padding:0 12px}
.rt-swr{display:flex;align-items:center;gap:10px;min-height:56px}
.rt-swr>span{flex:1;display:flex;flex-direction:column;gap:3px}
.rt-swr small{font:500 12px/1.3 var(--sans);color:var(--muted)}
.rt-vol{display:flex;flex-direction:column;gap:6px;margin:6px 0 10px;font:500 12.5px/1 var(--sans);color:var(--muted)}
.rt-song{display:flex;align-items:center;gap:10px;min-height:52px;font:500 14px/1.2 var(--sans);color:var(--text)}
.rt-song span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rt-wide{width:100%;min-height:50px}
.rt-tip{font:500 12.5px/1.4 var(--sans);color:var(--muted);margin:8px 2px 0}

/* words templates: one small field per word, in order */
.rt-words{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px;margin-bottom:10px}
.rt-words input{min-height:44px;border-radius:10px;border:1.5px solid var(--line);background:var(--panel);color:var(--text);font:600 15px/1 var(--sans);padding:0 10px;min-width:0}
/* the openings inside the Açılış sheet */
.ig-sh-body .rt-tplh{display:none}
.ig-sh-body .rt-tpl,.ig-sh-body .rt-tplv{width:112px}
.ig-sh-body .rt-tplv{height:199px}
/* Şarkı: the song to add, above the preview, and its how-to sheet (Edits / Instagram "Sesi kullan") */
/* #rtSong (the Ses sheet's own-song row is .rt-song) — panel / text / muted are the theme's own tokens, so the strip reads in light AND dark (Osman 2026-11-02: "ne yazdığını anlayamadım") */
#rtSong{display:none;align-items:center;gap:10px;width:min(100%,460px);margin:8px auto 0;min-height:56px;padding:8px 10px 8px 12px;border:1px solid var(--line);
  border-radius:14px;background:var(--panel);color:var(--text);text-align:left;cursor:pointer;box-shadow:var(--sh)}
body.ready #rtSong:not([hidden]){display:flex}
.rt-song-ic{flex:0 0 34px;max-width:34px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#7C3AED;color:#fff}
.rt-song-ic svg{width:20px;height:20px}
.rt-song-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rt-song-t small{font:600 11px/1.2 var(--sans);color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.rt-song-t b{font:700 14px/1.25 var(--sans);color:var(--text);white-space:normal;overflow-wrap:anywhere;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}
.rt-song-how{flex:none;font:600 13px/1 var(--sans);color:var(--accent);padding:10px 8px;min-height:44px;display:flex;align-items:center}
.rt-how{display:flex;flex-direction:column;gap:12px}
.rt-how-song{display:flex;align-items:center;gap:12px}
.rt-how-song>span:last-child{display:flex;flex-direction:column;gap:3px}
.rt-how-song b{font:700 16px/1.25 var(--sans)}
.rt-how-song small{font:500 13px/1.2 var(--sans);color:var(--muted)}
.rt-how-btns{display:flex;gap:8px;flex-wrap:wrap}
.rt-how-btns .ig-btn{flex:1 1 150px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;text-decoration:none}
.rt-how-p{margin:0;font:500 13px/1.45 var(--sans);color:var(--muted)}
.rt-how-steps{margin:0;padding:0;list-style:none;counter-reset:hs;display:flex;flex-direction:column;gap:10px}
.rt-how-steps li{counter-increment:hs;display:flex;gap:10px;align-items:flex-start;font:500 14px/1.45 var(--sans);color:var(--text)}
.rt-how-steps li::before{content:counter(hs);flex:none;width:24px;height:24px;border-radius:12px;background:#7C3AED;color:#fff;font:700 12px/24px var(--sans);text-align:center}
.rt-how-tip{margin:0;display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:var(--fill,rgba(124,58,237,.08));font:500 13px/1.45 var(--sans);color:var(--text)}
.rt-how-tip svg{flex:none;margin-top:2px;color:#7C3AED}
