/* ==========================================================================
   Theme tokens
   ========================================================================== */
:root {
    /* shared with admin.css / dashboard */
    --bg: #1b140d;
    --bg-elevated: #251b12;
    --bg-card: #2c2117;
    --border: #4d3c28;
    --text: #f2e6cc;
    --text-muted: #b7a684;
    --accent: #d28a3c;
    --accent-bright: #f0a44e;
    --radius: 4px;
    --font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-script: 'Kaushan Script', 'Brush Script MT', cursive;

    /* public theme */
    --topbar: #2a1d12;
    --topbar-edge: #140d07;
    --nav: #cdb898;
    --nav-hot: #ff7b3a;
    --panel: #735f3f;
    --panel-line: #5d4b31;
    --panel-head: #3a2c1d;
    --panel-input: #2d2217;
    --cream: #f5e8cc;
    --value: #ff5a36;
    --gold: #ffc21c;
    --vote: #3f8c2b;
    --vote-edge: #2b6a1c;
    --visit: #dcc79e;
    --visit-edge: #b39d74;
    --side: #130e09;
    --side-row: #1c150e;
    --side-row-edge: #6b573a;
    --side-title: #5b3322;
    --side-btn: #6f3423;
    --danger: #c0392b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Public site frame
   ========================================================================== */
body.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #5d4a31;
    background-image:
        var(--site-bg-image, none),
        repeating-linear-gradient(112deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 8px),
        radial-gradient(ellipse 60% 45% at 18% 0%, rgba(255, 236, 196, .45), transparent 70%),
        radial-gradient(ellipse 45% 40% at 88% 10%, rgba(255, 220, 170, .28), transparent 70%),
        linear-gradient(180deg, #bda172 0%, #92764d 30%, #634e33 65%, #3b2d1d 100%);
    background-size: cover, auto, auto, auto, auto;
    background-position: center top;
    background-attachment: fixed;
}

/* Topbar */
.topbar {
    background: var(--topbar);
    border-bottom: 1px solid var(--topbar-edge);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
    position: relative;
    z-index: 40; /* above the fixed ad rails (20), so the language menu opens over them */
}
.topbar-inner {
    display: flex;
    align-items: stretch;
    min-height: 64px;
    padding: 0 0 0 18px;
}
.topbar-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-script);
    font-size: 34px;
    line-height: 1;
    color: var(--cream);
    padding-right: 26px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    white-space: nowrap;
}
.topbar-logo img { max-height: 44px; width: auto; }
.topbar-welcome {
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #8f7d62;
    font-size: 13px;
    white-space: nowrap;
}
.topbar-nav { display: flex; align-items: stretch; margin-left: auto; }
.topbar-nav > a,
.topbar-nav > .topbar-lang,
.topbar-nav > .topbar-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 22px;
    color: var(--nav);
    font-size: 13px;
    border-left: 1px solid rgba(255, 255, 255, .07);
    transition: color .15s, background .15s;
}
.topbar-nav > a:hover { color: #fff; background: rgba(0, 0, 0, .18); }
.topbar-nav > a.is-highlight { color: var(--nav-hot); background: rgba(0, 0, 0, .22); }
.topbar-nav > a.is-active { color: #fff; background: rgba(0, 0, 0, .22); }
.topbar-nav .icon { width: 15px; height: 15px; }
/* Language menu (partials/lang-menu.php) */
.lang-menu { position: relative; }
.topbar-nav > .lang-menu { padding: 0 14px; }
.lang-menu > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 8px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    color: var(--cream);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover,
.lang-menu[open] > summary { border-color: rgba(255, 194, 28, .55); background: rgba(0, 0, 0, .34); }
.lang-menu > summary:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255, 194, 28, .55); }
.lang-menu .fi {
    flex: none;
    width: 20px;
    height: 15px;
    line-height: 15px;
    border-radius: 3px;
    background-size: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
}
.lang-menu > summary .fi { width: 18px; height: 18px; border-radius: 50%; }
.lang-menu-chevron { width: 12px; height: 12px; color: var(--nav); transition: transform .2s ease; }
.lang-menu[open] .lang-menu-chevron { transform: rotate(180deg); color: var(--gold); }
.lang-menu-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    z-index: 60;
    min-width: 212px;
    max-height: min(420px, calc(100vh - 90px));
    overflow-y: auto;
    padding: 6px;
    background: linear-gradient(180deg, #33251a, #22180f);
    border: 1px solid #5d4b31;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
    animation: lang-menu-in .16s ease-out;
}
@keyframes lang-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-menu-title {
    display: block;
    padding: 6px 10px 8px;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8f7d62;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lang-menu-list a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    border-radius: 5px;
    color: var(--cream);
    font-size: 13px;
    transition: background .12s, color .12s;
}
.lang-menu-list a:hover,
.lang-menu-list a:focus-visible { background: rgba(255, 255, 255, .06); color: #fff; outline: none; }
.lang-menu-list a.is-current { background: rgba(255, 194, 28, .12); color: var(--gold); font-weight: 600; }
.lang-menu-name { flex: 1; white-space: nowrap; }
.lang-menu-iso { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #8f7d62; }
.lang-menu-check { width: 16px; height: 16px; color: var(--gold); }
.topbar-logout { margin: 0; }
.topbar-logout button {
    background: none;
    border: 0;
    color: var(--nav);
    cursor: pointer;
    padding: 0;
    font-size: 13px;
}
.topbar-logout button:hover { color: #fff; }
.topbar-toggle {
    display: none;
    margin-left: auto;
    width: 56px;
    background: none;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .07);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.topbar-toggle span { display: block; width: 22px; height: 2px; background: var(--nav); }

/* Big page logo */
.page-logo {
    text-align: center;
    padding: 26px 20px 18px;
}
.page-logo a {
    display: inline-block;
    font-family: var(--font-script);
    font-size: clamp(46px, 7vw, 98px);
    line-height: 1.05;
    color: #5a4726;
    text-shadow: 0 1px 0 rgba(255, 244, 214, .55), 0 3px 10px rgba(0, 0, 0, .25);
}
.page-logo img { max-height: 120px; width: auto; }

/* Two column shell */
.shell {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    flex: 1 0 auto;
}
.shell.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: stretch;
}
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.shell-side { background: var(--side); padding-bottom: 20px; }

/* Ad slots */
.spot-frame { background: rgba(0, 0, 0, .35); overflow: hidden; }
.spot-frame a, .spot-frame img { display: block; width: 100%; }
.spot-frame img { object-fit: cover; }
.spot-top, .spot-top img { height: 130px; }
.spot-side, .spot-side img { height: 180px; }
.spot-empty {
    height: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px dashed rgba(245, 232, 204, .25);
    color: var(--text-muted);
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 10px, transparent 10px 20px);
    text-align: center;
}
.spot-empty strong { color: var(--cream); font-size: 14px; font-weight: 600; }
.spot-empty span { font-size: 11px; }
.spot-empty:hover { border-color: var(--nav-hot); }

/* ==========================================================================
   Panels (khaki content area)
   ========================================================================== */
.panel {
    background: var(--panel);
    color: var(--cream);
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
.panel-narrow { max-width: 640px; width: 100%; margin: 0 auto 40px; }
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 14px;
    background: var(--panel-head);
    border-bottom: 1px solid #21180f;
}
.panel-head h1 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cream);
}
.panel-head-link { font-size: 12px; color: var(--visit); }
.panel-head-link:hover { color: #fff; }

.panel-filter { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--cream); }
.panel-filter label { cursor: pointer; }
.panel-filter select {
    background: transparent;
    border: 0;
    color: var(--cream);
    font-size: 13px;
    cursor: pointer;
    max-width: 140px;
}
.panel-filter select option { background: var(--panel-head); }

.panel-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, .14);
    border-bottom: 1px solid var(--panel-line);
}
.panel-toolbar input,
.panel-toolbar select,
.panel-toolbar button {
    height: 30px;
    padding: 0 10px;
    border-radius: 3px;
    border: 1px solid #4f3f29;
    background: var(--panel-input);
    color: var(--cream);
    font-size: 12px;
}
.panel-toolbar input { flex: 1 1 160px; min-width: 120px; }
.panel-toolbar button { background: var(--panel-head); cursor: pointer; }
.panel-toolbar button:hover { background: #4a3826; }

.panel-section { padding: 16px 18px; border-top: 1px solid var(--panel-line); }
.panel-head + .panel-section,
.panel-alert + .panel-section { border-top: 0; }
.panel-center { text-align: center; padding: 40px 18px; }
.panel-center p { font-size: 15px; margin: 0 0 18px; }
.panel-alert { margin: 12px 14px 0; }
.panel-empty { padding: 40px 20px; text-align: center; }
.panel-empty p { margin: 0 0 16px; font-size: 14px; }
.panel-form { max-width: 560px; width: 100%; margin: 0 auto; }
.shell.has-sidebar .panel-form { max-width: none; }

.section-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.muted-note { color: #e3d3b0; opacity: .85; font-size: 12px; margin: 0 0 12px; }
.muted-note a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Server rows (ranking list)
   ========================================================================== */
.srow {
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--panel-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    transition: background .15s;
}
.srow:hover { background: rgba(255, 255, 255, .025); }
.srow.is-featured { background: linear-gradient(90deg, rgba(255, 194, 28, .09), transparent 60%); }

.srow-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff5dd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}
.srow-title a:hover { color: var(--gold); }

.srow-body {
    display: grid;
    grid-template-columns: 34px 124px minmax(0, 468px) 112px;
    justify-content: space-between;
    gap: 12px;
    align-items: stretch;
}

.srow-rank { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.rank-box {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border: 1px solid #000;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 2px;
}
.rank-box.rank-1 { background: linear-gradient(180deg, #ffd65a, #c99212); color: #2a1b00; border-color: #8c6508; }
.rank-box.rank-2 { background: linear-gradient(180deg, #f1f1f1, #a9a9a9); color: #222; border-color: #777; }
.rank-box.rank-3 { background: linear-gradient(180deg, #e7a56a, #9c5a25); color: #2a1300; border-color: #6d3c14; }
.srow-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5b2a1d;
    border: 1px solid #3c1a10;
    color: #efd9b5;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
}
.srow-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.srow-toggle.is-open svg { transform: rotate(180deg); }
.srow-toggle:hover { background: #733626; }

.srow-info {
    text-align: center;
    font-size: 11px;
    line-height: 1.55;
    color: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}
.srow-info b { color: var(--value); font-weight: 600; }
.srow-info .stars { margin: 5px 0 3px; }
.srow-comments { font-size: 11px; color: var(--cream); margin-bottom: 5px; }
.srow-comments:hover { color: #fff; text-decoration: underline; }
.srow-flags { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 4px; max-width: 124px; }
.srow-flags .fi { width: 16px; height: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }

.srow-banner {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 468 / 190;
    background: #1f170f;
    border: 1px solid #2a1f13;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    overflow: hidden;
    align-self: center;
}
.srow-banner > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.srow-banner:hover > img { transform: scale(1.02); }

.banner-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(255, 190, 90, .22), transparent 65%),
        linear-gradient(135deg, #3b2a18, #16100a);
    border: 1px solid rgba(255, 194, 28, .18);
}
.banner-placeholder-lg { position: relative; inset: auto; min-height: 220px; }
.banner-placeholder-logo { max-height: 60px; width: auto; }
.banner-placeholder-name {
    font-family: var(--font-script);
    font-size: clamp(22px, 3.2vw, 34px);
    line-height: 1.1;
    color: #ffd98a;
    text-shadow: 0 2px 0 #3a2208, 0 4px 14px rgba(0, 0, 0, .6);
}
.banner-placeholder-meta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #e8d2a6; }

.ribbon {
    position: absolute;
    top: 8px;
    right: -30px;
    transform: rotate(35deg);
    background: linear-gradient(180deg, #ffd65a, #c99212);
    color: #2a1b00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 34px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.banner-opens {
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: rgba(20, 12, 5, .82);
    color: #ffd98a;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 2px;
}

.srow-counters { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 13px;
    transition: filter .15s, transform .15s;
}
.counter svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.counter-vote { background: var(--vote); border: 1px solid var(--vote-edge); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.counter-visit { background: var(--visit); border: 1px solid var(--visit-edge); color: #2b1d0f; }
a.counter:hover { filter: brightness(1.1); transform: translateY(-1px); }
.counter.is-disabled { opacity: .55; cursor: default; }

.srow-desc {
    margin: 9px 0 0;
    text-align: center;
    font-size: 11px;
    color: #f1e3c4;
    line-height: 1.5;
}

.srow-more {
    margin-top: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--panel-line);
    border-radius: 2px;
}
.srow-more dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin: 0 0 12px; }
.srow-more dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #d8c7a3; }
.srow-more dd { margin: 0; font-weight: 600; color: #fff; }
.srow-more-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Status dot / badges / stars */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: #7b7b7b; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.status-online { background: #4ade3a; box-shadow: 0 0 0 2px rgba(0, 0, 0, .25), 0 0 8px rgba(74, 222, 58, .7); }
.status-maintenance { background: #f5c518; }
.badge-new {
    background: var(--value);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 1px 6px;
    border-radius: 2px;
}
.stars { display: inline-flex; gap: 1px; font-size: 14px; line-height: 1; }
.star { font-style: normal; color: #9e8963; }
.star.on { color: var(--gold); text-shadow: 0 0 1px #7a5200; }
.star.half {
    background: linear-gradient(90deg, var(--gold) 50%, #9e8963 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Pager */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 20px 12px;
    background: #2d2116;
}
.pager a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    font-size: 12px;
    color: var(--cream);
}
.pager-edge { padding: 0 20px; border-radius: 14px; background: #463626; }
.pager-num { width: 28px; border-radius: 50%; background: #3b2d1f; }
.pager-num.is-active { background: var(--cream); color: #2a1d10; font-weight: 700; }
.pager-next { font-size: 20px !important; padding: 0 8px; }
.pager a:hover:not(.is-active):not(.is-disabled) { background: #5a4630; }
.pager .is-disabled { opacity: .45; pointer-events: none; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.side-box { padding: 10px 10px 0; }
.side-title {
    margin: 0 0 10px;
    padding: 9px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--cream);
    background: var(--side-title);
    border: 1px solid #3f2014;
}
.stat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.stat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    background: var(--side-row);
    border: 1px solid var(--side-row-edge);
    border-radius: 3px;
    font-size: 12px;
    color: var(--cream);
}
.stat-list strong { color: #fff; font-weight: 700; }
.side-button {
    display: block;
    margin-top: 12px;
    padding: 9px;
    text-align: center;
    font-size: 12px;
    color: var(--cream);
    background: var(--side-btn);
    border: 1px solid #8b4632;
    border-radius: 2px;
    transition: filter .15s;
}
.side-button:hover { filter: brightness(1.15); }
.side-button-alt { background: #2a4a1d; border-color: #3f6d2c; margin-top: 8px; }

/* ==========================================================================
   Server detail / vote
   ========================================================================== */
.detail-banner { padding: 14px 14px 0; }
.detail-banner img { display: block; width: 100%; max-height: 320px; object-fit: cover; border: 1px solid #2a1f13; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.detail-tagline { margin: 12px 18px 0; text-align: center; font-size: 13px; color: #fff3d6; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; padding: 16px 18px; }
.detail-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--panel-line); border: 1px solid var(--panel-line); align-content: start; }
.detail-facts > div { background: rgba(0, 0, 0, .16); padding: 8px 10px; }
.detail-facts dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #d8c7a3; }
.detail-facts dd { margin: 2px 0 0; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.detail-flags .fi { width: 18px; height: 13px; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }
.detail-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.detail-counters .counter { flex-direction: column; justify-content: center; height: auto; padding: 8px; gap: 0; }
.detail-counters .counter span { font-size: 18px; }
.detail-counters .counter small { font-size: 10px; font-weight: 500; text-transform: uppercase; opacity: .85; }
.detail-rating { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; }
.detail-rating .stars { font-size: 20px; }
.detail-socials { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.detail-socials a { font-size: 11px; padding: 4px 10px; background: rgba(0, 0, 0, .25); border: 1px solid var(--panel-line); border-radius: 2px; }
.detail-socials a:hover { color: #fff; border-color: var(--visit-edge); }
.detail-description { font-size: 13px; line-height: 1.7; color: #fff3d6; }

.vote-box { padding-bottom: 18px; }
.vote-meta { text-align: center; margin: 12px 18px; font-size: 12px; }
.vote-meta b { color: var(--value); }
.vote-box .alert, .vote-form, .vote-cooldown, .vote-box .muted-note { margin-left: auto; margin-right: auto; max-width: 420px; }
.vote-box .muted-note { text-align: center; margin-top: 12px; }
.vote-form label { display: block; text-align: center; font-size: 12px; margin-bottom: 6px; }
.vote-form input {
    width: 100%;
    height: 44px;
    text-align: center;
    font-size: 17px;
    letter-spacing: .08em;
    background: var(--panel-input);
    border: 1px solid #4f3f29;
    color: #fff;
    border-radius: 3px;
    margin-bottom: 12px;
}
.vote-form .cf-turnstile { display: flex; justify-content: center; margin-bottom: 12px; }
.btn:disabled { opacity: .6; cursor: not-allowed; filter: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vote-player { text-align: center; font-size: 14px; margin: 0 0 12px; }
.vote-player b { color: var(--gold); font-size: 17px; letter-spacing: .04em; }
.vote-notice {
    max-width: 460px;
    margin: 0 auto;
    padding: 16px 18px;
    text-align: center;
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--panel-line);
}
.vote-notice p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; }
.vote-notice-title { font-weight: 700; color: #fff; font-size: 14px !important; }
.vote-cooldown .btn { margin-top: 12px; }
.how-to-vote {
    padding: 10px 12px;
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--panel-line);
    border-left: 3px solid var(--vote);
    font-size: 12px;
}
.how-to-vote strong { display: block; color: #fff; margin-bottom: 3px; }
.how-to-vote p { margin: 0; line-height: 1.55; color: #f1e3c4; }
.vote-cooldown { text-align: center; padding: 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--panel-line); }
.vote-cooldown p { margin: 0; }
.vote-countdown { font-size: 15px; margin-top: 6px !important; }
.vote-countdown span { color: var(--gold); font-weight: 700; }

/* Reviews */
.review-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.review-form textarea {
    width: 100%;
    background: var(--panel-input);
    border: 1px solid #4f3f29;
    color: #fff;
    border-radius: 3px;
    padding: 10px;
    resize: vertical;
}
.review-form-actions { display: flex; justify-content: flex-end; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 28px; line-height: 1; color: #9e8963; cursor: pointer; transition: color .1s, transform .1s; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.review-delete { margin: -6px 0 14px; text-align: right; }
.link-button { background: none; border: 0; color: #ffd4c6; cursor: pointer; font-size: 11px; text-decoration: underline; padding: 0; }
.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.review-list li { background: rgba(0, 0, 0, .2); border: 1px solid var(--panel-line); padding: 10px 12px; border-radius: 2px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.review-head strong { color: #fff; }
.review-head time { margin-left: auto; font-size: 11px; color: #e0cfab; }
.review-list p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #fff3d6; word-wrap: break-word; }

/* FAQ */
.faq-list { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.faq-item { background: rgba(0, 0, 0, .2); border: 1px solid var(--panel-line); border-radius: 2px; }
.faq-item summary { cursor: pointer; padding: 11px 14px; font-weight: 600; color: #fff; list-style: none; position: relative; padding-right: 34px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 14px; top: 8px; font-size: 18px; color: var(--gold); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0; padding: 0 14px 12px; font-size: 12px; line-height: 1.7; color: #fff3d6; }
.code-block { background: #1c150e; border: 1px solid var(--panel-line); color: #f5e8cc; padding: 12px; font-size: 12px; overflow-x: auto; margin: 0; }

.report-details summary { cursor: pointer; font-size: 12px; color: #ffd4c6; }
.report-details .form-stack { margin-top: 12px; }

/* ==========================================================================
   Forms & buttons (public)
   ========================================================================== */
.form-stack { display: flex; flex-direction: column; }
.form-stack label { font-size: 12px; margin: 12px 0 5px; color: #f7ecd4; }
.form-stack > label:first-of-type,
.form-stack > .form-row:first-child label { margin-top: 0; }
.form-stack input:not([type=checkbox]):not([type=radio]),
.form-stack select,
.form-stack textarea {
    width: 100%;
    padding: 9px 11px;
    background: var(--panel-input);
    border: 1px solid #4f3f29;
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
}
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus,
.panel-toolbar input:focus, .panel-toolbar select:focus, .vote-form input:focus, .review-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(255, 194, 28, .2);
}
.form-stack input[type=file] { padding: 7px; }
.form-stack > .btn { margin-top: 18px; align-self: flex-start; }
.form-stack > .btn-block { align-self: stretch; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-links { margin: 16px 0 0; text-align: center; font-size: 12px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.form-links a { color: #fff; text-decoration: underline; }
.hint { display: block; margin-top: 4px; font-size: 11px; color: #e0cfab; opacity: .85; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 10px; }
.checkbox-label { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; font-size: 12px; cursor: pointer; }
.checkbox-label input { width: auto; }
.checkbox-label .fi { width: 16px; height: 12px; }
.danger-zone { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--panel-line); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 3px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s, transform .15s, background .15s;
    text-align: center;
}
.btn:hover { filter: brightness(1.1); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 26px; font-size: 14px; }
.btn-vote { background: var(--vote); border-color: var(--vote-edge); color: #fff; }
.btn-dark { background: var(--panel-head); border-color: #21180f; color: var(--cream); }
.btn-primary { background: linear-gradient(180deg, var(--accent-bright), var(--accent)); border-color: #9c5f22; color: #2a1804; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-danger { background: transparent; border-color: var(--danger); color: #ff8a78; }
.btn-danger:hover { background: var(--danger); color: #fff; }

.alert { padding: 10px 14px; border-radius: 3px; font-size: 12px; margin-bottom: 12px; border: 1px solid; }
.alert-error { background: rgba(110, 20, 8, .55); border-color: #a3402c; color: #ffe0d6; }
.alert-success { background: rgba(28, 88, 18, .55); border-color: #4c9a36; color: #e2f9d6; }

/* API panel (server edit, dashboard) */
.api-panel { background: rgba(0, 0, 0, .22); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 20px; }
.api-panel h2 { margin: 0 0 8px; font-size: 14px; }
.api-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12px; }
.api-row:last-of-type { border-bottom: 0; }
.api-row span { color: var(--text-muted); white-space: nowrap; }
.api-row code { background: rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 3px; word-break: break-all; color: #fff; }
code[data-copy] { cursor: copy; transition: background .15s; }
code[data-copy].is-copied { background: var(--vote); }
.api-panel pre { background: rgba(0, 0, 0, .35); padding: 12px; border-radius: 3px; overflow-x: auto; font-size: 12px; }
.api-panel details { margin: 10px 0; }
.api-panel summary { cursor: pointer; color: var(--gold); font-size: 12px; }
.api-subtitle { margin: 16px 0 4px; font-size: 13px; color: #fff; }
.api-text { margin: 0 0 6px; font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.api-url { display: block; background: rgba(0, 0, 0, .35); padding: 8px 10px; border-radius: 3px; word-break: break-all; color: #9be58a; font-size: 12px; }
.api-hint { margin: 4px 0 0; font-size: 11px; color: var(--text-muted); }
.api-regenerate { margin: -8px 0 20px; }
.muted { color: var(--text-muted); }

/* Footer */
.site-footer {
    text-align: center;
    padding: 22px 16px 26px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
    font-size: 12px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35));
}
.site-footer p { margin: 6px 0 0; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: #f5e8cc; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* Script brand used in admin/dashboard sidebars */
.brand-script { display: block; font-family: var(--font-script); font-size: 28px; color: var(--cream); margin-bottom: 26px; line-height: 1.1; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1160px) {
    .shell { max-width: 100%; }
    .shell.has-sidebar { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 960px) {
    .topbar-welcome { display: none; }
    .topbar-toggle { display: flex; }
    .topbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--topbar);
        border-top: 1px solid var(--topbar-edge);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
    }
    .topbar-nav.is-open { display: flex; }
    .topbar-nav > a,
    .topbar-nav > .topbar-lang,
    .topbar-nav > .topbar-logout { padding: 13px 18px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
    .topbar-nav > .lang-menu { display: block; }
    .topbar-nav > .lang-menu > summary { display: inline-flex; }
    .topbar-nav .lang-menu-list { position: static; margin-top: 10px; min-width: 0; max-height: none; box-shadow: none; animation: none; }
    .topbar-logo { border-right: 0; }

    .shell.has-sidebar { display: block; }
    .shell-side { padding: 0 0 12px; }
    .spot-side { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .spot-top, .spot-top img { height: auto; min-height: 70px; }
    .srow-body {
        grid-template-columns: 34px minmax(0, 1fr) 104px;
        grid-template-areas:
            "rank banner banner"
            "info info counters";
    }
    .srow-rank { grid-area: rank; }
    .srow-banner { grid-area: banner; }
    .srow-info { grid-area: info; align-items: flex-start; text-align: left; }
    .srow-flags { justify-content: flex-start; max-width: none; }
    .srow-counters { grid-area: counters; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .panel-head { flex-wrap: wrap; }
}

@media (max-width: 420px) {
    .topbar-logo { font-size: 26px; }
    .srow { padding: 10px; }
    .srow-body { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* Captcha widgets (Turnstile / reCAPTCHA) */
.captcha-box { display: flex; justify-content: center; margin: 12px 0; min-height: 65px; }
.captcha-note { font-size: 11px; color: var(--text-muted, #b9a88a); text-align: center; margin: 8px 0 0; }
.vote-blocked { border-color: #a3402c; background: rgba(110, 20, 8, .3); }
.vote-blocked .vote-notice-title { color: #ffd9cf; }
.grecaptcha-badge { visibility: hidden; }

/* Continue with Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 42px; padding: 10px 16px; margin: 6px 0 0; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 3px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, box-shadow .15s; }
.btn-google:hover { background: #f4f6f8; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); color: #1f1f1f; }
.btn-google:focus-visible { outline: 2px solid var(--gold, #ffc21c); outline-offset: 2px; }
.btn-google svg { flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 2px; color: var(--text-muted, #b9a88a); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }

/* Vote ranking reset notice (homepage) */
.period-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0 14px 10px; padding: 8px 12px; background: var(--side-row); border: 1px solid var(--side-row-edge); border-radius: 3px; font-size: 12px; color: var(--cream); }
.period-notice-text { display: inline-flex; align-items: center; gap: 6px; }
.period-notice-text .i { width: 14px; height: 14px; color: var(--gold); flex: none; }
.period-notice small { color: var(--text-muted); }
.period-notice-left b { color: var(--gold); font-variant-numeric: tabular-nums; margin-left: 4px; }

/* ==========================================================================
   Server list cards + server detail page (redesign, 2026-09-28)
   ========================================================================== */
.i { width: 16px; height: 16px; flex: none; }

/* Tags */
.tag { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tag-new { background: #e2472a; color: #fff; }
.tag-premium { background: linear-gradient(180deg, #ffd65a, #c99212); color: #2a1b00; }
.tag-featured { background: #2d6fb8; color: #fff; }
.tag-muted { background: rgba(0, 0, 0, .35); color: var(--cream); border: 1px solid rgba(255, 255, 255, .12); }

/* Rank medal */
.medal { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #17110b; border: 2px solid #4b3b27; color: #fff; font-weight: 800; font-size: 14px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35); }
.medal-1 { background: radial-gradient(circle at 35% 30%, #fff1a8, #f2bb22 45%, #a8740a); border-color: #7a5406; color: #3a2400; box-shadow: 0 0 12px rgba(255, 194, 28, .45); }
.medal-2 { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd3d8 45%, #858b93); border-color: #5d6269; color: #22262b; }
.medal-3 { background: radial-gradient(circle at 35% 30%, #ffd2a6, #d0843f 45%, #82461a); border-color: #5b2f10; color: #2b1400; }

/* Status pill (on banners) */
.scard-status { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(12, 9, 5, .82); color: #fff; font-size: 11px; font-weight: 600; line-height: 1.4; }
.scard-status i { width: 8px; height: 8px; border-radius: 50%; background: #8a8a8a; }
.scard-status.is-online i { background: #4ade3a; box-shadow: 0 0 6px #4ade3a; animation: pulse-dot 2s infinite; }
.scard-status.is-maintenance i { background: #ffb020; }
.scard-status.is-offline i { background: #e0503a; }
@keyframes pulse-dot { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .scard-status.is-online i { animation: none; } }

/* ---- List card ---- */
.scard { position: relative; margin: 0 12px 12px; padding: 12px 14px; background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .28)); border: 1px solid rgba(0, 0, 0, .35); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 2px 6px rgba(0, 0, 0, .18); transition: border-color .15s, box-shadow .15s; }
.scard:first-of-type { margin-top: 12px; }
.scard:hover { border-color: rgba(255, 194, 28, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px rgba(0, 0, 0, .3); }
.scard.is-featured { border-color: rgba(255, 194, 28, .55); background: linear-gradient(180deg, rgba(255, 194, 28, .1), rgba(0, 0, 0, .25) 55%); }
.scard.is-top-1 { border-color: rgba(255, 194, 28, .7); }

.scard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.scard-name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard-name a { color: #fff5dd; }
.scard-name a:hover { color: var(--gold); }
.scard-badges { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.scard-rating { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--cream); }
.scard-rating b { color: #fff; }
.scard-rating span { color: #d9c7a2; }
.scard-rating:hover b { color: var(--gold); }

.scard-main { display: grid; grid-template-columns: minmax(0, 468px) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.scard-banner { position: relative; display: block; aspect-ratio: 468 / 190; background: #1f170f; border: 1px solid #120d08; border-radius: 3px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.scard-banner > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.scard-banner:hover > img { transform: scale(1.03); }
.scard-opens { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 3px; background: rgba(12, 9, 5, .85); color: var(--gold); font-size: 11px; font-weight: 700; }
.scard-opens.is-open { color: #7ee06a; }
.scard-opens .i { width: 13px; height: 13px; }

.scard-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.scard-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.scard-facts div { padding: 6px 8px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .06); border-radius: 3px; min-width: 0; }
.scard-facts dt { display: flex; align-items: center; gap: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #cdb894; }
.scard-facts dt .i { width: 11px; height: 11px; color: var(--gold); }
.scard-facts dd { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.scard-flags .fi { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.flags-more { font-size: 11px; font-weight: 700; color: var(--cream); padding: 0 4px; border-radius: 2px; background: rgba(0, 0, 0, .35); }

.scard-buttons { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; margin-top: auto; }
.scard-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 3px; border: 1px solid; text-decoration: none; transition: filter .15s, transform .1s; }
.scard-btn .i { width: 20px; height: 20px; }
.scard-btn span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.scard-btn b { font-size: 16px; }
.scard-btn small { font-size: 10px; text-transform: uppercase; letter-spacing: .03em; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard-btn:hover { filter: brightness(1.1); }
.scard-btn:active { transform: translateY(1px); }
.scard-btn-vote { background: linear-gradient(180deg, #4ea935, var(--vote)); border-color: var(--vote-edge); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.scard-btn-visit { background: linear-gradient(180deg, #efdcb4, var(--visit)); border-color: var(--visit-edge); color: #2b2016; }
.scard-btn.is-disabled { opacity: .55; filter: grayscale(.4); cursor: default; }

.scard-desc { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 12px; line-height: 1.55; color: #f0e2c2; }

@media (max-width: 760px) {
    .scard { margin: 0 8px 10px; padding: 10px; }
    .scard-main { grid-template-columns: 1fr; }
    .scard-head { flex-wrap: wrap; }
    .scard-name { white-space: normal; flex: 1 1 60%; }
    .scard-rating { margin-left: 44px; }
    .medal { width: 30px; height: 30px; font-size: 13px; }
}

/* ---- Detail page ---- */
.sd-hero { position: relative; margin: 14px 14px 0; border-radius: 4px; overflow: hidden; border: 1px solid #120d08; background: #1f170f; box-shadow: 0 4px 18px rgba(0, 0, 0, .45); }
.sd-hero > img { display: block; width: 100%; height: auto; aspect-ratio: 468 / 190; object-fit: cover; }
.sd-hero .scard-status { top: 12px; left: 12px; font-size: 12px; padding: 4px 11px 4px 9px; }
.sd-rank { position: absolute; top: 10px; right: 12px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(12, 9, 5, .85); border: 2px solid #4b3b27; color: #fff; font-size: 20px; font-weight: 800; }
.sd-rank small { font-size: 12px; opacity: .8; margin-right: 1px; }
.sd-manage { position: absolute; bottom: 10px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 3px; background: rgba(12, 9, 5, .85); color: #fff; font-size: 12px; font-weight: 600; }
.sd-manage:hover { color: var(--gold); }

.sd-titlebar { display: flex; align-items: center; gap: 14px; padding: 14px 16px 6px; }
.sd-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .1); flex: none; }
.sd-title { min-width: 0; flex: 1; }
.sd-title h1 { margin: 5px 0 0; font-size: 22px; line-height: 1.2; color: #fff; word-wrap: break-word; }
.sd-tagline { margin: 4px 0 0; font-size: 13px; color: #f0e2c2; }
.sd-score { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 14px; border-radius: 4px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); text-decoration: none; }
.sd-score b { font-size: 24px; line-height: 1; color: #fff; }
.sd-score .stars { font-size: 13px; }
.sd-score small { font-size: 11px; color: #d9c7a2; white-space: nowrap; }
.sd-score:hover { border-color: rgba(255, 194, 28, .5); }

.sd-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 10px 14px; }
.sd-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 4px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .06); text-align: center; }
.sd-stat .i { width: 18px; height: 18px; color: var(--gold); margin-bottom: 2px; }
.sd-stat b { font-size: 19px; color: #fff; line-height: 1.1; }
.sd-stat small { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #d9c7a2; }
.sd-stat.is-vote { background: linear-gradient(180deg, #4ea935, var(--vote)); border-color: var(--vote-edge); }
.sd-stat.is-vote .i, .sd-stat.is-vote small { color: #eaffdf; }

.sd-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 12px; }
.sd-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .4); background: #2b2016; color: #f5e8cc; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; transition: filter .15s; }
.sd-btn:hover { filter: brightness(1.2); color: #fff; }
.sd-btn .i { width: 15px; height: 15px; }
.sd-btn-primary { background: linear-gradient(180deg, #ffd65a, #d9a01a); color: #2a1b00; border-color: #8c6508; }
.sd-btn-primary:hover { color: #2a1b00; }
.sd-btn-discord { background: #5865f2; border-color: #3c47c4; color: #fff; }
.sd-btn-youtube { background: #c4302b; border-color: #8f1f1b; color: #fff; }
.sd-btn-facebook { background: #1877f2; border-color: #0f56b3; color: #fff; }
.sd-btn-instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); border-color: #8a1a5c; color: #fff; }
.sd-btn-download { background: var(--vote); border-color: var(--vote-edge); color: #fff; }
.sd-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .2); margin-left: auto; }
.sd-btn-ghost.is-copied { border-color: #4ade3a; color: #b8f5a8; }

.sd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; padding: 0 14px 16px; align-items: start; }
.sd-main, .sd-aside { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sd-card { padding: 14px 16px; border-radius: 4px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .07); }
.sd-card-title { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff5dd; }
.sd-card-title .i { color: var(--gold); }
.sd-count { margin-left: 2px; padding: 0 7px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-size: 11px; color: var(--cream); }

.sd-facts { margin: 0; display: flex; flex-direction: column; }
.sd-facts div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12px; }
.sd-facts div:last-child { border-bottom: 0; }
.sd-facts dt { display: flex; align-items: center; gap: 6px; color: #d9c7a2; }
.sd-facts dt .i { width: 13px; height: 13px; color: #b39d74; }
.sd-facts dd { margin: 0; font-weight: 700; color: #fff; text-align: right; display: flex; align-items: center; gap: 5px; }

.sd-langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.sd-langs li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #f5e8cc; min-width: 0; }
.sd-langs .fi { width: 18px; height: 13px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }

.sd-steps { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 9px; }
.sd-steps li { counter-increment: step; position: relative; padding-left: 30px; font-size: 12px; line-height: 1.5; color: #f5e8cc; }
.sd-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--vote); color: #fff; font-size: 11px; font-weight: 800; }
.sd-note { margin: 0; font-size: 11px; color: #d9c7a2; }
.sd-howto { border-color: rgba(78, 169, 53, .45); }

.sd-opening { text-align: center; border-color: rgba(255, 194, 28, .45); background: linear-gradient(180deg, rgba(255, 194, 28, .12), rgba(0, 0, 0, .22)); }
.sd-opening .sd-card-title { justify-content: center; }
.sd-countdown { display: block; font-size: 26px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.sd-opening small { font-size: 12px; color: #d9c7a2; }

.sdetail .review-list li { display: flex; gap: 10px; align-items: flex-start; }
.review-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #ffd65a, #c99212); color: #2a1b00; font-weight: 800; font-size: 13px; }
.review-body { flex: 1; min-width: 0; }
.sd-report { padding: 0 2px; }
.sd-report summary { display: inline-flex; align-items: center; gap: 6px; }
.sd-report summary .i { width: 13px; height: 13px; }

@media (max-width: 900px) {
    .sd-grid { grid-template-columns: 1fr; }
    .sd-aside { order: -1; }
}
@media (max-width: 640px) {
    .sd-hero { margin: 10px 10px 0; }
    .sd-titlebar { flex-wrap: wrap; padding: 12px; }
    .sd-score { flex-direction: row; gap: 8px; width: 100%; justify-content: center; }
    .sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; }
    .sd-stat.is-vote { grid-column: 1 / -1; }
    .sd-actions { padding: 2px 10px 10px; }
    .sd-btn-ghost { margin-left: 0; }
    .sd-grid { padding: 0 10px 12px; }
    .sd-rank { width: 44px; height: 44px; font-size: 16px; }
}
.sd-btn-icon { padding: 0 11px; }
.sd-copy-label:empty { display: none; }

/* ==========================================================================
   Vote page (redesign, 2026-09-28)
   ========================================================================== */
.vp-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 4px; }
.vp-head-text { flex: 1; min-width: 0; }
.vp-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fe38a; }
.vp-head h1 { margin: 2px 0 0; font-size: 21px; line-height: 1.2; color: #fff; word-wrap: break-word; }
.vp-head .sd-logo { width: 48px; height: 48px; }
.vp-head-stats { display: flex; gap: 8px; flex: none; }
.vp-head-stats div { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 7px 10px; border-radius: 4px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .07); }
.vp-head-stats b { font-size: 18px; color: #fff; line-height: 1.1; }
.vp-head-stats small { font-size: 10px; text-transform: uppercase; letter-spacing: .03em; color: #d9c7a2; white-space: nowrap; }

/* Step indicator */
.vp-steps { list-style: none; display: flex; justify-content: center; gap: 0; margin: 14px 16px 0; padding: 0; counter-reset: none; }
.vp-steps li { position: relative; flex: 1; max-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #bca982; text-transform: uppercase; letter-spacing: .04em; }
.vp-steps li:not(:first-child)::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: rgba(0, 0, 0, .35); z-index: 0; }
.vp-step-dot { position: relative; z-index: 1; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #2a2016; border: 2px solid #4b3b27; color: #bca982; font-size: 13px; font-weight: 800; }
.vp-steps li.is-done { color: #b7ef9f; }
.vp-steps li.is-done .vp-step-dot { background: var(--vote); border-color: #7fd35f; color: #fff; }
.vp-steps li.is-done .vp-step-dot { font-size: 0; }
.vp-steps li.is-done .vp-step-dot::after { content: "\2713"; font-size: 15px; }
.vp-steps li.is-done + li::before, .vp-steps li.is-current:not(:first-child)::before { background: var(--vote); }
.vp-steps li.is-current { color: #fff; }
.vp-steps li.is-current .vp-step-dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 194, 28, .15); }
.vp-steps li.is-failed { color: #ff9c86; }
.vp-steps li.is-failed .vp-step-dot { border-color: #e0503a; color: #ff9c86; box-shadow: 0 0 0 4px rgba(224, 80, 58, .15); }

/* Main card */
.vp-card { max-width: 520px; margin: 16px auto 0; padding: 22px 22px 20px; border-radius: 6px; background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .22)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 8px 26px rgba(0, 0, 0, .25); text-align: center; }
.vp-card .alert { text-align: left; margin-bottom: 14px; }
.vp-ready { border-color: rgba(78, 169, 53, .45); }
.vp-success { border-color: rgba(78, 169, 53, .6); background: linear-gradient(180deg, rgba(63, 140, 43, .22), rgba(0, 0, 0, .22)); }
.vp-blocked { border-color: rgba(224, 80, 58, .6); background: linear-gradient(180deg, rgba(110, 20, 8, .35), rgba(0, 0, 0, .22)); }

.vp-player { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 194, 28, .35); font-size: 13px; color: #f0e2c2; }
.vp-player .i { width: 18px; height: 18px; color: var(--gold); }
.vp-player b { font-size: 20px; letter-spacing: .03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.vp-player-sm { padding: 6px 14px; margin-top: 4px; }
.vp-player-sm b { font-size: 15px; }

.vp-form { margin: 16px 0 0; max-width: none; }
.vp-button { width: 100%; min-height: 56px; border: 1px solid var(--vote-edge); border-radius: 5px; background: linear-gradient(180deg, #5cc03f, var(--vote)); color: #fff; font: inherit; font-size: 18px; font-weight: 800; letter-spacing: .03em; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px rgba(63, 140, 43, .35); transition: filter .15s, transform .1s, box-shadow .15s; }
.vp-button:hover:not(:disabled) { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 22px rgba(63, 140, 43, .5); }
.vp-button:active:not(:disabled) { transform: translateY(1px); }
.vp-button:disabled { filter: grayscale(.45) brightness(.85); cursor: wait; box-shadow: none; }
.vp-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vp-small { margin: 12px 0 0; font-size: 12px; color: #d9c7a2; }

.vp-icon { width: 72px; height: 72px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.vp-icon .i { width: 34px; height: 34px; }
.vp-icon-wait { background: rgba(255, 194, 28, .12); border: 2px solid rgba(255, 194, 28, .5); color: var(--gold); }
.vp-icon-blocked { background: rgba(224, 80, 58, .15); border: 2px solid rgba(224, 80, 58, .6); color: #ff8a73; }
.vp-icon-info { background: rgba(255, 255, 255, .06); border: 2px solid rgba(255, 255, 255, .2); color: #f0e2c2; }
.vp-icon-success svg { width: 72px; height: 72px; fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.vp-icon-success circle { stroke: #5cc03f; fill: rgba(92, 192, 63, .15); stroke-dasharray: 151; stroke-dashoffset: 151; animation: vp-draw .6s ease forwards; }
.vp-icon-success path { stroke: #fff; stroke-dasharray: 36; stroke-dashoffset: 36; animation: vp-draw .35s .5s ease forwards; }
@keyframes vp-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .vp-icon-success circle, .vp-icon-success path { animation: none; stroke-dashoffset: 0; } }

.vp-title { margin: 0 0 6px; font-size: 20px; color: #fff; }
.vp-text { margin: 0 auto 12px; max-width: 420px; font-size: 13px; line-height: 1.6; color: #f0e2c2; }
.vp-next { margin: 12px 0 0; font-size: 12px; color: #d9c7a2; }
.vp-next b { color: var(--gold); font-variant-numeric: tabular-nums; }

.vp-timer { max-width: 320px; margin: 4px auto 0; }
.vp-timer > b { display: block; font-size: 34px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.vp-timer small { display: block; margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #d9c7a2; }
.vp-progress { height: 8px; margin-top: 8px; border-radius: 999px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.vp-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c99212, var(--gold)); transition: width 1s linear; }

.vp-howto { text-align: left; max-width: 380px; margin: 4px auto 0; }
.vp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

/* Trust strip */
.vp-trust { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 680px; margin: 18px auto 20px; padding: 0 14px; }
.vp-trust li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .06); }
.vp-trust .i { width: 22px; height: 22px; color: var(--gold); }
.vp-trust span { display: flex; flex-direction: column; min-width: 0; }
.vp-trust b { font-size: 12px; color: #fff; }
.vp-trust small { font-size: 11px; color: #d9c7a2; }

@media (max-width: 640px) {
    .vp-head { flex-wrap: wrap; padding: 12px; }
    .vp-head-stats { width: 100%; }
    .vp-head-stats div { flex: 1; }
    .vp-card { margin: 14px 10px 0; padding: 18px 14px; }
    .vp-trust { grid-template-columns: 1fr; padding: 0 10px; }
    .vp-steps { margin: 12px 8px 0; }
    .vp-steps li { font-size: 10px; }
}

/* rank badge on banners: medal colours must win over the dark .sd-rank background */
.sd-rank.medal-1 { background: radial-gradient(circle at 35% 30%, #fff1a8, #f2bb22 45%, #a8740a); border-color: #7a5406; color: #3a2400; box-shadow: 0 0 14px rgba(255, 194, 28, .55); }
.sd-rank.medal-2 { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd3d8 45%, #858b93); border-color: #5d6269; color: #22262b; }
.sd-rank.medal-3 { background: radial-gradient(circle at 35% 30%, #ffd2a6, #d0843f 45%, #82461a); border-color: #5b2f10; color: #2b1400; }

/* vote page: same player ID already voted from another IP */
.vp-warning { display: flex; align-items: flex-start; gap: 8px; max-width: 420px; margin: 0 auto 14px; padding: 10px 12px; border-radius: 4px; background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .5); color: #ffd98a; font-size: 12px; line-height: 1.5; text-align: left; }
.vp-warning .i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #ffb020; }

/* Detail + vote page banner: shown at its real size (468x180) so it stays sharp and is not oversized;
   the space around it is filled with a blurred copy of the same banner. */
.sd-hero { display: flex; align-items: center; justify-content: center; min-height: 212px; padding: 16px 70px; }
.sd-hero-bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(18px) brightness(.42) saturate(1.15); transform: scale(1.08); }
.sd-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .45)); pointer-events: none; }
.sd-hero > img { position: relative; z-index: 1; width: 468px; max-width: 100%; height: auto; aspect-ratio: 468 / 190; object-fit: cover; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
.sd-hero > .banner-placeholder { position: relative; inset: auto; z-index: 1; width: 468px; max-width: 100%; min-height: 0; aspect-ratio: 468 / 190; border-radius: 3px; }
.sd-hero .scard-status, .sd-hero .sd-rank, .sd-hero .sd-manage { z-index: 2; }
@media (max-width: 640px) {
    .sd-hero { min-height: 0; padding: 44px 10px 12px; }
}

/* Video banners (MP4/WEBM) look exactly like image banners */
.scard-banner > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-hero > video { position: relative; z-index: 1; display: block; width: 468px; max-width: 100%; height: auto; aspect-ratio: 468 / 190; object-fit: cover; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 8px 24px rgba(0, 0, 0, .6); }
.spot-frame video, .side-ad video, .top-ad video { display: block; width: 100%; height: auto; }
.spot-frame video { display: block; width: 100%; object-fit: cover; }
.spot-top video { height: 130px; }
.spot-side video { height: 180px; }

/* ==========================================================================
   SweetAlert2 theme (confirm dialogs + success toasts) and stronger error boxes
   ========================================================================== */
.swal2-container.swal2-backdrop-show { background: rgba(10, 7, 4, .72) !important; }
.m2v-swal.swal2-popup { width: 26em; max-width: calc(100vw - 32px); padding: 1.6em 1.4em 1.4em; border-radius: 6px; background: linear-gradient(180deg, #3a2c1d, #2a1f14); border: 1px solid #6b573a; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); color: var(--cream, #f5e8cc); font-family: var(--font, 'Poppins', sans-serif); }
.m2v-swal .swal2-title { color: #fff; font-size: 1.25em; font-weight: 700; padding-top: .4em; }
.m2v-swal .swal2-html-container { color: #f0e2c2; font-size: .92em; line-height: 1.6; margin-top: .6em; }
.m2v-swal .swal2-icon.swal2-warning { border-color: var(--gold, #ffc21c); color: var(--gold, #ffc21c); }
.m2v-swal .swal2-actions { gap: 10px; margin-top: 1.4em; }
.m2v-swal .swal2-actions .btn { min-width: 120px; min-height: 40px; padding: 0 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.m2v-swal .swal2-actions .btn-danger { background: linear-gradient(180deg, #d8533b, #a8321f); border-color: #7a2111; color: #fff; }
.m2v-swal .swal2-actions .btn-danger:hover { filter: brightness(1.1); }
.m2v-swal .swal2-actions .btn-ghost { background: #2b2016; border-color: #6b573a; color: var(--cream, #f5e8cc); }
.m2v-swal .swal2-actions .btn:focus-visible { outline: 2px solid var(--gold, #ffc21c); outline-offset: 2px; }

.m2v-toast.swal2-popup.swal2-toast { padding: .8em 1em; border-radius: 5px; background: #1f2e14; border: 1px solid #4c9a36; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); color: #e2f9d6; font-family: var(--font, 'Poppins', sans-serif); }
.m2v-toast .swal2-title { color: #e2f9d6; font-size: 13px; font-weight: 600; margin: 0 .6em; }
.m2v-toast .swal2-icon.swal2-success { border-color: #6fce50; color: #6fce50; }
.m2v-toast .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #6fce50; }
.m2v-toast .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(111, 206, 80, .35); }
.m2v-toast .swal2-icon.swal2-success [class^=swal2-success-circular-line], .m2v-toast .swal2-icon.swal2-success .swal2-success-fix { background: #1f2e14 !important; }
.m2v-toast .swal2-close { color: #b8e6a8; }
.m2v-toast .swal2-timer-progress-bar { background: rgba(111, 206, 80, .6); }
.swal2-container.swal2-top-end { top: 12px !important; right: 12px !important; }

/* Errors stay next to the form, but are hard to miss */
.alert-error { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 12px 42px; border-left-width: 4px; font-size: 13px; font-weight: 500; line-height: 1.5; box-shadow: 0 4px 14px rgba(110, 20, 8, .25); animation: alert-in .35s ease; }
.alert-error::before { content: "!"; position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e0503a; color: #fff; font-size: 13px; font-weight: 800; }
@keyframes alert-in { 0% { transform: translateX(0); } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .alert-error { animation: none; } }
.swal2-container.swal2-backdrop-show:has(.swal2-toast), .swal2-toast-shown .swal2-container { background: transparent !important; }

/* Vertical 230x950 ads on both sides of the page. They sit in the empty space beside the 1140px
   content, so they only appear when that space exists (1140 + 2 x (230 + 16) + margin = ~1650px).
   950px is taller than most browser windows: the ad is then scaled down (same proportions) so it
   is always fully visible. Each rail is anchored to the content edge, so a smaller one stays close. */
.spot-rail { display: none; }
@media (min-width: 1650px) {
    .spot-rail { display: block; position: fixed; top: 80px; z-index: 20; height: min(950px, calc(100vh - 96px)); aspect-ratio: 230 / 950; overflow: hidden; border-radius: 3px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
    .spot-rail-left { right: calc(50% + 570px + 16px); }
    .spot-rail-right { left: calc(50% + 570px + 16px); }
    .spot-rail a { display: block; width: 100%; height: 100%; }
    .spot-rail img, .spot-rail video { display: block; width: 100%; height: 100%; object-fit: cover; }
    .spot-rail-empty { width: 100%; height: 100%; background-color: rgba(0, 0, 0, .35); }
}
