﻿/* ============================================
   MCNameData – Players UI
   Strukturiert & Übersichtlich
   ============================================ */

/* ============================================
   MINECRAFT FRAMEWORK — Fonts & Button-Stil
   zum Deaktivieren diesen Block löschen
   ============================================ */
@font-face {
    font-family: MinecraftRegular;
    font-style: normal;
    font-weight: 400;
    src: url('https://cdn.jsdelivr.net/gh/Jiyath5516F/Minecraft-CSS@main/src/fonts/Minecraft-Regular.otf') format("opentype");
}

@font-face {
    font-family: GalacticAlphabet;
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/galactic.ttf') format('truetype');
}
@font-face {
    font-family: MinecraftTen;
    font-style: normal;
    font-weight: 400;
    src: url('https://cdn.jsdelivr.net/gh/Jiyath5516F/Minecraft-CSS@main/src/fonts/Minecraft-Ten.ttf') format("truetype");
}

/* Minecraft-Font global */
* {
    font-family: MinecraftRegular, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.mc-table thead th {
    letter-spacing: 1px !important;
}

/* Sort-Dropdown Labels: MinecraftRegular für bessere Lesbarkeit */
.dropdown-menu li span,
.dropdown-menu .dropdown-item {
    font-family: MinecraftRegular, sans-serif !important;
    letter-spacing: 0.5px !important;
}

.stat-box .label {
    letter-spacing: 0.3px !important;
    font-size: 11px !important;
}

.stat-box .value {
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}

.mc-id {
    letter-spacing: 0.2px !important;
    font-size: 11px !important;
}

.mc-prev-names {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    flex-wrap: wrap;
    font-size: 11px !important;
    color: rgba(255,255,255,0.50) !important;
    font-style: italic;
}

.mc-prev-names-label {
    font-style: normal;
    font-size: 10px !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(168,85,247,0.90) !important;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.28);
    border-radius: 4px;
    padding: 1px 5px;
    flex-shrink: 0;
}

.mc-h1 {
    letter-spacing: 2px !important;
    line-height: 1.3 !important;
}

@media (max-width: 480px) {
    .mc-h1 {
        letter-spacing: 0.5px !important;
    }
}

.mc-table thead th,
.mc-infobox-title,
.stats-card .stats-title,
.mc-card-title {
    letter-spacing: 2px !important;
    line-height: 1.5 !important;
}

/* Minecraft Bevel-Button-Stil für mc-btn */
.mc-btn {
    background: #c6c6c6 !important;
    border: 1.5px solid #131313 !important;
    box-shadow: inset 1.5px 1.5px 0 rgba(247,247,247,0.75), inset -1.5px -1.5px 0 #656465 !important;
    color: #4c4c4c !important;
    border-radius: 0 !important;
    transition: none !important;
    text-shadow: none !important;
}
.mc-btn:hover, .mc-btn:focus {
    background: #218306 !important;
    border-color: #fff !important;
    box-shadow: inset 1.5px 1.5px 0 rgba(23,205,7,0.75), inset -1.5px -1.5px 0 #004e00 !important;
    color: #fff !important;
    transform: none !important;
}

/* ============================================
   1. CSS VARIABLEN
   ============================================ */
:root {
    --mc-bg1: #0b1220;
    --mc-bg2: #0a0f1a;
    --mc-card: rgba(255,255,255,0.06);
    --mc-card2: rgba(255,255,255,0.08);
    --mc-border: rgba(168,85,247,0.16);
    --mc-text: rgba(255,255,255,0.92);
    --mc-dim: rgba(255,255,255,0.65);
    --mc-dim2: rgba(255,255,255,0.45);
    --mc-accent: #a855f7;
    --mc-accent2: #c084fc;
    --mc-danger: #ff5c7a;
}

/* ============================================
   2. GLOBALE STYLES & BODY
   ============================================ */
html {
    min-height: 100%;
}

body {
    min-height: 100%;
    overflow-x: clip;
}

body {
    background-color: #070b13;
    color: rgba(255,255,255,0.92);
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background-repeat: no-repeat;
        background-position: top center;
        background-size: cover;
        filter: blur(4px);
        transform: scale(1.05);
    }

.container {
    background: transparent !important;
}

/* ============================================
   3. PAGE LAYOUT
   ============================================ */
.mc-page {
    margin: 8px auto;
    padding: 0 14px 40px;
}

.mc-grid {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 16px;
    align-items: start;
}

/* ============================================
   4. HEADER
   ============================================ */
.mc-headersection-statsdropdown {
    display: none !important;
}
.mc-period-standalone {
    display: none !important;
}
.mc-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mc-title-container {
    margin-bottom: 10px;
}

.mc-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 12px #a855f7aa, 0 0 28px #a855f744, 0 8px 30px rgba(0,0,0,0.4); border-color: rgba(168,85,247,0.55); }
    33%      { box-shadow: 0 0 16px #6366f1bb, 0 0 36px #6366f155, 0 8px 30px rgba(0,0,0,0.4); border-color: rgba(99,102,241,0.60); }
    66%      { box-shadow: 0 0 14px #e879f9bb, 0 0 32px #e879f944, 0 8px 30px rgba(0,0,0,0.4); border-color: rgba(232,121,249,0.55); }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1.00); }
    50%      { transform: scale(1.04); }
}

.mc-badge {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139,92,246,0.22), rgba(99,102,241,0.16));
    border: 1.5px solid rgba(168,85,247,0.55);
    overflow: hidden;
    flex-shrink: 0;
    animation: badgeGlow 4s ease-in-out infinite;
}

.mc-badge-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    image-rendering: pixelated;
}

@keyframes enchantSweep {
    0%   { background-position: 150% center; }
    100% { background-position: -50%  center; }
}

.mc-h1 {
    margin: 0;
    font-size: clamp(14px, 5vw, 28px);
    line-height: 1.15;
    font-family: MinecraftTen, sans-serif !important;
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 38%, #c4b5fd 50%, #a855f7 62%, #7c3aed 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: enchantSweep 7s ease-in-out infinite alternate;
}

.mc-sub {
    color: var(--mc-dim);
    font-size: 13px;
}

/* ============================================
   5. TOOLBAR
   ============================================ */
.mc-toolbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(6px);
    padding: 10px 12px;
    border-bottom: 1px solid var(--mc-border);
    transform: translateZ(0);
    will-change: transform;
}

/* ============================================
   6. SEARCH & INPUT ELEMENTS
   ============================================ */
.mc-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-searchbox {
    position: relative;
    min-width: 320px;
}

    .mc-searchbox .mc-input {
        padding-left: 32px;
    }

.mc-searchicon-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mc-dim2);
    font-size: 16px;
    background: none;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}
.mc-searchicon-btn:hover { color: var(--mc-accent); }

.mc-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    text-decoration: none;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.mc-search-clear:hover { color: rgba(255,100,100,0.9); background: rgba(255,80,80,0.15); }

.mc-input {
    width: 100%;
    padding: 10px 32px 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--mc-border);
    background: rgba(255,255,255,0.06);
    color: var(--mc-text);
    outline: none;
    transition: 140ms ease;
}

    .mc-input:focus {
        background: rgba(255,255,255,0.06);
        border-color: rgba(168,85,247,0.55);
        box-shadow: 0 0 0 4px rgba(168,85,247,0.15);
    }

    .mc-input::placeholder {
        color: rgba(255,255,255,0.35);
    }

    /* iOS/Safari autofill override – prevents white background on tap */
    .mc-input:-webkit-autofill,
    .mc-input:-webkit-autofill:hover,
    .mc-input:-webkit-autofill:focus {
        -webkit-text-fill-color: rgba(255,255,255,0.92);
        -webkit-box-shadow: 0 0 0px 1000px rgba(11,18,32,0.95) inset;
        box-shadow: 0 0 0px 1000px rgba(11,18,32,0.95) inset, 0 0 0 4px rgba(168,85,247,0.15);
        border-color: rgba(168,85,247,0.55);
        caret-color: rgba(255,255,255,0.92);
    }

.mc-input-sm {
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.mc-textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.4;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 14px;
}

    .mc-textarea:focus {
        min-height: 110px;
    }

.mc-label {
    display: block;
    font-size: 12px;
    color: var(--mc-dim);
    margin-bottom: 6px;
}

/* ============================================
   7. BUTTONS
   ============================================ */
.mc-btn {
    border-radius: 14px !important;
    border-color: rgba(255,255,255,0.22) !important;
    color: rgba(255,255,255,0.90) !important;
    background: rgba(255,255,255,0.06) !important;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

    .mc-btn:hover,
    .mc-btn:focus {
        background: rgba(255,255,255,0.10) !important;
        color: rgba(255,255,255,0.95) !important;
        border-color: rgba(168,85,247,0.55) !important;
        box-shadow: 0 0 0 4px rgba(168,85,247,0.15) !important;
        transform: translateY(-1px);
    }

    .mc-btn:active {
        transform: translateY(0px);
    }

.mc-btn-sm {
    border-radius: 12px !important;
}

.mc-primary {
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(168,85,247,0.90), rgba(99,102,241,0.80)) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 800;
    box-shadow: 0 12px 35px rgba(139,92,246,0.30);
    transition: filter 120ms ease, transform 120ms ease;
}

    .mc-primary:hover,
    .mc-primary:focus {
        filter: brightness(1.08);
        transform: translateY(-1px);
        color: #0b1220 !important;
    }

/* Modrinth CTA Button */
.mc-modrinth {
    padding: 10px 18px !important;
    font-size: 14px;
    letter-spacing: 0.3px;
    font-weight: 900;
    color: rgba(255,255,255,0.96) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 55%, #a855f7 100%) !important;
    border-radius: 16px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(168,85,247,0.40), 0 0 0 1px rgba(255,255,255,0.20);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

    .mc-modrinth:hover {
        transform: translateY(-2px) scale(1.03);
        filter: brightness(1.08);
        box-shadow: 0 16px 45px rgba(168,85,247,0.50), 0 0 0 2px rgba(168,85,247,0.45);
    }

    .mc-modrinth:active {
        transform: translateY(0) scale(0.98);
    }

    .mc-modrinth::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 45%, transparent 60%);
        opacity: 0;
        transform: translateX(-120%);
        transition: transform 450ms ease, opacity 200ms ease;
    }

    .mc-modrinth:hover::before {
        opacity: 1;
        transform: translateX(120%);
    }

    .mc-modrinth:hover,
    .mc-modrinth:focus {
        color: rgba(255,255,255,1) !important;
    }

/* ============================================
   8. CARDS
   ============================================ */
.mc-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(15px);
    margin-bottom: 16px;
}

.mc-card-head {
    padding: 14px 16px 0 16px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.mc-card-title {
    font-weight: 800;
}

.mc-card-hint {
    color: var(--mc-dim);
    font-size: 12px;
}

.mc-card-body {
    padding: 12px 16px 16px 16px;
}

/* ============================================
   9. INFOBOX (SIDEBAR)
   ============================================ */
.mc-infobox {
    position: sticky;
    top: 16px;
    background: rgba(11, 18, 32, 0.92);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
}

.mc-infobox-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
}

.mc-recentlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.mc-recentitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.mc-recentavatar {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.25);
}

.mc-recentname {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   10. TABLES
   ============================================ */
.mc-tablewrap {
    overflow: hidden;
    border-radius: 18px;
}

.mc-table {
    color: var(--mc-text);
    margin: 0;
}

    .mc-table thead th {
        background: rgba(168,85,247,0.05) !important;
        color: rgba(255,255,255,0.75) !important;
        border-bottom: 1px solid rgba(168,85,247,0.22) !important;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    .mc-table td {
        background: transparent !important;
        border-top: 1px solid rgba(168,85,247,0.10) !important;
        vertical-align: middle;
        padding: 14px 12px !important;
    }

.mc-row {
    transition: transform 120ms ease, box-shadow 120ms ease;
}

    .mc-row:hover {
        transform: translateY(-1px);
    }

        .mc-row:hover td {
            background: rgba(168,85,247,0.07) !important;
            border-top-color: rgba(168,85,247,0.18) !important;
        }

.players-table th,
.players-table td {
    vertical-align: middle;
}

    .players-table td:nth-child(3) {
        min-width: 440px;
    }

/* ============================================
   11. STATS
   ============================================ */
.stats-card {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    padding: 12px;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(4px);
}

    .stats-card .stats-title {
        font-weight: 600;
        color: rgba(255,255,255,.92);
        white-space: nowrap;
    }

    .stats-card .stats-subtle {
        color: rgba(255,255,255,.55);
    }

.stats-title-row {
    padding-right: 50px;
}

.stats-age-badge-mobile {
    display: none;
}

.stats-title {
    font-weight: 600;
    color: rgba(255,255,255,.92);
    white-space: nowrap;
}

.stats-subtle {
    text-align: right;
    color: rgba(255,255,255,.55);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.stat-box {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(0,0,0,.20);
}

    .stat-box .label {
        font-size: 12px;
        color: rgba(255,255,255,.55);
        line-height: 1.1;
    }

    .stat-box .value {
        font-weight: 700;
        color: rgba(255,255,255,.92);
        font-size: 16px;
    }

.stats-badge {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.stats-mobile-header {
    display: none;
}

.mc-avatar-mobile {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    border: 3px solid var(--mc-accent);
    outline: 2px solid rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.20);
    image-rendering: pixelated;
}

.mc-avatar-mobile img {
    width: 34px !important;
    height: 34px !important;
    image-rendering: pixelated;
    border-radius: 2px;
}

.stats-mobile-nameblock {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stats-mobile-name {
    font-weight: 700;
    font-size: 14px;
    color: white;
}

/* ============================================
   12. FORMS & INLINE ELEMENTS
   ============================================ */
.mc-addgrid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr 0.6fr;
    gap: 12px;
    align-items: end;
}

.mc-inlineform {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mc-namecell .mc-inlineform {
    margin-bottom: 6px;
}

.mc-notes-form {
    align-items: flex-start;
}

/* ============================================
   13. UTILITY ELEMENTS
   ============================================ */
.mc-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: flex-start;
}

.mc-id {
    color: var(--mc-dim2);
    font-size: 12px;
}

.mc-dim {
    color: var(--mc-dim);
}

.mc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    font-weight: 700;
}

.mc-avatar {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    border: 3px solid var(--mc-accent);
    outline: 2px solid rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.20);
    image-rendering: pixelated;
}

    .mc-avatar img {
        border-radius: 2px;
        image-rendering: pixelated;
        width: 70px !important;
        height: 70px !important;
    }

.mc-avatar-3d {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    background: rgba(0,0,0,0.30);
}
.mc-avatar-3d img {
    width: 100px !important;
    height: 100px !important;
    image-rendering: pixelated;
}

/* Skin Card Layout */
.skin-card-layout {
    display: flex;
    gap: 24px;
    align-items: stretch;
    width: 100%;
}
.skin-3d-col {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.skin-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.skin-section-label {
    font-size: 10px !important;
    color: rgba(255,255,255,0.38) !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.skin-anim-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
@media (max-width: 800px) {
    .skin-anim-grid { grid-template-columns: repeat(2, 1fr); }
}
.skin-anim-btn {
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.70);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: MinecraftRegular, sans-serif !important;
    white-space: nowrap;
    width: 100%;
}
.skin-anim-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.skin-anim-btn.active {
    background: rgba(168,85,247,0.15);
    border-color: rgba(168,85,247,0.45);
    color: #a855f7;
}
.skin-btn-auto { width: auto !important; }

@media (max-width: 600px) {
    .skin-card-layout { flex-direction: column; align-items: stretch; }
    .skin-3d-col { justify-content: center; }
    .skin-anim-grid { grid-template-columns: repeat(4, 1fr); }
}

.mc-player-link {
    color: white;
    text-decoration: none;
}

    .mc-player-link:hover {
        text-decoration: underline;
        color: var(--mc-accent);
    }

/* ============================================
   14. TOAST & EMPTY STATES
   ============================================ */
.mc-toast {
    margin-bottom: 14px;
}

.mc-toast-inner {
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.28);
    color: var(--mc-text);
    padding: 10px 12px;
    border-radius: 14px;
}

.mc-empty {
    padding: 28px !important;
    color: var(--mc-dim);
}

.mc-empty-title {
    font-weight: 800;
    color: rgba(255,255,255,0.85);
}

.mc-empty-sub {
    margin-top: 6px;
    color: var(--mc-dim);
    font-size: 13px;
}

/* ============================================
   15. NAVBAR & FOOTER
   ============================================ */
.navbar.bg-white {
    background: rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.10) !important;
}

.navbar .navbar-brand {
    color: rgba(255,255,255,0.92) !important;
}

.footer,
.border-top.footer {
    background: transparent !important;
    border-top: 1px solid rgba(168,85,247,0.18) !important;
}

footer.site-footer {
    min-height: 56px;
    display: flex;
    align-items: center;
}

    footer.site-footer .foot {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
    }

    footer.site-footer .links {
        align-items: center;
    }

/* ============================================
   16. DROPDOWN MENUS
   ============================================ */
.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.12) !important;
    border-left: 3px solid var(--mc-accent);
    padding-left: 9px !important;
}

.dropdown-item:active {
    background: rgba(168, 85, 247, 0.20) !important;
}

/* ============================================
   17. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet & Below (1100px) */
@media (max-width: 1100px) {
    .mc-grid {
        grid-template-columns: 1fr;
    }

    .mc-infobox {
        position: relative;
        top: auto;
    }
}

/* Laptop & Below (992px) */
@media (max-width: 992px) {
    .col-notes {
        display: none;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* Large Mobile & Below (900px) */
@media (max-width: 900px) {
    .mc-header {
        align-items: stretch;
        flex-direction: column;
    }

    .mc-search {
        flex-wrap: wrap;
    }

    .mc-searchbox {
        min-width: 100%;
    }

    .mc-addgrid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (735px) */
@media (max-width: 735px) {
    /* Hide columns on mobile */
    .col-skin,
    .col-name {
        display: none;
    }

    .stats-age-badge {
        display: none !important;
    }

    .stats-age-badge-mobile {
        display: inline-flex !important;
    }

    .stats-title-row {
        padding-right: 0 !important;
    }

    /* Show mobile header */
    .stats-mobile-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    /* Adjust stats grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Stats card full width */
    .stats-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Title positioning */
    .mc-title {
        position: static !important;
        top: auto !important;
        transform: none !important;
    }

    .mc-title-container {
        margin-bottom: 6px;
    }
    .mc-th-statsdropdown {
        display: none;
    }
    .mc-headersection-statsdropdown {
        display: block !important;
    }
    .mc-title-hiddemobile{
        display: none;
    }
    .mc-title-showmobile{
        display: flex !important;
    }
}
.mc-title-showmobile {
    display: none;
}

/* ============================================
   MOBILE PERFORMANCE — scroll lag fixes
   ============================================ */

/* Rune-Animationen pausieren während Scroll — JS setzt .is-scrolling auf body */
.is-scrolling #rune-container span {
    animation-play-state: paused;
}

/* Transform only — opacity/filter handled by separate animations */
@keyframes runeCrazy {
    0%   { transform: translate(0,0)                    rotate(0deg)      scale(0.9);  }
    18%  { transform: translate(var(--dx1),var(--dy1))  rotate(var(--r1)) scale(1.25); }
    32%  { transform: translate(var(--dx2),var(--dy2))  rotate(var(--r2)) scale(0.80); }
    48%  { transform: translate(var(--dx3),var(--dy3))  rotate(var(--r3)) scale(1.30); }
    63%  { transform: translate(var(--dx4),var(--dy4))  rotate(var(--r4)) scale(0.85); }
    78%  { transform: translate(var(--dx5),var(--dy5))  rotate(var(--r5)) scale(1.20); }
    100% { transform: translate(var(--dx6),var(--dy6))  rotate(var(--r6)) scale(0.90); }
}

/* Smooth fade in/out — uses --op for per-rune max opacity */
@keyframes runeFade {
    0%, 100% { opacity: 0; }
    8%, 92%  { opacity: var(--op, 0.08); }
}

/* Flicker variant — brief blink-offs mid-flight */
@keyframes runeFlicker {
    0%   { opacity: 0; }
    6%   { opacity: var(--op, 0.08); }
    18%  { opacity: var(--op, 0.08); }
    19%  { opacity: 0.01; }
    21%  { opacity: var(--op, 0.08); }
    22%  { opacity: 0.015; }
    23%  { opacity: var(--op, 0.08); }
    49%  { opacity: var(--op, 0.08); }
    50%  { opacity: 0.01; }
    51%  { opacity: var(--op, 0.08); }
    94%  { opacity: var(--op, 0.08); }
    100% { opacity: 0; }
}

/* Hue-rotate + glow pulse + depth blur — all in one filter animation */
@keyframes runeFilter {
    0%   { filter: blur(var(--blur,0px)) hue-rotate(0deg)   brightness(1.0); }
    25%  { filter: blur(var(--blur,0px)) hue-rotate(90deg)  brightness(2.2); }
    50%  { filter: blur(var(--blur,0px)) hue-rotate(180deg) brightness(1.0); }
    75%  { filter: blur(var(--blur,0px)) hue-rotate(270deg) brightness(1.8); }
    100% { filter: blur(var(--blur,0px)) hue-rotate(360deg) brightness(1.0); }
}

#rune-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
}

#rune-container span {
    position: absolute;
    font-family: GalacticAlphabet, serif !important;
    user-select: none;
    will-change: transform;
}

.stats-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* Inhalt über dem Link halten */
.stats-card > *:not(.stats-card-link) {
    position: relative;
    z-index: 2;
}










/* ============================================
   18. DOWNLOAD DROPDOWN
   ============================================ */
.mc-download-dropdown {
    position: relative;
    display: inline-block;
}

.mc-download-menu {
    background: rgba(11, 18, 32, 0.98) !important;
    border: 1px solid rgba(255,255,255,0.20) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.50) !important;
    backdrop-filter: blur(12px) !important;
    min-width: 280px !important;
    margin-top: 8px !important;
}

.mc-download-option {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.90) !important;
    transition: all 150ms ease;
    margin-bottom: 6px;
}

    .mc-download-option:last-child {
        margin-bottom: 0;
    }

    .mc-download-option:hover {
        background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(99,102,241,0.12)) !important;
        border-color: rgba(168,85,247,0.35) !important;
        transform: translateX(4px);
        padding-left: 18px !important;
    }

.mc-download-icon {
    font-size: 24px;
    line-height: 1;
    min-width: 32px;
    text-align: center;
}

.mc-download-text {
    flex: 1;
}

.mc-download-title {
    font-weight: 700;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2px;
}

/* Sort dropdown: compact, unfolds from button */
.mc-sort-menu {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    margin-top: -1px !important;
}

.mc-sort-menu.show {
    animation: mcSortFadeIn 0.15s ease forwards;
}

@keyframes mcSortFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#statsSortCombined[aria-expanded="true"] {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.mc-download-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.55);
}