a {
    text-decoration: none;
    color: #39BEFF;
}

a:focus, a:active {
    outline: invert none medium;
}

a:visited, a:hover {
    color: #39BEFF;
}

body {
    font-family: Arial, sans-serif;
    background-color: #181818;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}


#header {
    background-image: url('/images/header-background.webp'); /* Dodaj link do obrazu tła */
    background-attachment: fixed; /* Efekt paralaksy */
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

/* Styl nagłówka */
h1 {
    font-size: 40px;
    text-align: left;
    margin-bottom: 10px;
}

.selektor {
    text-align: left;
    margin-bottom: 30px;
}

/* ---------------- Styl iframe ---------------- */

.content {
    align-items: center; 
    justify-content: center; 
}

/* -----------------------------KONTENERY Z GRACZAMI---------------------------- */
.player-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.player {
    text-align: center;
    width: 150px;
    transition: transform 200ms ease, box-shadow 200ms ease, opacity 300ms ease;
    opacity: 0;
    transform: translateY(12px);
}

.player-avatar {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    transition: transform 220ms ease, box-shadow 220ms ease;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.03));
    display: inline-block;
}

.player-info h3 {
    font-size: 18px;
    margin-top: 5px;
}

.player-info p {
    font-size: 14px;
    font-weight: bold;
}

.place {
    font-size: 20px;
    font-weight: bold;
    color: #ffcc00;
    margin-bottom: 5px;
}
/* Fade-up animation when in view */
.player.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effect */
.player:hover {
    transform: translateY(-6px);
}
.player:hover .player-avatar {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 36px rgba(0,0,0,0.6);
}

/* Mode overview */
.mode-overview {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}
.mode-overview h3 { color: #39BEFF; margin-top: 0; }
.mode-overview p { color: #e6eef6; margin-bottom: 10px; }
.mode-overview ul { text-align: left; margin-left: 18px; }
.mode-cta { margin-top: 12px; }
.mode-cta a.button { background:#39BEFF; color:#fff; padding:10px 16px; border-radius:6px; display:inline-block; }

/* Clean mode description without box (used on tryby page) */
.mode-text {
    color: #e6eef6;
    font-size: 18px;
    line-height: 1.65;
    max-width: 980px;
    margin-bottom: 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mode-text .mode-copy {
    max-width: 980px;
}

.mode-text .mode-copy p {
    margin: 0;
}

.mode-text .mode-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

/* Server status pill */
.mode-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.mode-status .status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
}
.mode-status .status-dot.online { background: #2bb673; }
.mode-status .status-dot.warn { background: #f0a500; }
.mode-status .status-text { color: #dff8ff; font-size: 14px; }

/* Gallery: masonry grid */
.gallery-wrap { margin: 24px 0 32px 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16/9; border: 1px solid rgba(255,255,255,0.06); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms cubic-bezier(.2,.9,.3,1), filter 420ms ease; filter: brightness(0.92) saturate(1.05); }
.gallery-item figcaption { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent); color: #e6f8ff; font-size: 15px; opacity: 0; transition: opacity 280ms ease; }
.gallery-item:hover img { transform: scale(1.08); filter: brightness(1) saturate(1.15); }
.gallery-item:hover figcaption { opacity: 1; }

@media (max-width: 768px) { .gallery { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; } }

/* Fullscreen carousel (lightbox) */
.carousel-modal { position: fixed; inset: 0; background: rgba(3,6,10,0.88); display: none; align-items:center; justify-content:center; z-index:9999; }
.carousel-modal.open { display: flex; }
.carousel-modal .carousel-inner { position: relative; width: 90%; max-width: 1400px; height: 80vh; display: flex; align-items:center; justify-content:center; }
.carousel-modal .carousel-slide { position: absolute; inset:0; display:flex; align-items:center; justify-content:center; opacity:0; transition: opacity 320ms ease, transform 320ms ease; transform: translateY(8px); }
.carousel-modal .carousel-slide.active { opacity:1; transform: translateY(0); }
.carousel-modal img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 14px 40px rgba(0,0,0,0.6); }
.carousel-close, .carousel-prev, .carousel-next { position: absolute; z-index: 10010; background: rgba(0,0,0,0.45); color: #fff; border: none; width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer }
.carousel-close { top: 18px; right: 18px; }
.carousel-prev { left: 18px; top:50%; transform: translateY(-50%); }
.carousel-next { right: 18px; top:50%; transform: translateY(-50%); }
.carousel-caption { position: absolute; left:50%; transform: translateX(-50%); bottom: 18px; color: #dff8ff; background: rgba(0,0,0,0.45); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.carousel-dots { position: absolute; left:50%; transform: translateX(-50%); bottom: 62px; display:flex; gap:8px }
.carousel-dots .dot { width:10px; height:10px; border-radius:50%; background: rgba(255,255,255,0.12); }
.carousel-dots .dot.active { background: #39BEFF; box-shadow: 0 6px 18px rgba(57,190,255,0.18); }

@media (max-width:800px){
    .carousel-modal .carousel-inner { height: 70vh }
    .carousel-close, .carousel-prev, .carousel-next { width:36px; height:36px }
}

/* Player rankings carousel */
.player-carousel-wrap { position: relative; margin-bottom: 32px; }
.player-carousel { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 0 0 8px 0; -webkit-overflow-scrolling: touch; }
.player-carousel::-webkit-scrollbar { height: 6px; }
.player-carousel::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 3px; }
.player-carousel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.player-carousel .player { flex-shrink: 0; scroll-snap-align: start; }
.player-carousel-nav { position: absolute; top: -50px; right: 0; display: flex; gap: 8px; }
.player-carousel-nav button { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: #39BEFF; width:32px; height:32px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.player-carousel-nav button:hover { background: rgba(255,255,255,0.14); }

.mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d9eff9;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.mode-pill strong {
    color: #ffffff;
    font-weight: 700;
}
/* ---------------------------------------------------- */
    .hr-text {
    line-height: 1em;
    position: relative;
    outline: 0;
    border: 0;
    color: black;
    text-align: center;
    height: 1.5em;
    opacity: .5;
}
.hr-text:before {
    content: '';
    background: -webkit-linear-gradient(left, transparent, #818078, transparent);
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}
.hr-text:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;
    padding: 0 .5em;
    line-height: 1.5em;
    color: #818078;
    background-color: #fcfcfa;
}