.banner-container {
    width: 100%;
    max-height: 280px;
    overflow: hidden;
    position: relative;
    margin-bottom: -40px;
}

.banner-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-main, #05080f), transparent);
}

.server-banner {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.content-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.layout-with-ads {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 24px;
}

.ads-left-col {
    display: none;
}

.server-header-aligned {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
}

.server-icon-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--border-color, #1e2a3a);
    background: var(--bg-card, #0d1117);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.sponsored-icon-anim {
    border-color: var(--primary, #00b4ff);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 255, 0.3); }
    50% { box-shadow: 0 0 35px rgba(0, 180, 255, 0.6); }
}

.server-icon-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-title-block {
    flex: 1;
    min-width: 0;
}

.breadcrumb-nav {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 5px;
}

.breadcrumb-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--primary, #00b4ff);
}

.breadcrumb-nav span {
    margin: 0 5px;
    color: #666;
}

.breadcrumb-nav span:last-child {
    color: var(--primary, #00b4ff);
    margin: 0;
}

.server-title-block h1 {
    font-family: var(--font-display, 'Orbitron', sans-serif);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    line-height: 1.3;
}

.verified-badge {
    color: var(--primary, #00b4ff);
    font-size: 0.7em;
}

.sponsored-title-anim {
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 3s linear infinite;
}

@keyframes goldShimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.star-widget {
    display: flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-widget input { display: none; }

.star-widget label {
    font-size: 1.1rem;
    color: #444;
    cursor: pointer;
    transition: color 0.2s;
}

.star-widget input:checked ~ label,
.star-widget label:hover,
.star-widget label:hover ~ label {
    color: #ffd700;
}

.rating-stats {
    color: #aaa;
    font-family: var(--font-body, 'Exo 2', sans-serif);
    font-weight: 600;
}

.rating-stats span { color: #ffd700; }

.server-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-tag.tag-online { color: #2ecc71; border-color: rgba(46, 204, 113, 0.3); }
.meta-tag.tag-online i { color: #2ecc71; animation: pulse-green 2s infinite; }
.meta-tag.tag-votes { color: var(--primary, #00b4ff); border-color: rgba(0, 180, 255, 0.3); }
.meta-tag.tag-survival { color: #2ecc71; border-color: rgba(46, 204, 113, 0.3); }
.meta-tag.tag-pvp { color: #e74c3c; border-color: rgba(231, 76, 60, 0.3); }
.meta-tag.tag-skyblock { color: #00d4ff; border-color: rgba(0, 212, 255, 0.3); }
.meta-tag.tag-factions { color: #e67e22; border-color: rgba(230, 126, 34, 0.3); }
.meta-tag.tag-creative { color: #9b59b6; border-color: rgba(155, 89, 182, 0.3); }
.meta-tag.tag-minigames { color: #f39c12; border-color: rgba(243, 156, 18, 0.3); }
.meta-tag.tag-bedwars { color: #ff6b6b; border-color: rgba(255, 107, 107, 0.3); }
.meta-tag.tag-hardcore { color: #c0392b; border-color: rgba(192, 57, 43, 0.3); }
.meta-tag.tag-modded { color: #8e44ad; border-color: rgba(142, 68, 173, 0.3); }
.meta-tag.tag-roleplay { color: #1abc9c; border-color: rgba(26, 188, 156, 0.3); }
.meta-tag.tag-economy { color: #f1c40f; border-color: rgba(241, 196, 15, 0.3); }

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.server-details-main {
    grid-column: 1;
}

.layout-with-ads {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto auto;
    gap: 24px;
}

.server-header-aligned {
    grid-column: 1 / -1;
}

.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-card {
    background: var(--bg-card, #0d1117);
    border: 1px solid var(--border-color, #1e2a3a);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.desc-stats-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color, #1e2a3a);
}

.tab-btn {
    background: none;
    border: none;
    color: #888;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-family: var(--font-body, 'Exo 2', sans-serif);
}

.tab-btn:hover { color: #ccc; }

.tab-btn.active {
    color: var(--primary, #00b4ff);
    border-bottom-color: var(--primary, #00b4ff);
}

.long-description {
    color: #d4d4d8;
    line-height: 1.8;
    font-size: 0.95rem;
    word-break: break-word;
}

.long-description a { color: var(--primary, #00b4ff); }

.faq-title {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary, #00b4ff);
    display: inline-block;
    padding-bottom: 5px;
    color: #fff;
}

.faq-item {
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
}

.faq-question::before {
    content: '▸ ';
    color: var(--primary, #00b4ff);
}

.faq-item[open] .faq-question::before { content: '▾ '; }

.faq-answer {
    margin-top: 10px;
    color: #aaa;
    line-height: 1.6;
    font-size: 0.9rem;
}

.vote-card-split {
    background: var(--bg-card, #0d1117);
    border: 1px solid var(--border-color, #1e2a3a);
    border-radius: 12px;
    overflow: hidden;
}

.vote-title {
    padding: 16px 20px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.vote-section-top {
    padding: 16px 20px;
}

.ip-display-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(0, 180, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.ip-display-box:hover {
    background: rgba(0, 180, 255, 0.15);
    border-color: rgba(0, 180, 255, 0.4);
}

.ip-label {
    color: #888;
    font-weight: 600;
    font-size: 0.85rem;
}

.ip-text {
    color: var(--primary, #00b4ff);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-weight: 500;
    flex: 1;
    font-size: 0.9rem;
}

.ip-display-box i {
    color: #666;
    transition: color 0.2s;
}

.ip-display-box:hover i { color: var(--primary, #00b4ff); }

.vote-nick-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #1e2a3a);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: var(--font-body, 'Exo 2', sans-serif);
}

.vote-nick-input:focus {
    border-color: var(--primary, #00b4ff);
}

.vote-section-bottom {
    padding: 0 20px 20px;
}

.btn-vote-main {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary, #00b4ff), #00e5ff);
    color: #000;
    transition: all 0.3s;
    font-family: var(--font-body, 'Exo 2', sans-serif);
}

.btn-vote-main:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 180, 255, 0.4);
}

.btn-vote-main:disabled {
    background: #333;
    color: #888;
}

.info-card {
    background: var(--bg-card, #0d1117);
    border: 1px solid var(--border-color, #1e2a3a);
    border-radius: 12px;
    padding: 20px;
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child { border-bottom: none; }
.info-label { color: #888; font-size: 0.9rem; }
.info-value { color: #fff; font-weight: 600; font-size: 0.9rem; }

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.social-btn:hover { background: rgba(255, 255, 255, 0.1); }

.latest-votes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
}

.vote-item:last-child { border-bottom: none; }
.vote-user { color: #ccc; }
.vote-time { color: #666; font-size: 0.8rem; }

.vote-count-badge {
    background: var(--primary, #00b4ff);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.share-box-inline {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.share-btn:hover { transform: translateY(-2px); }
.btn-x:hover { background: #000; color: #fff; }
.btn-tg:hover { background: #0088cc; color: #fff; }
.btn-wa:hover { background: #25d366; color: #fff; }
.btn-fb:hover { background: #1877f2; color: #fff; }

.custom-popup-minimal {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card, #0d1117);
    border: 1px solid var(--border-color, #1e2a3a);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.popup-text-mini h4 { color: #fff; margin: 0 0 2px; font-size: 0.95rem; }
.popup-text-mini span { color: #aaa; font-size: 0.85rem; }

.section-title-rec {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 16px;
    padding-left: 15px;
    border-left: 4px solid var(--primary, #00b4ff);
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rec-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.rec-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 180, 255, 0.2);
    transform: translateY(-2px);
}

.rec-card img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.rec-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-name { color: #fff; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-modes { color: #888; font-size: 0.8rem; }
.rec-votes { color: var(--primary, #00b4ff); font-size: 0.8rem; font-weight: 600; }

@media (max-width: 900px) {
    .layout-with-ads {
        grid-template-columns: 1fr;
    }

    .server-header-aligned {
        flex-direction: column;
        align-items: flex-start;
    }

    .server-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .server-title-block h1 {
        font-size: 1.3rem;
    }

    .sidebar-col {
        order: -1;
    }

    .rec-grid {
        grid-template-columns: 1fr;
    }

    .banner-container {
        max-height: 180px;
    }

    .server-banner {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .content-grid {
        padding: 0 12px;
    }

    .content-card {
        padding: 16px;
    }

    .server-title-block h1 {
        font-size: 1.1rem;
    }

    .server-meta {
        gap: 6px;
    }

    .meta-tag {
        font-size: 0.72rem;
        padding: 3px 8px;
    }
}