* {
    box-sizing: border-box;
    text-transform: uppercase;
}

[data-list="bullet"]{
    list-style-type: disc;
}

[data-list="unchecked"]{
    list-style-type: none;

}

[data-list="unchecked"]::before{
    content: "✔️";
    margin-left: -20px;
}

.ql-indent-1{
    padding-left: 20px;
}
.ql-indent-2{
    padding-left: 40px;
}

.ql-indent-3{
    padding-left: 60px;
}

.ql-indent-4{
    padding-left: 80px;
}

.ql-indent-5{
    padding-left: 100px;
}

.ql-indent-6{
    padding-left: 120px;
}

.ql-align-justify{
    text-align: justify;
}

img {
    max-width: 100%;
}

iframe{
    max-width: 100%;
}

body {
    margin: 0;
    font-family: "Press Start 2P", system-ui;
    background-image: url('/assets/img/page_background.png');
    color: #ff8800;
    text-align: center;
}

.background-blur{
    background-color: rgba(0,0,0,0.5);
}

.no-border td{
    border-left: none;
    border-right: none;
}

.big-font td, .big-font th{
    font-size: 13px;
}

.medalist-table{
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("/assets/img/medaliści.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.archive-table{
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("/assets/img/archiwum2.png");
    background-size: cover;
    background-repeat: no-repeat;
}

a {
    text-decoration: none;
    color: #ff8800;
    transition: 0.3s;
}

a:hover {
    color: #fff;
}

header {
    padding: 20px 10px;
}

.logo {
    white-space: pre;
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
}

.subtitle {
    margin-top: 10px;
    font-size: 12px;
}

nav {
    border-top: 4px double #ff8800;
    border-bottom: 4px double #ff8800;
    background-color: #1a1a1a;
    padding: 5px 0;
    position: relative;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

nav li {
    position: relative;
    display: flex;
    align-items: center;
}

nav li a {
    font-size: 9px;
    padding: 8px 12px;
    display: flex;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

nav li:not(:last-child):not(.dropdown-menu li)::after {
    content: "|";
    color: #444;
    font-size: 10px;
}

nav li a.active{
    background-color: #ff8800;
    color: #000;
}

nav li a:hover, .dropdown:hover > a {
    background-color: #ff8800;
    color: #000;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    border: 1px solid #ff8800;
    flex-direction: column;
    align-items: flex-start;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li::after {
    display: none !important;
}

.dropdown-menu li a {
    width: 100%;
    padding: 10px 15px;
    font-size: 10px;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.arrow {
    font-size: 7px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    nav li:not(:last-child)::after {
        display: none;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #252525;
    }
    .dropdown.active .dropdown-menu {
        display: flex;
    }
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.box {
    border: 2px solid #ff8800;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #1a1a1a;
}

h2 {
    margin-top: 0;
    font-size: 14px;
}

p {
    font-size: 11px;
    line-height: 1.6;
}

input, button, select {
    font-family: "Press Start 2P", system-ui;
    background: #000;
    color: #ff8800;
    border: 2px solid #ff8800;
    padding: 12px;
    width: 100%;
    margin-top: 15px;
    font-size: 10px;
    text-transform: uppercase;
}

button, select {
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #ff8800;
    color: #000;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ff8800%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
}

select:focus {
    outline: none;
    background-color: #1a1a1a;
    border-color: #fff;
    color: #fff;
}

#status {
    margin-top: 20px;
    font-size: 10px;
    padding: 10px;
    border: 1px dashed #ff8800;
    color: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #000;
}

th, td {
    border: 2px solid #ff8800;
    padding: 12px 8px;
    font-size: 10px;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: #ff8800;
    color: #000;
}

tr:hover td {
    /*background-color: #1a1a1a;*/
    /*color: #fff;*/
}

footer {
    border-top: 2px solid #ff8800;
    padding: 10px;
    font-size: 10px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    font-family: "Press Start 2P", system-ui;
    background-color: #000;
    color: #ff8800;
    border: 2px solid #ff8800;
    padding: 12px 20px;
    margin-top: 15px;
    font-size: 10px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    width: auto;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#chat-box {
    height: 400px;
    overflow-y: scroll;
    border: 2px solid #ff8800;
    background-color: #000;
    display: flex;
    flex-direction: column;
}

.msg {
    display: flex;
    padding: 10px;
    font-size: 10px;
    align-items: center;
    border-bottom: 1px solid #333;
    transition: 0.2s;
    gap: 15px;
}

.msg:hover { background-color: #1a1a1a; }

.msg b {
    flex: 0 0 150px;
    color: #ff8800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg span.text {
    flex: 1;
    color: #fff;
    text-align: left;
    line-height: 22px;
}

.rules-content { text-align: left; margin-top: 20px; }

.rules-content ol {
    list-style-type: none;
    counter-reset: item;
    padding-left: 30px;
    margin: 15px 0;
}

.rules-content ol li {
    display: block;
    position: relative;
    margin-bottom: 15px;
    font-size: 11px;
    line-height: 1.6;
}

.rules-content ol li::before {
    content: counter(item) ". ";
    counter-increment: item;
    position: absolute;
    left: -35px;
    color: #ff8800;
    font-weight: bold;
    width: 30px;
    text-align: right;
}

.faq-item {
    text-align: left;
    border: 1px solid #ff8800;
    margin-bottom: 10px;
    transition: 0.3s;
}

.faq-item[open] { border: 2px solid #fff; }

summary {
    padding: 15px;
    font-size: 11px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
}

summary::before {
    content: "[+] ";
    margin-right: 10px;
    color: #fff;
}

details[open] summary { color: #fff; }
details[open] summary::before { content: "[-] "; }

.faq-answer {
    padding: 0 15px 15px 40px;
    border-top: 1px dashed #ff8800;
    background-color: #050505;
}

#editor {
    height: 400px;
    background-color: #000;
    color: #fff;
    border: 2px solid #ff8800 !important;
    font-family: 'Press Start 2P', system-ui;
}

.ql-toolbar.ql-snow {
    background-color: #1a1a1a;
    border: 2px solid #ff8800 !important;
    border-bottom: none !important;
    text-align: left;
}

.ql-toolbar.ql-snow .ql-formats {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin-right: 10px !important;
    padding: 0 !important;
}

.ql-snow.ql-toolbar button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 2px !important;
}

.ql-snow .ql-stroke { stroke: #ff8800 !important; stroke-width: 2px; }
.ql-snow .ql-fill { fill: #ff8800 !important; }
.ql-snow .ql-picker { color: #ff8800 !important; }

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: #fff !important; }

.ql-editor {
    font-size: 11px;
    line-height: 1.6;
    text-transform: none !important;
}

.ql-toolbar.ql-snow *, .ql-editor * { text-transform: none !important; }

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr { border: 2px solid #ff8800; margin-bottom: 15px; }
    td {
        border: none; border-bottom: 1px solid #333;
        position: relative; padding-left: 50%; text-align: right;
        min-height: 40px; display: flex; align-items: center; justify-content: flex-end;
    }

    table.resp-no-flex td{
        display: block;
    }

    td::before {
        content: attr(data-label); position: absolute; left: 10px;
        width: 45%; text-align: left; color: #ff8800; font-weight: bold;
    }
    .msg { flex-direction: column; align-items: flex-start; }
    .msg b { width: 100%; border-right: none; border-bottom: 1px solid #333; }

    nav li::after { content: "" !important; }
    nav li a { font-size: 10px; width: 100%; text-align: center; }
}

@media (max-width: 600px) {
    .logo { font-size: 6px; }
    nav ul { flex-direction: column; }
    p { font-size: 10px; }
    summary { font-size: 9px; }
    .faq-answer { padding-left: 15px; }
}

.ql-align-center{
    text-align: center;
}

.ql-align-right{
    text-align: right;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.input-container input {
    margin-top: 0;
    flex: 1;
}

#emoji-btn {
    margin-top: 0;
    width: auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

#chat-form button[type="submit"] {
    width: 100%;
}

.stats-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats-grid .box {
    flex: 1;
    margin-bottom: 0;
    min-width: 320px;
}

.server-stats {
    text-align: left;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    font-size: 10px;
}

.stat-row:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .stats-grid {
        flex-direction: column;
    }
}

.calendar-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.calendar-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.tournament-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.tile {
    background-image: url('/assets/img/tile_background.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border-radius: 10px;
    display: flex;
    min-height: 140px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    overflow: hidden;
}

.tile.tile-tournament{
    background-image: url('/assets/img/tournament_tile.png');
}

.tile.tile-tournament .blur{
    background-color: rgba(0,0,0,0.25);
    display: flex;
}

.tile-num {
    background-color: rgba(45, 85, 170, 0.85);
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
}

.tile-info {
    flex: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.t-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.t-date {
    font-size: 12px;
    margin-bottom: 12px;
    color: #ddd;
    text-transform: lowercase;
}

.status-pill {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    align-self: flex-start;
}

.status-trwa { background-color: #0052cc; }
.status-koniec { background-color: #2d8659; }
.status-czekamy { background-color: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); }

.badge-major {
    background-color: #b8860b;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn-enter {
    display: block;
    width: 100%;
    background-color: #3c5fa1;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.btn-enter:hover {
    background-color: #4d73c2;
}

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

.post-content{
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.post-content p{
    font-size: 14px;
    font-weight: bold;
}

 .reaction-item:hover { background: rgba(255,255,255,0.15) !important; }
.reaction-item.active-reaction { background: rgba(0, 255, 0, 0.1) !important; border: 1px solid rgba(0, 255, 0, 0.3); }

.ticker-container {
    display: flex;
    align-items: stretch;
    background: #111;
    border-bottom: 2px solid #ff8800;
    overflow: hidden;
    height: 40px;
}

.ticker-container.jumps {
    border-bottom-color: #2ecc71;
}

.ticker-label {
    background: #ff8800;
    color: #000;
    font-weight: 900;
    padding: 0 20px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 2;
    font-size: 12px;
    letter-spacing: 1px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    position: relative;
}

@media(max-width: 768px){
    .ticker-label{
        display: none;
    }
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -15px;
    border-left: 15px solid #ff8800;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}

.ticker-container.jumps .ticker-label {
    background: #2ecc71;
}

.ticker-container.jumps .ticker-label::after {
    border-left-color: #2ecc71;
}

.ticker-wrap {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: marquee-smooth 40s linear infinite;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 35px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.ticker-pos { color: #ff8800; margin-right: 8px; }
.ticker-container.jumps .ticker-pos { color: #2ecc71; }

.ticker-flag { margin-right: 8px; border-radius: 2px; }
.ticker-name { color: #fff; margin-right: 10px; }

.ticker-pts {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

@keyframes marquee-smooth {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media(max-width: 768px){
    .stats-grid{
        grid-template-columns: 1fr !important;
    }

    td{
        width: auto !important;
    }
}

.hills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    text-align: center;
}

.hill-card {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #333;
    transition: transform 0.2s;
    flex-wrap: wrap;
    justify-content: center;
}

.hill-card:hover {
    border-color: #42D1D2;
    background: #222;
}

.hill-card-img {
    flex-shrink: 0;
}

.hill-card-img img {
    height: 40px;
    display: block;
}

.hill-card-info {
    flex-grow: 1;
    min-width: 0;
}

.hill-card-header {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.hill-card-header strong {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hill-card-result {
    color: #42D1D2;
    font-weight: bold;
    font-size: 13px;
    width: 100%;
}

@media (max-width: 1200px) {
    .hills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .hill-card {
        flex-direction: column;
        text-align: center;
    }
}

.admin-actions{
    flex-wrap: wrap;
}

/* --- SEKCJA KOMENTARZ LIVE (Solid Style) --- */
.live-commentary-section {
    padding: 0 !important;
    background: #082a55; /* Pełny kolor tła */
    border: 1px solid #1e4f8f;
    border-radius: 8px;
    margin-bottom: 25px;
}

.header-live {
    background: #0c3a75;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1e4f8f;
    color: #ffffff;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff2a2a;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff2a2a;
    animation: livePulse 2s infinite;
}

.live-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.live-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 13px;
    background: #0a3163; /* Jednolite tło elementu */
    margin-bottom: 2px;
}

.live-tag {
    font-weight: 800;
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
    padding: 2px 0;
    border-radius: 2px;
    color: #fff;
}

.live-text {
    color: #eeeeee;
}

/* --- KOLORYSTYKA AKCENTÓW (Pełne kolory) --- */

/* Typ 5: Amazing */
.live-item.amazing { border-left: 3px solid #f1b21a; background: #163d1a; } /* Ciemna zieleń/złoto dla kontrastu */
.live-item.amazing .live-tag { background: #f1b21a; color: #000; }

/* Typ 4: Very Good */
.live-item.very-good { border-left: 3px solid #42D1D2; }
.live-item.very-good .live-tag { background: #42D1D2; color: #000; }

/* Typ 2-3: Info */
.live-item.info { border-left: 3px solid #1e63b7; }
.live-item.info .live-tag { background: #1e63b7; }

/* Typ 1: Słabe */
.live-item.weak { border-left: 3px solid #444; background: #051b36; }
.live-item.weak .live-tag { background: #333; color: #888; }

/* Systemowe */
.live-item.system-msg { border-left: 3px solid #a855f7; background: #23114a; }
.live-item.system-msg .live-tag { background: #a855f7; }

.live-footer {
    padding: 6px 12px;
    font-size: 10px;
    color: #6688aa;
    display: flex;
    justify-content: space-between;
    background: #061f40;
    border-top: 1px solid #1e4f8f;
}

/* Scrollbar pasujący do całości */
.live-list::-webkit-scrollbar { width: 4px; }
.live-list::-webkit-scrollbar-thumb { background: #1e63b7; }
/* --- ISTNIEJĄCE STYLE --- */

.club-header {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/assets/img/baner_skoki2.jpeg') center/cover;
    padding: 60px 40px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
}

.club-logo-big {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.2);
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    background: #111;
    flex-shrink: 0;
}

.club-info-header {
    min-width: 0;
}

.club-info-header h1 {
    font-size: 38px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    word-wrap: break-word;
}

.club-info-header p {
    margin-top: 10px;
    font-size: 18px;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.club-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 25px;
}

.club-box {
    background: rgba(0, 45, 90, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}

.club-box-title {
    background: rgba(0, 86, 179, 0.4);
    padding: 12px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.club-box-content {
    padding: 20px;
    line-height: 1.7;
    color: #eee;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-row:last-child { border: none; }
.info-label { color: #aaa; font-size: 14px; }
.info-value { font-weight: bold; color: #fff; }

.btn-join-club {
    display: block;
    width: 100%;
    max-width: 250px;
    text-align: center;
    background: linear-gradient(to bottom, #0056b3, #003d80);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #007bff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-transform: uppercase;
}

.btn-join-club:hover {
    background: #007bff;
    transform: translateY(-2px);
}

.club-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-edit-club {
    background: #444;
    border-color: #666;
}

.member-list {
    display: flex;
    flex-wrap: wrap;
}

.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 15px;
    width: 50%;
    box-sizing: border-box;
}

.member-core {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1; /* Pozwala na zajęcie całego miejsca i ucinanie tekstu */
}

.member-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--rank-color);
    object-fit: cover;
    background: #222;
    flex-shrink: 0;
}

.member-text-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%; /* Wymagane do ucinania nicku */
}

.member-rank-label {
    font-size: 9px;
    color: var(--rank-color);
    text-transform: uppercase;
    font-weight: bold;
    text-align: left;
}

.member-username {
    font-size: 14px;
    font-weight: bold;
    color: var(--rank-color);
    text-shadow: var(--rank-glow);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 250px;
    text-align: left;
}

.member-captain-label {
    color: #ffb400;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
}

.btn-remove-member {
    color: #ff4444;
    font-size: 9px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(255,0,0,0.1);
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid rgba(255,0,0,0.2);
    flex-shrink: 0;
}

/* --- MEDIA QUERIES --- */

@media (max-width: 992px) {
    .club-grid { grid-template-columns: 1fr; }
    .club-header { padding: 40px 20px; flex-direction: column; text-align: center; }

    .member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

}

@media (max-width: 576px) {
    .club-header h1 { font-size: 28px; }
    .club-logo-big { width: 120px; height: 120px; }


    .btn-remove-member {
        align-self: flex-end;
    }

    .club-action-bar {
        flex-direction: column;
    }

    .btn-join-club {
        max-width: 100%;
    }
}

.club-list .clubs-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    text-align: left;
    margin-top: -25px;
    background: rgba(0, 45, 90, 0.6);
}

.club-list .clubs-table th{
    background: rgba(0, 45, 90, 0.6);
    color: #fff;
    border: none;
}

.club-list .clubs-table td {
    padding: 15px 20px;
    border: none;
    vertical-align: middle;
}

.club-list .clubs-table tr:hover,
.club-list .clubs-table tr:hover td {
    background: rgba(0, 45, 90, 0.6);
}

.club-list .club-list-logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

.club-list .club-name-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.club-list .club-name-link:hover {
    color: #007bff;
}

.club-list .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.club-list .pagination-link {
    padding: 8px 16px;
    background: rgba(0, 45, 90, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.club-list .pagination-link.active {
    background: #0056b3;
    border-color: #007bff;
}

.club-list .pagination-link:hover:not(.active) {
    background: rgba(0, 86, 179, 0.4);
}

.club-list .club-info-wrapper{
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

@media(max-width: 600px){
    .club-list .club-info-wrapper{
        justify-content: center;
    }
}

.index-page-wrapper{
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

@media(max-width: 800px){
    .index-page-wrapper{
        grid-template-columns: 1fr;
    }
}

.add-jump-wrapper {
    position: relative;
    margin: 40px 0 60px;
}

.add-jump {
    display: inline-block;
    text-decoration: none;
    background: transparent;
    border: none;
    color: #ffd700;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 12px 35px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    z-index: 10;
    text-shadow:
            2px 2px 0px #a62a00,
            -2px -2px 0px #a62a00,
            2px -2px 0px #a62a00,
            -2px 2px 0px #a62a00;
    transition: all 0.2s ease-in-out;
    outline: none;
    animation: flickerText 1.5s infinite ease-in-out;
}

.add-jump::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    bottom: -8px;
    right: -8px;
    background: linear-gradient(0deg, rgba(255,87,34,1) 0%, rgba(255,152,0,1) 100%);
    filter: blur(4px);
    border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
    box-shadow:
            0 0 15px 5px #ff5722,
            0 0 25px 8px #bf360c;
    z-index: -2;
    animation: flickerZew 1.3s infinite ease-in-out;
}

.add-jump::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    bottom: -4px;
    right: -4px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,235,59,1) 100%);
    filter: blur(2px);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow:
            0 0 8px 2px #fff,
            0 0 12px 4px #ffeb3b;
    z-index: -1;
    animation: flickerWew 1.0s infinite ease-in-out;
}

.add-jump:hover {
    transform: scale(1.05);
}

.add-jump:active {
    transform: scale(0.98);
}

@keyframes flickerText {
    0%, 100% {
        opacity: 1;
        text-shadow: 2px 2px 0px #a62a00, -2px -2px 0px #a62a00, 2px -2px 0px #a62a00, -2px 2px 0px #a62a00;
    }
    50% {
        opacity: 0.85;
        text-shadow: 2px 2px 4px #ff5722, -2px -2px 4px #ff5722, 2px -2px 4px #ff5722, -2px 2px 4px #ff5722;
    }
}

@keyframes flickerZew {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
        transform: scale(1) translateY(0);
        opacity: 0.8;
    }
    33% {
        border-radius: 70% 30% 20% 80% / 70% 20% 80% 30%;
        transform: scale(1.01) translateY(-1px);
    }
    66% {
        border-radius: 20% 80% 90% 10% / 30% 10% 90% 70%;
        transform: scale(1.02) translateY(-2px);
        opacity: 1;
    }
}

@keyframes flickerWew {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1);
    }
    50% {
        border-radius: 80% 20% 10% 90% / 80% 10% 90% 20%;
        transform: scale(1.01);
    }
}

@media(max-width: 600px){
    .table-div{
        flex-direction: column;
        align-items: flex-end;
    }
}

.typer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.typer-item {
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.typer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.typer-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.typer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.typer-option {
    background: #1a1a1a;
    padding: 15px;
    text-align: center;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.typer-dates {
    margin-top: 10px;
    font-size: 10px;
    color: #888;
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .typer-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

.mb-20{
    margin-bottom: 20px;
}

.overwrite-box {
    margin-bottom: 15px;
    background: #222;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #333;
}

.overwrite-title {
    margin-bottom: 12px;
    font-size: 13px;
    color: #fff;
    font-weight: bold;
}

.overwrite-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #ccc;
    transition: color 0.2s;
    justify-content: center;
}

.overwrite-option:last-child {
    margin-bottom: 0;
}

.overwrite-option:hover {
    color: #ff8800;
}

.overwrite-option input[type="radio"] {
    width: auto;
    margin-right: 10px;
    accent-color: #ff8800;
    margin-top: 0;
}

@keyframes blink-green {
    0%, 100% { color: #42D1D2; }
    50% { color: #2ecc71; text-shadow: 0 0 5px #2ecc71; }
}

@keyframes blink-red {
    0%, 100% { color: #42D1D2; }
    50% { color: #e74c3c; text-shadow: 0 0 5px #e74c3c; }
}

.jump-recent {
    animation: blink-green 2s infinite ease-in-out;
    font-weight: bold;
}

.jump-old {
    animation: blink-red 3s infinite ease-in-out;
}

.profile-box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .profile-box{
        grid-template-columns: 1fr;
    }
}

.profile-records-header{
    background: #1a1a1a;
    padding: 15px;
    margin-bottom: -20px;
}

@media(max-width: 768px){
    .profile-records-summary{
        display: flex;
        flex-wrap: wrap;
    }
}
