[hidden]{display:none!important}
.portal-main{min-height:65vh}.portal-main>section{padding-top:80px}.portal-main .section-head h1{font-size:clamp(32px,5vw,52px);letter-spacing:-.03em;line-height:1.12;margin-bottom:16px}
.portal-filters{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.portal-tabs{display:flex;gap:8px;flex-wrap:wrap}.portal-tabs button{background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:10px 15px;color:var(--text-2);font:600 13px 'DM Sans',sans-serif;cursor:pointer}.portal-tabs button.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.portal-search{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid var(--border-2);border-radius:10px;background:var(--bg-2);color:var(--text-3);flex:0 1 330px}.portal-search input{border:0;outline:0;background:none;color:var(--text);font:14px 'DM Sans',sans-serif;width:100%}
#catalogStatus{font-size:14px;color:var(--text-3);margin-bottom:20px}.portal-catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px}.portal-catalog-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-2);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,border-color .2s}.portal-catalog-card:hover{transform:translateY(-4px);border-color:var(--accent)}.portal-poster{height:235px;display:grid;place-items:center;position:relative;background:radial-gradient(ellipse at top right,#2563eb38,transparent),linear-gradient(135deg,var(--surface-2),var(--bg-2))}.portal-poster>.material-icons-round{font-size:64px;color:var(--accent-2);opacity:.6}.portal-poster img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.portal-poster .portal-type{position:absolute;left:14px;bottom:14px;border:1px solid var(--border-2);border-radius:7px;padding:5px 9px;background:#101014cc;color:#fff;font-size:11px;font-weight:700}.portal-card-text{padding:18px}.portal-card-text h2{font-size:16px;line-height:1.4;color:var(--text);margin-bottom:9px}.portal-card-text p{font-size:13px;color:var(--text-3)}
.portal-breadcrumb{display:flex;gap:10px;align-items:center;color:var(--text-3);font-size:13px;margin-bottom:28px}.portal-breadcrumb a{color:var(--accent-2)}.portal-watch-heading h1{font-size:clamp(28px,4vw,42px);line-height:1.15;letter-spacing:-.03em;margin-bottom:12px}.portal-watch-heading p{color:var(--text-3)}.portal-watch-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;margin-top:30px;align-items:start}.portal-watch-player{display:grid;place-items:center;background:#000;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:16/9}.portal-watch-player.vertical{aspect-ratio:9/16;width:min(100%,390px);margin:auto}.portal-watch-player iframe{width:100%;height:100%;border:0;display:block}.portal-info{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-2);padding:24px}.portal-info h2{font-size:18px;margin-bottom:14px}.portal-info h3{font-size:15px;margin:24px 0 10px}.portal-info p{font-size:14px;color:var(--text-2);line-height:1.7}.portal-info textarea{width:100%;padding:13px;background:var(--bg);border:1px solid var(--border-2);border-radius:10px;color:var(--text-2);font:12px/1.6 'JetBrains Mono',monospace;resize:vertical;margin:15px 0}.portal-episode-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.portal-episode-list a{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--border);background:var(--surface);border-radius:8px;font-weight:700;font-size:13px}.portal-episode-list a[aria-current]{background:var(--accent);color:white}.portal-copy{float:right;border:0;background:none;color:var(--accent-2);font:600 11px 'DM Sans',sans-serif;cursor:pointer}.test-player.vertical{aspect-ratio:9/16;max-width:360px;margin:auto}.portal-copy-status{font-size:12px;color:var(--text-3);margin-top:10px}
@media(max-width:1000px){.portal-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.portal-watch-grid{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:768px){.portal-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.portal-watch-grid{grid-template-columns:1fr}.portal-main>section{padding-top:52px}.portal-watch-player.vertical{width:min(100%,390px)}.portal-search{flex:1 1 100%}.portal-poster{height:220px}}
@media(max-width:420px){.portal-card-text{padding:13px}.portal-card-text h2{font-size:14px}.portal-poster{height:190px}.portal-tabs button{padding:8px 10px}.portal-info{padding:18px}}

/* Five categories, preserving the reference card design. */
.cat-card[data-type="short"] .cat-visual{background:linear-gradient(135deg,#075985,#082f49)}
@media(min-width:1100px){.cats-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

.feature-icon>svg{display:block;width:22px;height:22px;min-width:22px;grid-area:1/1;overflow:visible}

/* Native language options must follow the page theme as well as the closed control. */
html[data-theme="dark"] .lang-select{color-scheme:dark}
html[data-theme="light"] .lang-select{color-scheme:light}
.lang-select{background-color:var(--surface);color:var(--text);border-color:var(--border-2);min-width:62px}
.lang-select option{background-color:var(--surface);color:var(--text)}
.lang-select:hover{border-color:var(--accent-2)}
.lang-select:focus-visible,.lang-switch button:focus-visible{outline:2px solid var(--accent-2);outline-offset:3px}
.lang-switch button:not(.active):hover{background:var(--surface-2);color:var(--text)}

/* Explicit page canvas prevents a stale dark canvas when switching themes. */
html[data-theme="light"]{color-scheme:light;background-color:#fafafa;--accent-2:#2563eb}
html[data-theme="dark"]{color-scheme:dark;background-color:#0a0a0b}
html[data-theme="light"] body{background-color:#fafafa!important;color:#0a0a0b}
html[data-theme="dark"] body{background-color:#0a0a0b!important;color:#f5f5f7}
html[data-theme="light"] .hero{background-color:#fafafa}
html[data-theme="light"] .header{background:rgba(255,255,255,.94)}
html[data-theme="light"] .hero h1 .gradient,html[data-theme="light"] .stat .num{background-image:linear-gradient(135deg,#2563eb,#7c3aed)}
html[data-theme="light"] .hero-badge{background:#fff;border-color:#dbe3ef}
html[data-theme="light"] .playground-form select{color-scheme:light}
html[data-theme="light"] .playground-form select option{background:#fff;color:#0a0a0b}

.portal-episode-list a{width:auto;min-width:44px;padding:0 10px}

.test-player.has-message{background:radial-gradient(ellipse at top,rgba(59,130,246,.08),transparent 75%),var(--bg-2);min-height:210px}
.portal-player-message{padding:24px;text-align:center;max-width:420px;color:var(--text-2);display:flex;flex-direction:column;align-items:center;gap:12px}
.portal-player-message svg{width:34px;height:34px;flex:none;color:var(--accent-2)}
.portal-player-message h3{font-size:18px;line-height:1.3;color:var(--text);margin:0}
.portal-player-message p{font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere}
@media(max-width:600px){.test-player.has-message{aspect-ratio:auto;min-height:230px}.portal-player-message{padding:22px}}

/* Keep select arrows centered with a consistent inset from the right edge. */
.playground-form select,.lang-select{
 appearance:none;-webkit-appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px;padding-right:42px;
}
.lang-select{padding-left:12px;padding-right:32px;background-position:right 9px center;background-size:14px 14px;min-width:66px}
html[data-theme="light"] .playground-form select,html[data-theme="light"] .lang-select{
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.short-search-results{margin-top:8px;padding:6px;background:var(--surface);border:1px solid var(--border-2);border-radius:12px;max-height:250px;overflow-y:auto}
.short-search-results[hidden]{display:none}
.short-search-result{display:flex;flex-direction:column;gap:4px;width:100%;padding:12px;border-radius:8px;text-align:left;color:var(--text);font-size:14px}
.short-search-result span{color:var(--text-2);font-size:12px}
.short-search-result:hover,.short-search-result:focus-visible{background:var(--surface-2);outline:2px solid var(--accent);outline-offset:-2px}
.short-search-status{font-size:12px;color:var(--text-2);line-height:1.6;margin-top:8px}

#shortTitleField{position:relative}
.short-search-results{position:absolute;top:100%;left:0;right:0;z-index:20;margin-top:-18px;box-shadow:var(--shadow);background:var(--surface);max-height:240px}
#shortEpisodeField{grid-column:1/-1}
.short-search-status{font-size:12px;margin-top:8px}
.short-search-results:not([hidden])+.short-search-status{visibility:hidden}


/* Home-only ReelShort layout: options and embed on the left, edge-to-edge preview on the right. */
body[data-page="home"] .playground-player-wrap,body[data-page="home"] .home-playground-controls{min-width:0}
body[data-page="home"] .playground-wrap.reelshort-layout{width:100%;max-width:748px;margin-inline:auto;grid-template-columns:minmax(0,340px) minmax(0,380px);gap:28px}
body[data-page="home"] .reelshort-layout .playground-form{min-width:0;padding:24px}
body[data-page="home"] .reelshort-layout .home-playground-controls{display:flex;flex-direction:column;gap:16px}
body[data-page="home"] .reelshort-layout #testUrlDisplay{margin:0;border-radius:14px;padding:16px}
body[data-page="home"] .reelshort-layout .test-url-label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body[data-page="home"] .reelshort-layout .portal-copy{float:none;min-height:32px;padding:6px 10px;border:1px solid var(--border-2);border-radius:8px;background:var(--surface);font-size:12px}
body[data-page="home"] .reelshort-layout .test-url-value{overflow-wrap:anywhere;word-break:break-word}
body[data-page="home"] .reelshort-layout #testPlayer.vertical{width:100%;max-width:none;margin:0;border:0;border-radius:18px;aspect-ratio:9/16;background:#000}
body[data-page="home"] .reelshort-layout #testPlayer.vertical iframe{display:block;width:100%;height:100%!important;max-width:none!important;aspect-ratio:9/16}
@media(max-width:900px){body[data-page="home"] .playground-wrap.reelshort-layout{grid-template-columns:minmax(0,1fr);max-width:420px;gap:24px}}

/* Match the desktop ReelShort preview to the complete options/embed column. */
@media(min-width:901px){
 body[data-page="home"] .reelshort-layout .playground-player-wrap{height:var(--reel-preview-height,auto)}
 body[data-page="home"] .reelshort-layout .home-preview-stage{height:100%;display:grid;place-items:center}
 body[data-page="home"] .reelshort-layout #testPlayer.vertical{height:100%;width:auto;max-width:100%;aspect-ratio:9/16}
 body[data-page="home"] .reelshort-layout #testPlayer:not(.vertical){height:100%;width:100%;aspect-ratio:auto}
}

/* The horizontal home preview shares the options-column height on desktop. */
@media(min-width:901px){
 body[data-page="home"] .playground-wrap:not(.reelshort-layout) .playground-player-wrap{height:var(--reel-preview-height,auto);display:flex;flex-direction:column;gap:16px}
 body[data-page="home"] .playground-wrap:not(.reelshort-layout) #testUrlDisplay{margin:0;flex:none}
 body[data-page="home"] .playground-wrap:not(.reelshort-layout) .home-preview-stage{flex:1;min-height:0}
 body[data-page="home"] .playground-wrap:not(.reelshort-layout) #testPlayer{height:100%;min-height:0;width:100%;aspect-ratio:auto}
 body[data-page="home"] .playground-wrap:not(.reelshort-layout) #testPlayer iframe{height:100%!important;aspect-ratio:auto!important}
 body[data-page="home"] .playground-wrap:not(.reelshort-layout) .test-placeholder{padding:20px}
}

@media(min-width:901px){
 body[data-page="home"] .playground-wrap.home-horizontal-loaded:not(.reelshort-layout) .home-playground-controls{min-height:410px;display:flex;flex-direction:column}
 body[data-page="home"] .playground-wrap.home-horizontal-loaded:not(.reelshort-layout) .playground-form{flex:1}
}

/* Keep embed actions alongside the home form for movies and episodic titles too. */
body[data-page="home"] .home-playground-controls{display:flex;flex-direction:column;gap:16px}
body[data-page="home"] .home-playground-controls #testUrlDisplay{margin:0;border-radius:14px;padding:16px}
body[data-page="home"] .home-playground-controls .test-url-label{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body[data-page="home"] .home-playground-controls .portal-copy{float:none;min-height:32px;padding:6px 10px;border:1px solid var(--border-2);border-radius:8px;background:var(--surface);font-size:12px}
body[data-page="home"] .home-playground-controls .test-url-value{overflow-wrap:anywhere;word-break:break-word}
@media(min-width:901px){
 body[data-page="home"] .playground-wrap.home-horizontal-loaded:not(.reelshort-layout) .home-playground-controls{min-height:0}
 body[data-page="home"] .playground-wrap.home-horizontal-loaded:not(.reelshort-layout) .playground-form{flex:none}
 body[data-page="home"] .playground-wrap.home-horizontal-loaded:not(.reelshort-layout) .home-preview-stage{flex:1;height:100%}
}

/* Compact integration examples: three cards across on desktop. */
body[data-page="home"] .url-patterns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
body[data-page="home"] .url-pattern-card { min-width: 0; padding: 22px 18px; }
body[data-page="home"] .url-pattern-card h3 { font-size: 16px; margin-bottom: 12px; }
body[data-page="home"] .url-pattern-card code { font-size: 12px; padding: 12px 10px; min-height: 62px; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; word-break: normal; }
body[data-page="home"] .url-pattern-card p { font-size: 13px; line-height: 1.55; }
@media (max-width: 900px) {
  body[data-page="home"] .url-patterns { grid-template-columns: 1fr; }
  body[data-page="home"] .url-pattern-card code { min-height: 0; }
}

/* ReelShort episode detail, keeping the existing player intact. */
.short-episode-page .portal-watch-grid{grid-template-columns:minmax(260px,422px) minmax(0,1fr);gap:40px;margin-top:0}
.short-episode-page .portal-watch-player.vertical{width:100%;max-width:422px;margin:0;aspect-ratio:9/16}
.short-episode-page .portal-watch-player iframe{max-width:none!important;height:100%!important;aspect-ratio:auto!important}
.short-episode-page .portal-info{padding:0;border:0;background:none;min-width:0}
.short-episode-page .portal-watch-heading h1{font-size:clamp(23px,2.4vw,29px);margin-bottom:14px;line-height:1.25}
.short-episode-page .portal-watch-heading{display:flex;flex-direction:column}
.short-episode-page #watchKind{order:1;margin-bottom:20px;color:#fff;background:var(--accent);border-radius:6px;padding:5px 10px;align-self:flex-start;font-size:12px;letter-spacing:0}
.short-episode-page .portal-info h2{font-size:15px;margin-bottom:8px}
.short-episode-page .episode-synopsis{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.short-episode-page .episode-synopsis.expanded{display:block}
.episode-more{border:0;background:none;color:var(--accent-2);padding:8px 0;cursor:pointer;font:600 14px inherit}
.short-episode-page .episode-genre{display:inline-block;margin:14px 0 24px;padding:8px 12px;background:var(--surface);border:1px solid var(--border);border-radius:8px;font-size:12px}
.episode-genre:empty{display:none}
.episode-actions{display:flex;align-items:center;gap:28px;padding:20px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.episode-action{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:none;color:var(--text-2);cursor:pointer;min-width:48px;padding:0;font-size:12px}.episode-action .material-icons-round{font-size:27px}.episode-action[aria-pressed=true]{color:var(--accent-2)}.episode-share-status{font-size:12px;color:var(--text-2)}
.episode-picker{margin-top:28px}.episode-picker-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding-bottom:12px;font-size:13px}.episode-picker-heading strong{color:var(--accent-2)}.episode-picker-heading a{color:var(--text-3)}
.short-episode-page .portal-episode-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:10px;margin-top:16px}.short-episode-page .portal-episode-list a{width:100%;height:auto;aspect-ratio:1;max-height:64px;border-radius:9px;font-size:14px}.short-episode-page .portal-episode-list a[aria-current]{background:var(--accent);border-color:var(--accent);box-shadow:0 5px 16px #3b82f622}
.episode-embed{margin-top:26px;color:var(--text-2);font-size:13px}.episode-embed summary{cursor:pointer;padding:12px 0}
@media(max-width:900px){.short-episode-page .portal-watch-grid{grid-template-columns:minmax(240px,340px) minmax(0,1fr);gap:24px}}
@media(max-width:700px){.short-episode-page .portal-watch-grid{grid-template-columns:1fr;gap:26px}.short-episode-page .portal-watch-player.vertical{max-width:390px;margin:auto}.short-episode-page .portal-watch-heading h1{font-size:23px}.short-episode-page .portal-breadcrumb{flex-wrap:wrap;gap:6px}.short-episode-page .portal-episode-list{grid-template-columns:repeat(5,minmax(0,1fr))}}
.short-episode-page .episode-picker{padding:0}
.short-episode-page .episode-more{display:block;font-family:inherit;font-size:14px;font-weight:600}
.short-episode-page .episode-genre{display:table}

/* Episode details refined from the supplied Novelaflix reference. */
.short-episode-page{--episode-accent:var(--accent);font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
html[data-theme=dark] .short-episode-page{--bg:#0a0a0c;--bg-2:#141418;--surface:#1c1c22;--text:#f5f5f7;--text-2:#c5c5cf;--text-3:#a7a7b2;--border:rgba(255,255,255,.09)}
.short-episode-page .portal-breadcrumb{font-size:13px;margin-bottom:18px;color:var(--text-3)}
.short-episode-page .portal-breadcrumb a{color:var(--text-3)}
.short-episode-page .portal-watch-heading h1{font-weight:800;font-size:clamp(23px,2.2vw,28px);line-height:1.2;letter-spacing:-.025em;margin:0 0 14px}
.short-episode-page #watchKind.episode-producer{background:none;color:var(--text);display:flex;align-items:center;gap:8px;padding:0;text-transform:none;font-weight:800;margin-bottom:20px}
.episode-producer::before{content:'▰';display:grid;place-items:center;width:20px;height:20px;background:var(--episode-accent);color:#fff;border-radius:3px;font-size:13px}
.short-episode-page .portal-info h2{font-weight:800;font-size:15px;margin-bottom:8px}
.short-episode-page .portal-info .episode-synopsis{font-size:14px;line-height:1.8}
.short-episode-page .episode-more{color:var(--episode-accent);padding-top:6px}
.short-episode-page .episode-more[hidden]{display:none}
.short-episode-page .episode-genre{font-weight:600;margin:18px 0 24px;padding:8px 13px;border-radius:7px}
.short-episode-page .episode-actions{gap:24px;padding:20px 0;min-height:110px}
.episode-action svg{width:26px;height:26px;display:block}.episode-action span{font-size:0!important}.episode-action strong{font-size:12px;font-weight:400;color:var(--text-3)}
.short-episode-page .episode-picker{margin-top:28px}.episode-picker-heading{height:34px;padding-bottom:12px}.episode-picker-heading strong{position:relative;color:var(--episode-accent)}.episode-picker-heading strong::after{content:'';position:absolute;left:0;bottom:-13px;width:40px;height:2px;background:var(--episode-accent)}
.short-episode-page .portal-episode-list{grid-template-columns:repeat(auto-fill,59px);gap:10px}.short-episode-page .portal-episode-list a{height:59px;width:59px;aspect-ratio:auto;max-height:none;border-radius:9px;color:var(--text-2);background:var(--surface);border:1px solid var(--border);font-weight:800}.short-episode-page .portal-episode-list a[aria-current]{background:var(--episode-accent);border-color:var(--episode-accent);color:#fff}
.short-episode-page .portal-episode-list a:hover{border-color:var(--episode-accent)}
@media(max-width:700px){.short-episode-page .portal-episode-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.short-episode-page .portal-episode-list a{width:100%;height:auto;aspect-ratio:1}.short-episode-page .episode-picker-heading{font-size:12px}.short-episode-page .portal-watch-grid{gap:24px}}

/* Poster cards with actions revealed by mouse, keyboard or touch. */
.portal-catalog-card .portal-poster{height:auto;aspect-ratio:2/3;isolation:isolate}
.portal-catalog-card{border-radius:13px;transition:border-color .2s,box-shadow .2s}
.portal-catalog-card:hover{transform:none;border-color:#3b82f6}
.portal-poster .portal-type{top:10px;bottom:auto;left:10px;z-index:4;background:#3279ed;color:#fff;border:0;font-size:10px;padding:5px 8px;text-transform:uppercase;pointer-events:none}
.portal-rating{position:absolute;right:10px;top:10px;z-index:4;padding:5px 8px;border-radius:6px;background:#000c;color:#ffd34d;font-size:11px;font-weight:800;pointer-events:none}
.portal-cover-link{position:absolute;inset:0;z-index:1}
.portal-cover-actions{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;padding:12px;background:linear-gradient(transparent 15%,#000a 55%,#000e);opacity:0;pointer-events:none;transition:opacity .2s}
.portal-catalog-card:hover .portal-cover-actions,.portal-catalog-card:focus-within .portal-cover-actions{opacity:1}
.portal-cover-actions h2{font-size:14px;line-height:1.35;font-weight:800;color:#fff;margin:0 0 2px;overflow-wrap:anywhere}
.portal-cover-actions a{display:flex;align-items:center;justify-content:center;min-height:38px;border-radius:7px;font-size:12px;font-weight:800;text-decoration:none;pointer-events:auto}
.portal-watch-button{background:#3b82f6;color:#fff}.portal-watch-button:hover{background:#2563eb}
.portal-tmdb-button{background:#ffffff18;border:1px solid #ffffff30;color:#fff;backdrop-filter:blur(8px)}.portal-tmdb-button:hover{background:#ffffff30}
.portal-catalog-card a:focus-visible{outline:2px solid #93c5fd;outline-offset:2px}
@media(hover:none){.portal-cover-actions{opacity:1;background:linear-gradient(transparent 35%,#000b 70%,#000e)}.portal-cover-actions{padding:9px;gap:6px}.portal-cover-actions a{min-height:36px}}
@media(prefers-reduced-motion:reduce){.portal-cover-actions{transition:none}}
.portal-cover-actions a{pointer-events:none}
.portal-catalog-card:hover .portal-cover-actions a,.portal-catalog-card:focus-within .portal-cover-actions a{pointer-events:auto}
@media(hover:none){.portal-cover-actions a{pointer-events:auto}}

.portal-pagination{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin:32px 0 0}.portal-pagination[hidden]{display:none}.portal-pagination button{width:40px;height:40px;padding:0;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--text-2);font:700 14px inherit;cursor:pointer}.portal-pagination button[aria-current]{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 4px 16px #3b82f62b}.portal-pagination button:disabled{opacity:.35;cursor:default}.portal-pagination button:not(:disabled):hover{border-color:var(--accent)}.portal-pagination button:focus-visible{outline:2px solid var(--accent-2);outline-offset:3px}.portal-pagination span{color:var(--text-3);padding:0 3px}#catalogStatus{scroll-margin-top:90px}
@media(max-width:480px){.portal-pagination{gap:5px}.portal-pagination button{width:34px;height:36px;border-radius:9px}}

.portal-tabs{gap:4px;padding:5px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.portal-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:transparent;border-color:transparent;border-radius:11px;min-height:38px;color:var(--text-3)}
.portal-tabs button svg{width:17px;height:17px;flex:none}
.portal-tabs button.active{box-shadow:0 3px 12px #3b82f633}
.portal-tabs button:not(.active):hover{background:var(--bg-2);color:var(--text)}
.portal-tabs button:focus-visible{outline:2px solid var(--accent-2);outline-offset:2px}
@media(max-width:480px){.portal-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.portal-tabs button{padding:8px 6px;gap:6px;font-size:12px}}
@media(max-width:480px){.portal-tabs{grid-auto-rows:50px}.portal-tabs button{height:100%;min-width:0}.portal-tabs button span{line-height:1.3}}
