:root {
    color-scheme: dark;
    --bg-main: #0c0c0c;
    --bg-header: #121212;
    --bg-menu: #161616;
    --bg-card: #121212;
    --bg-card-soft: #161616;
    --color-primary: #1e018f;
    --text-main: #cdcdcd;
    --text-muted: #8f8f8f;
    --border-color: rgba(255,255,255,0.08);
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --danger: #fb7185;
    --warning: #f5b84b;
    --success: #47d17c;
    --bg: var(--bg-main);
    --panel: var(--bg-card);
    --panel-soft: var(--bg-card-soft);
    --line: var(--border-color);
    --text: var(--text-main);
    --muted: var(--text-muted);
    --brand: var(--color-primary);
    --brand-strong: #3214bb;
    --radius: var(--radius-md);
    --shadow: 0 24px 70px rgba(0, 0, 0, .48);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, .34);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg-main: #0c0c0c;
    --bg-header: #121212;
    --bg-menu: #161616;
    --bg-card: #121212;
    --bg-card-soft: #161616;
    --color-primary: #1e018f;
    --text-main: #cdcdcd;
    --text-muted: #8f8f8f;
    --border-color: rgba(255,255,255,0.08);
    --bg: var(--bg-main);
    --panel: var(--bg-card);
    --panel-soft: var(--bg-card-soft);
    --line: var(--border-color);
    --text: var(--text-main);
    --muted: var(--text-muted);
    --brand: var(--color-primary);
    --shadow: 0 24px 70px rgba(0, 0, 0, .48);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, .34);
}

[data-theme="light"] {
    color-scheme: light;
    --bg-main: #f4f5f8;
    --bg-header: #ffffff;
    --bg-menu: #f1f2f5;
    --bg-card: #ffffff;
    --bg-card-soft: #f6f7fb;
    --color-primary: #1e018f;
    --text-main: #18181b;
    --text-muted: #666b76;
    --border-color: rgba(0,0,0,0.10);
    --bg: var(--bg-main);
    --panel: var(--bg-card);
    --panel-soft: var(--bg-card-soft);
    --line: var(--border-color);
    --text: var(--text-main);
    --muted: var(--text-muted);
    --brand: var(--color-primary);
    --shadow: 0 24px 70px rgba(17, 24, 39, .14);
    --shadow-soft: 0 12px 34px rgba(17, 24, 39, .10);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
body[data-area="studio"],
body[data-area="zpanel"] { overflow-x: hidden; background: var(--bg-main); color: var(--text-main); }
body[data-area="studio"] main,
body[data-area="zpanel"] main { min-width: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg-header) 94%, transparent); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 34px); }
.brand { min-height: 42px; display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: max-content; font-weight: 800; letter-spacing: 0; }
.brand.has-logo { gap: 0; }
.brand-text { line-height: 1; font-size: 15px; font-weight: 800; }
.brand img, .footer-logo { width: auto; height: 46px; max-height: 54px; max-width: 180px; object-fit: contain; }
.search { flex: 1 1 620px; display: flex; align-items: center; gap: 8px; width: min(620px, 100%); max-width: 620px; min-height: 46px; margin-inline: auto; padding: 6px 6px 6px 14px; background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 0 1px rgba(30,1,143,.08); }
.search-leading { color: var(--muted); font-weight: 800; }
.search input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; outline: 0; }
.search-submit { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 50%; cursor: pointer; }
.search-submit:hover { box-shadow: 0 0 18px rgba(30,1,143,.28); }
.account { min-width: 0; flex: 0 0 auto; margin-left: 0; display: flex; align-items: center; gap: 8px; }
.guest-actions { min-width: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px; background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: 999px; }
.account-icon { position: relative; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-card); }
.account-icon::before { content: ""; position: absolute; top: 8px; left: 11px; width: 10px; height: 10px; border: 2px solid var(--text); border-radius: 50%; }
.account-icon::after { content: ""; position: absolute; left: 8px; bottom: 7px; width: 16px; height: 9px; border: 2px solid var(--text); border-top-left-radius: 999px; border-top-right-radius: 999px; border-bottom: 0; }
.hamburger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--text); background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.hamburger span { display: block; width: 18px; height: 2px; border-radius: 999px; background: currentColor; }
.menubar { background: var(--bg-menu); border-top: 1px solid var(--line); }
.menu { position: relative; display: flex; flex-wrap: wrap; gap: 10px; overflow: visible; padding: 12px 0; }
.menu-item { position: relative; }
.menu > a, .menu-item > .menu-link, .pill, .icon-btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--bg-card); cursor: pointer; white-space: nowrap; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.menu > a:hover, .menu-item > .menu-link:hover, .pill:hover, .icon-btn:hover { border-color: color-mix(in srgb, var(--text) 18%, transparent); background: var(--bg-card-soft); box-shadow: 0 0 22px rgba(30,1,143,.16); }
.pill.primary, .menu > a.is-active, .menu-item > .menu-link.is-active { border-color: #1e018f; background: #1e018f; color: #ffffff; font-weight: 800; box-shadow: 0 0 24px rgba(30,1,143,.42); }
.pill.primary:hover, .menu > a.is-active:hover, .menu-item > .menu-link.is-active:hover { transform: translateY(-1px); }
.icon-btn { width: 40px; padding: 0; }
.menu-caret { color: var(--muted); font-size: 11px; }
.menu-dropdown { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; display: none; min-width: 210px; padding: 8px; background: #121212; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; box-shadow: 0 20px 52px rgba(0,0,0,.46), 0 0 30px rgba(30,1,143,.18); }
.menu-dropdown a { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 4px; padding: 0 10px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 10px; }
.menu-dropdown a:hover { color: var(--text); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.menu-item:hover > .menu-dropdown, .menu-item:focus-within > .menu-dropdown, .menu-item.is-open > .menu-dropdown { display: grid; }
.menu-item.has-mega { position: static; }
.mega-menu { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; display: none; width: min(960px, 100%); max-height: min(72vh, 560px); margin: 0 auto; overflow: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 16px; background: linear-gradient(180deg, #161616, #111); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.58), 0 0 36px rgba(30,1,143,.22); }
.menu-item:hover > .mega-menu, .menu-item:focus-within > .mega-menu, .menu-item.is-open > .mega-menu { display: grid; }
.mega-column { min-width: 0; padding: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; }
.mega-column h3 { margin: 0 0 10px; color: #fff; font-size: 13px; line-height: 1.2; letter-spacing: 0; }
.mega-links { display: grid; gap: 7px; }
.mega-link { min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px; color: var(--muted); border: 1px solid transparent; border-radius: 12px; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.mega-link:hover { color: #fff; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); box-shadow: 0 0 18px rgba(30,1,143,.2); transform: translateY(-1px); }
.mega-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(135deg, #1e018f, #3214bb); border-radius: 10px; font-size: 11px; font-weight: 900; }
.lang select { min-height: 38px; color: var(--text); background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 10px; }

.hero { min-height: 340px; display: grid; align-items: center; padding: 56px 0 32px; }
.hero h1 { max-width: 760px; margin: 0 0 16px; font-size: clamp(34px, 6vw, 72px); line-height: .98; letter-spacing: 0; }
.hero p { max-width: 640px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-weight: 800; text-transform: uppercase; font-size: 12px; }
.section { padding: 26px 0; }
.section h1, .section h2, .page h1 { margin: 0 0 18px; }
.grid { display: grid; gap: 16px; }
.mods { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.music-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mod-card, .music-card, .category-card, .payment-card, .comment, .related-item { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.mod-card a, .music-card a { display: block; height: 100%; position: relative; }
.mod-card img, .music-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel-soft); }
.card-body, .music-card h3, .music-card p { padding: 0 14px; }
.card-body { padding: 14px; }
.card-body h3, .music-card h3 { margin: 0 0 6px; font-size: 16px; }
.card-body p, .music-card p, .muted { color: var(--muted); }
.meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.badge { position: absolute; margin: 10px; padding: 5px 9px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }
.badge.premium { color: #061316; background: var(--warning); border-color: transparent; }
.game-slider { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; }
.game-slider button { min-width: 92px; height: 42px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); }
.site-footer { margin-top: 50px; padding: 36px 0; border-top: 1px solid var(--line); background: var(--bg-header); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand p { max-width: 420px; margin: 14px 0 10px; }
.footer-brand small { color: var(--text-muted); }
.footer-links { display: grid; gap: 8px; }
.footer-links h4 { margin: 0 0 4px; }
.site-footer p, .site-footer a { display: block; color: var(--muted); line-height: 1.7; }
.site-footer a:hover { color: var(--text); }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.social-links a { width: 38px; height: 38px; display: inline-grid; place-items: center; color: var(--text); background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1; }
.page { padding: 48px 0; }
.auth-card { width: min(420px, calc(100% - 32px)); margin: 52px auto; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.auth-card-wide { width: min(620px, calc(100% - 32px)); }
.auth-card h1 { margin: 0 0 8px; }
.auth-copy { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.auth-card label { display: grid; gap: 7px; margin-bottom: 14px; color: var(--muted); }
.auth-card input, .auth-card select { width: 100%; color: var(--text); background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-row { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px !important; color: var(--text) !important; line-height: 1.45; }
.check-row input { width: 18px; min-width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); }
.check-row a, .auth-links a, .auth-note a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); }
.auth-errors, .auth-note { margin: 0 0 16px; padding: 12px; background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.auth-errors { border-left: 4px solid var(--danger); }
.auth-errors p { margin: 0; color: var(--text); }
.auth-errors p + p { margin-top: 6px; }
.auth-note { display: grid; gap: 8px; border-left: 4px solid var(--success); color: var(--muted); overflow-wrap: anywhere; }
.auth-note small { color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.user-menu { position: relative; }
.user-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 6px; color: var(--text); background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.avatar { width: 30px; height: 30px; display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%; color: #ffffff; background: var(--color-primary); font-size: 12px; font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { color: var(--muted); font-size: 12px; }
.dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 40; display: none; width: min(360px, calc(100vw - 24px)); min-width: 280px; padding: 10px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 0 30px rgba(30,1,143,.12); }
.user-menu.is-open .dropdown { display: block; }
.dropdown-head { display: grid; gap: 3px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.dropdown-head strong { color: var(--text); line-height: 1.2; }
.dropdown-head span, .dropdown-head small { color: var(--muted); font-size: 13px; }
.user-dropdown-head { grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.user-dropdown-head .avatar { width: 36px; height: 36px; }
.dropdown-section { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dropdown-section:last-child { border-bottom: 0; padding-bottom: 0; }
.dropdown-label { padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.language-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.language-chip { min-width: 0; min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 7px 8px; color: var(--muted); background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.language-chip strong { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, rgba(30,1,143,.8), rgba(50,20,187,.86)); border-radius: 9px; font-size: 11px; }
.language-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 16%, transparent); background: var(--bg-card); }
.language-chip.is-active { color: var(--text); border-color: rgba(71,209,124,.42); background: rgba(71,209,124,.12); box-shadow: 0 0 18px rgba(30,1,143,.16); }
.theme-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.theme-choice { min-width: 0; min-height: 58px; display: grid; align-content: center; gap: 2px; padding: 8px; color: var(--muted); background: var(--bg-card-soft); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; }
.theme-choice strong { color: var(--text); font-size: 13px; }
.theme-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.theme-choice:hover { color: var(--text); background: var(--bg-card); }
.theme-choice.is-active { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 0 18px rgba(30,1,143,.22); }
.theme-choice.is-active strong { color: #fff; }
.theme-choice-note { color: var(--muted); line-height: 1.35; padding: 0 4px; }
.theme-toggle-row { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 4px 0; }
.theme-toggle-row span { min-width: 0; display: grid; gap: 2px; }
.theme-toggle-row strong { color: #fff; font-size: 14px; }
.theme-toggle-row small { color: var(--muted); font-size: 12px; }
.theme-switch { width: 48px; height: 28px; position: relative; flex: 0 0 auto; padding: 0; background: #262626; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.theme-switch span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .18s ease; }
.theme-switch.is-active { background: #1e018f; border-color: #1e018f; }
.theme-switch.is-active span { transform: translateX(20px); }
.account-links { gap: 4px; }
.dropdown-link { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; color: var(--muted); border-radius: 10px; }
.dropdown-link:hover { color: var(--text); background: var(--bg-card-soft); }
.dropdown-link.is-primary { color: #fff; background: #1e018f; }
.dropdown-link.is-danger:hover { color: #fff; background: rgba(251,113,133,.14); }
.more-btn { border-radius: 50%; }
.more-dots { display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.more-dots span { width: 4px; height: 4px; display: block; background: currentColor; border-radius: 50%; }
.toast-stack { position: fixed; top: 88px; right: 18px; z-index: 80; display: grid; gap: 10px; width: min(360px, calc(100% - 36px)); }
.toast-message { padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--line); border-left: 4px solid var(--color-primary); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); color: var(--text); }
.toast-message[data-type="error"], .toast-message[data-type="danger"] { border-left-color: var(--danger); }
.toast-message[data-type="warning"] { border-left-color: var(--warning); }
.toast-message[data-type="success"] { border-left-color: var(--success); }

[data-theme="light"] .menu-dropdown,
[data-theme="light"] .mega-menu {
    background: var(--bg-card);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

[data-theme="light"] .mega-column,
[data-theme="light"] .mega-link:hover,
[data-theme="light"] .menu-dropdown a:hover {
    background: var(--bg-card-soft);
    border-color: var(--line);
    color: var(--text);
}

[data-theme="light"] .mega-column h3,
[data-theme="light"] .check-row a,
[data-theme="light"] .auth-links a,
[data-theme="light"] .auth-note a {
    color: var(--text);
}

[data-theme="light"] .home-hero {
    background:
        linear-gradient(90deg, rgba(244,245,248,.98), rgba(244,245,248,.76)),
        linear-gradient(135deg, #ffffff, #eef0f6 60%);
}

.music-mini-player,
.music-queue-panel {
    --music-card: var(--bg-card);
    --music-card-soft: var(--bg-card-soft);
    --music-text: var(--text-main);
    --music-muted: var(--text-muted);
    --music-line: var(--border-color);
    --music-brand: var(--color-primary);
}

.music-mini-player {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 80;
    width: min(1040px, calc(100% - 28px));
    min-height: 78px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(180px, .9fr) auto minmax(220px, 1.2fr) minmax(230px, .9fr);
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--music-card) 94%, transparent);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0,0,0,.28);
    backdrop-filter: blur(18px);
}
.music-mini-player[hidden] { display: none; }
.music-mini-track { min-width: 0; display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 10px; }
.music-mini-player img { width: 54px; height: 54px; object-fit: cover; border-radius: 7px; }
.music-mini-meta { min-width: 0; display: grid; gap: 2px; }
.music-mini-meta strong, .music-mini-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-mini-meta span { color: var(--music-muted); }
.music-mini-controls { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.music-mini-toggle {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--music-brand);
    border: 1px solid var(--music-brand);
    border-radius: 50%;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(30,1,143,.32);
}
.music-mini-icon,
.music-mini-queue-button {
    min-width: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    color: var(--music-text);
    background: var(--music-card-soft);
    border: 1px solid var(--music-line);
    border-radius: 999px;
    cursor: pointer;
}
.music-mini-icon.is-muted { color: #fff; background: rgba(251,113,133,.86); border-color: transparent; }
.music-mini-time { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 48px; align-items: center; gap: 9px; color: var(--music-muted); font-size: 12px; }
.music-mini-progress { height: 5px; overflow: hidden; background: var(--music-card-soft); border-radius: 999px; }
.music-mini-progress span { display: block; width: 0%; height: 100%; background: var(--music-brand); }
.music-mini-actions { min-width: 0; display: grid; grid-template-columns: auto auto auto minmax(74px, 120px) auto; align-items: center; justify-content: end; gap: 8px; }
.music-mini-actions input { width: 100%; accent-color: var(--music-brand); }
.music-mini-queue-button { padding: 0 12px; }

.music-queue-panel {
    position: fixed;
    right: 18px;
    bottom: 108px;
    z-index: 82;
    width: min(380px, calc(100% - 36px));
    max-height: min(560px, calc(100vh - 150px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background: var(--music-card);
    border: 1px solid var(--music-line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.music-queue-panel[hidden] { display: none; }
.music-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid var(--music-line); }
.music-queue-head div { display: grid; gap: 2px; }
.music-queue-head span { color: var(--music-muted); font-size: 12px; }
.music-queue-head button { width: 34px; height: 34px; color: var(--music-text); background: var(--music-card-soft); border: 1px solid var(--music-line); border-radius: 50%; cursor: pointer; }
.music-queue-list { display: grid; gap: 6px; padding: 10px; overflow: auto; }
.music-queue-empty { padding: 14px; color: var(--music-muted); text-align: center; }
.music-queue-item { min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 8px; color: var(--music-text); background: var(--music-card-soft); border: 1px solid var(--music-line); border-radius: 8px; cursor: pointer; text-align: left; }
.music-queue-item:hover { border-color: rgba(30,1,143,.42); }
.music-queue-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; }
.music-queue-item span { min-width: 0; display: grid; gap: 2px; }
.music-queue-item strong, .music-queue-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-queue-item small { color: var(--music-muted); }
.music-queue-item em { color: var(--music-muted); font-size: 12px; font-style: normal; }
.music-queue-item.is-locked { opacity: .62; }
.music-queue-item.is-locked em { color: var(--warning); }

@media (max-width: 980px) {
    .topbar { gap: 10px; }
    .brand-text { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .menu { padding-bottom: 12px; }
    .mega-menu { width: min(820px, 100%); }
    .music-mini-player { grid-template-columns: minmax(170px, 1fr) auto minmax(180px, 1fr); }
    .music-mini-actions { grid-column: 1 / -1; justify-content: stretch; grid-template-columns: auto auto auto minmax(90px, 1fr) auto; }
}

@media (max-width: 760px) {
    .topbar { flex-wrap: wrap; padding: 12px 0; }
    .hamburger { display: inline-flex; margin-left: auto; }
    .account { order: 2; margin-left: 0; }
    .search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
    .header-cta { order: 2; }
    .menubar { display: none; }
    body.menu-open .site-header .menubar { display: block; }
    .menu { display: grid; grid-template-columns: 1fr; overflow: visible; }
    .menu-item, .menu > a, .menu-item > .menu-link, .menu .lang, .menu select { width: 100%; }
    .menu > a, .menu-item > .menu-link { justify-content: space-between; border-radius: 14px; }
    .menu-dropdown { position: static; display: none; margin-top: 6px; box-shadow: none; }
    .mega-menu { position: static; display: none; width: 100%; max-height: none; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; padding: 12px; border-radius: 16px; box-shadow: none; }
    .menu-item:hover > .menu-dropdown, .menu-item:focus-within > .menu-dropdown, .menu-item.is-open > .menu-dropdown { display: grid; }
    .menu-item:hover > .mega-menu, .menu-item:focus-within > .mega-menu, .menu-item.is-open > .mega-menu { display: grid; }
    .pill { min-height: 40px; }
    .premium-lock-card { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .toast-stack { top: 14px; }
    .music-mini-player { left: 0; right: 0; bottom: 0; width: 100%; transform: none; grid-template-columns: minmax(0, 1fr) auto; border-radius: 8px 8px 0 0; }
    .music-mini-track { grid-template-columns: 46px minmax(0, 1fr); }
    .music-mini-player img { width: 46px; height: 46px; }
    .music-mini-time { grid-column: 1 / -1; grid-template-columns: 40px minmax(0, 1fr) 46px; }
    .music-mini-actions { grid-column: 1 / -1; grid-template-columns: repeat(4, auto) minmax(92px, 1fr); justify-content: stretch; }
    .music-queue-panel { right: 12px; bottom: 112px; width: min(380px, calc(100% - 24px)); }
}

@media (max-width: 460px) {
    .container { width: min(100% - 24px, 1180px); }
    .brand img, .footer-logo { width: auto; height: 38px; max-height: 42px; max-width: 142px; }
    .account { width: 100%; }
    .guest-actions { width: auto; flex: 1 1 auto; }
    .account .pill, .user-chip { width: 100%; }
    .guest-menu { flex: 0 0 auto; }
    .account-user-menu { width: 100%; }
    .account .pill { flex: 1; }
    .dropdown { right: 0; width: min(100vw - 24px, 340px); }
    .language-chips { grid-template-columns: 1fr; }
    .hero { padding-top: 38px; }
    .hero p { font-size: 16px; }
    .music-mini-player { gap: 8px; padding: 8px; }
    .music-mini-controls { gap: 5px; }
    .music-mini-icon { min-width: 34px; min-height: 34px; }
    .music-mini-toggle { width: 44px; height: 44px; }
    .music-mini-actions { grid-template-columns: repeat(3, auto) minmax(70px, 1fr); }
    .music-mini-actions [data-mini-share] { display: none; }
    .music-mini-queue-button { padding: 0 9px; }
}

.home-hero {
    min-height: 390px;
    display: grid;
    align-items: end;
    padding: 58px 0 34px;
    background:
        linear-gradient(90deg, rgba(12, 12, 12, .98), rgba(12, 12, 12, .74)),
        linear-gradient(135deg, #151515, #0c0c0c 60%);
    border-bottom: 1px solid var(--line);
}

.home-hero-copy { max-width: 760px; min-width: 0; }
.home-hero h1, .category-hero h1, .list-header h1, .mod-title-row h1 {
    margin: 0;
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.home-hero h1 { max-width: 760px; font-size: clamp(34px, 5vw, 62px); }
.home-hero p { max-width: 640px; color: var(--muted); line-height: 1.6; }

.hero-search, .list-search {
    width: min(620px, 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero-search input, .list-search input {
    width: 100%;
    min-width: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    outline: 0;
    padding: 10px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.section-head h2, .section-head p { margin: 0; }
.section-link {
    color: var(--muted);
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}
.section-link:hover { color: var(--text); border-color: var(--color-primary); }

.slider-controls { display: inline-flex; gap: 8px; }
.game-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 260px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 0 12px;
    scrollbar-width: thin;
}

.game-slider .category-card { scroll-snap-align: start; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    position: relative;
    min-height: 154px;
    display: grid;
    align-content: end;
    gap: 8px;
    overflow: hidden;
    padding: 16px;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(30, 1, 143, .46), rgba(18, 18, 18, .94)),
        var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.category-card.has-banner {
    background-image:
        linear-gradient(180deg, rgba(12, 12, 12, .08), rgba(12, 12, 12, .88)),
        var(--category-banner);
    background-size: cover;
    background-position: center;
}

.category-card:hover, .mod-card:hover, .music-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .18);
}

.category-card-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 12, 12, .08), rgba(12, 12, 12, .9));
    pointer-events: none;
}

.category-card > *:not(.category-card-backdrop) { position: relative; z-index: 1; }
.category-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    font-weight: 800;
}

.category-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.category-card strong, .category-card small, .category-card em {
    min-width: 0;
    overflow-wrap: anywhere;
}
.category-card small { color: var(--muted); line-height: 1.45; }
.category-card em { color: var(--text); font-size: 12px; font-style: normal; }

.mod-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, border-color .18s ease;
}

.mod-card-link { display: grid; height: 100%; color: inherit; }
.mod-card-media {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(30, 1, 143, .42), rgba(22, 22, 22, .92)),
        var(--panel-soft);
}

.mod-card-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .26s ease, opacity .18s ease;
}

.mod-card:hover .mod-card-media img { transform: scale(1.04); }
.mod-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 12, 12, .03), rgba(12, 12, 12, .74));
    pointer-events: none;
}

.mod-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    z-index: 2;
}

.mod-card-badges .badge, .mod-gallery-overlay .badge {
    position: static;
    margin: 0;
}

.badge.free { color: #eafff3; background: rgba(71, 209, 124, .2); border-color: rgba(71, 209, 124, .34); }
.badge.featured { color: #ffffff; background: var(--color-primary); border-color: transparent; }
.rating-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(12, 12, 12, .78);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 { overflow-wrap: anywhere; line-height: 1.25; }
.card-body p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    line-height: 1.45;
}
.card-body p span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta { justify-content: space-between; }

.music-card {
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .18s ease, border-color .18s ease;
}
.music-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel-soft); }
img.is-missing { opacity: 0; }
.music-card h3 { margin: 14px 14px 4px; overflow-wrap: anywhere; }
.music-card p { margin: 0 14px 16px; color: var(--muted); line-height: 1.45; }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.chips a, .chips button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    color: var(--muted);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.chips a.is-active, .chips button.is-active {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.category-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    overflow: hidden;
    margin-top: 28px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(30, 1, 143, .36), rgba(18, 18, 18, .95)),
        var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.category-hero.has-banner {
    background-image:
        linear-gradient(180deg, rgba(12, 12, 12, .18), rgba(12, 12, 12, .94)),
        var(--category-banner);
    background-size: cover;
    background-position: center;
}

.category-hero > *:not(.category-card-backdrop) { position: relative; z-index: 1; }
.category-hero p { max-width: 650px; color: var(--muted); line-height: 1.55; }
.category-hero strong {
    padding: 9px 12px;
    background: rgba(12, 12, 12, .68);
    border: 1px solid var(--line);
    border-radius: 8px;
    white-space: nowrap;
}

.list-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 20px;
    align-items: end;
    padding-top: 42px;
}

.list-header h1 { font-size: clamp(30px, 4vw, 48px); }

.empty-state {
    padding: 22px;
    color: var(--muted);
    background: var(--bg-card);
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 8px;
}
.empty-state strong { display: block; color: var(--text); margin-bottom: 6px; }
.empty-state p { margin: 0; line-height: 1.55; }

.mod-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    padding-top: 34px;
}

.mod-main { min-width: 0; display: grid; gap: 18px; }
.mod-gallery {
    position: relative;
    overflow: hidden;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.mod-gallery img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.mod-gallery-overlay {
    position: absolute;
    inset: 14px;
    display: flex;
    align-items: start;
    gap: 8px;
    pointer-events: none;
}

.mod-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}
.mod-title-row h1 { font-size: clamp(30px, 4vw, 54px); margin-top: 6px; }

.mod-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.mod-stat-grid div {
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.mod-stat-grid span { display: block; color: var(--muted); font-size: 13px; }
.mod-stat-grid strong { display: block; margin-top: 4px; font-size: 20px; }

.creator-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.creator-bar > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.creator-bar span span, .creator-bar strong, .creator-bar a { display: block; }
.creator-bar a { color: var(--muted); font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }

.description, .comments {
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.description h2, .comments h2 { margin: 0 0 12px; }
.description p { color: var(--muted); line-height: 1.7; }
.mod-meta-list { display: grid; gap: 8px; margin: 16px 0 0; }
.mod-meta-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}
.mod-meta-list dt { color: var(--muted); }
.mod-meta-list dd { margin: 0; }

.comments textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    color: var(--text);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}
.login-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.login-note p { margin-right: auto; color: var(--muted); }

.related {
    position: sticky;
    top: 112px;
    align-self: start;
    display: grid;
    gap: 10px;
}
.related h2 { margin: 0 0 4px; }
.related-item {
    display: grid;
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.related-item img { width: 98px; height: 66px; object-fit: cover; border-radius: 8px; }
.related-item span { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.related-item small { display: block; margin-top: 4px; color: var(--muted); font-weight: 400; }

@media (max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mod-detail { grid-template-columns: 1fr; }
    .related { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .related h2 { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .list-header { grid-template-columns: 1fr; }
    .mod-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .home-hero { min-height: 330px; padding-top: 38px; }
    .section-head, .category-hero, .mod-title-row, .creator-bar {
        align-items: stretch;
        flex-direction: column;
    }
    .hero-search, .list-search { display: grid; }
    .hero-search .pill, .list-search .pill { width: 100%; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-card { min-height: 138px; padding: 14px; }
    .related { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .category-grid { grid-template-columns: 1fr; }
    .mod-stat-grid { grid-template-columns: 1fr; }
    .card-body p, .meta { display: grid; justify-content: start; }
}

.mod-watch {
    grid-template-columns: minmax(0, 1fr) 352px;
    align-items: start;
}

.mod-title-block {
    display: grid;
    gap: 10px;
}

.mod-title-block h1 {
    margin: 0;
    color: #cdcdcd;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.mod-kicker, .mod-meta-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.mod-kicker a, .mod-kicker span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.mod-meta-inline span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    background: var(--muted);
    border-radius: 50%;
}

.mod-gallery {
    display: grid;
    gap: 10px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.mod-gallery-stage {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(30, 1, 143, .34), rgba(22, 22, 22, .96)),
        var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.mod-gallery-item {
    display: none;
    margin: 0;
}

.mod-gallery-item.is-active {
    display: block;
}

.gallery-image-button {
    width: 100%;
    display: block;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.gallery-image-button img, .gallery-video-frame, .gallery-model-frame {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    min-height: 360px;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(30, 1, 143, .38), rgba(18, 18, 18, .96)),
        var(--bg-card-soft);
}

.gallery-model-frame {
    position: relative;
    display: grid;
    place-items: stretch;
}

.gallery-model-frame model-viewer {
    width: 100%;
    min-height: 360px;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(30, 1, 143, .2), rgba(18, 18, 18, .96)),
        #111;
}

.gallery-model-fallback {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: var(--text);
}

.gallery-model-fallback p {
    margin: 0;
    color: var(--muted);
}

.gallery-model-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
}

.gallery-video-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    border: 0;
}

.gallery-fallback {
    min-height: 360px;
    display: grid;
    place-items: center;
    padding: 30px;
    background:
        linear-gradient(135deg, rgba(30, 1, 143, .5), rgba(18, 18, 18, .94)),
        var(--bg-card-soft);
}

.gallery-fallback span {
    max-width: 520px;
    text-align: center;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(12, 12, 12, .72);
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.mod-gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(86px, 112px);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.mod-gallery-thumbs button {
    height: 64px;
    overflow: hidden;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    opacity: .62;
}

.mod-gallery-thumbs button.is-active {
    opacity: 1;
    border-color: var(--color-primary);
}

.mod-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(30, 1, 143, .7), rgba(18, 18, 18, .92));
    font-size: 12px;
    font-weight: 800;
}

.mod-social-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
}

.mod-social-row .creator-bar, .mod-action-bar {
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.mod-social-row .creator-bar {
    padding: 12px;
}

.creator-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar.large {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 16px;
}

.creator-identity strong, .creator-identity small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creator-identity small { color: var(--muted); }
.creator-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.mod-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px;
}

.mod-action-bar .pill.is-active {
    color: #ffffff;
    background: var(--bg-card-soft);
    border-color: var(--color-primary);
}

.download-pill {
    min-width: 124px;
}

.premium-locked-pill {
    color: var(--warning);
    border-color: rgba(245, 184, 75, .35);
    background: rgba(245, 184, 75, .08);
}

.premium-lock-card,
.package-card {
    background: #121212;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.premium-lock-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
}

.premium-lock-card h2,
.premium-lock-card p {
    margin: 0;
}

.premium-lock-card p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
}

.package-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.package-card {
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(30, 1, 143, .18), rgba(18, 18, 18, .96)),
        #121212;
}

.package-card-top,
.package-subscribe-row,
.package-price-row,
.package-meta-row,
.package-actions,
.package-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.package-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.package-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.package-price-row span,
.package-meta-row span {
    min-width: 110px;
    flex: 1 1 110px;
    display: grid;
    gap: 3px;
    padding: 10px;
    color: var(--muted);
    background: #161616;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.package-price-row strong {
    color: #ffffff;
    font-size: 15px;
}

.package-access-note {
    padding-top: 2px;
}

.package-status {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    color: var(--muted);
    background: #161616;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.package-status.is-active {
    color: #dfffea;
    border-color: rgba(71, 209, 124, .34);
    background: rgba(71, 209, 124, .1);
}

.package-status.is-inactive {
    color: #ffd7df;
    border-color: rgba(251, 113, 133, .3);
    background: rgba(251, 113, 133, .1);
}

.package-status.is-owned {
    color: #fff7df;
    border-color: rgba(245, 184, 75, .34);
    background: rgba(245, 184, 75, .1);
}

.mod-description {
    position: relative;
    overflow: hidden;
}

.description-body {
    max-height: 210px;
    overflow: hidden;
}

.mod-description.is-expanded .description-body {
    max-height: none;
}

.mod-description:not(.is-expanded)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 52px;
    height: 64px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0), var(--bg-card));
}

.description-toggle {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-primary);
    cursor: pointer;
}

.comments-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.comments-head h2, .comments-head p {
    margin: 0;
}

.comments-head p, .comment-form-actions span {
    color: var(--muted);
    font-size: 13px;
}

.comment-form {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-list {
    display: grid;
    gap: 10px;
}

.comment {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
}

.comment header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comment time {
    color: var(--muted);
    font-size: 12px;
}

.comment p {
    margin: 7px 0 0;
    color: var(--text);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment-actions button {
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.comment-actions button:hover {
    color: var(--text);
}

.comment.is-reply {
    margin-left: 34px;
    border-left: 3px solid rgba(30, 1, 143, .62);
}

.comment-tools {
    display: inline-flex;
    gap: 6px;
    margin-left: auto;
}

.comment-tools button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--text);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.comment-actions button.is-active {
    color: #ffffff;
}

.comment-edit-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.comment-edit-form textarea {
    min-height: 86px;
}

.comment-edit-form div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-page {
    padding-bottom: 42px;
}

.profile-page .profile-cover {
    min-height: 220px;
    background:
        linear-gradient(180deg, rgba(12, 12, 12, .24), #0c0c0c),
        linear-gradient(135deg, rgba(30, 1, 143, .42), #161616);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--line);
}

.profile-card {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    margin-top: -54px;
    padding: 16px;
    background: #121212;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    font-size: 34px;
    border: 4px solid #121212;
}

.profile-main h1 {
    margin: 0 0 4px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
}

.profile-main p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.profile-links, .profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.profile-actions {
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .profile-card {
        grid-template-columns: 78px minmax(0, 1fr);
        align-items: start;
    }

    .profile-avatar {
        width: 78px;
        height: 78px;
        font-size: 26px;
    }

    .profile-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .profile-actions .pill {
        flex: 1 1 calc(50% - 8px);
    }

    .comment.is-reply {
        margin-left: 14px;
    }
}

.empty-state.small {
    padding: 14px;
}

.related {
    gap: 8px;
}

.related h2 {
    font-size: 18px;
}

.related-item {
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.related-cover {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--bg-card-soft);
}

.related-cover img {
    width: 142px;
    height: 82px;
    object-fit: cover;
}

.profile-v13 {
    padding: 28px 0 56px;
    background: #0c0c0c;
}

.profile-hero {
    display: grid;
    gap: 0;
}

.profile-cover-hero {
    min-height: clamp(220px, 32vw, 360px);
    background:
        linear-gradient(180deg, rgba(12, 12, 12, .12), rgba(12, 12, 12, .9)),
        linear-gradient(135deg, rgba(30, 1, 143, .72), rgba(22, 22, 22, .96) 58%, rgba(245, 184, 75, .22));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.profile-info-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: -74px 22px 0;
    padding: 18px;
    background: rgba(18,18,18,.98);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}

.profile-avatar-xl {
    width: 124px;
    height: 124px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(30,1,143,.86), rgba(22,22,22,.94)),
        #161616;
    border: 5px solid #121212;
    border-radius: 26px;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.profile-avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.profile-identity {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.profile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.profile-title-row h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.02;
    word-break: normal;
    overflow-wrap: normal;
    max-width: min(100%, 920px);
}

.profile-title-row p,
.profile-about-lead {
    margin: 6px 0 0;
    color: #8f8f8f;
    line-height: 1.55;
}

.profile-title-row p {
    word-break: normal;
    overflow-wrap: anywhere;
}

.profile-about-lead {
    max-width: 760px;
    color: #cdcdcd;
    word-break: normal;
    overflow-wrap: break-word;
}

.profile-badges,
.profile-socials,
.profile-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-badge,
.profile-socials a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #cdcdcd;
    background: #161616;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.profile-badge-creator,
.profile-badge-admin {
    color: #fff;
    border-color: rgba(30,1,143,.72);
    background: rgba(30,1,143,.55);
}

.profile-badge-moderator {
    color: #eafff3;
    border-color: rgba(71,209,124,.34);
    background: rgba(71,209,124,.12);
}

.profile-socials a:hover {
    color: #fff;
    border-color: rgba(255,255,255,.18);
}

.profile-info-card .profile-actions {
    grid-column: 2;
    align-self: stretch;
    min-width: 0;
    display: flex;
    align-content: flex-end;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.profile-info-card .profile-actions .pill {
    min-width: 0;
    white-space: nowrap;
    text-align: center;
}

.profile-info-card .profile-actions .pill.is-active {
    color: #fff;
    border-color: rgba(245,184,75,.42);
    background: rgba(245,184,75,.14);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 18px 0 4px;
}

.profile-stats-grid span {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 14px;
    color: #8f8f8f;
    background: #121212;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
}

.profile-stats-grid strong {
    color: #fff;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1;
}

.profile-tabs {
    display: grid;
    gap: 16px;
    padding-top: 18px;
}

.profile-tab-list {
    position: sticky;
    top: 90px;
    z-index: 9;
    padding: 10px;
    background: rgba(18,18,18,.94);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    backdrop-filter: blur(16px);
}

.profile-tab-list button {
    min-height: 40px;
    padding: 0 14px;
    color: #8f8f8f;
    background: #161616;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    cursor: pointer;
}

.profile-tab-list button.is-active {
    color: #fff;
    background: #1e018f;
    border-color: #1e018f;
    box-shadow: 0 0 24px rgba(30,1,143,.36);
}

.profile-tab-panel {
    min-width: 0;
}

.profile-empty,
.profile-lock-card,
.profile-about-grid article {
    background: #121212;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
}

.profile-empty {
    padding: 22px;
}

.profile-lock-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding: 22px;
}

.profile-lock-card h1,
.profile-lock-card h2,
.profile-lock-card p {
    margin: 0;
}

.profile-lock-card p:not(.eyebrow) {
    margin-top: 6px;
    color: #8f8f8f;
    line-height: 1.6;
}

.profile-lock-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: #1e018f;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 900;
}

.profile-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr) minmax(240px, .9fr);
    gap: 14px;
}

.profile-about-grid article {
    min-width: 0;
    padding: 18px;
}

.profile-about-grid h2,
.profile-about-grid p {
    margin: 0;
}

.profile-about-grid article > p:not(.eyebrow) {
    color: #cdcdcd;
    line-height: 1.65;
}

.profile-summary-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-summary-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.profile-summary-list dt,
.profile-summary-list dd {
    margin: 0;
}

.profile-summary-list dt {
    color: #8f8f8f;
}

.profile-summary-list dd {
    color: #fff;
    text-align: right;
    overflow-wrap: anywhere;
}

.package-benefits {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.package-benefits li {
    padding: 9px 10px;
    color: #cdcdcd;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
}

@media (max-width: 980px) {
    .profile-info-card {
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: start;
    }

    .profile-avatar-xl {
        width: 108px;
        height: 108px;
        font-size: 36px;
    }

    .profile-info-card .profile-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .profile-v13 {
        padding-top: 16px;
    }

    .profile-cover-hero {
        min-height: 190px;
        border-radius: 24px;
    }

    .profile-info-card {
        grid-template-columns: 1fr;
        margin: -52px 10px 0;
        padding: 14px;
    }

    .profile-avatar-xl {
        width: 92px;
        height: 92px;
        border-radius: 22px;
        font-size: 32px;
    }

    .profile-title-row {
        display: grid;
    }

    .profile-info-card .profile-actions .pill {
        flex: 1 1 calc(50% - 8px);
        white-space: normal;
    }

    .profile-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-tab-list {
        position: static;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .profile-tab-list button {
        flex: 0 0 auto;
    }

    .profile-lock-card {
        align-items: flex-start;
    }
}

.related-cover em {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 3px 6px;
    color: #ffffff;
    background: rgba(12, 12, 12, .76);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11px;
    font-style: normal;
}

.related-copy {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 2px 0;
}

.related-copy strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25;
}

.related-copy small {
    color: var(--muted);
    line-height: 1.35;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    background: rgba(5, 5, 8, .94);
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gallery-lightbox-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.gallery-lightbox-actions {
    display: flex;
    gap: 8px;
}

.gallery-lightbox-stage {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.gallery-lightbox-stage img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    touch-action: none;
    transform-origin: center;
}

.gallery-lightbox-stage img.is-zoomed {
    cursor: grab;
}

.gallery-lightbox-stage iframe {
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    border: 0;
}

.gallery-lightbox-stage model-viewer {
    width: min(1100px, 100%);
    height: min(74vh, 720px);
    background: #111;
    border: 1px solid var(--line);
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .mod-watch {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .related-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .related-cover img {
        width: 120px;
        height: 76px;
    }
}

@media (max-width: 980px) {
    .mod-watch {
        grid-template-columns: 1fr;
    }

    .mod-social-row {
        grid-template-columns: 1fr;
    }

    .related {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .gallery-image-button img, .gallery-video-frame, .gallery-video-frame iframe, .gallery-model-frame, .gallery-model-frame model-viewer, .gallery-fallback {
        min-height: 220px;
        aspect-ratio: 16 / 10;
    }

    .mod-action-bar {
        justify-content: stretch;
        flex-wrap: wrap;
    }

    .mod-action-bar .pill {
        flex: 1 1 calc(50% - 8px);
    }

    .download-pill {
        flex-basis: 100% !important;
    }

    .related {
        grid-template-columns: 1fr;
    }

    .related-item {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .related-cover img {
        width: 132px;
        height: 78px;
    }

    .gallery-lightbox {
        padding: 10px;
    }
}

@media (max-width: 460px) {
    .mod-kicker, .mod-meta-inline {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mod-meta-inline span + span::before {
        display: none;
    }

    .creator-actions, .mod-social-row .creator-bar {
        align-items: stretch;
    }

    .creator-actions .pill {
        flex: 1;
    }
}

/* Bolum 17: header live search, notifications and public documentation pages. */
.search {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    display: grid;
    gap: 6px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.search-results[hidden] {
    display: none;
}

.search-result {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px;
    color: var(--text);
    border: 1px solid transparent;
    border-radius: 10px;
}

.search-result:hover {
    background: var(--bg-card-soft);
    border-color: var(--line);
}

.search-result img,
.search-result-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    object-fit: cover;
    color: #ffffff;
    background: var(--brand);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 900;
}

.search-result span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.search-result strong,
.search-result small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result small,
.search-empty span {
    color: var(--muted);
}

.search-empty {
    display: grid;
    gap: 3px;
    padding: 12px;
    color: var(--text);
    background: var(--bg-card-soft);
    border: 1px dashed var(--line);
    border-radius: 10px;
}

.notification-center {
    position: relative;
    flex: 0 0 auto;
}

.notification-trigger {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--text);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.notification-trigger span {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--brand);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.notification-trigger i {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #ffffff;
    background: var(--danger);
    border: 2px solid var(--bg-header);
    border-radius: 999px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 70;
    width: min(360px, calc(100vw - 24px));
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.notification-dropdown[hidden] {
    display: none;
}

.notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.notification-head button {
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.notification-head button:hover {
    color: var(--text);
}

.notification-list {
    display: grid;
    max-height: 420px;
    overflow: auto;
    padding: 8px;
}

.notification-item {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    padding: 10px;
    text-align: left;
    color: var(--text);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
}

.notification-item:hover,
.notification-item.is-unread {
    background: var(--bg-card-soft);
    border-color: var(--line);
}

.notification-item.is-unread {
    box-shadow: inset 3px 0 0 var(--brand);
}

.notification-item span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.notification-item strong,
.notification-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item small,
.notification-item em,
.notification-empty {
    color: var(--muted);
}

.notification-item em {
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
}

.notification-empty {
    padding: 14px;
    text-align: center;
}

.docs-page {
    padding: 34px 0 70px;
    background: var(--bg-main);
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.docs-breadcrumb a:hover {
    color: var(--text);
}

.docs-breadcrumb strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.docs-shell {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 820px);
    gap: 24px;
    align-items: start;
}

.docs-shell-no-toc {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

.docs-toc {
    position: sticky;
    top: 128px;
    min-width: 0;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.docs-toc summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
}

.docs-toc-links {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.docs-toc-links a {
    padding: 7px 9px;
    color: var(--muted);
    border-radius: 9px;
}

.docs-toc-links a:hover,
.docs-toc-links a:focus {
    color: var(--text);
    background: var(--bg-card-soft);
}

.docs-toc-links a.is-child {
    padding-left: 20px;
    font-size: 13px;
}

.docs-content {
    min-width: 0;
    padding: clamp(22px, 4vw, 38px);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.docs-article-head {
    display: grid;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.docs-article-head h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.03;
}

.docs-lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.docs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-meta span,
.translation-note {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 10px;
    color: var(--muted);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
}

.translation-note {
    margin: 0 0 14px;
    width: fit-content;
    border-color: rgba(245,184,75,.36);
}

.docs-body {
    padding-top: 26px;
    color: var(--text);
    line-height: 1.78;
}

.docs-body h2,
.docs-body h3,
.docs-body h4 {
    position: relative;
    scroll-margin-top: 130px;
    margin: 34px 0 12px;
    line-height: 1.16;
    color: var(--text);
}

.docs-body h2 {
    font-size: 30px;
}

.docs-body h3 {
    font-size: 23px;
}

.docs-body h4 {
    font-size: 18px;
}

.docs-body p,
.docs-body ul,
.docs-body ol,
.docs-body blockquote,
.docs-body pre {
    margin: 0 0 18px;
}

.docs-body ul,
.docs-body ol {
    padding-left: 24px;
}

.docs-body li + li {
    margin-top: 7px;
}

.docs-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.docs-body code {
    padding: 2px 6px;
    color: var(--text);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.docs-body pre {
    overflow: auto;
    padding: 14px;
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.docs-body pre code {
    padding: 0;
    background: transparent;
    border: 0;
}

.docs-body blockquote {
    padding: 12px 14px;
    color: var(--muted);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
}

.docs-body img {
    width: auto;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.docs-body .alert-info,
.docs-body .alert-warning,
.docs-body .alert-danger,
.docs-body .alert-success {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.docs-body .alert-info { border-left: 4px solid var(--brand); }
.docs-body .alert-warning { border-left: 4px solid var(--warning); }
.docs-body .alert-danger { border-left: 4px solid var(--danger); }
.docs-body .alert-success { border-left: 4px solid var(--success); }

.heading-anchor {
    margin-left: 8px;
    color: var(--muted) !important;
    opacity: 0;
    text-decoration: none !important;
    font-size: .72em;
}

.docs-body h2:hover .heading-anchor,
.docs-body h3:hover .heading-anchor,
.heading-anchor:focus {
    opacity: 1;
}

.docs-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.docs-feedback strong {
    color: var(--text);
}

body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox-stage img {
    max-width: 95vw;
    max-height: 85vh;
}

.gallery-lightbox-actions .pill {
    min-width: 46px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 50%;
    font-size: 20px;
}

.gallery-lightbox-actions [data-lightbox-close] {
    width: auto;
    border-radius: 999px;
    font-size: 14px;
}

@media (max-width: 860px) {
    .docs-shell {
        grid-template-columns: 1fr;
    }

    .docs-toc {
        position: static;
        order: -1;
    }

    .docs-content {
        border-radius: 18px;
    }

    .docs-feedback {
        display: grid;
    }
}

@media (max-width: 560px) {
    .notification-dropdown {
        right: -58px;
    }

    .docs-page {
        padding-top: 22px;
    }

    .docs-content {
        padding: 18px;
    }

    .docs-article-head h1 {
        font-size: 32px;
    }

    .docs-body h2 {
        font-size: 25px;
    }

    .docs-body h3 {
        font-size: 20px;
    }
}

/* Bolum 20: homepage social hero, community posts, stories and gallery UX */
.home-hero {
    min-height: 430px;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 24px;
    align-items: stretch;
    padding: 42px 0 30px;
}

.home-hero-copy {
    display: grid;
    align-content: center;
    max-width: 760px;
    min-width: 0;
}

.home-hero h1 {
    max-width: 820px;
    font-size: clamp(34px, 4.6vw, 58px);
}

.home-social-panel {
    min-width: 0;
    display: grid;
    gap: 14px;
    align-self: center;
}

.home-community-feed,
.story-strip,
.community-composer,
.community-post-card,
.studio-community-list {
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.home-community-feed,
.community-composer,
.studio-community-list {
    padding: 14px;
}

.home-community-head,
.story-strip-head,
.community-composer-head,
.community-post-head,
.community-post-author,
.community-post-actions,
.community-composer-actions,
.story-composer-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-community-head,
.story-strip-head,
.community-composer-head,
.community-post-head,
.community-composer-actions,
.story-composer-actions {
    justify-content: space-between;
}

.home-community-head a {
    color: var(--muted);
    font-size: 13px;
}

.story-strip {
    padding: 12px;
    overflow: hidden;
}

.story-add-btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.story-strip-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 2px 2px;
    scrollbar-width: thin;
}

.story-bubble {
    width: 76px;
    flex: 0 0 76px;
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.story-ring {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    padding: 3px;
    border-radius: 50%;
    background: conic-gradient(from 20deg, var(--brand), #47d17c, #f5b84b, var(--brand));
}

.story-bubble.is-seen .story-ring {
    background: color-mix(in srgb, var(--muted) 50%, transparent);
}

.story-ring img,
.story-ring em {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    object-fit: cover;
    color: #fff;
    background: var(--brand);
    font-style: normal;
    font-weight: 900;
}

.story-bubble small {
    width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-empty {
    width: 100%;
    padding: 14px;
    color: var(--muted);
    background: var(--bg-card-soft);
    border: 1px dashed var(--line);
    border-radius: 8px;
}

.story-composer {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.story-composer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, .55fr);
    gap: 10px;
}

.story-composer label,
.community-composer label,
.community-poll-builder label {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: var(--muted);
}

.story-composer input,
.story-composer textarea,
.community-composer input,
.community-composer textarea {
    width: 100%;
    min-width: 0;
    color: var(--text);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    resize: vertical;
}

.story-file-drop,
.community-dropzone {
    min-height: 116px;
    place-items: center;
    text-align: center;
    border: 1px dashed color-mix(in srgb, var(--brand) 50%, var(--line));
    border-radius: 8px;
    cursor: pointer;
}

.story-file-drop input,
.community-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.story-file-drop span,
.community-dropzone span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    font-weight: 900;
}

.story-file-drop.is-dragging,
.community-dropzone.is-dragging,
.community-dropzone:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 9%, var(--bg-card-soft));
}

.community-composer {
    display: grid;
    gap: 12px;
}

.community-composer h2,
.community-composer p {
    margin: 0;
}

.community-type-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.community-type-tabs button {
    min-height: 34px;
    padding: 0 12px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.community-type-tabs button.is-active {
    color: #fff;
    background: var(--brand);
}

.community-composer form,
.community-composer-panel,
.community-poll-builder {
    display: grid;
    gap: 10px;
}

.community-image-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.community-image-preview img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.community-image-preview button {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.community-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
}

.profile-community-feed {
    display: grid;
    gap: 14px;
}

.community-post-card {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.community-post-card + .community-post-card,
.home-community-feed .community-post-card + .community-post-card,
.studio-community-list .community-post-card + .community-post-card {
    margin-top: 12px;
}

.community-post-card.is-compact {
    padding: 12px;
    box-shadow: none;
}

.community-post-author {
    overflow: hidden;
    flex: 1 1 auto;
}

.community-post-author > span:last-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.community-post-author strong,
.community-post-author small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-post-author small,
.community-post-text,
.community-poll small {
    color: var(--muted);
}

.community-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.community-post-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.community-mini-action {
    width: 34px;
    min-height: 34px;
}

.community-status-badge,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    color: var(--muted);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-published { color: var(--success); }
.status-pending_review { color: var(--warning); }
.status-blocked,
.status-deleted { color: var(--danger); }

.community-post-text {
    margin: 0;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.community-post-image {
    overflow: hidden;
    margin: 0;
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.community-post-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.community-poll {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.community-poll-options {
    display: grid;
    gap: 8px;
}

.community-poll-option {
    position: relative;
    min-height: 42px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}

.community-poll-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--poll-percent);
    background: color-mix(in srgb, var(--brand) 18%, transparent);
    pointer-events: none;
}

.community-poll-option > span:not(.community-poll-fill),
.community-poll-option em {
    position: relative;
    z-index: 1;
}

.community-poll-option em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.community-poll-option.is-selected {
    border-color: color-mix(in srgb, var(--brand) 64%, var(--line));
}

.community-post-actions {
    flex-wrap: wrap;
}

.community-post-actions .pill {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
}

.community-react.is-active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.community-comments {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.community-comment-list,
.community-comment-form {
    display: grid;
    gap: 8px;
}

.community-comment {
    padding: 10px;
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.community-comment p {
    margin: 4px 0 0;
    color: var(--muted);
}

.community-comment-form textarea {
    width: 100%;
    min-height: 84px;
    color: var(--text);
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    resize: vertical;
}

.profile-story-ring {
    position: relative;
    padding: 4px;
    border: 0;
    background: conic-gradient(from 25deg, var(--brand), #47d17c, #f5b84b, var(--brand));
    cursor: pointer;
}

.profile-story-ring img {
    border: 4px solid var(--bg-card);
}

.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    place-items: center;
}

.story-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(12px);
}

.story-viewer-panel {
    position: relative;
    width: min(420px, calc(100vw - 28px));
    min-height: min(700px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 14px;
    color: #fff;
    background: #111;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(0,0,0,.62);
}

.story-viewer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
}

.story-viewer-meta {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-right: 48px;
}

.story-viewer-meta small {
    color: rgba(255,255,255,.66);
}

.story-viewer-media {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #050505;
    border-radius: 8px;
}

.story-viewer-media img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
}

.story-text-card {
    width: 100%;
    min-height: 420px;
    display: grid;
    place-items: center;
    padding: 28px;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, #1e018f, #101010 68%);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.story-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 30px;
}

.story-viewer-nav.prev { left: 12px; }
.story-viewer-nav.next { right: 12px; }

.story-viewer-caption {
    color: rgba(255,255,255,.78);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

body.story-viewer-open {
    overflow: hidden;
}

.gallery-lightbox {
    padding: 18px;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(16px);
}

.gallery-lightbox-bar {
    position: absolute;
    top: 14px;
    left: 18px;
    right: 18px;
    z-index: 5;
    padding: 0;
    background: transparent;
    border: 0;
}

.gallery-lightbox-counter {
    color: rgba(255,255,255,.82);
    font-weight: 800;
}

.gallery-lightbox-actions {
    gap: 8px;
}

.gallery-lightbox-actions .pill,
.gallery-lightbox-nav,
.gallery-lightbox-close {
    color: #fff;
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
}

.gallery-lightbox-close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 26px;
}

.gallery-lightbox-stage {
    width: 100%;
    min-height: 100vh;
    padding: 62px 72px 92px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.gallery-lightbox-stage img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,.62);
    cursor: zoom-in;
    user-select: none;
    touch-action: none;
    transition: transform .16s ease;
}

.gallery-lightbox-stage img.is-zoomed {
    cursor: grab;
}

.gallery-lightbox-stage img.is-panning {
    cursor: grabbing;
}

.gallery-lightbox-stage iframe,
.gallery-lightbox-stage model-viewer {
    width: min(92vw, 1180px);
    height: min(82vh, 720px);
    border-radius: 8px;
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 34px;
}

.gallery-lightbox-nav.prev { left: 24px; }
.gallery-lightbox-nav.next { right: 24px; }

.gallery-lightbox-thumbs {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 4;
    width: min(760px, calc(100vw - 40px));
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    background: rgba(0,0,0,.34);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    transform: translateX(-50%);
}

.gallery-lightbox-thumbs button {
    width: 72px;
    height: 44px;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 2px solid transparent;
    border-radius: 7px;
    cursor: pointer;
}

.gallery-lightbox-thumbs button.is-active {
    border-color: #fff;
}

.gallery-lightbox-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 30px;
    }

    .home-hero h1 {
        font-size: 36px;
    }

    .story-composer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .community-composer-head,
    .home-community-head {
        align-items: flex-start;
        display: grid;
    }

    .community-type-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .community-post-head,
    .community-post-actions {
        align-items: flex-start;
    }

    .gallery-lightbox-stage {
        padding: 58px 10px 86px;
    }

    .gallery-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox-nav.prev { left: 10px; }
    .gallery-lightbox-nav.next { right: 10px; }
}

/* Homepage request refinements: games slider edges, horizontal community feed, notification polish */
.home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 0 24px;
}

.home-social-panel {
    width: 100%;
    align-self: stretch;
}

.home-community-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-community-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.home-community-scroller .community-post-card {
    width: clamp(280px, 38vw, 430px);
    flex: 0 0 clamp(280px, 38vw, 430px);
    scroll-snap-align: start;
}

.home-community-scroller .community-post-card + .community-post-card {
    margin-top: 0;
}

.home-community-scroller .community-post-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.home-community-scroller .community-post-image img {
    max-height: 210px;
}

.home-community-scroller .community-comments {
    min-width: 0;
}

.game-slider-wrap {
    position: relative;
}

.game-slider-wrap .game-slider {
    padding-inline: 54px;
}

.game-slider-edge-controls {
    position: absolute;
    top: calc(50% + 22px);
    left: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.game-slider-edge-controls .icon-btn {
    width: 48px;
    height: 48px;
    color: var(--text);
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    border-color: color-mix(in srgb, var(--line) 86%, var(--text));
    box-shadow: 0 14px 32px rgba(0,0,0,.24);
    pointer-events: auto;
}

.game-slider-edge-controls .icon-btn:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.notification-trigger span {
    width: auto;
    height: auto;
    color: var(--text);
    background: transparent;
    border-radius: 0;
    font-size: 19px;
    line-height: 1;
}

.notification-head > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notification-head button {
    min-height: 30px;
    padding: 0 9px;
    background: var(--bg-card-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
}

.notification-head button[data-notification-clear]:hover {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

button.dropdown-link {
    width: 100%;
    background: transparent;
    font: inherit;
    text-align: left;
    border: 0;
    cursor: pointer;
}

@media (max-width: 760px) {
    .home-community-scroller .community-post-card {
        width: min(86vw, 360px);
        flex-basis: min(86vw, 360px);
    }

    .game-slider-wrap .game-slider {
        padding-inline: 42px;
    }

    .game-slider-edge-controls {
        left: 2px;
        right: 2px;
    }

    .game-slider-edge-controls .icon-btn {
        width: 40px;
        height: 40px;
    }
}
