#paid-store{--bg:#0e1015;--surface:#191c24;--line:#2c303c;--muted:#9b9fad;--accent:#e7b986;background:var(--bg);color:#f1f1f4;font-family:system-ui,-apple-system,"PingFang SC",sans-serif;min-height:100vh}#paid-store *{box-sizing:border-box}#paid-store button,#paid-store input,#paid-store textarea{font:inherit}#paid-store button{cursor:pointer}#paid-store button:disabled{opacity:.5;cursor:wait}#paid-store a{color:inherit;text-decoration:none}#paid-store button:focus-visible,#paid-store a:focus-visible{outline:2px solid var(--accent);outline-offset:5px}#paid-store [hidden]{display:none!important}.store-header{display:flex;align-items:center;gap:5vw;padding:25px 5vw;border-bottom:1px solid var(--line);flex-wrap:wrap}.brand{font-size:30px;font-weight:700;letter-spacing:3px}.brand span{color:var(--accent)}.brand small{display:block;font-size:9px;letter-spacing:2px;font-weight:400;color:var(--muted);margin-top:3px}.store-header nav{display:flex;gap:26px}.store-header button,footer button{color:inherit;background:none;border:0;padding:7px 0}.store-header #identity{margin-left:auto;display:flex;gap:18px;align-items:center}.store-header #identity .btn{padding:8px 18px}.store-main{padding:0 5vw 65px;max-width:1680px}.intro{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:58px 0 45px}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--accent)}.intro h1{font-size:clamp(28px,4vw,44px);font-weight:600;letter-spacing:1px;margin:15px 0}.intro p,.muted,.section-heading p{color:var(--muted);font-size:14px;line-height:1.8}.btn-accent{background:var(--accent)!important;color:#1b1510!important;border:1px solid var(--accent)!important;font-weight:600}.btn-soft{background:#242834!important;color:#f1f1f4!important;border:1px solid var(--line)!important}.btn{border-radius:7px;padding:11px 18px}.catalog-bar{display:flex;align-items:center;justify-content:space-between;gap:20px}.catalog-bar h2,h2{font-size:22px;font-weight:600;margin:10px 0 20px}.catalog-bar small{font-size:12px;color:var(--muted);margin-left:10px;font-weight:400}.search{display:flex;gap:8px;max-width:380px}.search input{min-width:0}.categories{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 26px}.categories button{border:1px solid var(--line);color:var(--muted);background:none;padding:7px 18px;border-radius:6px}.categories button.active{color:var(--accent);border-color:var(--accent);background:#e7b9860a}.catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 22px}.video-card{border:0;background:transparent;color:inherit;text-align:left;padding:0;width:100%}.poster{aspect-ratio:16/10;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:radial-gradient(ellipse at 20% 10%,#463542,transparent 75%),#1d2232}.poster.alt1{background:radial-gradient(ellipse at 90% 20%,#254447,transparent 75%),#19212c}.poster.alt2{background:radial-gradient(ellipse at 30% 80%,#4e3d2a,transparent 75%),#29202c}.poster b{font-size:38px;color:#ffffff60;transition:transform .2s}.video-card:hover .poster b{transform:scale(1.15);color:var(--accent)}.poster span{position:absolute;bottom:12px;left:12px;font-size:11px;padding:4px 9px;background:#0e1015b8;border-radius:4px}.video-card h3{font-size:16px;line-height:1.5;margin:13px 0 8px;overflow-wrap:anywhere}.card-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.card-meta strong{color:var(--accent);font-weight:500}.pagination-bar{display:flex;align-items:center;justify-content:center;gap:20px;margin:35px 0}.panel,.plan,.order{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:22px;margin-bottom:18px}.plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:28px 0}.plan .price{font-size:38px;color:var(--accent);margin:20px 0}.plan .price small{font-size:14px;color:var(--muted)}.plan h3{font-size:20px}.plan p{color:var(--muted)}.section-heading{margin-top:35px}.order{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.order-content{flex:1;min-width:200px;overflow-wrap:anywhere}.order small,.order code{display:block;color:var(--muted);margin-top:8px}.status{color:var(--accent);font-size:13px}.purchase-list{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:30px}#paid-store input,#paid-store textarea{width:100%;background:#11141b;border:1px solid var(--line);border-radius:6px;padding:11px 12px;color:#fff}#paid-store input:focus,#paid-store textarea:focus{outline:1px solid var(--accent)}#paid-store input[type=file]{font-size:13px}#paid-store label{display:block;color:#c7c9d0;font-size:13px;margin:10px 0}#paid-store label input,#paid-store label textarea{margin-top:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.wide{grid-column:1/-1}#paid-store dialog{width:min(650px,calc(100vw - 28px));max-height:90vh;border:1px solid #414552;border-radius:12px;padding:25px;background:#191c24;color:#f1f1f4;overflow:auto}#paid-store dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}.dialog-header{display:flex;justify-content:space-between;align-items:start;gap:20px}.dialog-header button{font-size:28px;color:#aaa;background:none;border:0;line-height:1}.dialog-header h2{font-size:23px}#dialog-error{color:#f3a6a6;margin:16px 0 0;white-space:pre-wrap}.dialog-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}.captcha-row{display:flex;align-items:center;gap:15px}.captcha-row img{width:140px;height:50px;cursor:pointer;background:white}.full{width:100%;margin-top:14px}video{width:100%;max-height:55vh;background:#000;border-radius:7px}.text-link{color:var(--accent)!important;font-size:13px;margin-right:20px}#notice:not(:empty){padding:14px 18px;background:#28352f;border:1px solid #405f4e;border-radius:6px;margin:18px 0}#notice.error{background:#422a30;border-color:#6a3944}footer{border-top:1px solid var(--line);padding:30px 5vw;display:flex;gap:30px;color:var(--muted);font-size:13px;align-items:center}footer button{margin-left:auto}#account-section h3,#admin-section h3{font-size:17px;margin:28px 0 18px}details summary{cursor:pointer}#paid-store .empty{grid-column:1/-1;padding:60px 20px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:9px}.form-note{font-size:12px;color:var(--muted);margin:15px 0}.inline-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.inline-form label{flex:1;min-width:110px}.inline-form .btn{margin-bottom:10px}@media(max-width:1000px){.catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.store-header{gap:25px}.store-header nav{gap:16px}}@media(max-width:700px){.catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.store-header{padding:20px}.store-header #identity{font-size:13px;gap:10px}.store-header nav{order:3;width:100%;justify-content:space-between}.intro{padding:32px 0;align-items:start}.intro>.btn{display:none}.catalog-bar{align-items:start;flex-direction:column}.search{width:100%;max-width:none}.search input{flex:1}.plan-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.store-main{padding:0 20px 40px}.video-card h3{font-size:14px}footer span{display:none}.order{padding:16px}.brand{font-size:24px}.store-header #identity{flex-wrap:wrap;justify-content:end;max-width:70%}}

.bunny-player{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000}

/* Shared storefront cover for catalog cards and video details. */
.poster-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.poster.has-thumbnail b{visibility:hidden}
.poster span{z-index:1}

/* Stable first paint and a compact search control on desktop and mobile. */
#browse{padding-top:28px;min-height:55vh}
#paid-store .catalog-bar{align-items:center;margin-bottom:20px}
#paid-store .catalog-bar h2{margin:0}
#paid-store .search{width:360px;max-width:100%;flex-shrink:0;align-items:center;gap:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden}
#paid-store .search input{flex:1;width:0;min-width:0;height:44px;margin:0;border:0;border-radius:0;background:transparent;padding:0 14px;font-size:14px}
#paid-store .search input:focus{outline:none;box-shadow:none}
#paid-store .search:focus-within{border-color:var(--accent)}
#paid-store .search .btn{flex:0 0 auto;white-space:nowrap;height:44px;margin:0;padding:0 18px;border:0;border-left:1px solid var(--line);border-radius:0;font-size:14px}
#categories{min-height:40px}
.catalog-placeholder{min-width:0}
.placeholder-poster{aspect-ratio:16/10;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.placeholder-title,.placeholder-meta{height:14px;border-radius:4px;background:var(--surface);margin-top:15px;width:68%}
.placeholder-meta{height:11px;width:42%;margin-top:10px}
@media(max-width:1000px) and (min-width:701px){.catalog-placeholder:nth-of-type(4){display:none}}
@media(max-width:700px){#browse{padding-top:22px}#paid-store .catalog-bar{align-items:stretch;gap:16px}#paid-store .search{width:100%}}

/* Give video detail dialogs more room without overflowing narrow viewports. */
#paid-store dialog{width:min(800px,calc(100vw - 40px));padding:28px}
#paid-store dialog .poster{width:100%;height:min(44vh,400px);aspect-ratio:auto}
@media(max-width:700px){#paid-store dialog{width:calc(100vw - 24px);padding:18px}#paid-store dialog .poster{height:auto;aspect-ratio:16/10}}
/* Contact requests use the same restrained storefront surfaces as the library. */
.video-updated{display:block;margin-top:8px;color:var(--muted);font-size:12px}
.contact-channels{display:flex;flex-wrap:wrap;gap:24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:20px 0;margin:24px 0 36px}
.contact-channel{display:flex;flex-direction:column;gap:5px;min-width:150px;max-width:100%;overflow-wrap:anywhere}
.contact-channel span,.request-item small{font-size:12px;color:var(--muted)}
.contact-channel strong{font-size:14px;font-weight:500}
.contact-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);align-items:start}
.contact-layout h3{font-size:17px;margin:0 0 18px}
#request-form textarea{resize:vertical}
#request-feedback:not(:empty){margin-top:12px;color:var(--accent)}
.request-list{display:grid;gap:12px}
.request-item{border-top:1px solid var(--line);padding:14px 0;overflow-wrap:anywhere}
.request-item p{white-space:pre-wrap;line-height:1.6;margin:10px 0}
.request-head{display:flex;justify-content:space-between;gap:12px}
.request-head span{font-size:12px;color:var(--accent)}
.request-reply{border-left:2px solid var(--accent);padding-left:12px;margin-top:15px}
.request-reply strong{font-size:12px}
@media(max-width:700px){.contact-layout{grid-template-columns:1fr}.contact-channels{gap:16px}}

/* Compact authentication entry; mobile registration remains available in the login dialog. */
#paid-store .store-header #identity{gap:10px}
#paid-store .store-header .auth-button{display:inline-flex;align-items:center;justify-content:center;height:40px;min-width:72px;padding:0 18px;border:1px solid var(--line);border-radius:10px;font-size:14px;font-weight:600;line-height:1;white-space:nowrap;transition:background-color .15s,border-color .15s}
#paid-store .store-header .auth-button-primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}
#paid-store .store-header .auth-button-primary:hover{background:color-mix(in srgb,var(--accent) 88%,white);border-color:color-mix(in srgb,var(--accent) 88%,white)}
#paid-store .store-header .auth-button-secondary{background:transparent;color:inherit}
#paid-store .store-header .auth-button-secondary:hover{background:var(--surface);border-color:var(--muted)}
#paid-store .auth-mobile-label{display:none}
@media(max-width:700px){
 #paid-store .store-header{gap:20px 12px}
 #paid-store .store-header .brand{font-size:clamp(18px,5vw,24px);letter-spacing:1px}
 #paid-store .store-header .auth-button{padding:0 14px}
 #paid-store .store-header .auth-button-secondary,#paid-store .auth-desktop-label{display:none}
 #paid-store .auth-mobile-label{display:inline}
}

#paid-store .preview-player{aspect-ratio:16/10}
