/* ============================================
   KissAsian Main Styles - v3.0.0
   Unified Content
   ============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --bg-body: #0d0f14;
    --bg-dark: #13161c;
    --bg-card: #181c25;
    --bg-accent: #2b82ca;
    --border-color: #232936;
    --text-primary: #b1b5c0;
    --text-secondary: #8a8f9a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --bg-hover: rgba(55, 65, 81, 0.3);

    /* NOTE: --theme-* variables are intentionally NOT set here.
       They are printed inline in includes/header.php from the real
       admin settings (THEME_PRIMARY, etc). Defining them again here
       with hardcoded fallback colors (e.g. blue #0ea5e9) caused them
       to override the correct inline values on every page load,
       producing a flash of the wrong color before theme-manager.js
       ran. Do not re-add fallback values here. */
}

/* ===== LIGHT THEME ===== */
.light-theme {
    --bg-body: #f0f2f5;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-accent: #2563eb;
    --border-color: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --bg-hover: rgba(0, 0, 0, 0.05);
}

/* ===== BODY ===== */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== BACKGROUND CLASSES ===== */
.bg-custom-body { background-color: var(--bg-body); transition: background-color 0.3s ease; }
.bg-custom-dark { background-color: var(--bg-dark); transition: background-color 0.3s ease; }
.bg-custom-card { background-color: var(--bg-card); transition: background-color 0.3s ease; }
.bg-custom-hover { background-color: var(--bg-hover); transition: background-color 0.3s ease; }
.border-custom { border-color: var(--border-color); transition: border-color 0.3s ease; }
/* These two were used in the markup but never defined, so the lines fell back to white. */
.border-theme { border-color: var(--border-color); }
.border-custom\/30 { border-color: color-mix(in srgb, var(--border-color) 60%, transparent); }

/* ===== TEXT COLORS ===== */
.theme-text { color: var(--text-primary); transition: color 0.3s ease; }
.theme-text-muted { color: var(--text-secondary); transition: color 0.3s ease; }

/* ===== THEME-SPECIFIC CLASSES ===== */
.bg-theme-primary { background-color: var(--theme-primary); }
.text-theme-primary { color: var(--theme-primary); }
.border-theme-primary { border-color: var(--theme-primary); }

.bg-theme-header { background-color: var(--theme-header-bg); }
.bg-theme-footer { background-color: var(--theme-footer-bg); }
.bg-theme-card { background-color: var(--theme-card-bg); }
.bg-theme-body { background-color: var(--theme-body-bg); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--theme-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--theme-secondary); }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.3s ease-out; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

/* ===== LINE CLAMP ===== */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== DRAMA CARDS ===== */
.drama-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.drama-card:hover {
    /*box-shadow: 0 4px 20px var(--shadow-color);*/
    /*transform: translateY(-4px);*/
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}
@media (min-width: 640px) { .status-badge { font-size: 9px; padding: 2px 10px; } }
@media (min-width: 768px) { .status-badge { font-size: 10px; padding: 3px 12px; } }

.status-ongoing {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
.status-ongoing .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
.status-completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--theme-primary);
    border-color: rgba(59, 130, 246, 0.3);
}
.status-upcoming {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
}
.filter-btn:hover {
    color: white;
}
/*.filter-btn.active {*/
/*    background: var(--theme-accent);*/
/*    color: white;*/
/*}*/

/* ===== EPISODE BUTTONS ===== */
.episode-btn {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 4px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.episode-btn:hover {
    border-color: var(--theme-primary);
}
.episode-btn.active {
    border-color: var(--theme-primary);
    background: rgba(14, 165, 233, 0.15);
}
.episode-btn .ep-number {
    font-weight: bold;
    color: var(--text-primary);
}
.episode-btn .ep-cc {
    font-size: 7px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ===== PAGINATION ===== */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.pagination-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-secondary);
    background: var(--bg-hover);
}
.pagination-btn.active {
    background: var(--theme-primary) !important;
    color: white !important;
    border-color: var(--theme-primary) !important;
}
@media (max-width: 640px) {
    .pagination-btn { min-width: 28px; height: 28px; padding: 0 8px; font-size: 11px; }
}

/* ===== SHARE BUTTONS ===== */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter { background: #000000; color: white; border: 1px solid #333; }
.share-btn.copy { background: var(--bg-dark); color: var(--text-primary); border: 1px solid var(--border-color); }

/* ===== NOTIFICATION ===== */
.notification-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
}
.notification-toast.success { border-color: #34d399; background: rgba(16, 185, 129, 0.1); }
.notification-toast.error { border-color: #f87171; background: rgba(248, 113, 113, 0.1); }
.notification-toast.info { border-color: var(--theme-primary); background: rgba(14, 165, 233, 0.1); }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .episode-btn { min-height: 36px; padding: 6px 2px; }
    .episode-btn .ep-number { font-size: 11px; }
}
@media (min-width: 481px) and (max-width: 640px) {
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .grid-cols-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
@media (min-width: 641px) and (max-width: 768px) {
    .grid-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .grid-cols-6 { grid-template-columns: repeat(6, 1fr); gap: 8px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
    .grid-cols-8 { grid-template-columns: repeat(8, 1fr); gap: 8px; }
}
@media (min-width: 1025px) {
    .grid-cols-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
    .grid-cols-10 { grid-template-columns: repeat(10, 1fr); gap: 10px; }
}


/* ===== FLOWING CARD ANIMATION =====
   Cards ease up into place one after another as they scroll into view.
   Uses the individual `translate` / `scale` properties so Tailwind's hover
   transform on the same element keeps working. Cards only start hidden when
   JS is running (html.fx-js is set in header.php). */
@keyframes fx-card-in {
    from { opacity: 0; translate: 0 26px; scale: .96; }
    to   { opacity: 1; translate: 0 0;    scale: 1; }
}
html.fx-js .fx-flow-card:not(.is-in) { opacity: 0; }
html.fx-js .fx-flow-card.is-in {
    animation: fx-card-in .6s cubic-bezier(.2, .8, .2, 1) backwards;
    animation-delay: var(--fx-d, 0ms);
}
.fx-flow-card { position: relative; transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease; }
.fx-flow-card:hover {
    border-color: color-mix(in srgb, var(--theme-primary) 55%, var(--border-color));
    box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--theme-primary) 45%, rgba(0, 0, 0, .6));
}
/* light sweep across the poster on hover */
.fx-flow-card > a.block::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: skewX(-18deg); transition: left .7s ease; z-index: 2;
}
.fx-flow-card:hover > a.block::after { left: 130%; }
@media (prefers-reduced-motion: reduce) {
    html.fx-js .fx-flow-card:not(.is-in) { opacity: 1; }
    html.fx-js .fx-flow-card.is-in { animation: none; }
    .fx-flow-card > a.block::after { display: none; }
}

/* ===== image / poster loading spinner (theme colour) =====
   assets/js/img-loader.js adds .img-ld to an image's wrapper while it loads. */
.img-ld{position:relative}
.img-ld > img{opacity:0}
img.img-fade{transition:opacity .35s ease,transform .3s ease}
.img-ld.img-ld::before{
    content:"";position:absolute;left:50%;top:50%;z-index:2;pointer-events:none;
    --ld:clamp(22px,34%,44px);width:var(--ld);height:var(--ld);margin:calc(var(--ld) / -2) 0 0 calc(var(--ld) / -2);
    background:var(--theme-primary,#0ea5e9);
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cg transform=%22rotate%280 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%221.0%22/%3E%3C/g%3E%3Cg transform=%22rotate%2830 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.157%22/%3E%3C/g%3E%3Cg transform=%22rotate%2860 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.233%22/%3E%3C/g%3E%3Cg transform=%22rotate%2890 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.31%22/%3E%3C/g%3E%3Cg transform=%22rotate%28120 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.387%22/%3E%3C/g%3E%3Cg transform=%22rotate%28150 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.463%22/%3E%3C/g%3E%3Cg transform=%22rotate%28180 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.54%22/%3E%3C/g%3E%3Cg transform=%22rotate%28210 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.617%22/%3E%3C/g%3E%3Cg transform=%22rotate%28240 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.693%22/%3E%3C/g%3E%3Cg transform=%22rotate%28270 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.77%22/%3E%3C/g%3E%3Cg transform=%22rotate%28300 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.847%22/%3E%3C/g%3E%3Cg transform=%22rotate%28330 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.923%22/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cg transform=%22rotate%280 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%221.0%22/%3E%3C/g%3E%3Cg transform=%22rotate%2830 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.157%22/%3E%3C/g%3E%3Cg transform=%22rotate%2860 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.233%22/%3E%3C/g%3E%3Cg transform=%22rotate%2890 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.31%22/%3E%3C/g%3E%3Cg transform=%22rotate%28120 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.387%22/%3E%3C/g%3E%3Cg transform=%22rotate%28150 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.463%22/%3E%3C/g%3E%3Cg transform=%22rotate%28180 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.54%22/%3E%3C/g%3E%3Cg transform=%22rotate%28210 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.617%22/%3E%3C/g%3E%3Cg transform=%22rotate%28240 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.693%22/%3E%3C/g%3E%3Cg transform=%22rotate%28270 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.77%22/%3E%3C/g%3E%3Cg transform=%22rotate%28300 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.847%22/%3E%3C/g%3E%3Cg transform=%22rotate%28330 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.923%22/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
    animation:img-ld-spin .9s steps(12) infinite;
}
@keyframes img-ld-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.img-ld.img-ld::before{animation-duration:2.4s}}

/* ===== pagination (no divider line) ===== */
.pg-wrap{display:flex;justify-content:center;padding:28px 0 8px}
.pg-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.pg-wrap .pagination-btn{min-width:40px;height:40px;padding:0 12px;border-radius:12px;font-size:13.5px;font-weight:700;gap:8px;
    background:var(--bg-card);border:1px solid var(--border-color);color:var(--text-secondary);
    transition:background .18s ease,border-color .18s ease,color .18s ease,transform .15s ease}
.pg-wrap a.pagination-btn:hover{border-color:var(--theme-primary);color:var(--text-primary);background:color-mix(in srgb,var(--theme-primary) 8%,var(--bg-card));transform:translateY(-1px)}
.pg-wrap a.pagination-btn:active{transform:scale(.96)}
.pg-wrap .pagination-btn.active{background:var(--theme-primary);border-color:var(--theme-primary);color:#fff;cursor:default}
.pg-wrap .pg-nav{padding:0 16px}
.pg-wrap .pg-nav i{font-size:12px;transition:transform .18s ease}
.pg-wrap .pg-prev:not(.is-disabled):hover i{transform:translateX(-3px)}
.pg-wrap .pg-next:not(.is-disabled):hover i{transform:translateX(3px)}
.pg-wrap .pg-nav:not(.is-disabled){color:var(--text-primary)}
.pg-wrap .is-disabled{opacity:.4;cursor:not-allowed;pointer-events:none}
.pg-gap{min-width:20px;text-align:center;color:var(--text-secondary);opacity:.7;letter-spacing:.1em}
@media (max-width:640px){
    .pg-row{gap:6px}
    .pg-wrap .pagination-btn{min-width:38px;height:38px;padding:0 10px;font-size:13px}
    .pg-wrap .pg-nav{padding:0;width:38px}
    .pg-wrap .pg-nav span{display:none}
}

/* ===== loading.svg spinner (colour follows the theme) - reused by infinite scroll / load more ===== */
.ld-spin{display:inline-block;flex:none;width:var(--ld-size,40px);height:var(--ld-size,40px);background:var(--theme-primary,#0ea5e9);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cg transform=%22rotate%280 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%221.0%22/%3E%3C/g%3E%3Cg transform=%22rotate%2830 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.157%22/%3E%3C/g%3E%3Cg transform=%22rotate%2860 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.233%22/%3E%3C/g%3E%3Cg transform=%22rotate%2890 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.31%22/%3E%3C/g%3E%3Cg transform=%22rotate%28120 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.387%22/%3E%3C/g%3E%3Cg transform=%22rotate%28150 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.463%22/%3E%3C/g%3E%3Cg transform=%22rotate%28180 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.54%22/%3E%3C/g%3E%3Cg transform=%22rotate%28210 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.617%22/%3E%3C/g%3E%3Cg transform=%22rotate%28240 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.693%22/%3E%3C/g%3E%3Cg transform=%22rotate%28270 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.77%22/%3E%3C/g%3E%3Cg transform=%22rotate%28300 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.847%22/%3E%3C/g%3E%3Cg transform=%22rotate%28330 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.923%22/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cg transform=%22rotate%280 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%221.0%22/%3E%3C/g%3E%3Cg transform=%22rotate%2830 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.157%22/%3E%3C/g%3E%3Cg transform=%22rotate%2860 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.233%22/%3E%3C/g%3E%3Cg transform=%22rotate%2890 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.31%22/%3E%3C/g%3E%3Cg transform=%22rotate%28120 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.387%22/%3E%3C/g%3E%3Cg transform=%22rotate%28150 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.463%22/%3E%3C/g%3E%3Cg transform=%22rotate%28180 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.54%22/%3E%3C/g%3E%3Cg transform=%22rotate%28210 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.617%22/%3E%3C/g%3E%3Cg transform=%22rotate%28240 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.693%22/%3E%3C/g%3E%3Cg transform=%22rotate%28270 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.77%22/%3E%3C/g%3E%3Cg transform=%22rotate%28300 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.847%22/%3E%3C/g%3E%3Cg transform=%22rotate%28330 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.923%22/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;animation:img-ld-spin .9s steps(12) infinite}
@media (prefers-reduced-motion:reduce){.ld-spin{animation-duration:2.4s}}

/* ===== page slide / fade: loading.svg (theme colour) sits behind the page, so it shows instead of a blank white / black flash ===== */
html.pt-out::after,html.pt-fwd::after,html.pt-back::after{content:"";position:fixed;z-index:-1;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;pointer-events:none;background:var(--theme-primary,#0ea5e9);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cg transform=%22rotate%280 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%221.0%22/%3E%3C/g%3E%3Cg transform=%22rotate%2830 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.157%22/%3E%3C/g%3E%3Cg transform=%22rotate%2860 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.233%22/%3E%3C/g%3E%3Cg transform=%22rotate%2890 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.31%22/%3E%3C/g%3E%3Cg transform=%22rotate%28120 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.387%22/%3E%3C/g%3E%3Cg transform=%22rotate%28150 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.463%22/%3E%3C/g%3E%3Cg transform=%22rotate%28180 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.54%22/%3E%3C/g%3E%3Cg transform=%22rotate%28210 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.617%22/%3E%3C/g%3E%3Cg transform=%22rotate%28240 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.693%22/%3E%3C/g%3E%3Cg transform=%22rotate%28270 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.77%22/%3E%3C/g%3E%3Cg transform=%22rotate%28300 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.847%22/%3E%3C/g%3E%3Cg transform=%22rotate%28330 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.923%22/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cg transform=%22rotate%280 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%221.0%22/%3E%3C/g%3E%3Cg transform=%22rotate%2830 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.157%22/%3E%3C/g%3E%3Cg transform=%22rotate%2860 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.233%22/%3E%3C/g%3E%3Cg transform=%22rotate%2890 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.31%22/%3E%3C/g%3E%3Cg transform=%22rotate%28120 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.387%22/%3E%3C/g%3E%3Cg transform=%22rotate%28150 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.463%22/%3E%3C/g%3E%3Cg transform=%22rotate%28180 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.54%22/%3E%3C/g%3E%3Cg transform=%22rotate%28210 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.617%22/%3E%3C/g%3E%3Cg transform=%22rotate%28240 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.693%22/%3E%3C/g%3E%3Cg transform=%22rotate%28270 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.77%22/%3E%3C/g%3E%3Cg transform=%22rotate%28300 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.847%22/%3E%3C/g%3E%3Cg transform=%22rotate%28330 50 50%29%22%3E%3Crect x=%2247%22 y=%2224%22 rx=%223%22 ry=%226%22 width=%226%22 height=%2212%22 fill=%22%23000%22 opacity=%220.923%22/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;animation:img-ld-spin .9s steps(12) infinite}
@media (prefers-reduced-motion:reduce){html.pt-out::after,html.pt-fwd::after,html.pt-back::after{display:none}}