/* ==========================================================================
   COD2.CZ — společný styl HTML šablon
   Původní vzhled, přehledné komponenty a pouze používané selektory.
   Pořadí responzivních pravidel zachovává původní CSS kaskádu.
   ========================================================================== */

/* Základ, proměnné a opakované komponenty */

:root {
    color-scheme: dark;
    --background: #0b1013;
    --surface: #10171b;
    --border: #263036;
    --text: #f1f2f3;
    --muted: #9ba9b4;
    --accent: #ed4228;
    --green: #43d450;
    --radius: 7px;
    --font: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
}

.site-header,
.site-footer {
    flex-shrink: 0;
}

.site-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

button,
input,
select {
    font: inherit;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h2,
h3 {
    line-height: 1.2;
}

h2 {
    font-size: 24px;
    letter-spacing: -.6px;
}

h3 {
    font-size: 21px;
    letter-spacing: -.4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

.icon {
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    display: inline-block;
    object-fit: contain;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 47px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: background .2s, border-color .2s, transform .2s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(120deg, #ef452c, #ce2f1b);
    border-color: #f04c32;
    box-shadow: inset 0 1px 0 #ffffff0d;
    color: #fff;
}

.button-primary:hover {
    background: #fa5035;
}

.button-success {
    background: linear-gradient(120deg, #348642, #276b33);
    border-color: #439551;
    color: #fff;
}

.button-success:hover {
    background: #3c974b;
}

.button-outline {
    background: #0d131894;
    border-color: #45515a;
}

.button-outline:hover {
    background: #202a30;
    border-color: #85919a;
}

.button:disabled,
.button:disabled:hover {
    background: #202a30;
    border-color: #354149;
    color: #81909a;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.button-small {
    min-height: 38px;
    padding: 9px 19px;
    font-size: 13px;
}

.button .icon {
    width: 17px;
    height: 17px;
}

.button-arrow {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.button-arrow::before {
    position: absolute;
    top: 7px;
    left: 0;
    width: 14px;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
    content: "";
}

.button-arrow::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
}

.eyebrow {
    color: #b7c0c7;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px #43d45038;
}

.status-dot.is-offline {
    background: #ef4444;
    box-shadow: 0 0 12px #ef444438;
}

.logo span {
    color: var(--accent);
}

.event-capacity > strong {
    color: var(--green);
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    padding: 12px;
    background: var(--accent);
}

.skip-link:focus {
    top: 12px;
}

/* Hlavička a hlavní navigace */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #ffffff0c;
    background: #0b1013;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 62px;
    gap: 36px;
}

.logo {
    flex-shrink: 0;
    font-size: 33px;
    line-height: 1;
    font-weight: 950;
    font-stretch: condensed;
    letter-spacing: -1.8px;
    white-space: nowrap;
}

.main-navigation {
    display: flex;
    align-self: stretch;
    align-items: stretch;
    gap: 24px;
}

.main-navigation a {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 62px;
    padding-inline: 5px;
    color: #c1c9d0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
}

.main-navigation a:hover,
.main-navigation a.act,
.hero h1 span {
    color: var(--accent);
}

.main-navigation a.act::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    content: "";
}

.header-actions {
    display: flex;
    margin-left: auto;
    gap: 9px;
}

.header-actions .button {
    min-height: 38px;
    font-size: 14px;
}

.menu-toggle,
.menu-backdrop,
.menu-toolbar {
    display: none;
}

/* Homepage — úvodní blok */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #283036;
    background: #192027;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, #071015e8 0%, #071015ae 37%, #07101513 75%), linear-gradient(0deg, #0b1013 0%, transparent 45%), url("../img/hero.jpg");
    background-size: cover;
    background-position: center, center, center 45%;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    min-height: 410px;
    padding-block: 38px 30px;
}

.hero-copy {
    min-width: 0;
    padding-bottom: 8px;
}

.hero h1 {
    margin: 9px 0 4px;
    font-size: clamp(58px, 7.4vw, 94px);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -5px;
    text-shadow: 0 2px 20px #0005;
}

.hero h2 {
    font-size: clamp(24px, 3vw, 35px);
    font-weight: 850;
    letter-spacing: -1px;
}

.hero-description {
    margin-top: 18px;
    color: #c0cad1;
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 26px;
}

.hero-actions .button {
    min-width: 196px;
}

.play-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    color: #9faeb7;
    font-size: 12px;
}

.hero-note .status-dot {
    width: 6px;
    height: 6px;
}

.live-card {
    width: 263px;
    flex-shrink: 0;
    padding: 21px;
    border: 1px solid #ffffff12;
    border-radius: var(--radius);
    background: #0a1116e8;
    box-shadow: 0 8px 30px #0003;
    backdrop-filter: blur(10px);
}

.live-card-main {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding-bottom: 18px;
}

.live-card-main > .status-dot {
    width: 12px;
    height: 12px;
    margin-top: 12px;
}

.live-card-main strong {
    display: block;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
}

.live-card-main div > span {
    color: #b9c4cc;
    font-size: 14px;
}

.live-label {
    margin-left: auto;
    margin-top: 5px;
    font-size: 9px;
    color: var(--green);
    letter-spacing: 2px;
}

.live-card-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 14px;
    border-top: 1px solid #ffffff15;
}

.live-card-bottom > div {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 9px;
}

.live-card-bottom > div + div {
    padding-left: 15px;
    border-left: 1px solid #ffffff0c;
}

.live-card-bottom .icon {
    grid-row: span 2;
    margin-top: 3px;
    color: #a4afb9;
    width: 20px;
}

.live-card-bottom strong {
    font-size: 20px;
    line-height: 1.2;
}

.live-card-bottom span {
    color: var(--muted);
    font-size: 11px;
}

.page-content {
    padding-bottom: 30px;
}

.events-section,
.register-submit {
    margin-top: 24px;
}

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

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 .icon {
    width: 25px;
    height: 25px;
}

.section-caption {
    color: var(--muted);
    font-size: 12px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.event-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: border-color .2s;
}

.event-card:hover {
    border-color: #59636a;
}

.event-cover {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 90px;
    padding: 10px;
}

.event-cover > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-cover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #141c21, transparent 75%);
    content: "";
}

.badge {
    position: relative;
    z-index: 1;
    padding: 5px 9px;
    border-radius: 3px;
    background: #28343eed;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
}

.cover-label {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    color: #fff;
    font-size: 8px;
    letter-spacing: 1.4px;
    text-shadow: 0 1px 5px #000;
}

.event-body {
    position: relative;
    margin-top: -14px;
    padding: 0 16px 13px;
}

.events-grid .event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

.events-grid .event-cover {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
}

.events-grid .event-cover::after {
    background: linear-gradient(0deg, #080e13f5, #080e13c9 45%, #080e1326);
}

.events-grid .event-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 0;
    padding: 50px 16px 16px;
}

.events-grid .event-placeholder-preview {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    height: auto;
}

.event-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.event-attendees {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b9c4cc;
    font-size: 12px;
    white-space: nowrap;
}

.event-attendee-avatars {
    display: flex;
    align-items: center;
}

.event-attendee-avatars .avatar {
    width: 28px;
    height: 28px;
    margin-left: -8px;
    border-color: #172029;
}

.event-attendee-avatars .avatar:first-child {
    margin-left: 0;
}

.event-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.event-title-row h3 {
    padding-top: 0;
    font-size: 21px;
}

.event-capacity {
    flex-shrink: 0;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.event-capacity small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 400;
}

.event-meta {
    display: grid;
    gap: 3px;
    padding: 0;
    margin: 6px 0 12px;
    list-style: none;
    color: #b7c1c9;
    font-size: 12px;
    line-height: 1.3;
}

.event-meta li {
    display: flex;
    align-items: center;
    gap: 9px;
}

.event-meta .icon {
    width: 15px;
    height: 15px;
    color: #ccd2d7;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 2px solid #637078;
    border-radius: 50%;
    background: linear-gradient(145deg, #a58c65, #34454b);
    color: #f3eee5;
    font-size: 12px;
    font-weight: 700;
}

.avatar:nth-child(2n) {
    background: linear-gradient(145deg, #82979b, #24383c);
}

.avatar:nth-child(3n) {
    background: linear-gradient(145deg, #a99881, #514239);
}

.panel {
    padding: 21px;
}

.panel,
.event-card,
.server-card {
    border: 1px solid #292d31;
    border-radius: var(--radius);
    background:
    radial-gradient(ellipse at 15% 0%, #858a9112, transparent 65%),
    repeating-linear-gradient(118deg, #ffffff02 0, #ffffff02 1px, transparent 1px, transparent 5px),
    linear-gradient(125deg, #14171b, #0d1013);
    box-shadow: inset 0 1px 0 #ffffff03;
}

select {
    max-width: 100%;
    padding: 6px 25px 6px 8px;
    border: 1px solid #35414a;
    border-radius: 4px;
    background: #172026;
    color: #d7dee3;
    font-size: 12px;
}

.text-button {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    font-size: inherit;
    color: inherit;
    text-align: left;
}

.text-button:hover {
    color: var(--accent);
    text-decoration: underline;
}

.site-footer {
    padding-block: 29px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer .logo {
    font-size: 24px;
    letter-spacing: -1.2px;
}

.site-footer p {
    margin-top: 7px;
    color: #7e8b95;
    font-size: 11px;
}

.site-footer nav {
    display: flex;
    gap: 24px;
    color: #a6b2bc;
    font-size: 12px;
}

.site-footer nav a:hover {
    color: var(--accent);
}

.footer-credit {
    color: #74828c;
    font-size: 10px;
}

.footer-credit span {
    margin-inline: 7px;
}

.modal {
    width: min(480px, calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    padding: 34px;
    border: 1px solid #465159;
    border-radius: 9px;
    background: #10181e;
    color: var(--text);
    box-shadow: 0 20px 100px #0008;
}

.modal:focus {
    outline: none;
}

.modal::backdrop {
    background: #02070bd4;
    backdrop-filter: blur(5px);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 13px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    color: #b4c0c9;
    font-size: 29px;
}

.modal-close:focus-visible {
    outline: 1px solid #65737d;
    outline-offset: 0;
    border-radius: 5px;
}

.modal h2 {
    margin-top: 10px;
    font-size: 32px;
}

.modal-intro {
    margin-block: 12px 22px;
    color: var(--muted);
}

.modal label {
    display: block;
    margin: 17px 0 7px;
    font-size: 13px;
    font-weight: 700;
}

.modal input {
    width: 100%;
    padding: 12px;
    border: 1px solid #3d4b56;
    border-radius: 4px;
    background: #0b1217;
    color: #fff;
}

.modal .button {
    width: 100%;
}

.form-note {
    margin-block: 17px;
    color: #93a2ae;
    font-size: 12px;
    line-height: 1.7;
}

.home-player-list strong {
    font-size: 13px;
}

.connect-command {
    display: block;
    padding: 15px;
    overflow-wrap: anywhere;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #091014;
    color: #f08b64;
    font-family: monospace;
    user-select: all;
}

@media (min-width: 1500px) {
    .hero-background {
        background-position: center, center, center 40%;
    }
}

@media (max-width: 1100px) {
    .header-inner {
        gap: 25px;
    }

    .main-navigation {
        gap: 16px;
    }

    .event-title-row h3 {
        font-size: 18px;
    }

    .event-body {
        padding-inline: 14px;
    }

    .cover-label {
        display: none;
    }
}

@media (max-width: 850px) {
    .container {
        width: calc(100% - 40px);
    }

    .hero-inner {
        min-height: 420px;
        padding-block: 42px 30px;
    }

    .hero h1 {
        font-size: 72px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .live-card {
        width: 215px;
        padding: 16px;
    }

    .live-card-main {
        gap: 9px;
    }

    .live-card-main div > span {
        font-size: 12px;
    }

    .live-card-bottom > div {
        column-gap: 5px;
    }

    .live-card-bottom > div + div {
        padding-left: 8px;
    }

    .hero-actions .button {
        min-width: 0;
        padding-inline: 16px;
        font-size: 12px;
    }

    .events-grid {
        gap: 12px;
    }

    .event-title-row {
        gap: 7px;
    }

    .event-capacity {
        font-size: 14px;
    }

    .event-capacity small {
        font-size: 8px;
    }

    .event-meta {
        font-size: 11px;
    }

    .footer-credit {
        display: none;
    }
}

@media (max-width: 760px) {
    .header-inner {
        position: relative;
        gap: 0;
        min-height: 62px;
    }

    .logo {
        font-size: 28px;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        order: 3;
        margin-left: 12px;
        padding: 10px;
        border: 1px solid #35414a;
        border-radius: 8px;
        background: #141c21;
        transition: background .2s, border-color .2s;
    }

    .menu-toggle:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }

    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #dce2e6;
        transition: transform .2s, opacity .2s;
    }

    .site-header.is-menu-open .menu-toggle {
        border-color: #ed422866;
        background: #ed422815;
    }

    .site-header.is-menu-open .menu-toggle span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-menu-open .menu-toggle span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        gap: 0;
        width: min(320px, calc(100% - 48px));
        height: 100dvh;
        padding: 16px;
        overflow-y: auto;
        border-left: 1px solid #292d31;
        background:
            radial-gradient(ellipse at 15% 0%, #858a9112, transparent 65%),
            repeating-linear-gradient(118deg, #ffffff02 0, #ffffff02 1px, transparent 1px, transparent 5px),
            linear-gradient(125deg, #14171b, #0d1013);
        box-shadow: inset 0 1px 0 #ffffff03, -16px 0 40px #0007;
        visibility: hidden;
        transform: translateX(100%);
        transition: transform .25s, visibility .25s;
    }

    .menu-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 1px solid #ffffff08;
        font-size: 21px;
        font-weight: 700;
    }

    .menu-toolbar > span {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #45515a;
        border-radius: 5px;
        background: #0d131894;
        font-size: 30px;
        font-weight: 400;
        line-height: 1;
        transition: background .2s, border-color .2s;
    }

    .menu-close:hover {
        border-color: #85919a;
        background: #202a30;
    }

    .menu-close:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 3px;
    }

    .main-navigation a {
        justify-content: space-between;
        min-height: 52px;
        padding: 14px 16px;
        border-bottom: 1px solid #ffffff08;
        border-left: 3px solid transparent;
        border-radius: 0;
        background: none;
        font-size: 16px;
        transition: background .2s, border-color .2s;
    }

    .main-navigation a::before {
        display: none;
    }

    .main-navigation a::after,
    .main-navigation a.act::after {
        position: static;
        width: 6px;
        height: 6px;
        margin-right: 3px;
        border-top: 1px solid currentColor;
        border-right: 1px solid currentColor;
        background: none;
        transform: rotate(45deg);
        content: "";
    }

    .main-navigation a:hover,
    .main-navigation a.act {
        background: #ffffff03;
    }

    .main-navigation a.act {
        border-left-color: var(--accent);
    }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: block;
        width: 100%;
        padding: 0;
        border: 0;
        background: #0008;
        cursor: default;
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s, visibility .2s;
    }

    .site-header.is-menu-open .main-navigation {
        visibility: visible;
        transform: translateX(0);
    }

    .site-header.is-menu-open .menu-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body.is-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 700px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    html {
        scroll-padding-top: 80px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .header-inner {
        min-height: 60px;
    }

    .logo {
        font-size: 26px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .button {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .menu-toggle {
        order: 3;
        margin-left: 9px;
    }

    .hero-background {
        background-image: linear-gradient(90deg, #071015c9, #07101540), linear-gradient(0deg, #0b1013 0%, transparent 100%), url("../img/hero.jpg");
        background-position: center;
    }

    .hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 27px;
        min-height: 0;
        padding-block: 40px 25px;
    }

    .hero .eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: 68px;
        letter-spacing: -4px;
    }

    .hero h2 {
        font-size: 26px;
    }

    .hero-description {
        margin-top: 15px;
    }

    .hero-actions {
        gap: 8px;
        margin-top: 22px;
    }

    .hero-actions .button {
        flex: 1;
        min-height: 44px;
        padding-inline: 10px;
        font-size: 11px;
    }

    .hero-note {
        margin-top: 17px;
    }

    .live-card {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 16px;
    }

    .live-card-main {
        flex: 1;
        align-items: center;
        padding: 0;
    }

    .live-card-main > .status-dot {
        width: 8px;
        height: 8px;
        margin-top: 0;
    }

    .live-card-main strong {
        font-size: 30px;
    }

    .live-card-main div > span {
        font-size: 10px;
    }

    .live-label {
        display: none;
    }

    .live-card-bottom {
        flex: 1;
        gap: 10px;
        padding: 0 0 0 12px;
        border-top: 0;
        border-left: 1px solid #ffffff15;
    }

    .live-card-bottom > div {
        display: flex;
        flex-direction: column;
    }

    .live-card-bottom .icon,
    .section-caption {
        display: none;
    }

    .live-card-bottom > div + div {
        padding-left: 0;
        border-left: 0;
    }

    .live-card-bottom strong {
        font-size: 21px;
    }

    .live-card-bottom span {
        font-size: 9px;
        white-space: nowrap;
    }

    .section-heading {
        margin-bottom: 16px;
        gap: 10px;
    }

    .section-heading h2 {
        gap: 10px;
        font-size: 22px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .event-cover {
        height: 105px;
    }

    .cover-label,
    .footer-credit {
        display: block;
    }

    .event-body {
        padding-inline: 18px;
    }

    .event-title-row {
        flex-direction: row;
    }

    .event-title-row h3 {
        font-size: 22px;
    }

    .event-capacity {
        display: block;
        font-size: 16px;
    }

    .event-capacity small {
        font-size: 9px;
    }

    .event-meta {
        font-size: 13px;
    }

    .panel {
        padding: 18px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .site-footer nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
        width: 100%;
        font-size: 14px;
    }

    .site-footer nav > * {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 0;
        border-bottom: 1px solid #ffffff08;
        text-align: left;
    }

    .site-footer nav > :nth-child(n+5) {
        border-bottom: 0;
        color: #7e8b95;
        font-size: 12px;
    }

    .footer-credit {
        width: 100%;
        padding-top: 16px;
        border-top: 1px solid #ffffff0c;
        font-size: 11px;
    }

    .modal {
        padding: 28px 22px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 23px;
    }

    .header-actions .button {
        padding-inline: 7px;
        font-size: 10px;
    }

    .menu-toggle {
        margin-left: 6px;
    }

    .hero h1 {
        font-size: 60px;
    }

    .hero h2 {
        font-size: 23px;
    }

    .event-title-row h3 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* Přihlášení a registrace */

.auth-content {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 44px 20px;
    background-image: linear-gradient(90deg, #081015dc, #081015a8), linear-gradient(0deg, #0b1013, #0b101340 60%), url("../img/hero.jpg");
    background-size: cover;
    background-position: center;
}

.auth-card {
    width: min(100%, 440px);
    padding: 32px;
    border-radius: 9px;
    box-shadow: 0 20px 65px #0005;
}

.auth-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border: 1px solid #ed422840;
    border-radius: 8px;
    background: #ed422810;
    color: var(--accent);
}

.auth-emblem .icon {
    width: 25px;
    height: 25px;
}

.auth-card .eyebrow {
    color: #b7a092;
    font-size: 10px;
    letter-spacing: 2px;
}

.auth-card h1 {
    margin-top: 8px;
    font-size: 39px;
    font-weight: 850;
    letter-spacing: -1.2px;
    line-height: 1.15;
}

.auth-intro {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
}

.auth-form {
    margin-top: 25px;
}

/* Sdílené formuláře a zprávy */

.form-message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.45;
}

.form-message strong {
    display: block;
    margin-bottom: 4px;
}

.form-message-error {
    border-color: #e5534559;
    background: #e5534512;
    color: #ffb5aa;
}

.form-message-ok {
    border-color: #43d45059;
    background: #43d45012;
    color: #a4edaa;
}

.form-field + .form-field {
    margin-top: 17px;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #34383e;
    border-radius: 5px;
    background: #0d1013;
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

.form-field input,
.form-field select {
    min-height: 46px;
}

.form-field > p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled {
    border-color: #ffffff0a;
    background: #1a2025;
    color: #81909a;
    -webkit-text-fill-color: #81909a;
    cursor: not-allowed;
    opacity: 1;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #748590;
}

.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

input.form-error,
select.form-error,
textarea.form-error {
    border-color: #e55345;
    background-color: #231419;
}

input.form-error:focus-visible,
select.form-error:focus-visible,
textarea.form-error:focus-visible {
    outline-color: #ff8272;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-block: 17px 22px;
    color: #b1bec7;
    font-size: 12px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.remember-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.auth-options .text-button {
    color: #ef775e;
}

.auth-submit {
    width: 100%;
    justify-content: space-between;
    font-size: 15px;
}

.auth-submit span {
    font-size: 20px;
}

.auth-footer {
    margin-top: 24px;
    padding-top: 21px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.auth-footer a {
    margin-left: 4px;
    color: #ef775e;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .auth-content {
        padding: 28px 16px;
    }

    .auth-card {
        padding: 26px 22px;
    }

    .auth-card h1 {
        font-size: 35px;
    }

    .form-field input {
        font-size: 16px;
    }
}

/* Cookies a souhlas s analytikou */

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cookie-settings-link:hover {
    color: var(--text);
}

.cookie-banner {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    left: 24px;
    z-index: 30;
    width: min(620px, calc(100% - 48px));
    max-height: calc(100dvh - 48px);
    padding: 24px;
    overflow-y: auto;
    box-shadow: 0 12px 40px #0009;
}

.cookie-banner[hidden],
.cookie-preferences[hidden] {
    display: none;
}

.cookie-banner h2 {
    margin-bottom: 8px;
    font-size: 21px;
}

.cookie-banner > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.cookie-info-link {
    display: inline-block;
    margin-top: 10px;
    color: #ef775e;
    font-size: 13px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cookie-preferences-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    margin-left: auto;
    padding: 9px 0;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-preferences-toggle:hover {
    color: #ef775e;
}

.cookie-preferences-toggle span {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
}

.cookie-preferences-toggle.is-open span {
    transform: translateY(2px) rotate(225deg);
}

.cookie-preferences {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #0b101380;
}

.cookie-preferences label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.cookie-preferences input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.cookie-preferences small {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
}

.cookie-preferences .button {
    justify-self: end;
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: 16px;
        width: calc(100% - 32px);
        max-height: calc(100dvh - 32px - env(safe-area-inset-bottom));
        padding: 20px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cookie-preferences-toggle {
        margin-left: 0;
    }

    .cookie-preferences small {
        width: 100%;
        margin-left: 24px;
    }
}

/* Nastavení a formulářové panely */

.unsaved-changes {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    display: none;
    align-items: center;
    gap: 24px;
    max-width: calc(100% - 48px);
    padding: 16px 18px;
    box-shadow: 0 8px 32px #0008;
}

.unsaved-changes.is-visible {
    display: flex;
}

.unsaved-changes p {
    font-size: 15px;
}

.unsaved-changes-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

@media (max-width: 600px) {
    .unsaved-changes {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: 16px;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .unsaved-changes-actions .button {
        flex: 1;
    }
}

.settings-content {
    flex: 1;
    width: min(1000px, calc(100% - 64px));
    padding-block: 40px 48px;
}

.settings-heading h1 {
    margin-block: 8px 10px;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1.3px;
}

.settings-heading > p:last-child {
    color: var(--muted);
    font-size: 16px;
}

.settings-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    margin-top: 28px;
}

.settings-navigation {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 5px;
}

.settings-navigation a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 45px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #a7b4bd;
    font-size: 16px;
}

.settings-navigation a span {
    color: #647680;
    font-size: 11px;
}

.settings-navigation a:hover {
    background: #ffffff04;
    color: var(--text);
}

.settings-navigation a.is-active {
    border-color: #ed422837;
    background: #ed42280d;
    color: #f3856e;
}

.settings-navigation a.is-active span {
    color: #d3644f;
}

.panel-stack {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.panel-form {
    padding: 25px;
}

.panel-heading {
    margin-bottom: 22px;
}

.panel-heading h2 {
    font-size: 18px;
}

.panel-heading p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.form-row {
    display: grid;
    gap: 18px;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}

.form-row .form-field + .form-field {
    margin-top: 0;
}

.form-row + .form-row {
    margin-top: 22px;
}

.form-row > .form-field,
.form-avatar-description {
    min-width: 0;
}

.form-row > .form-field:only-child {
    grid-column: 1 / -1;
}

.form-change-row input {
    height: 46px;
    padding-block: 0;
}

.form-change-info {
    display: flex;
    align-items: center;
    align-self: end;
    min-height: 46px;
    min-width: 0;
    text-align: left;
}

.form-change-info > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.form-change-info strong {
    color: var(--text);
}

@media (max-width: 500px) {
    .form-change-info {
        min-height: 0;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid #ffffff0a;
}

.form-actions > span {
    margin-right: auto;
    color: #81929e;
    font-size: 12px;
}

.form-actions .button {
    flex-shrink: 0;
}

.account-delete h3 {
    margin-bottom: 8px;
    font-size: 17px;
}

.account-delete p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.button-danger {
    border-color: #c64d40;
    background: #ad4035;
    color: #fff;
}

.button-danger:hover {
    border-color: #df6457;
    background: #c64d40;
}

@media (max-width: 760px) {
    .settings-content {
        width: calc(100% - 40px);
        padding-block: 28px 36px;
    }

    .settings-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .settings-navigation {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
    }

    .settings-navigation a {
        justify-content: center;
        gap: 7px;
        min-height: 42px;
        padding: 9px 8px;
        border-color: #ffffff0a;
        background: #ffffff03;
        font-size: 13px;
        text-align: center;
    }

    .settings-navigation a:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 500px) {
    .settings-content {
        width: calc(100% - 32px);
    }

    .settings-heading h1 {
        font-size: 36px;
    }

    .panel-form {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 17px;
        grid-auto-flow: row;
    }

    .settings-navigation a span {
        display: none;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .form-actions .button {
        min-height: 42px;
    }
}

.form-upload-content {
    position: relative;
}

.registration-privacy a {
    white-space: nowrap;
    color: #ef8b74;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.registration-privacy a:hover {
    color: #ffc0b1;
}

/* Informace o osobních údajích při registraci */

.registration-privacy {
    margin-top: 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    text-wrap: pretty;
}

/* Sdílený výběr avataru */

.form-avatar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-block: 4px 12px;
}

.form-avatar .form-upload-content {
    flex: 0 0 112px;
    width: 112px;
}

.form-avatar .form-upload-remove,
.form-image .form-upload-remove {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #45515a;
    border-radius: 50%;
    background: #10171b;
    color: var(--text);
    box-shadow: 0 2px 8px #0005;
    font-size: 22px;
    line-height: 1;
}

.form-avatar .form-upload-remove:hover,
.form-avatar .form-upload-remove.act,
.form-image .form-upload-remove:hover,
.form-image .form-upload-remove.act {
    border-color: #c64d40;
    background: #ad4035;
    color: #fff;
}

.form-avatar .form-upload-remove:focus-visible,
.form-image .form-upload-remove:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-image .form-upload-remove {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-color: #ffffff26;
    border-radius: 5px;
    background: #10171be6;
    font-size: 0;
    transition: background .2s, border-color .2s, color .2s;
}

.form-image .form-upload-remove::before,
.form-image .form-upload-remove::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}

.form-image .form-upload-remove::after {
    transform: rotate(-45deg);
}

.form-image .form-upload-remove:hover,
.form-image .form-upload-remove.act {
    border-color: #c64d4070;
    background: #44221fef;
    color: #ff9b8e;
}

.form-avatar-picker {
    position: relative;
    display: block;
    width: 112px;
    height: 112px;
    overflow: hidden;
    border: 2px solid #4d5d67;
    border-radius: 50%;
    background: linear-gradient(135deg, #33444e, #19242b);
    box-shadow: 0 5px 18px #0003;
    transition: border-color .18s, box-shadow .18s;
}

.form-avatar-picker:hover,
.form-avatar-picker:focus-visible {
    border-color: #ed775e;
    box-shadow: 0 0 0 4px #ed775e16;
}

.form-upload-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.form-avatar .form-upload-image {
    object-fit: cover;
}

.form-avatar-pending .form-avatar-picker {
    border-color: #739c79;
}

.form-avatar-description strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.form-avatar-description p {
    margin-top: 5px;
    color: #bdc9d1;
    font-size: 14px;
    line-height: 1.6;
}

.form-avatar-description small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 500px) {
    .form-avatar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.list-reset {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Přihlášený uživatel a rozbalovací nabídka účtu */

.header-admin {
    margin-right: 12px;
}

.header-account,
.account-menu {
    min-width: 0;
    max-width: 100%;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    list-style: none;
    cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary::after {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin: -3px 4px 0;
    border-right: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
    transform: rotate(45deg);
}

.account-menu[open] summary::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.account-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.account-nickname {
    min-width: 0;
    max-width: 160px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: 190px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 30px #0005;
}

.account-dropdown a {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.account-dropdown a:hover,
.account-dropdown a:focus-visible {
    background: #ffffff08;
    color: var(--text);
}

.account-dropdown .account-logout {
    color: #ef775e;
}

@media (max-width: 600px) {
    .account-nickname {
        max-width: 84px;
        font-size: 14px;
    }
}

.header-topbar-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px 14px;
    min-width: 0;
    margin-left: auto;
}

.header-topbar-controls .header-actions {
    margin-left: 0;
}

@media (max-width: 1000px) {
    .header-topbar-controls {
        flex: 1;
        padding-block: 9px;
    }
}

@media (max-width: 600px) {
    .header-topbar-controls {
        gap: 6px 8px;
        margin-left: 12px;
    }
}

@media (max-width: 480px) {
    .header-topbar-controls {
        margin-left: 8px;
    }

    .header-account {
        align-items: center;
        gap: 8px;
    }

    .header-admin {
        flex-shrink: 0;
        margin-right: 0;
    }

    .account-menu summary {
        min-height: 40px;
        gap: 6px;
    }

    .account-nickname {
        display: none;
    }
}

.form-field textarea {
    display: block;
    line-height: 1.5;
    resize: vertical;
}

/* Homepage — servery a komunita */

.home-server-grid,
.home-community-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-server-grid {
    margin-top: 18px;
}

.home-servers {
    grid-column: span 2;
}

.home-server-grid > .panel,
.home-community-grid > .panel {
    min-width: 0;
    padding: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.panel-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    line-height: 1.25;
}

.panel-header a,
.panel-header > span {
    color: var(--muted);
    font-size: 11px;
}

.panel-header a:hover {
    color: var(--text);
}

.home-server-list {
    display: grid;
    gap: 8px;
}

.home-server-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr) 94px 94px;
    align-items: center;
    gap: 14px;
    padding: 17px 10px;
    border: 1px solid #ffffff06;
    border-radius: 4px;
    background:
    radial-gradient(ellipse at 0% 50%, #858a910d, transparent 70%),
    repeating-linear-gradient(118deg, #ffffff02 0, #ffffff02 1px, transparent 1px, transparent 5px),
    linear-gradient(110deg, #1c2025b8, #15181cbd);
}

.home-server-name {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.home-server-name .status-dot {
    flex-shrink: 0;
    margin-top: 6px;
}

.home-server-name h3 {
    font-size: 18px;
    line-height: 1.3;
}

.home-server-name p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.home-server-map {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-server-map img {
    flex-shrink: 0;
    width: 68px;
    height: 64px;
    border-radius: 5px;
    object-fit: cover;
}

.home-server-map strong {
    font-size: 12px;
    font-weight: 400;
}

.home-server-map small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.home-server-population > strong {
    font-size: 19px;
}

.home-server-population > strong > span {
    color: var(--muted);
    font-weight: 400;
}

.home-server-slots {
    overflow: hidden;
    height: 8px;
    margin: 5px 0 7px;
    background: repeating-linear-gradient(to right, #26333c 0, #26333c 8px, transparent 8px, transparent 11px);
}

.home-server-slots > span {
    display: block;
    width: var(--filled);
    height: 100%;
    background: repeating-linear-gradient(to right, #43c753 0, #43c753 8px, transparent 8px, transparent 11px);
}

.home-server-population > small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}

.home-server-population .icon {
    width: 12px;
    height: 12px;
}

.home-server-actions {
    display: grid;
    gap: 5px;
}

.home-server-actions .button {
    min-height: 31px;
    padding: 7px 10px;
    font-size: 12px;
}

.home-playtime > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.home-playtime-chart {
    width: auto;
    height: 148px;
    margin: 26px 6px 8px;
}

.home-playtime-chart.is-empty,
.server-detail-chart.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.home-community-grid {
    margin-top: 16px;
}

.home-community-grid .panel-header h2 {
    font-size: 21px;
}

.home-community-grid .avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    object-fit: cover;
}

.home-activity-list li {
    display: grid;
    grid-template-columns: 34px 20px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #ffffff08;
}

.home-activity-list > li > .icon {
    width: 20px;
    height: 20px;
}

.home-activity-list p {
    font-size: 14px;
    line-height: 1.5;
    color: #b8c4cd;
}

.home-activity-list strong {
    color: var(--text);
    font-weight: 400;
}

.home-activity-list .is-system strong {
    color: var(--accent);
}

.home-activity-list a:hover {
    color: var(--accent);
}

.home-activity-list small {
    display: block;
    margin-top: 3px;
    color: #82929e;
    font-size: 12px;
}

.home-community-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.home-community-stats > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border-radius: 6px;
    background: #ffffff03;
}

.home-community-stats .icon {
    width: 26px;
    height: 26px;
}

.home-community-stats .status-dot {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    margin-inline: 6px 7px;
    box-shadow: 0 0 12px #43d45033;
}

.home-community-stats strong {
    display: block;
    font-size: 23px;
    line-height: 1.2;
}

.home-community-stats p span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.home-discord {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 8px 14px;
    padding: 16px;
    border: 1px solid #29323d;
    border-radius: 6px;
    background: linear-gradient(110deg, #3445669c, #0b141ee0), url("../img/battle.jpg") center / cover;
    background-clip: padding-box;
}

.home-discord-logo {
    grid-row: 1 / span 2;
    border-radius: 10px;
}

.home-discord h3 {
    margin-bottom: 5px;
    font-size: 15px;
}

.home-discord p {
    color: #b4c2d0;
    font-size: 11px;
    line-height: 1.5;
}

.home-discord > a {
    grid-column: 2;
    justify-self: end;
}

.home-discord-button {
    min-height: 34px;
    min-width: 118px;
    padding: 8px 14px;
    border-color: #687cff;
    background: linear-gradient(#586fff, #3d54e8);
    color: #fff;
    font-size: 12px;
}

.home-discord-button:hover {
    background: #657aff;
}

.home-player-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 57px;
    padding: 11px 0;
    border-top: 1px solid #ffffff08;
}

.home-player-rank {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: #ffffff04;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.home-player-list li:first-child .home-player-rank {
    color: #f3c969;
}

.home-player-list li:nth-child(2) .home-player-rank {
    color: #c5cfd7;
}

.home-player-list li:nth-child(3) .home-player-rank {
    color: #d4936e;
}

.home-player-list li:nth-child(4) .home-player-rank {
    color: #90aef8;
}

.home-player-list li:nth-child(5) .home-player-rank {
    color: #7bcab8;
}

.home-player-list li:nth-child(6) .home-player-rank {
    color: #b59ed8;
}

.home-player-list li > span:last-child {
    color: var(--muted);
    font-size: 12px;
}

.home-ranking-link {
    display: block;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #ffffff08;
    color: var(--muted);
    font-size: 11px;
}

.home-ranking-link:hover {
    color: var(--text);
}

.home-battle-banner {
    margin-top: 26px;
    border-block: 1px solid #ffffff0c;
    background: linear-gradient(90deg, #0b101398, #0b101336, #0b1013a1), url("../img/battle.jpg") center 48% / cover;
}

.home-battle-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 168px;
    padding-block: 26px;
}

.home-battle-inner h2 {
    margin-bottom: 6px;
    font-size: 33px;
}

.home-battle-inner p {
    color: #c1c9cf;
    font-size: 14px;
    line-height: 1.55;
}

.home-battle-inner > div:last-child {
    text-align: center;
}

.home-battle-inner small {
    display: block;
    margin-top: 9px;
    color: #b8c4cd;
    font-size: 11px;
}

@media (max-width: 1150px) {
    .home-server-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 76px;
    }

    .home-server-actions {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
    }

    .home-server-actions .button {
        min-width: 90px;
    }

    .panel-header h2 {
        font-size: 21px;
    }
}

@media (max-width: 1000px) {
    .home-server-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-servers {
        grid-column: auto;
    }

    .home-server-row {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr) 94px 94px;
    }

    .home-server-actions {
        grid-column: auto;
        display: grid;
    }

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

    .home-players {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .home-server-grid > .panel,
    .home-community-grid > .panel {
        padding: 16px;
    }

    .home-servers .panel-header {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .home-servers .panel-header h2 {
        font-size: 20px;
    }

    .home-servers .panel-header > a {
        font-size: 11px;
    }

    .home-server-row {
        grid-template-columns: minmax(0, 1fr) 84px;
        grid-template-areas: "name name" "map population" "actions actions";
        gap: 14px 12px;
        padding: 14px;
        border-color: #ffffff0d;
        border-radius: 6px;
    }

    .home-server-name {
        grid-area: name;
        padding-bottom: 12px;
        border-bottom: 1px solid #ffffff0a;
    }

    .home-server-name h3 {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .home-server-population {
        grid-area: population;
    }

    .home-server-map {
        grid-area: map;
    }

    .home-server-actions {
        grid-area: actions;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-server-actions .button {
        min-width: 0;
        min-height: 40px;
        font-size: 13px;
    }

    .home-server-map img {
        width: 64px;
        height: 44px;
    }

    .home-server-map strong {
        overflow-wrap: anywhere;
    }

    .home-server-map small {
        font-size: 10px;
    }

    .home-community-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-players {
        grid-column: auto;
    }

    .home-battle-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-battle-inner h2 {
        font-size: 29px;
    }
}

/* Homepage — připravované události */

.event-placeholder {
    position: relative;
    min-height: 225px;
    border-color: #303840;
}

.event-placeholder:hover {
    border-color: #303840;
}

.event-placeholder-preview {
    height: 100%;
    filter: blur(6px);
    transform: scale(1.05);
    opacity: .7;
    pointer-events: none;
    user-select: none;
}

.event-placeholder-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, #0c101637, #0c101685);
    text-align: center;
}

.event-placeholder-overlay h3 {
    margin-bottom: 8px;
    color: #f0f2f5;
    font-size: 25px;
    text-shadow: 0 2px 12px #0008;
}

.event-placeholder-overlay p {
    color: #bdc7d0;
    font-size: 12px;
    line-height: 1.6;
    text-shadow: 0 1px 8px #0008;
}

.form-avatar-picker {
    cursor: pointer;
}

/* Detaily serverů a eventů */
.detail-page {
    padding-block: 26px 40px;
}

.detail-back {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
}

.detail-back:hover {
    color: #fff;
}

.detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #354047;
    border-radius: 8px 8px 0 0;
    background: #11191e;
}

.detail-hero-art {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -2;
    width: 68%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(90deg, transparent, #000 24%);
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #10171b 15%, #10171bf2 40%, #10171b70 67%, #10171b12), linear-gradient(0deg, #10171b9c, transparent 55%);
    content: "";
}

.detail-hero-content {
    position: relative;
    width: 72%;
    padding: 34px 38px 38px;
}

.detail-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 9px;
    border: 1px solid #43d45038;
    border-radius: 4px;
    background: #111d18cc;
    color: #91d68b;
    font-size: 12px;
}

.detail-status.is-offline {
    border-color: #ef444440;
    background: #281819cc;
    color: #ef8585;
}

.detail-hero h1 {
    max-width: 700px;
    margin: 0 0 14px;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1px;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.detail-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
    margin-top: 25px;
}

.detail-hero-actions .button {
    gap: 22px;
    padding: 12px 21px;
    font-size: 15px;
}

.detail-address {
    display: grid;
    gap: 4px;
}

.detail-address > span {
    color: #8e9aa4;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.detail-address code {
    color: #dce1e5;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
    align-items: start;
    gap: 22px;
    margin-top: 24px;
}

.detail-column {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.detail-column > .panel {
    min-width: 0;
    padding: 22px;
}

.detail-page .panel-header h2,
.detail-guide h2 {
    font-size: 21px;
}

.detail-page .panel-header > span,
.detail-muted,
.server-detail-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.server-detail-chart {
    height: 188px;
    margin-top: 18px;
}

.server-detail-chart-summary {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.server-detail-chart-summary i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.server-comments .panel-header {
    margin-bottom: 16px;
}

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

.server-comment {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.server-comment > .avatar {
    width: 28px;
    height: 28px;
    border-width: 1px;
}

.server-comment + .server-comment {
    padding-top: 14px;
    border-top: 1px solid #ffffff0a;
}

.server-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 12px;
    margin-bottom: 3px;
    font-size: 13px;
}

.server-comment-header time {
    margin-left: auto;
    color: var(--muted);
    font-size: 11px;
}

.server-comment p {
    margin: 0;
    color: #c7cfd5;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.server-comment-form,
.server-comment-login {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ffffff0a;
}

.server-comment-form textarea {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.server-comment-form .form-actions {
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
}

.server-comment-login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.server-comment-login p {
    max-width: 440px;
    color: var(--muted);
    font-size: 13px;
}

.server-comment-login .button {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
}

.detail-guide summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.detail-guide ol {
    margin: 16px 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.detail-guide code {
    display: block;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #0b1013;
    color: #d5dee5;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.detail-guide .detail-steps {
    display: grid;
    gap: 18px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
}

.detail-steps li {
    position: relative;
    padding-left: 34px;
    counter-increment: steps;
}

.detail-steps li::before {
    position: absolute;
    left: 0;
    top: 2px;
    color: #da6c56;
    font-size: 12px;
    content: "0" counter(steps);
}

.detail-steps strong,
.detail-steps span {
    display: block;
}

.detail-steps strong {
    color: #e0e5e9;
    font-size: 14px;
}

.detail-community {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 26px;
    padding: 25px 28px;
    border: 1px solid #424658;
    border-radius: 7px;
    background: radial-gradient(ellipse at 10% 50%, #53589326, transparent 70%), #12171e;
}

.detail-community h2 {
    margin-bottom: 3px;
    font-size: 24px;
}

.detail-community p {
    color: #a2aebc;
    font-size: 14px;
}

.detail-community .button {
    margin-left: auto;
}

/* Samostatná karta a rozložení detailu serveru */
.server-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.server-card {
    overflow: hidden;
}

.server-card-heading,
.server-card-body {
    padding: 24px;
}

.server-card h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.server-card-map {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.server-card-body {
    padding-top: 0;
}

.server-card-stats dt {
    color: var(--muted);
    font-size: 12px;
}

.server-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.server-card-stats dd {
    margin: 5px 0 0;
    font-size: 17px;
    font-weight: 600;
}

.server-card-stats small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.server-card-connect {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 26px;
}

.server-card-connect .button {
    gap: 18px;
}

@media (max-width: 900px) {
    .server-page-layout {
        grid-template-columns: minmax(0, 310px) minmax(0, 1fr);
        gap: 16px;
    }

    .server-card-heading,
    .server-card-body {
        padding: 20px;
    }

    .server-card-body {
        padding-top: 0;
    }
}

@media (max-width: 700px) {
    .server-page-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

/* Prvky specifické pro event */
.detail-hero-event {
    display: flex;
    align-items: flex-end;
    min-height: 430px;
    border-radius: 8px;
}

.detail-hero-event::after {
    display: none;
}

.detail-hero-event .detail-hero-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: none;
}

.detail-hero-event .detail-hero-content {
    width: min(370px, calc(100% - 48px));
    margin: 24px;
    padding: 24px;
    border: 1px solid #ffffff2b;
    border-radius: 6px;
    background: #0d151be8;
    box-shadow: 0 12px 32px #0004;
    backdrop-filter: blur(6px);
}

.detail-hero-event h1 {
    font-size: 30px;
}

.event-detail-date {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 17px;
    font-weight: 700;
}

.detail-hero-event .event-detail-date {
    margin-top: 12px;
    font-size: 15px;
}

.event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin: 20px 0 0;
}

.event-hero-meta dt {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
}

.event-hero-meta dd {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.detail-hero-event .event-hero-meta {
    gap: 12px 24px;
    margin-top: 16px;
}

.detail-hero-event .event-detail-registration {
    margin-top: 20px;
}

.event-detail-description {
    color: #c7d0d7;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.event-maps {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #ffffff0a;
}

.event-maps h3 {
    margin-bottom: 12px;
    font-size: 15px;
}

.event-map-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.event-map-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #ffffff0a;
    border-radius: 5px;
    background: #ffffff03;
}

.event-map-list img {
    flex-shrink: 0;
    width: 64px;
    height: 44px;
    border-radius: 3px;
    object-fit: cover;
}

.event-map-list strong,
.event-map-list small {
    display: block;
    overflow-wrap: anywhere;
}

.event-map-list strong {
    font-size: 14px;
}

.event-map-list small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.event-detail-registration {
    margin-top: 25px;
}

.event-detail-registration p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.event-detail-registration .detail-hero-actions {
    margin-top: 0;
}

.event-registration-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.event-registration-actions .button-small {
    padding: 9px 14px;
    font-size: 13px;
}

.event-detail-players {
    display: grid;
    gap: 12px;
}

.event-detail-players li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
        gap: 16px;
    }

    .detail-hero-content {
        width: 82%;
        padding: 28px;
    }
}

@media (max-width: 700px) {
    .detail-hero-content {
        width: 100%;
        padding: 28px 22px;
    }

    .detail-hero-art {
        width: 100%;
        mask-image: none;
    }

    .detail-hero::after {
        background: linear-gradient(90deg, #10171bf2, #10171b85), linear-gradient(0deg, #10171be6, transparent);
    }

    .detail-hero-event {
        min-height: 490px;
        padding-top: 150px;
    }

    .detail-hero-event .detail-hero-art {
        object-position: 65% center;
    }

    .detail-hero-event .detail-hero-content {
        width: calc(100% - 32px);
        margin: 16px;
        padding: 20px;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-detail .detail-layout > div.detail-column {
        display: contents;
    }

    .event-detail #event-about {
        grid-row: 1;
    }

    .event-detail .detail-layout > aside {
        grid-row: 2;
    }

    .event-detail .server-comments {
        grid-row: 3;
    }

    .detail-column > .panel {
        padding: 20px;
    }

    .detail-community {
        padding: 22px;
        gap: 14px;
    }

    .detail-community .button {
        margin: 4px 0 0;
    }
}

/* Ochrana osobních údajů */
.privacy-page {
    max-width: 920px;
    padding-top: 32px;
    padding-bottom: 56px;
}

.privacy-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
}

.privacy-back:hover {
    color: var(--text);
}

.privacy-header {
    margin-bottom: 28px;
}

.privacy-header h1 {
    margin: 8px 0 16px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
}

.privacy-header > p:not(.eyebrow) {
    color: var(--muted);
}

.privacy-content {
    padding: clamp(20px, 4vw, 36px);
    overflow-wrap: anywhere;
}

.privacy-content section + section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.privacy-content h2 {
    margin-bottom: 16px;
    font-size: 23px;
}

.privacy-content p + p,
.privacy-content ul + p,
.privacy-content dl + p {
    margin-top: 14px;
}

.privacy-content ul {
    margin: 14px 0;
    padding-left: 22px;
}

.privacy-content li + li {
    margin-top: 10px;
}

.privacy-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Administrace */

.admin-content {
    flex: 1;
    padding-block: 36px 48px;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.admin-tabs a {
    padding: 11px 18px;
    border-bottom: 2px solid transparent;
    border-radius: 5px 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.admin-tabs a:hover {
    background: #ffffff04;
    color: var(--text);
}

.admin-tabs a.is-active {
    border-bottom-color: var(--accent);
    color: var(--text);
}

.admin-page-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 26px;
    line-height: 1.2;
}

.admin-page-header {
    display: flex;
    height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-page-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    margin-left: auto;
}

.admin-page-actions .button {
    min-height: 38px;
    padding: 9px 14px;
    gap: 8px;
    font-size: 13px;
}

.admin-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.admin-edit-layout > * {
    min-width: 0;
}

.form-image-picker {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--background);
    color: var(--text);
    cursor: pointer;
}

.form-image-picker img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

.form-image-caption {
    position: absolute;
    inset: auto 0 0;
    padding: 10px;
    background: #0b1013cc;
    font-size: 13px;
    text-align: center;
}

.form-image-picker:hover,
.form-image-picker:focus-visible {
    border-color: var(--accent);
}

.form-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: 16 / 9;
    padding: 20px;
    text-align: center;
}

.form-image-plus {
    color: var(--accent);
    font-size: 32px;
    line-height: 1;
}

.form-image-placeholder strong {
    font-size: 14px;
}

.form-image-placeholder small {
    color: var(--muted);
    font-size: 12px;
}

.admin-map-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 18px;
    border-radius: 5px;
}

.admin-live-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #ffffff0a;
}

.admin-live-data dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
}

.admin-live-data dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 700;
}

.admin-content .panel-header h2 {
    gap: 8px;
    font-size: 16px;
    letter-spacing: 0;
}

.admin-content .panel-header h2 .icon {
    width: 18px;
    height: 18px;
}

.admin-list-panel .button {
    flex-shrink: 0;
    min-height: 31px;
    padding: 7px 10px;
    font-size: 12px;
}

.admin-list-scroll {
    overflow-x: auto;
}

.admin-management-table .button-edit {
    gap: 7px;
    border-color: #39464e;
    background: #1a242b;
    color: #d6e0e7;
}

.admin-management-table .button-edit .icon {
    width: 15px;
    height: 15px;
}

.admin-management-table .button-edit:hover {
    border-color: #b35b40;
    background: #30221d;
    color: #ffb49b;
    transform: none;
}

.admin-management-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.admin-management-table th {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.admin-management-table td {
    padding: 12px;
    border-top: 1px solid #ffffff0a;
    white-space: nowrap;
}

.admin-management-table tbody tr:hover {
    background: #ffffff03;
}

.admin-management-table th:first-child,
.admin-management-table td:first-child {
    padding-left: 0;
}

.admin-management-table th:last-child,
.admin-management-table td:last-child {
    padding-right: 0;
    text-align: right;
}

.admin-management-table td:nth-child(2),
.admin-management-table td:nth-child(3) {
    color: var(--muted);
}

.admin-item-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-item-name img {
    flex-shrink: 0;
    width: 64px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 4px;
    object-fit: cover;
}

@media (max-width: 1000px) {

    .admin-edit-layout {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {
    .admin-content {
        width: calc(100% - 32px);
        padding-block: 24px 32px;
    }

}
