/* Discover: tutorial cards (your products on a small glass shelf), the tutorial page with the platform's own player, and likes. */
.tut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tut-rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tut-rail::-webkit-scrollbar { display: none; }
.tut-rail .tut-card { flex: 0 0 172px; scroll-snap-align: start; }
.tut-card { position: relative; min-width: 0; border-radius: var(--r-tile); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.tut-card.ghost { height: 232px; background: var(--tile); box-shadow: none; }
.tut-open { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: left; color: inherit; }
.tut-open:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-tile); }
.tut-shelf { display: block; padding-top: 22px; }
.tut-shelf .row-of { justify-content: center; gap: 2px; padding: 0 10px; overflow: hidden; }
.tut-shelf .stand { height: 96px; min-width: 40px; }
.tut-shelf .stand img { max-height: 90px; max-width: 66px; }
.tut-shelf .stand.not-mine img, .tut-shelf .stand.not-mine .mono-standin { opacity: 0.5; }
.tut-shelf .mono-standin { width: 46px; height: 72px; font-size: 17px; }
.tut-shelf .ledge { display: block; margin-bottom: 10px; }
.tut-text { display: grid; gap: 4px; padding: 10px 12px 14px; }
.tut-src { overflow: hidden; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; }
.tut-title { display: -webkit-box; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.tut-own { font-size: 13px; font-weight: 600; color: var(--accent); }
.tut-own.none { color: var(--ink-3); font-weight: 500; }
.tut-like { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 10px;
            border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--glass-shadow);
            color: var(--ink-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tut-like svg { width: 18px; height: 18px; }
.tut-like[aria-pressed="true"] { color: var(--careful); }
.tut-like[aria-pressed="true"] svg { fill: currentColor; }
.tut-like .n:empty { display: none; }

.tut-h1 { font-size: 30px; line-height: 1.15; }
.tut-frame { margin: 18px auto 0; overflow: hidden; border-radius: 22px; background: #000; box-shadow: var(--shadow); }
.tut-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.tut-frame.tall { width: min(100%, 340px); aspect-ratio: 9 / 16; }
.tut-frame.wide { width: 100%; aspect-ratio: 16 / 9; }
.tut-frame.post { width: 100%; height: 560px; background: var(--card); }
.tut-frame.missing { display: grid; place-items: center; width: 100%; height: 180px; background: var(--tile); box-shadow: none; }
.tut-plays { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.tut-plays a { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tut-by { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.tut-by .tut-like { position: static; background: var(--tile); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tut-author { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--ink); }
.tut-author svg { width: 20px; height: 20px; color: var(--ink-3); }
.tut-actions .btn svg { width: 18px; height: 18px; }
.tut-add .ask-bar { margin-top: 14px; }
.tut-status { min-height: 1.4em; margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
@media (min-width: 640px) { .tut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
