/* ============================================
   STRONA SZCZEGÓŁÓW SERWERA - serwer.css
   ============================================ */

.server-detail-main {
    padding: 24px 20px 48px;
}

.server-detail-loading {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-dim);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.server-not-found {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-dim);
}

.server-not-found h2 {
    font-family: 'Minecraft', sans-serif;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 12px;
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb-sep { color: var(--text-dim); }

/* NAGŁÓWEK SERWERA */
.server-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.server-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.server-icon-big {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    image-rendering: pixelated;
    border: 2px solid var(--border);
    background: var(--bg-dark);
}

.server-detail-name {
    font-family: 'Minecraft', sans-serif;
    font-size: 26px;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.server-detail-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.server-detail-status.online {
    background: rgba(22, 163, 74, 0.25);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.5);
}

.server-detail-status.offline {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

/* NAGŁÓWEK — kontener przycisków (ulubione + głosuj) */
.server-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* PRZYCISK GŁOSUJ DUŻY */
.btn-vote-big {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-vote-big:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-vote-big:disabled { background: #555; cursor: not-allowed; transform: none; }

.vote-plus {
    background: rgba(255,255,255,0.2);
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 14px;
}

/* BANER REKLAMA */
.server-ad-banner {
    margin: 16px 0;
    min-height: 90px;
    background: rgba(30,30,30,0.6);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

/* TABELA SZCZEGÓŁÓW */
.server-details-table {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    min-height: 46px;
    transition: background 0.12s;
}

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

.detail-row:hover {
    background: rgba(255,255,255,0.025);
}

.detail-key {
    width: 170px;
    min-width: 170px;
    padding: 12px 18px;
    font-weight: 600;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.025);
    border-right: 2px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
}

.detail-val {
    flex: 1;
    padding: 12px 18px;
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    overflow: visible;
    min-width: 0;
}

/* IP kopiowanie */
.ip-copy {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.ip-copy:hover { background: rgba(255,255,255,0.07); }
.copy-icon { font-size: 12px; color: var(--text-dim); }

/* Player sample */
.player-name {
    font-family: 'Minecraft', sans-serif;
    font-size: 12px;
    color: #aaa;
    line-height: 1.8;
}

/* Wersja tagi */
.version-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    color: var(--text);
    margin: 2px;
}

/* Przycisk głosuj w tabeli */
.btn-vote-row {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-vote-row:hover { background: var(--primary-dark); }
.btn-vote-row:disabled { background: #555; cursor: not-allowed; }

.vote-count-text {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Badge zweryfikowany */
.badge-verified-big {
    display: inline-block;
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(22, 163, 74, 0.5);
    color: #4ade80;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.badge-owner {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.badge-unverified {
    display: inline-block;
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.4);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

/* Claim przycisk */
.btn-claim {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-claim:hover { background: #b91c1c; }
.btn-claim:disabled { background: #555; cursor: not-allowed; }

.claim-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
}

.claim-hint a { color: var(--primary); text-decoration: none; }
.claim-hint a:hover { text-decoration: underline; }

/* Promowanie */
.btn-promote {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-promote:hover { background: #b91c1c; }

/* VOTE ALERT */
.vote-alert {
    padding: 12px 18px;
    border-radius: 6px;
    margin: 12px 0 24px;
    font-size: 14px;
    font-weight: 500;
}

.vote-alert.success {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.4);
    color: #4ade80;
}

.vote-alert.error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
}

.vote-alert.cooldown {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fbbf24;
}

.vote-alert.info {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

/* FAQ ACCORDION */
.faq-section {
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(18, 18, 24, 0.9);
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    gap: 12px;
}

.faq-question:hover {
    background: rgba(255,255,255,0.04);
    color: #e2e8f0;
}

.faq-item.open .faq-question {
    color: var(--primary);
    background: rgba(22,163,74,0.05);
    border-left: 3px solid var(--primary);
}

.faq-arrow {
    font-size: 20px;
    color: var(--text-dim);
    transition: transform 0.22s ease, color 0.15s;
    flex-shrink: 0;
    line-height: 1;
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding: 2px 20px 16px 23px;
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.75;
    border-left: 3px solid rgba(22,163,74,0.25);
    background: rgba(22,163,74,0.02);
}

.faq-answer strong { color: #e2e8f0; }

.faq-item.open .faq-answer { display: block; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .server-header-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-key {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 10px 16px;
    }

    .detail-val {
        padding: 10px 16px 14px;
    }
}

/* ===========================
   RECENZJE
   =========================== */

.server-avg-rating {
    background: #f5c518;
    color: #000;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 6px;
    padding: 2px 8px;
    letter-spacing: 0.3px;
}

.reviews-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    margin-top: 24px;
}

.reviews-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
}

/* ---- Formularz ---- */
.review-form-wrapper {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.review-form-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px;
}

.star-picker {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--border);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s, transform 0.1s;
    line-height: 1;
}

.star-btn.active,
.star-btn.hover {
    color: #f59e0b !important;
    transform: scale(1.15);
}

.star-btn:hover {
    transform: scale(1.15);
}

.review-comment {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.review-comment:focus {
    outline: none;
    border-color: var(--accent);
}

.review-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.char-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.btn-review-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-review-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-review-submit:not(:disabled):hover {
    opacity: 0.85;
}

.review-error {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--error, #ef4444);
}

.review-login-prompt {
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ---- Lista ---- */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.review-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-meta {
    flex: 1;
    min-width: 0;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-stars {
    color: #f5c518;
    font-size: 1.1rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.review-stars .empty-star {
    color: var(--border);
}

.review-comment-text {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.55;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.review-delete-btn {
    background: none;
    border: 1px solid var(--error, #ef4444);
    color: var(--error, #ef4444);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.review-delete-btn:hover {
    background: var(--error, #ef4444);
    color: #fff;
}

/* ---- Paginacja ---- */
.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.reviews-pagination button {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s;
}

.reviews-pagination button.active,
.reviews-pagination button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.reviews-empty,
.reviews-loading {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .review-form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .btn-review-submit { width: 100%; }
}

/* MOTD z kolorami Minecraft */
#detail-motd {
    font-family: 'Minecraft', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    word-break: break-word;
    white-space: pre-wrap;
    width: 100%;
    display: block;
    color: #cccccc;
}

/* ===========================
   LINKI W TABELI SZCZEGÓŁÓW
   =========================== */
.detail-val a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.15s;
}
.detail-val a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* ===========================
   UPTIME BAR & WYKRES
   =========================== */
.uptime-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.uptime-stat-pct {
    font-size: 1.05rem;
    font-weight: 700;
}
.uptime-stat-pct.high   { color: #22c55e; }
.uptime-stat-pct.medium { color: #f59e0b; }
.uptime-stat-pct.low    { color: #ef4444; }
.uptime-track {
    flex: 1;
    max-width: 180px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.uptime-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s;
}
.uptime-chart-wrap { width: 100%; }
.uptime-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 7px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-dim);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ===========================
   WYKRES GRACZY
   =========================== */
.player-chart-wrap { width: 100%; max-width: 680px; }
.player-chart-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Promote button — gold variant */
.btn-promote.is-active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border: 1px solid #f59e0b;
}
.btn-promote.is-active:hover { filter: brightness(1.1); }

/* Server header card glow for promoted */
.server-header-section.is-promoted {
    border-left: 4px solid #d97706;
    padding-left: 14px;
}

/* ===========================
   OGÓLNE ULEPSZENIA WYGLĄDU
   =========================== */

/* Card wokół nagłówka serwera */
.server-header-section {
    background: rgba(26,26,26,0.85);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

/* Cień tabeli szczegółów */
.server-details-table {
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

/* Zebra-striping w tabeli */
.detail-row:nth-child(even) {
    background: rgba(255,255,255,0.015);
}

/* Ulepszone przyciski ulubionych */
.btn-fav {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-fav:hover  { background: rgba(239,68,68,0.12); border-color: #ef4444; color: #f87171; }
.btn-fav.active { background: rgba(239,68,68,0.2);  border-color: #ef4444; color: #f87171; }

/* Promowanie — button gradient */
.btn-promote {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 2px 8px rgba(220,38,38,0.35);
    transition: filter 0.2s, box-shadow 0.2s;
}
.btn-promote:hover {
    filter: brightness(1.1);
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}
.btn-promote.is-active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 2px 8px rgba(217,119,6,0.4);
    border: 1px solid #f59e0b;
}
.btn-promote.promoted-active {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 2px 8px rgba(22,163,74,0.4);
    border: 1px solid #22c55e;
    color: #fff;
    cursor: default;
    font-weight: 700;
}

/* Light theme fixups */
[data-theme="light"] .server-header-section {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 14px rgba(0,0,0,0.1);
}
[data-theme="light"] .detail-row:nth-child(even) {
    background: rgba(0,0,0,0.015);
}

/* =============================================
   MODAL GŁOSOWANIA (nick MC)
   ============================================= */
.vote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}
.vote-modal-box {
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border, #333);
    border-radius: 12px;
    padding: 32px 28px 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    text-align: center;
}
.vote-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none; border: none;
    color: var(--text-dim, #888);
    font-size: 22px; cursor: pointer;
    line-height: 1; padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s;
}
.vote-modal-close:hover { color: var(--text, #eee); }
.vote-modal-icon {
    font-size: 36px;
    color: #fbbf24;
    margin-bottom: 10px;
}
.vote-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text, #eee);
}
.vote-modal-desc {
    font-size: 0.88rem;
    color: var(--text-dim, #888);
    margin: 0 0 16px;
    line-height: 1.5;
}
.vote-modal-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 6px;
    border: 1px solid var(--border, #444);
    background: var(--bg-secondary, #111);
    color: var(--text, #eee);
    font-size: 15px;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.vote-modal-input:focus { border-color: var(--primary, #22c55e); }
.vote-modal-error {
    color: #f87171;
    font-size: 0.84rem;
    margin-bottom: 10px;
    text-align: left;
}
.vote-modal-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 7px;
    background: var(--primary, #22c55e);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}
.vote-modal-btn:hover { background: var(--primary-dark, #16a34a); transform: translateY(-1px); }
.vote-modal-btn:disabled { background: #555; cursor: not-allowed; transform: none; }
[data-theme="light"] .vote-modal-box {
    background: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}
[data-theme="light"] .vote-modal-input {
    background: #f3f4f6;
    color: #111;
}

/* =============================================
   MOBILE RESPONSIVE — strona serwera
   ============================================= */
@media (max-width: 768px) {
    .server-detail-main {
        padding: 16px 12px 40px;
    }

    /* Nagłówek: logo + nazwa w kolumnie */
    .server-header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .server-header-left {
        gap: 12px;
        width: 100%;
    }

    .server-icon-big {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }

    .server-detail-name {
        font-size: 20px;
        word-break: break-all;
    }

    /* Przyciski akcji — pełna szerokość */
    .server-header-actions {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .btn-fav {
        flex: 1;
        text-align: center;
        padding: 10px 10px;
        font-size: 13px;
    }

    .btn-vote-big {
        flex: 2;
        justify-content: center;
        padding: 10px 14px;
        font-size: 14px;
    }

    /* Tabela szczegółów — klucz nad wartością */
    .detail-row {
        flex-direction: column;
    }

    .detail-key {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 8px 14px 6px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .detail-val {
        padding: 8px 14px 12px;
        font-size: 14px;
        word-break: break-word;
    }

    /* Reklama — mniejsza wysokość minimalna */
    .server-ad-banner {
        min-height: 60px;
    }

    /* Uptime chart — scroll poziomy */
    #uptime-chart-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .uptime-legend {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Przyciski głosowania / promowania w tabeli */
    .btn-vote-table,
    .btn-promote {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* Sekcja recenzji */
    .reviews-section {
        padding: 18px 14px;
    }

    .review-card {
        padding: 12px;
    }

    /* Wykres graczy */
    .player-chart-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .server-detail-name {
        font-size: 17px;
    }

    .server-header-actions {
        flex-direction: column;
    }

    .btn-fav,
    .btn-vote-big {
        width: 100%;
        flex: unset;
    }

    .server-icon-big {
        display: none;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .detail-key {
        font-size: 10px;
    }

    .detail-val {
        font-size: 13px;
    }

    .reviews-title {
        font-size: 1.05rem;
    }

    .star-btn {
        font-size: 1.6rem;
    }
}
