.players-list-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 0 2.2rem 0;
    min-height: 80px;
}

.players-list-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #222;
    border-top: 4px solid #4ade80;
    animation: players-list-spin 0.8s linear infinite;
    margin-bottom: 0.7rem;
}

@keyframes players-list-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.players-list-loading-text {
    color: #4ade80;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    text-align: center;
}

#skin-viewer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

body {
    font-family: 'VT323', monospace;
    color: #FFF;
    background-color: #171615;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skin-detail-header {
    margin-bottom: 2rem;
    text-align: center;
}

.skin-detail-header h1 {
    color: #4ade80;
    margin-bottom: 0.5rem;
}

.skin-hash {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888;
}

.skin-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 968px) {
    .skin-detail-layout {
        grid-template-columns: 1fr;
    }
}

.skin-detail-viewer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skin-texture {
    background: rgba(0,0,0,0.35);
    border: 3px solid #000;
    padding: 1.5rem;
    text-align: center;
    box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04), inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.skin-texture h3 {
    color: #4ade80;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 1px;
}

.texture-container {
    background: #1a1a1a;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 3px solid #000;
    box-shadow: inset 2px 2px 0px #000;
}

.texture-container img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    border: 2px solid #222;
    background: #111;
    border-radius: 0;
}

.download-button {
    display: inline-block;
    background-color: #4CAF50;
    color: #FFF;
    padding: 0.7rem 1.4rem;
    border-radius: 0;
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'VT323', monospace;
    font-weight: 400;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.download-button:hover {
    background-color: #66BB6A;
    color: #FFF;
    border-color: #000;
}
.download-button:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}

.skin-users-list {
    background: rgba(0,0,0,0.35);
    border: 3px solid #000;
    padding: 1.5rem;
    box-shadow: inset 3px 3px 0px rgba(255, 255, 255, 0.04), inset -3px -3px 0px rgba(0, 0, 0, 0.2), 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.skin-users-list h2 {
    color: #4ade80;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-family: 'Press Start 2P', cursive;
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-controls button {
    background-color: #4CAF50;
    color: #FFF;
    border: 3px solid #000;
    box-shadow: 3px 3px 0px #000;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0.7rem 1.4rem;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    flex: 1;
    outline: none;
}
.filter-controls button:hover {
    background-color: #66BB6A;
    color: #FFF;
    border-color: #000;
}
.filter-controls button:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}
.filter-controls button.active {
    background: #4ade80;
    color: #000;
    border-color: #000;
}

.players-list {
    max-height: 500px;
    overflow-y: auto;
    border: 3px solid #000;
    background: rgba(0, 0, 0, 0.35);
}

.player-item {
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #2a2a2a;
    box-shadow: none;
    transition: background 0.15s;
}

.player-item:last-child {
    border-bottom: none;
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: none;
    box-shadow: none;
}

.player-item.current {
    background: rgba(74, 222, 128, 0.05);
    border-bottom: 1px solid #1e3a28;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0;
    border: 2px solid #000;
    background: #111;
}

.player-info {
    flex-grow: 1;
}

.player-name {
    font-weight: 600;
    color: #e0e0e0;
    display: block;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'VT323', monospace;
}

.player-name:hover {
    color: #4ade80;
}

.player-status {
    font-size: 0.9rem;
    color: #888;
}

.player-status.current {
    color: #4ade80;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.loader {
    width: 70px;
    height: 50px;
    box-sizing: border-box;
    background:
        conic-gradient(from 135deg at top,#ffffff00, #fff 1deg 90deg,#0000 91deg) right -20px bottom 8px/18px 9px,
        linear-gradient(#fff 0 0) bottom/100% 8px,
        transparent;
    background-repeat: no-repeat;
    border-bottom: 8px solid transparent;
    position: relative;
    animation: l7-0 2s infinite linear;
    margin-bottom: 1.5rem;
}

.loader::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 14px;
    background: lightblue;
    left: 10px;
    animation: l7-1 2s infinite cubic-bezier(0,200,1,200);
}

@keyframes l7-0{
    100% { background-position: left -20px bottom 8px,bottom}
}

@keyframes l7-1{
    0%,50%   {bottom: 8px}
    90%,100% {bottom: 8.1px}
}

#loading-text {
    font-size: 1.1rem;
    color: #4ade80;
    margin-top: 0.5rem;
    font-weight: 600;
    min-height: 1.5rem;
    font-family: 'VT323', monospace;
}

.error-message {
    color: #ff6b6b;
    background: #2a1818;
    border: 3px solid #ff6b6b;
    box-shadow: 4px 4px 0px #000;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 1.1rem;
    font-family: 'VT323', monospace;
    text-align: center;
}

.hidden { display: none !important; }


footer {
    background-color: #222;
    padding: 20px 0;
    margin-top: auto;
    border-top: 4px solid #444;
}
.footer-links a {
    color: #AAA;
    text-decoration: none;
    margin-left: 15px;
    font-size: 1rem;
}
.footer-links a:hover {
    color: #4ade80;
}
.footer-text {
    color: #888;
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}

main {
    margin-top: 0;
    padding-top: 32px;
}

@media (max-width: 768px) {
    .skin-detail-layout {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .skin-detail-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .skin-detail-header h1 {
        font-size: 1.5rem;
    }
    .skin-texture, .skin-users-list {
        padding: 1rem;
    }
    .download-button, .filter-controls button {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    .players-list {
        max-height: 300px;
        font-size: 0.95rem;
    }
    .player-avatar {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 400px) {
    .skin-detail-header h1 {
        font-size: 1.1rem;
    }
    .download-button, .filter-controls button {
        font-size: 0.9rem;
        padding: 0.4rem 0.7rem;
    }
}

.avatar-img {
    width: 32px;
    height: 32px;
    border: 2px solid #4ade80;
    background: #222;
    box-shadow: 2px 2px 0 #000;
    image-rendering: pixelated;
    transition: border-color 0.2s;
    display: block;
    padding: 0;
}
.avatar-img:hover {
    border-color: #fff;
    box-shadow: 2px 2px 0 #4ade80;
}

        .page-bg {
            background-image: url('../img/background.webp');
            background-repeat: repeat;
            background-size: cover;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            opacity: 0.4;
            filter: blur(6px);
        }
.discord-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DDD;
  transition: color 0.3s ease;
}

.discord-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.discord-nav-link:hover {
  color: #4ade80;
}

.user-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    box-shadow: none !important;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background: #262423;
    border: 3px solid #000;
    min-width: 150px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.user-dropdown-menu.show {
    display: flex;
}

.user-dropdown-item {
    padding: 12px 16px;
    color: #DDD;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    border-bottom: 2px solid #333;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: #333;
    color: #4ade80;
}

.logout-btn-dropdown {
    color: #ff5252;
}

.logout-btn-dropdown:hover {
    color: #ff5252;
    background: #333;
}
