

:root {
    --bg-dark: #0d1520;
    --bg-card: #141e2b;
    --bg-card-hover: #1a2838;
    --border-color: #2a3a4a;
    --border-glow: #4a7090;
    --text-primary: #ffffff;
    --text-secondary: #8899aa;
    --text-muted: #5a6a7a;
    --accent-cyan: #4ac3e0;
    --accent-gold: #d4a020;
    --accent-green: #4a9f4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    transition: background 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 21, 32, 0.95);
    border: 1px solid var(--border-color);
    padding: 0 24px;
    height: 60px;
    position: relative;
}

/* Corner brackets for navbar */
.nav-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--border-glow);
    border-style: solid;
}
.nav-corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.nav-corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.nav-corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.nav-corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0;
}

.nav-links li a {
    padding: 8px 20px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
}

.nav-separator {
    color: var(--border-color);
    font-size: 12px;
    user-select: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1),
.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2),
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3),
.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/hero-bg.png') center center / cover no-repeat;
    background-size: cover;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(13, 21, 32, 0.75) 0%,
        rgba(13, 21, 32, 0.6) 30%,
        rgba(13, 21, 32, 0.75) 70%,
        rgba(13, 21, 32, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    margin-top: 60px;
}
.hero-center{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap: 14px;
    text-align:center;
}


.server-info {
    text-align: center;
}

.info-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.info-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s;
}

.server-ip .info-value:hover {
    color: var(--accent-cyan);
}

.discord-link {
    text-decoration: none;
}

.discord-link:hover {
    color: #5865F2;
}

.online-count {
    font-size: 18px;
    font-weight: 700;
}

.online-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

.hero-logo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

/* ================================================
   CARD CORNERS (used throughout)
   ================================================ */
.hero-character {
    position: absolute;
    bottom: 0;
    left: 5%;
    z-index: 3;
}

.hero-character img {
    height: 400px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

/* ================================================
   CARD CORNERS (used throughout)
   ================================================ */
.card-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--border-glow);
    border-style: solid;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.card-corner-tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.card-corner-tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.card-corner-bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.card-corner-br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ================================================
   WHAT IS AETHERIA SECTION
   ================================================ */
.about-section {
    padding: 100px 20px;
    background: var(--bg-dark);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 32px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.btn-learn-more {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-learn-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.about-media {
    position: relative;
}

.trailer-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
    aspect-ratio: 16 / 9;
}

.trailer-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.trailer-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.trailer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.trailer-card:hover img {
    transform: scale(1.02);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 2;
}

.play-btn svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px;
}

.trailer-card:hover .play-btn {
    background: rgba(0, 0, 0, 0.7);
    border-color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.trailer-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.trailer-label svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.trailer-label span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.trailer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.trailer-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-text h2 {
        font-size: 32px;
    }
    
    .about-text {
        text-align: center;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ================================================
   LATEST POSTS
   ================================================ */
.latest-posts {
    padding: 60px 20px;
    background: var(--bg-dark);
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.post-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
}

.post-card:hover .card-corner {
    opacity: 1;
}

.post-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 24px;
}

.post-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.post-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.post-card:hover .post-link {
    color: var(--text-primary);
}

.post-link span {
    transition: transform 0.3s;
}

.post-card:hover .post-link span {
    transform: translateX(4px);
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.post-date {
    color: var(--text-muted);
    font-size: 13px;
}

.post-author {
    color: var(--text-muted);
    font-size: 12px;
}

.posts-more {
    text-align: center;
    margin-top: 40px;
}

.btn-see-more {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-see-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}
.rules-list {
    padding: 60px 20px;
    background: var(--bg-dark);
}

.rule {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

/* ================================================
   VOTE SECTION
   ================================================ */
.vote-section {
    padding: 60px 20px;
}

.vote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.vote-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vote-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.vote-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: auto; /* THIS pushes the button down */
}

.vote-card .btn-vote {
    align-self: flex-start;
    margin-top: 24px;
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    border-radius: 3px;
}

.vote-card .btn-vote:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive for mobile: stack the grid to 1 column */
@media (max-width: 700px) {
    .vote-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================================
   STORE / RANKS
   ================================================ */
.store-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1018 100%);
    position: relative;
}

.store-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-glow) 50%, transparent 100%);
}

.section-divider {
    width: 60px;
    height: 2px;
    background: var(--accent-gold);
    margin: 16px auto 20px;
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.rank-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 30, 43, 0.9) 0%, rgba(13, 21, 32, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.rank-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.rank-card.featured {
    border-color: var(--accent-cyan);
    transform: scale(1.02);
}

.rank-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.featured-tag {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--accent-cyan);
    color: var(--bg-dark);
    text-align: center;
    padding: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.rank-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}



.rank-card[data-tier="gold"] .rank-glow {
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
}

.rank-card[data-tier="diamond"] .rank-glow {
    background: radial-gradient(circle, #4ac3e0 0%, transparent 70%);
}

.rank-card[data-tier="ruby"] .rank-glow {
    background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
}

.rank-badge {
    padding: 40px 20px 20px;
    text-align: center;
}

.rank-card.featured .rank-badge {
    padding-top: 60px;
}

.rank-badge span {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
}

.rank-card[data-tier="gold"] .rank-badge span {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.rank-card[data-tier="diamond"] .rank-badge span {
    color: #4ac3e0;
    text-shadow: 0 0 20px rgba(74, 195, 224, 0.4);
}

.rank-card[data-tier="ruby"] .rank-badge span {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.rank-content {
    padding: 0 24px 24px;
}

.rank-content h3 {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.rank-features {
    list-style: none;
    margin-bottom: 24px;
}

.rank-features li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rank-features li:last-child {
    border-bottom: none;
}

.rank-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: 700;
}

.rank-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.rank-price {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 24px;
    color: var(--text-primary);
}

.rank-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.rank-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.rank-card.featured .rank-btn {
    background: transparent;
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.rank-card.featured .rank-btn:hover {
    background: rgba(74, 195, 224, 0.15);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    position: relative;
    background: var(--bg-dark);
    padding-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    justify-content: space-between;
}

.footer-logo{
    display:inline-flex;
    align-items:center;
    gap: 12px;
    text-decoration:none;
}
.footer-logo img{
    height: 34px;
    width: auto;
    display:block;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.footer-social a svg {
    width: 24px;
    height: 24px;
}

.footer-support p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.support-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: 18px;
}

.footer-meta{
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
    text-align: left;
    line-height: 1.7;
}

.footer-meta a{
    color: var(--text-secondary);
    text-decoration:none;
}
.footer-meta a:hover{ color: var(--text-primary); }
.footer-meta .dot{ padding: 0 8px; color: rgba(255,255,255,0.25); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
        .hero-center {
        order: 0;
    }

.server-info {
        order: 1;
    }
    
    .hero-logo {
        order: 0;
    }
    
    .discord-info {
        order: 2;
    }
    
    .ranks-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .logo {
        padding: 8px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 76px;
        left: 50%;
        transform: translateX(-50%) translateY(-100%);
        max-width: 1200px;
        width: calc(100% - 40px);
        background: rgba(13, 21, 32, 0.98);
        border: 1px solid var(--border-color);
        border-top: none;
        z-index: 1000;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .nav-links::before,
    .nav-links::after {
        content: '';
        position: absolute;
        width: 12px;
        height: 12px;
        border-color: var(--border-glow);
        border-style: solid;
    }
    
    .nav-links::before {
        bottom: -1px;
        left: -1px;
        border-width: 0 0 2px 2px;
    }
    
    .nav-links::after {
        bottom: -1px;
        right: -1px;
        border-width: 0 2px 2px 0;
    }
    
    /* Mobile menu open state (JS toggles these classes) */
    .nav-links.mobile-active,
    .nav-links.active,
    .nav-links.open {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        padding: 12px 20px;
    }
    
    .nav-separator {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-title {
        letter-spacing: 6px;
    }
    
    .hero-content {
        padding: 0 20px;
        margin-top: 100px;
    }
}

/* ================================================
   COPY NOTIFICATION
   ================================================ */
.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card);
    border: 1px solid var(--accent-cyan);
    padding: 12px 24px;
    border-radius: 4px;
    color: var(--text-primary);
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ================================================
   NEWS PAGES
   ================================================ */
.navbar-solid {
    background: var(--bg-dark);
}

.navbar-solid .nav-container {
    background: rgba(13, 21, 32, 0.98);
}

/* Page Header */
.page-header {
    position: relative;
    padding: 160px 20px 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1018 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/trailer-thumb.png') center/cover;
    opacity: 0.15;
}

.page-header h1 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 48px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Blog Page List */
.blog-page {
    padding: 60px 20px;
    background: var(--bg-dark);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.blog-post-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.blog-post-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-details {
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-details h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 12px;
    transition: color 0.3s;
}

.blog-post-item:hover .post-details h3 {
    color: var(--accent-cyan);
}

.post-details p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.post-info {
    display: flex;
    gap: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Blog Post Article Page */
.blog-post-header {
    position: relative;
    padding: 200px 20px 80px;
    text-align: center;
}

.blog-post-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.blog-post-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.blog-post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(13, 21, 32, 0.5) 0%, var(--bg-dark) 100%);
}

.blog-post-header .container {
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-primary);
}

.blog-post-header h1 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Blog Post Content */
.blog-post-content {
    padding: 60px 20px;
    background: var(--bg-dark);
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
}

.post-body .lead {
    font-size: 20px;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.post-body h2 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 26px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.post-body h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.post-body p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    color: var(--text-secondary);
    margin: 16px 0 24px 24px;
    font-size: 16px;
    line-height: 1.8;
}

.post-body li {
    margin-bottom: 12px;
}

.post-body strong {
    color: var(--text-primary);
}

.post-body .signature {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-muted);
}

/* More Posts Section */
.more-posts {
    padding: 60px 20px;
    background: #0a1018;
    border-top: 1px solid var(--border-color);
}

.more-posts h3 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
}

.more-posts .posts-grid {
    max-width: 500px;
    margin: 0 auto;
}

/* Blog Page Responsive */
@media (max-width: 768px) {
    .blog-post-item {
        grid-template-columns: 1fr;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-details {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .blog-post-header h1 {
        font-size: 28px;
    }
    
    .blog-post-meta {
        flex-direction: column;
        gap: 8px;
    }
}


/* =========================================
   HyBlocks Frontend Additions
   ========================================= */
.content, .content p, .content li { line-height: 1.65; }
.page-section { padding: 70px 0; }
.page-container { width: min(1100px, 92vw); margin: 0 auto; }
.content-card {
  position: relative; padding: 26px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 13, 22, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}
.content-card h2 { margin-top: 1.6rem; }
.table-wrap { width:100%; overflow-x:auto; border-radius:14px; border:1px solid rgba(255,255,255,0.08); }
table.hy-table { width:100%; border-collapse:collapse; min-width:640px; }
table.hy-table th, table.hy-table td { padding:14px 14px; text-align:left; border-bottom:1px solid rgba(255,255,255,0.08); }
table.hy-table thead th { font-weight:700; letter-spacing:0.02em; background: rgba(255,255,255,0.04); }
table.hy-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.btn-primary, .btn-secondary {
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:14px;
  border:1px solid rgba(255,255,255,0.12);
  text-decoration:none; font-weight:700; letter-spacing:0.03em;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: rgba(255,255,255,0.06); }
.btn-secondary { background: rgba(255,255,255,0.03); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.22); }
.logo-img { height: 30px; width:auto; display:block; }
@media (max-width: 768px) {
  .content-card { padding: 18px; }
  table.hy-table { min-width: 560px; }
}


/* Accordion (Wiki) */
.hb-panel .hb-panel-inner{ padding: 24px; }
.hb-panel .hb-panel-head{ display:flex; align-items:center; justify-content:space-between; gap: 14px; margin-bottom: 10px; }
.hb-panel-title{ margin: 0; font-family: 'Cinzel Decorative', cursive; font-size: 22px; font-weight: 400; }

.hb-toc{ list-style:none; padding:0; margin: 12px 0 0; display:flex; flex-direction:column; gap: 6px; }
.hb-toc a{ display:block; padding:10px 12px; border-radius: 12px; text-decoration:none; color: var(--text-secondary); border:1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.02); }
.hb-toc a:hover{ background: rgba(255,255,255,0.04); color: var(--text-primary); }

.hb-wiki-cat{ margin-bottom: 18px; }
.hb-accordion .accordion-content{ color: var(--text-secondary); line-height: 1.7; }
.hb-accordion .accordion-content a{ color: var(--accent-cyan); text-decoration:none; }
.hb-accordion .accordion-content a:hover{ text-decoration:underline; }
.accordion-container { display: grid; gap: 12px; margin-top: 16px; }
.accordion {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  overflow: hidden;
}
.accordion-header{
  width: 100%;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .02em;
}
.accordion-title { text-align:left; }
.accordion-icon { transition: transform 160ms ease; opacity: .85; }
.accordion-content { display:none; padding: 0 16px 16px; opacity: .95; }
.accordion.open .accordion-content { display:block; }
.accordion.open .accordion-icon { transform: rotate(180deg); }


/* Stats page */
.hb-stats-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
@media (max-width: 900px){ .hb-stats-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .hb-stats-grid{ grid-template-columns: 1fr; } }

.status-card{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 16px;
}
.status-metric-title{ opacity:.85; font-weight:700; }
.status-metric-value{ font-size: 28px; font-weight: 900; margin-top: 6px; }

.hb-stats-meta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; opacity:.85; }

.hb-stats-tools{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin: 14px 0 10px;
}
.hb-stats-tools input, .hb-stats-tools select{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: inherit;
  padding: 10px 12px;
}
.hb-stats-search{ display:flex; align-items:center; gap:10px; }
.hb-stats-pagesize, .hb-stats-sort{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.hb-sortdir-btn{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: inherit;
  padding: 10px 12px;
  cursor:pointer;
}
.hb-toggle{ display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.hb-toggle input{ width: 18px; height: 18px; }
.hb-stats-table{ width:100%; border-collapse: collapse; }
.hb-stats-table th, .hb-stats-table td{ padding: 12px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hb-stats-table thead th{ background: rgba(255,255,255,0.04); text-align:left; }
.hb-stats-table-wrap{ overflow-x:auto; border-radius:14px; border:1px solid rgba(255,255,255,0.08); }

.hb-stats-pagination{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:14px;
  flex-wrap:wrap;
}
.hb-stats-pagination #pagination-pages{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.hb-stats-navbtns{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.hb-stats-hint{ margin-top: 10px; color: var(--text-muted); font-size: 13px; }

.hb-stats-mobile-sort{ display:none; align-items:center; gap: 10px; }
.hb-stats-mobile-sort select{ background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; color: inherit; padding: 10px 12px; }

/* Zebra rows for better readability */
.hy-table tbody tr:nth-child(even){ background: rgba(255,255,255,0.015); }

@media (max-width: 720px){
  .hb-stats-mobile-sort{ display:flex; }
  .hb-stats-tools{ gap:10px; }
}



/* Footer bottom (single line under divider) */
.footer-meta .dot{ padding: 0 8px; color: rgba(255,255,255,0.25); }

/* Hero metrics (Hytale status + players) */
.hero-metrics{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  justify-content:center;
  flex-wrap:wrap;
}
.metric-pill{
  background: rgba(20,30,43,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 14px;
  display:flex;
  gap: 10px;
  align-items:center;
  backdrop-filter: blur(8px);
}
.metric-label{
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-muted);
}
.metric-value{
  font-weight: 700;
}
.metric-value.status-online{ color: var(--accent-green); }
.metric-value.status-offline{ color: #ff6b6b; }

/* --- Home: inline "IP kopiert" feedback next to the IP box --- */
.server-info.server-ip{ position: relative; }
.ip-copy-feedback{
  position: absolute;
  left: 14px;
  bottom: -10px;
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,13,22,0.85);
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.ip-copy-feedback.is-visible{ opacity: 1; transform: translateY(0); }

/* --- Stats: wider layout (desktop), no horizontal scrollbars, polished tools + pagination --- */
.stats-page .page-container{ width: min(1500px, 96vw); }
.stats-page .table-wrap{ overflow: visible; }
.stats-page table.hy-table{ min-width: 0; table-layout: fixed; }
.stats-page .hb-stats-table th, .stats-page .hb-stats-table td{ padding: 10px 12px; font-size: 13px; }
.stats-page .hb-stats-table th{ white-space: nowrap; }
.stats-page .hb-stats-table td{ word-break: break-word; }

.hb-stats-tools{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.hb-stats-search input{ min-width: 260px; }
.hb-stats-pagesize select, .hb-stats-tools select, .hb-stats-tools input{ transition: border-color .15s ease, background .15s ease; }
.hb-stats-tools input:focus, .hb-stats-tools select:focus{
  outline: none;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
}

/* Sort buttons (table headers) */
.hb-sort-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: inherit;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.stats-page .hb-stats-table thead th{ padding: 10px 10px; }
.stats-page .hb-stats-table thead .hb-sort-btn{
  width: 100%;
  justify-content: flex-start;
  position: relative;
}
.stats-page .hb-stats-table thead th:first-child .hb-sort-btn{
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}
.stats-page .hb-stats-table thead .hb-sort-btn::after{
  position:absolute;
  right:10px;
}
.hb-sort-btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
.hb-sort-btn.is-active{ border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); }

/* Pagination */
.hb-page-btn{
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.hb-page-btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
.hb-page-btn.is-active{ background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); }
.hb-page-btn:disabled{ opacity: .5; cursor: not-allowed; transform: none; }
.hb-page-ellipsis{ opacity:.75; padding: 0 4px; }

.hb-nav-btn{
  width: 44px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.hb-nav-btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.05); }
.hb-nav-btn:disabled{ opacity: .5; cursor: not-allowed; transform: none; }

/* Online/Offline badge style */
.hb-pill{ display:inline-flex; align-items:center; gap:8px; padding: 6px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .02em; border: 1px solid rgba(255,255,255,0.12); }
.hb-pill-online{ background: rgba(46, 204, 113, 0.12); border-color: rgba(46, 204, 113, 0.22); color: var(--accent-green); }
.hb-pill-offline{ background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.82); }
.hb-dot-online{ width: 8px; height: 8px; border-radius: 999px; background: var(--accent-green); box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.14); }
.metric-value.status-loading{ color: var(--text-secondary); }

/* Page layouts */
.wiki-layout, .rules-layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items:start;
}
.wiki-sidebar h2, .rules-sidebar h2{ margin-top:0; }
.wiki-sidebar ul, .rules-toc{ list-style:none; padding-left:0; margin:12px 0 0; }
.wiki-sidebar a, .rules-toc a{
  display:block;
  padding:10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration:none;
  border:1px solid transparent;
}
.wiki-sidebar a:hover, .rules-toc a:hover{
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.06);
}
.wiki-content{ min-width: 0; }
.rules-content{ min-width: 0; display:flex; flex-direction:column; gap: 14px; }
.rule-card h2{ margin-top:0; }
.rule-body p{ color: var(--text-secondary); line-height: 1.7; }

/* Tables (Stats) */
.table-wrap{
  overflow:auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}
.hy-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: rgba(13,21,32,0.35);
}
.hy-table th, .hy-table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align:left;
  vertical-align: middle;
}
.hy-table thead th{
  position: sticky;
  top: 0;
  background: rgba(20,30,43,0.95);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-muted);
  z-index: 1;
}
.hy-table tbody tr:hover{ background: rgba(255,255,255,0.03); }
.hy-table .is-num{ text-align:right; }
.hy-table td.is-num{ text-align:right; }

/* Team page */
.hb-role-block{ margin-bottom: 26px; }
.hb-team-grid{ gap: 18px; }

.hb-team-card .hb-panel-inner{ padding: 22px; }
.hb-team-head{ display:flex; align-items:center; gap: 14px; margin-bottom: 12px; }
.hb-avatar{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  background: rgba(255,255,255,0.04);
  flex: 0 0 auto;
}
.hb-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.hb-avatar-fallback{ width:100%; height:100%; background: rgba(255,255,255,0.06); }

.hb-team-title h3{ margin: 0; font-size: 18px; font-weight: 800; }
.hb-team-role{ margin-top: 2px; color: var(--text-secondary); font-size: 13px; }

.team-page .member-bio{
  margin-top: 10px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.team-page .member-bio p{ margin: 0 0 10px; }
.team-page .member-bio ul{ padding-left: 18px; margin: 8px 0 0; }
.team-page .member-bio a{ color: var(--accent-cyan); text-decoration:none; }
.team-page .member-bio a:hover{ text-decoration:underline; }

.hb-team-social{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 14px; }
.hb-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  text-decoration:none;
  font-weight: 700;
  font-size: 13px;
}
.hb-icon-btn:hover{ background: rgba(255,255,255,0.06); color: var(--text-primary); border-color: rgba(255,255,255,0.16); }

/* Responsive */
@media (max-width: 980px){
  .wiki-layout, .rules-layout{ grid-template-columns: 1fr; }
  .wiki-sidebar, .rules-sidebar{ position: relative; }
  .hy-table{ min-width: 720px; }
}


/* ================================================
   STATS TABLE (Improved)
   ================================================ */
.table-wrap{
  width:100%;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--border-color);
  border-radius:14px;
  background:rgba(20,30,43,.75);
}
.hy-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 980px;
}
.hy-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:rgba(13,21,32,.98);
  border-bottom:1px solid var(--border-color);
}
.hy-table th, .hy-table td{
  padding:14px 14px;
  text-align:left;
  border-bottom:1px solid rgba(42,58,74,.55);
  white-space:nowrap;
}
.hy-table tbody tr:nth-child(odd){
  background:rgba(255,255,255,.02);
}
.hy-table tbody tr:hover{
  background:rgba(74,195,224,.06);
}
.hy-table .is-num{ text-align:right; }
.hy-table .is-date{ text-align:left; }

/* Hide/show helpers (fix duplicated mobile stats) */
.hb-mobile-only{ display:none; }
.hb-desktop-only{ display:table-cell; }

@media (max-width: 900px){
  .hy-table{ min-width: 760px; }
}
@media (max-width: 768px){
  .hb-mobile-only{ display:block; }
  .hb-desktop-only{ display:none; }
  /* keep table scrollable on mobile */
  .hy-table{ min-width: 860px; }
}

/* Sort buttons (nicer than plain buttons) */
.hb-sort-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(42,58,74,.9);
  background:rgba(20,30,43,.55);
  color:var(--text-secondary);
  font-weight:700;
  letter-spacing:.4px;
  cursor:pointer;
  transition: background .2s, border-color .2s, color .2s, transform .08s;
}
.hb-sort-btn:hover{
  background:rgba(26,40,56,.75);
  border-color:var(--border-glow);
  color:var(--text-primary);
}
.hb-sort-btn:active{ transform: translateY(1px); }
.hb-sort-btn::after{
  content:"⇅";
  font-size:12px;
  opacity:.65;
}
th[data-sort].is-sorted-asc .hb-sort-btn::after,
th[data-sort].is-asc .hb-sort-btn::after{ content:"↑"; opacity:1; color:var(--accent-cyan); }
th[data-sort].is-sorted-desc .hb-sort-btn::after,
th[data-sort].is-desc .hb-sort-btn::after{ content:"↓"; opacity:1; color:var(--accent-cyan); }

/* sticky first columns for stats table */
.stats-page .hy-table th:first-child,
.stats-page .hy-table td:first-child{
  position:sticky;
  left:0;
  z-index:3;
  width:48px;
  max-width:48px;
  background: rgba(16,26,38,.52);
}
.stats-page .hy-table th:nth-child(2),
.stats-page .hy-table td:nth-child(2){
  position:sticky;
  left:48px;
  z-index:2;
  background: rgba(16,26,38,.52);
}

/* Stats table: make all columns use the same cell background */
.stats-page .hy-table thead th{
  background: rgba(16,26,38,.78);
}
.stats-page .hy-table tbody td{
  background: rgba(16,26,38,.52);
}
.stats-page .hy-table tbody tr:nth-child(even) td{
  background: rgba(16,26,38,.60);
}
.stats-page .hy-table tbody tr:nth-child(even) td:first-child,
.stats-page .hy-table tbody tr:nth-child(even) td:nth-child(2){
  background: rgba(16,26,38,.60);
}
/* Hover (sichtbarer, aber immer noch passend zum Template) */
.stats-page .hy-table tbody td{
  transition: background .12s ease;
}

.stats-page .hy-table tbody tr:hover td{
  background: rgba(16,26,38,.82);
}

.stats-page .hy-table tbody tr:hover td:first-child,
.stats-page .hy-table tbody tr:hover td:nth-child(2){
  background: rgba(16,26,38,.82);
}

/* Header sticky columns should also match the header tone */
.stats-page .hy-table thead th:first-child,
.stats-page .hy-table thead th:nth-child(2){
  background: rgba(16,26,38,.78);
}

/* Stats: desktop table should fit without horizontal scrollbars */
.stats-page .table-wrap{ overflow: hidden; }
.stats-page .hy-table{ min-width:0; table-layout: fixed; }
.stats-page .hy-table thead th{ white-space:nowrap; }

/* Stats: Mobile cards (instead of wide tables) */
.hb-stats-cards{ display:none; }
.hb-player-card{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(20,30,43,.55);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.hb-player-card + .hb-player-card{ margin-top: 12px; }
.hb-player-card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; margin-bottom: 12px; }
.hb-player-card-left{ display:flex; align-items:center; gap: 10px; min-width: 0; }
.hb-rank-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 28px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-weight: 800;
  font-size: 12px;
  color: var(--text-secondary);
}
.hb-player-card-name{ margin:0; font-size: 16px; font-weight: 900; letter-spacing: .01em; overflow:hidden; text-overflow: ellipsis; white-space:nowrap; }
.hb-player-card-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.hb-kv{ display:flex; flex-direction:column; gap: 4px; padding: 10px 10px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.hb-k{ font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.hb-v{ font-weight: 800; color: var(--text-primary); }
.hb-empty{ padding: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.10); background: rgba(20,30,43,.55); color: var(--text-secondary); }

@media (max-width: 900px){
  .stats-page .table-wrap{ display:none; }
  .hb-stats-cards{ display:block; }
  .hb-player-card-grid{ grid-template-columns: 1fr; }
}
.stats-page .hy-table td{ white-space:normal; }
.stats-page .hy-table td.is-num{ white-space:nowrap; }
