@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    color-scheme: dark;
    --bg: #080d0b;
    --panel: #101713;
    --panel2: #172019;
    --panel-soft: #131b16;
    --panel-raised: #1a251e;
    --line: #2b382f;
    --line-soft: rgba(255, 255, 255, .09);
    --text: #f4f5ef;
    --muted: #aeb8af;
    --accent: #d9ff43;
    --accent-soft: rgba(217, 255, 67, .1);
    --accent-line: rgba(217, 255, 67, .35);
    --ok: #7cdb9a;
    --warn: #f3cb69;
    --danger: #ff7c78;
    --purple: #d8c4ff;
    --blue: #d9ff43;
    --gold: #f3cb69;
    --green: #7cdb9a;
    --red: #ff7c78;
    --vd-bg: #080d0b;
    --vd-side: #0d1410;
    --vd-surface: #111a14;
    --vd-raised: #18231b;
    --vd-line: #29372e;
    --vd-text: #f4f5ef;
    --vd-muted: #aeb8af;
    --vd-accent: #d9ff43;
    --vd-accent-bg: rgba(217, 255, 67, .1);
    --vd-green: #7cdb9a;
    --vd-green-bg: rgba(124, 219, 154, .11);
    --vd-amber: #f3cb69;
    --vd-amber-bg: rgba(243, 203, 105, .11);
}

html { background: #080d0b; }

body {
    background: #080d0b;
    color: #f4f5ef;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .vd-brand, .pp-brand, .play15-login-brand {
    font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
}

h1 { letter-spacing: -.035em; }
a, button, input, select, textarea { font-family: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #d9ff43;
    outline-offset: 3px;
}

input, select, textarea {
    border-color: #2b382f;
    background: #172019;
    color: #f4f5ef;
}

input:focus, select:focus, textarea:focus {
    border-color: #d9ff43;
    box-shadow: 0 0 0 3px rgba(217, 255, 67, .1);
}

button.primary, .button.primary, .vd-btn.primary {
    background: #d9ff43;
    border-color: #d9ff43;
    color: #080d0b;
}

button.primary:hover, .button.primary:hover, .vd-btn.primary:hover {
    background: #ebff8f;
    border-color: #ebff8f;
    color: #080d0b;
}

.panel, .card, .box, .metric, .vd-card {
    border-color: #29372e;
    box-shadow: 0 18px 52px rgba(0, 0, 0, .18);
}

.play15-brand { text-decoration: none; }
.play15-brand strong { display: block; color: #f4f5ef; font-size: 22px; font-style: normal; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.play15-brand strong span { display: inline; color: #d9ff43; font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0; }
.play15-brand small { display: block; color: #f4f5ef; font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .02em; margin-top: 8px; overflow-wrap: anywhere; }
.play15-brand em { display: block; color: #879189; font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .14em; margin-top: 3px; }

.vd-sidebar {
    background-image: linear-gradient(180deg, rgba(217, 255, 67, .035), transparent 32%);
}
.vd-skip { top: 0; transform: translateY(-140%); }
.vd-skip:focus { top: 10px; transform: none; }

.vd-nav a[aria-current="page"] { color: #d9ff43; box-shadow: inset 3px 0 #d9ff43; }
.vd-avatar { border: 1px solid rgba(217, 255, 67, .18); }
.vd-pagehead h1 { font-size: clamp(28px, 2.4vw, 38px); }
.vd-hero { border-color: #35452b; background: linear-gradient(120deg, rgba(217, 255, 67, .085), #111a14 64%); }
.vd-hero-aside { border-color: #35452b; }
.vd-step.current .vd-step-num { border-color: rgba(217, 255, 67, .38); }

#player-profile {
    --pp-bg: #080d0b;
    --pp-surface: #101713;
    --pp-raised: #172019;
    --pp-line: #29372e;
    --pp-text: #f4f5ef;
    --pp-muted: #aeb8af;
    --pp-accent: #d9ff43;
    --pp-good: #7cdb9a;
    background: var(--pp-bg);
    font-family: "Manrope", system-ui, sans-serif;
    border-radius: 0;
}

#player-profile .pp-top { background: #0d1410; }
#player-profile .pp-brand { display: block; }
#player-profile .pp-brand strong { font-size: 21px; }
#player-profile .pp-brand small { margin-top: 5px; color: #aeb8af; font-size: 10px; }
#player-profile .pp-avatar { background: #1a251e; color: #d9ff43; border-color: #35452b; }
#player-profile .pp-tag { border-color: #46552c; color: #d9ff43; background: rgba(217, 255, 67, .08); }
#player-profile .pp-goal { background: rgba(217, 255, 67, .055); border-color: #46552c; }
#player-profile .pp-goal-icon { background: rgba(217, 255, 67, .1); }
#player-profile .pp-table .pp-me { background: rgba(217, 255, 67, .055); }

.play15-inline-brand {
    color: #f4f5ef;
    font: 800 14px/1 "Space Grotesk", sans-serif;
    letter-spacing: -.02em;
}
.play15-inline-brand strong { color: #d9ff43; }

/* Turnyrų modulis */
.tt-shell { max-width: 1520px; }
.tt-top { border-color: #29372e; }
.tt-brand { display: inline-flex; align-items: baseline; gap: 9px; font-family: "Space Grotesk", sans-serif; }
.tt-brand strong { color: #f4f5ef; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.tt-brand strong .tt-brand-accent { display: inline; margin: 0; color: #d9ff43; font-size: inherit; letter-spacing: inherit; }
.tt-brand small { color: #aeb8af; font: 800 10px/1.2 "Manrope", sans-serif; letter-spacing: .14em; }
.tt-brand--tournaments .tt-brand-mark { border-color: rgba(217, 255, 67, .28); background: rgba(217, 255, 67, .075); box-shadow: 0 8px 26px rgba(217, 255, 67, .07); }
.tt-brand--tournaments .tt-brand-copy small { color: #aeb8af; }
.tt-panel, .tt-card { border-color: #29372e; }
.tt-step.active, .tt-preview { background: rgba(217, 255, 67, .065); }
.tt-button.primary { background: #d9ff43; border-color: #d9ff43; color: #080d0b; }

/* Viešas turnyro puslapis išlaiko šviesų turinį, bet naudoja Play15 identitetą. */
.tv-hero { background: radial-gradient(circle at 76% 6%, #344a21 0, #142016 38%, #080d0b 78%); }
.tv-hero::before { background: linear-gradient(120deg, transparent 70%, rgba(217,255,67,.09) 70.2%, transparent 71%), linear-gradient(115deg, transparent 76%, rgba(217,255,67,.07) 76.2%, transparent 77%); }
.tv-brand-icon { border-color: rgba(217, 255, 67, .34); background: rgba(217, 255, 67, .08); }
.tv-brand small, .tv-kicker { color: #d9ff43; }
.tv-tabs { background: #101713; }
.tv-tabs a.is-active { border-color: #d9ff43; }
.tv-event-tile.is-active { background: #d9ff43; color: #080d0b; }

/* Prisijungimo ekranas */
body:has(.login) {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 17% 14%, rgba(217, 255, 67, .14), transparent 27rem),
        radial-gradient(circle at 88% 84%, rgba(217, 255, 67, .07), transparent 30rem),
        #080d0b;
}

body:has(.login)::before {
    content: "15";
    position: fixed;
    right: -2vw;
    bottom: -17vh;
    color: rgba(217, 255, 67, .035);
    font: 800 min(62vw, 720px)/1 "Space Grotesk", sans-serif;
    letter-spacing: -.11em;
    pointer-events: none;
}

.login-back {
    position: fixed;
    top: 28px;
    left: 32px;
    z-index: 2;
    color: #aeb8af;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.login-back:hover { color: #d9ff43; }

.login {
    position: relative;
    z-index: 1;
    max-width: 500px;
    border-color: rgba(255, 255, 255, .12);
    border-radius: 26px;
    background: rgba(16, 23, 19, .94);
    box-shadow: 0 38px 100px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
}

.login .head { padding: 34px 34px 26px; background: transparent; border-color: rgba(255, 255, 255, .09); }
.play15-login-brand { display: inline-block; color: #f4f5ef; font-size: 31px; font-weight: 800; letter-spacing: -.055em; line-height: 1; text-decoration: none; }
.play15-login-brand span { color: #d9ff43; }
.login-kicker { margin-top: 10px; color: #d9ff43; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.login .head h1 { margin-top: 34px; font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
.login .muted { margin-top: 10px; color: #aeb8af; line-height: 1.6; }
.login form { padding: 28px 34px 34px; gap: 17px; }
.login label { gap: 8px; color: #d6ddd7; font-size: 13px; font-weight: 700; }
.login input { min-height: 52px; padding: 13px 15px; border-radius: 12px; }
.login button { min-height: 54px; margin-top: 4px; padding: 13px 17px; border: 1px solid #d9ff43; border-radius: 12px; background: #d9ff43; color: #080d0b; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.login button:hover { background: #ebff8f; border-color: #ebff8f; }

.vd-sport-dialog {
    width: min(700px, calc(100% - 28px));
    max-width: none;
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: 28px;
    overflow-y: auto;
    border: 1px solid #526a3a;
    border-radius: 22px;
    background: radial-gradient(circle at 100% 0, rgba(217,255,67,.12), transparent 42%), #111a14;
    color: #f4f5ef;
    box-shadow: 0 36px 120px rgba(0,0,0,.6);
}
.vd-sport-dialog::backdrop { background: rgba(2,8,5,.74); backdrop-filter: blur(9px); }
.vd-sport-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vd-sport-dialog-head > span { color: #d9ff43; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.vd-sport-dialog-head button { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; padding: 0; border: 1px solid #40513c; border-radius: 10px; background: #1b281d; color: #f4f5ef; font-size: 25px; line-height: 1; }
.vd-sport-dialog-head button:hover { border-color: #d9ff43; color: #d9ff43; }
.vd-sport-dialog h2 { margin: 15px 0 5px; font: 700 clamp(27px, 4vw, 39px)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.vd-sport-dialog h2:focus { outline: none; }
.vd-sport-dialog > p { margin: 0 0 24px; color: #aeb8af; font-size: 14px; }
.vd-sport-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vd-sport-option { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #344637; border-radius: 15px; background: #18231b; color: #f4f5ef; text-decoration: none; transition: border-color .18s, background .18s, transform .18s; }
.vd-sport-option[href]:hover, .vd-sport-option[href]:focus-visible { border-color: #d9ff43; background: #223021; color: #f4f5ef; transform: translateY(-2px); }
.vd-sport-option-media { position: relative; display: block; width: 100%; height: 132px; overflow: hidden; background: #0d1810; }
.vd-sport-option-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,23,15,.28), transparent 58%); pointer-events: none; }
.vd-sport-option-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; filter: saturate(.92) brightness(.83); transition: transform .25s, filter .25s; }
.vd-sport-option[href]:hover .vd-sport-option-media img, .vd-sport-option[href]:focus-visible .vd-sport-option-media img { transform: scale(1.04); filter: saturate(1) brightness(.96); }
.vd-sport-option-body { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 16px 18px 18px; }
.vd-sport-option-copy { display: grid; gap: 4px; min-width: 0; }
.vd-sport-option-copy small { color: #d9ff43; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.vd-sport-option-copy strong { font: 700 21px/1.15 "Space Grotesk", sans-serif; }
.vd-sport-option-copy > span { color: #aeb8af; font-size: 12px; line-height: 1.45; }
.vd-sport-option-arrow { margin-left: auto; color: #d9ff43; font-size: 18px; line-height: 1; }
.vd-sport-option.is-disabled { border-color: #344039; background: #151d18; cursor: default; }
.vd-sport-option.is-disabled .vd-sport-option-media img { filter: grayscale(.65) saturate(.5) brightness(.58); }
.vd-sport-option.is-disabled .vd-sport-option-copy small { color: #9ba993; }
.vd-sport-option.is-disabled .vd-sport-option-copy strong { color: #d4dbd2; }
.vd-sport-option-unavailable { flex: 0 0 auto; margin-left: auto; padding: 4px 7px; border: 1px solid #52614f; border-radius: 6px; color: #abb8a7; font-size: 10px; font-weight: 750; }

@media (max-width: 600px) {
    .vd-sport-dialog { padding: 20px; border-radius: 18px; }
    .vd-sport-options { grid-template-columns: 1fr; }
    .vd-sport-option-media { height: 105px; }
}

@media (min-width: 1500px) {
    body { font-size: 16px; }
    .vd-layout { grid-template-columns: 248px minmax(0, 1fr); }
    .vd-main { max-width: 1520px; padding: 36px 48px 52px; }
    .vd-nav a { font-size: 15px; }
    .vd-sub, .vd-training-name { font-size: 15px; }
    #player-profile { font-size: 15px; }
    #player-profile .pp-main { max-width: 1480px; margin: 0 auto; padding: 36px 42px 30px; }
}

@media (max-width: 700px) {
    .play15-brand small { display: inline; margin: 0 0 0 8px; }
    .play15-brand em { display: none; }
    .login-back { top: 18px; left: 20px; }
    .login .head { padding: 30px 24px 23px; }
    .login form { padding: 24px; }
}

/* Play15 Impersonation Banner */
.p15-impersonation-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 24px;
    background: #111a14;
    border-bottom: 2px solid #d9ff43;
    color: #f4f5ef;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 13px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.p15-impersonation-bar.p15-impersonation-club {
    background: #0d1712;
    border-bottom: 2px solid #d9ff43;
}
.p15-impersonation-bar.p15-impersonation-member {
    background: #1a160d;
    border-bottom-color: #fbbf24;
}
.p15-impersonation-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.p15-impersonation-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: rgba(217, 255, 67, 0.15);
    border: 1px solid rgba(217, 255, 67, 0.4);
    border-radius: 6px;
    color: #d9ff43;
    font: 800 10px/1 "Space Grotesk", sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}
.p15-impersonation-badge.club {
    background: rgba(217, 255, 67, 0.18);
    border-color: rgba(217, 255, 67, 0.5);
    color: #d9ff43;
}
.p15-impersonation-badge.member {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}
.p15-impersonation-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.p15-impersonation-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #d9ff43;
    color: #080d0b;
    font: 750 12px/1 "Manrope", sans-serif;
    text-decoration: none;
    transition: transform 0.15s, background-color 0.15s;
    cursor: pointer;
}
.p15-impersonation-btn:hover {
    background: #e5ff70;
    transform: translateY(-1px);
}
.p15-impersonation-btn.secondary {
    background: #1e2a22;
    color: #d9ff43;
    border: 1px solid #35452b;
}
.p15-impersonation-btn.secondary:hover {
    background: #2a3d30;
    border-color: #d9ff43;
}
.p15-impersonation-btn.danger {
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.35);
}
.p15-impersonation-btn.danger:hover {
    background: rgba(248, 113, 113, 0.25);
    color: #ffffff;
}

/* Administratoriaus sporto turnyrų ir veiksmų elementai */
.adm-sport-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: rgba(200, 255, 0, 0.06);
    border: 1px solid rgba(200, 255, 0, 0.2);
    color: #e2ede6;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 9999px;
    padding: 4px 10px;
    letter-spacing: 0.01em;
}
.adm-sport-pill .adm-sport-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c8ff00;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(200, 255, 0, 0.4);
}
.adm-btn-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 8px;
    background: #131a16;
    border: 1px solid #243329;
    color: #d0ded6;
    text-decoration: none;
    transition: all 0.15s ease;
}
.adm-btn-url:hover {
    border-color: #c8ff00;
    color: #c8ff00;
    background: #18231c;
    transform: translateY(-1px);
}
.adm-btn-url .adm-btn-slug {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
.adm-btn-url .adm-btn-arrow {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.15s ease;
}
.adm-btn-url:hover .adm-btn-arrow {
    transform: translate(1px, -1px);
}
.adm-btn-manage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    padding: 6px 14px;
    border-radius: 8px;
    background: #c8ff00;
    color: #080d0b;
    text-decoration: none;
    border: 1px solid #c8ff00;
    transition: all 0.15s ease;
    cursor: pointer;
}
.adm-btn-manage:hover {
    background: #d9ff43;
    border-color: #d9ff43;
    color: #080d0b;
    box-shadow: 0 2px 10px rgba(200, 255, 0, 0.25);
    transform: translateY(-1px);
}
.adm-btn-manage .adm-btn-arrow {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11px;
    line-height: 1;
    transition: transform 0.15s ease;
}
.adm-btn-manage:hover .adm-btn-arrow {
    transform: translate(1px, -1px);
}

/* ==========================================================================
   Play15 Obsidian Lime · Rankinių rotacijų ir porų keitimo žymos
   ========================================================================== */
.manual-lime-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(200, 255, 0, 0.12);
    border: 1px solid rgba(200, 255, 0, 0.45);
    color: #c8ff00;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.card-manual-active {
    border-color: rgba(200, 255, 0, 0.35) !important;
    background: linear-gradient(135deg, rgba(200, 255, 0, 0.08), rgba(16, 23, 19, 0.7)) !important;
}
.manual-count-value {
    color: #c8ff00 !important;
}
.manual-subtext {
    display: block;
    font-size: 11px;
    color: #aeb8af;
    margin-top: 4px;
}
.pill-manual-rotation {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(200, 255, 0, 0.15);
    border: 1px solid rgba(200, 255, 0, 0.4);
    color: #c8ff00;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pill-manual-match {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(200, 255, 0, 0.15);
    border: 1px solid rgba(200, 255, 0, 0.5);
    color: #c8ff00;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
}
.court-card.is-manually-edited {
    border-color: rgba(200, 255, 0, 0.45) !important;
    box-shadow: 0 0 10px rgba(200, 255, 0, 0.08);
}
.rotation-block.rotation-is-manual {
    border-left: 3px solid #c8ff00;
}
.rotation-block.rotation-is-active {
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(56, 189, 248, 0.04);
}
.badge-active-rotation {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 11px;
    font-weight: 750;
}
.schedule-rotations-grid {
    display: grid;
    gap: 16px;
}
.rotation-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    gap: 12px;
}
.rotation-block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rotation-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.court-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 8px;
}
.court-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.court-badge {
    font-size: 12px;
    font-weight: 700;
    color: #aeb8af;
}
.court-teams {
    display: grid;
    gap: 4px;
    font-size: 14px;
    line-height: 1.35;
}
.team-line {
    font-weight: 600;
    color: var(--text);
}
.vs-line {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


