/* OMR Sheet Designer · left-edge tutorial tabs and in-site player. Scoped to omr-yt-*. */
.omr-yt-tabs { position:fixed; z-index:990; left:0; top:27%; display:flex; flex-direction:column; gap:14px; direction:ltr; pointer-events:none; }
.omr-yt-tabs > * { pointer-events:auto; }
.omr-yt-tab { width:50px; height:174px; border-radius:0 15px 15px 0; display:flex; align-items:center; justify-content:center; text-decoration:none; cursor:pointer; padding:0; border:1px solid #e0e4eb; border-left:0; background:white; box-shadow:1px 4px 18px rgba(28,31,40,.13); transition:transform .16s ease, box-shadow .16s ease; overflow:hidden; box-sizing:border-box; color:#232630; }
.omr-yt-tab:hover, .omr-yt-tab:focus-visible { transform:translateX(4px); box-shadow:2px 8px 23px rgba(28,31,40,.22); outline-offset:-4px; }
.omr-yt-docs { flex-direction:column; gap:12px; background:#f8f8fc; }
.omr-yt-docs svg { width:23px; height:23px; flex-shrink:0; }
.omr-yt-docs-label { font-size:12px; font-weight:800; white-space:nowrap; writing-mode:vertical-rl; transform:rotate(180deg); letter-spacing:.3px; }
.omr-yt-videos { height:180px; background:#fff; }
.omr-yt-videos img { display:block; width:100%; height:100%; object-fit:contain; }
.omr-yt-fallback-label { display:none; writing-mode:vertical-rl; transform:rotate(180deg); font-size:12px; font-weight:900; letter-spacing:.5px; color:#bf1745; }
.omr-yt-videos.omr-yt-image-missing img { display:none; }
.omr-yt-videos.omr-yt-image-missing .omr-yt-fallback-label { display:block; }
.omr-yt-backdrop { z-index:21000; position:fixed; inset:0; background:rgba(19,23,32,.66); display:flex; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; backdrop-filter:blur(3px); }
.omr-yt-backdrop[hidden] { display:none !important; }
.omr-yt-modal { width:min(1200px,100%); max-height:min(850px,90dvh); box-sizing:border-box; border:1px solid rgba(255,255,255,.38); border-radius:22px; background:#fff; color:#21252d; box-shadow:0 22px 65px rgba(0,0,0,.26); display:flex; flex-direction:column; overflow:hidden; font:inherit; text-align:start; }
.omr-yt-header { display:flex; gap:14px; align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid #e8ebf0; flex-shrink:0; }
.omr-yt-header-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.omr-yt-header h2 { font-size:clamp(17px,2vw,24px); margin:0; font-weight:800; color:#21252d; line-height:1.35; }
.omr-yt-header p { margin:0; color:#697585; font-size:13px; }
.omr-yt-header-actions { display:flex; align-items:center; gap:9px; flex-shrink:0; }
.omr-yt-channel { display:inline-flex; align-items:center; justify-content:center; border:1px solid #e2e5ed; padding:9px 13px; border-radius:10px; background:#f8f9fc; color:#232731; text-decoration:none; font-size:13px; font-weight:700; }
.omr-yt-channel:hover { background:#ffeaf1; }
.omr-yt-close { width:40px; height:40px; border:1px solid #e2e5ed; border-radius:12px; color:#2c3037; background:white; font-size:25px; line-height:1; cursor:pointer; }
.omr-yt-close:hover { background:#f1f2f5; }
.omr-yt-content { overflow:auto; padding:22px 24px 28px; min-height:0; overscroll-behavior:contain; }
.omr-yt-note { margin:0 0 16px; background:#fff5f9; border:1px solid #f5dbe7; color:#8e2957; border-radius:10px; padding:10px 12px; font-size:13px; line-height:1.6; }
.omr-yt-note[hidden] { display:none; }
.omr-yt-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); align-items:start; gap:16px; }
.omr-yt-card { font:inherit; text-align:start; display:block; width:100%; border:1px solid #e5e8ed; border-radius:13px; overflow:hidden; background:#fff; padding:0; cursor:pointer; color:inherit; box-shadow:0 3px 10px rgba(17,24,39,.025); }
.omr-yt-card:hover, .omr-yt-card:focus-visible { border-color:#dc77a0; box-shadow:0 6px 20px rgba(192,63,116,.14); outline-offset:2px; }
.omr-yt-thumb { aspect-ratio:16/9; position:relative; background:linear-gradient(145deg,#273243,#575f71); overflow:hidden; }
.omr-yt-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.omr-yt-play-symbol { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:#c63c73; border-radius:12px; width:46px; height:32px; display:flex; justify-content:center; align-items:center; color:white; font-size:19px; line-height:1; box-shadow:0 3px 9px #0006; }
.omr-yt-card-title { display:block; padding:12px 11px 14px; min-height:64px; font-size:13px; font-weight:700; line-height:1.5; overflow-wrap:anywhere; }
.omr-yt-empty { display:flex; flex-direction:column; align-items:center; padding:45px 12px; text-align:center; gap:16px; color:#636d7d; }
.omr-yt-empty a { background:#222630; color:white; padding:10px 16px; border-radius:10px; text-decoration:none; font-weight:700; }
.omr-yt-player[hidden], .omr-yt-gallery[hidden] { display:none !important; }
.omr-yt-player { max-width:980px; margin:auto; }
.omr-yt-player-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 12px; }
.omr-yt-back { font:inherit; background:#f3f4f7; border:1px solid #e1e4eb; border-radius:10px; padding:9px 13px; cursor:pointer; color:#222630; font-weight:700; }
.omr-yt-player-title { font-weight:700; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.omr-yt-frame-wrap { aspect-ratio:16/9; width:100%; background:#111; border-radius:12px; overflow:hidden; }
.omr-yt-frame-wrap iframe { display:block; width:100%; height:100%; border:0; }
.omr-yt-player-footer { font-size:13px; margin-top:13px; text-align:center; }
.omr-yt-player-footer a { color:#bc376a; font-weight:700; text-decoration:underline; }
body.omr-yt-open { overflow:hidden !important; }
@media(max-width:1100px){.omr-yt-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:850px){.omr-yt-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}}
@media(max-width:620px){
 .omr-yt-tabs{top:auto; bottom:12%; gap:9px;}
 .omr-yt-tab{width:38px;height:118px;border-radius:0 11px 11px 0;}
 .omr-yt-videos{height:128px;}
 .omr-yt-docs-label{font-size:10px;}
 .omr-yt-docs svg{width:18px;height:18px;}
 .omr-yt-backdrop{padding:9px;}
 .omr-yt-modal{max-height:94dvh;border-radius:15px;}
 .omr-yt-header{padding:13px 12px;gap:6px;}
 .omr-yt-header p{font-size:11px;}
 .omr-yt-header-actions{gap:5px;}
 .omr-yt-channel{font-size:11px;padding:8px 7px;}
 .omr-yt-close{height:35px;width:35px;font-size:21px;}
 .omr-yt-content{padding:12px;}
 .omr-yt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 .omr-yt-card-title{font-size:12px;min-height:65px;padding:8px;}
 .omr-yt-play-symbol{width:37px;height:27px;font-size:15px;}
 .omr-yt-player-toolbar{flex-direction:column;align-items:start;}
}
@media(prefers-reduced-motion:reduce){.omr-yt-tab{transition:none;}}
