/* Product sheet (productsheet.js): a locked library play's product, as a dialog on the feedback card / phone
   sheet chrome (feedback.css) or in place on the viewer's page; product cards in the lists and on Home. */
.ps-card{ width:640px; max-height:calc(100vh - 32px); overflow:auto; position:relative; }
.ps-card:focus{ outline:none; }
.fb-sheet .ps-card{ max-height:88vh; }
.ps-close{ position:absolute; top:8px; right:10px; width:36px; height:36px; border:0; background:transparent; font-size:24px; line-height:1; color:#566179; cursor:pointer; border-radius:8px; }
.ps-close:hover{ background:#f1f3f7; color:#26303f; }

.ps-head{ display:flex; gap:16px; align-items:flex-start; padding-right:28px; }
.ps-cover{ width:112px; flex:0 0 112px; border-radius:6px; box-shadow:0 2px 8px rgba(20,30,60,.16); }
.ps-headtext{ min-width:0; }
.ps-eyebrow{ margin:0 0 2px; font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--orange-text); }
.ps-title{ margin:0 0 6px; font-size:20px; font-weight:700; line-height:1.25; color:var(--navy-deep); }
.ps-count{ margin:0 0 6px; font-size:14px; color:#566179; }
.ps-count:has(+ .ps-also){ margin-bottom:2px; }
.ps-also{ margin:0 0 6px; font-size:14px; line-height:1.4; color:#566179; }
.ps-price{ margin:0; font-size:14.5px; color:#566179; }
.ps-was{ margin-right:2px; }
.ps-now{ font-size:20px; color:var(--navy-deep); }

.ps-feature{ display:flex; gap:14px; align-items:flex-start; margin:16px 0 4px; padding:12px; background:#f6f8fb; border:1px solid #e3e7ee; border-radius:10px; }
.ps-feature:empty{ display:none; }
.ps-feature .ps-thumb{ width:180px; flex:0 0 180px; }
.ps-ftext{ min-width:0; }
.ps-fname{ margin:0 0 4px; font-size:16px; font-weight:700; color:#26303f; }
.ps-fdesc{ margin:0 0 6px; font-size:14px; line-height:1.45; color:#26303f; }
.ps-fmeta{ margin:0; font-size:13px; color:#566179; }

.ps-thumb{ aspect-ratio:4 / 3; background:#eef1f6; border-radius:6px; overflow:hidden; }
.ps-thumb img{ width:100%; height:100%; object-fit:contain; display:block; }
.ps-thumb .mpthumb-ph{ width:100%; height:100%; }

.ps-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.ps-actions .fb-btn{ display:inline-flex; align-items:center; justify-content:center; text-decoration:none; font-size:14px; min-height:42px; }
.ps-buy:hover, .ps-buy:focus{ color:#fff; text-decoration:none; }
.ps-page, .ps-login{ background:#fff; border-color:#cfd5df; color:#26303f; }
.ps-page:hover, .ps-login:hover{ background:#f3f5f9; color:#26303f; text-decoration:none; }
.ps-own{ margin:8px 0 0; font-size:13px; color:#566179; }
.ps-note{ margin:8px 0 0; font-size:13px; color:#566179; }
.ps-note:empty{ display:none; }

.ps-inhead{ margin:20px 0 8px; font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:#566179; }
.ps-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(132px, 1fr)); gap:10px; }
.ps-item{ position:relative; display:flex; flex-direction:column; gap:6px; padding:6px; background:#fff; border:1px solid #e3e7ee; border-radius:8px; cursor:pointer; text-align:left; font-family:inherit; }
.ps-item:hover{ border-color:#c3cad6; }
.ps-item-on{ border-color:var(--orange); box-shadow:0 0 0 2px var(--orange-ring); }
.ps-iname{ font-size:12.5px; font-weight:600; line-height:1.3; color:#26303f; }
.ps-imatch{ position:absolute; top:10px; left:10px; padding:1px 7px; border-radius:10px; background:var(--orange-btn); color:#fff; font-size:11px; font-weight:700; }
/* a free sample (isSamplePlay): open to everyone, from the sheet too */
.ps-imatch.ps-isample{ background:#e6eefa; color:#1f4f8a; }
.ps-fopenrow{ margin:8px 0 0; font-size:14px; }
.ps-sample{ display:inline-block; padding:1px 8px; border-radius:10px; background:#e6eefa; color:#1f4f8a; font-size:12px; font-weight:700; }
.ps-fopen{ font-weight:700; color:#1f4f8a; text-decoration:underline; text-underline-offset:2px; }

/* in place on a locked play's page (wider than the old lock card) */
.vp-locked.ps-inline{ max-width:720px; text-align:left; }
.vp-locked.ps-inline .vp-locked-browse{ margin-top:18px; }

@media (max-width:560px){
    .ps-head{ gap:12px; }
    .ps-cover{ width:84px; flex-basis:84px; }
    .ps-title{ font-size:18px; }
    .ps-feature{ flex-direction:column; }
    .ps-feature .ps-thumb{ width:100%; flex-basis:auto; }
    .ps-actions .fb-btn{ flex:1 1 100%; min-height:46px; font-size:15px; }
    .ps-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

/* product cards: a row in the Plays/Drills lists (manageplays.js), Home's shelf (home.js) */
.ps-pcard{ display:flex; flex-direction:column; width:200px; flex:0 0 200px; padding:0; background:#fff; border:1px solid #dde1e8; border-radius:11px; overflow:hidden; cursor:pointer; text-align:left; font-family:inherit; scroll-snap-align:start; }
.ps-pcard:hover{ border-color:#c3cad6; box-shadow:0 4px 14px rgba(20,30,60,.08); }
.ps-pcover{ display:flex; align-items:center; justify-content:center; height:120px; background:#f3f5f9; }
.ps-pcover img{ max-width:100%; max-height:100%; object-fit:contain; }
.ps-pcover .ps-thumb{ width:100%; height:100%; aspect-ratio:auto; border-radius:0; }
.ps-pbody{ display:flex; flex-direction:column; gap:4px; padding:10px 12px 12px; }
.ps-pname{ font-size:14px; font-weight:700; line-height:1.3; color:#26303f; }
.ps-pcount{ font-size:13px; color:#566179; }
.ps-pprice{ font-size:13px; color:#566179; }
.ps-pprice strong{ color:var(--navy-deep); }
.ps-pown{ align-self:flex-start; padding:1px 8px; border-radius:10px; background:#e7f4ea; color:#1e6b34; font-size:12px; font-weight:700; }

.ps-shelf{ display:flex; gap:12px; overflow-x:auto; padding:2px 2px 8px; scroll-snap-type:x proximity; }
.ps-shelfhead{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 8px; }
.ps-shelfhead h2{ margin:0; font-size:16px; font-weight:700; color:#26303f; }
.ps-shelfhead .ps-shelfsub{ font-size:13px; color:#566179; }

/* in the results grid/list: spans the whole width */
.mp-prow{ grid-column:1 / -1; margin:6px 0 10px; padding:14px; background:#f6f8fb; border:1px solid #e3e7ee; border-radius:12px; min-width:0; }
.mplist .mp-prow{ margin:8px 0; }

/* a search's matches in one product: a results card */
.playbox.ps-groupbox{ cursor:pointer; }
.ps-groupbox .ps-gnames{ font-size:13px; color:#566179; line-height:1.35; }
.ps-groupbox .ps-gprice{ font-size:13px; color:#566179; margin-top:4px; }
.ps-groupbox .ps-gprice strong{ color:var(--navy-deep); }
