* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg,#f8f9fa 0%,#e3f2fd 100%);
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}
.header h1 {
    font-size: 2.5rem;
    color: #1b2838;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.header h2 {
    font-size: 1.5rem;
    color: #66c0f4;
    margin-bottom: 20px;
    font-weight: 500;
}
.header .user-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.header .user-stats .stat-item {
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 150px;
}
.header .user-stats .stat-item .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b35;
    display: block;
}
.header .user-stats .stat-item .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.header .logout-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 15px;
    display: inline-block;
}
.header .logout-button:hover {
    background: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.nav-links a {
    background: #66c0f4;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.nav-links a:hover {
    background: #36acf1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.search-bar {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 30px auto;
    max-width: 800px;
}
.search-bar .search-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.search-bar .search-controls input, .search-bar .search-controls select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
}
.search-bar .search-controls input:focus, .search-bar .search-controls select:focus {
    outline: none;
    border-color: #66c0f4;
    box-shadow: 0 0 0 3px rgba(102,192,244,0.1);
}
.search-bar .search-controls input {
    flex: 1;
    max-width: 400px;
}
.share-section {
    text-align: center;
    margin: 20px 0;
}
.share-section .share-button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 10px;
}
.share-section .share-button:hover {
    background: #ff4602;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.share-section .share-button.copied {
    background: #28a745;
}
.share-section .share-url {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin: 15px auto;
    max-width: 500px;
    display: none;
}
.share-section .share-url input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    font-size: 14px;
}
.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}
.games-list li {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}
.games-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.games-list li img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid #e9ecef;
}
.games-list li .game-info {
    padding: 20px;
}
.games-list li .game-info .game-title {
    font-size: 16px;
    font-weight: 700;
    color: #1b2838;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.games-list li .game-info .game-id {
    color: #888;
    font-size: 12px;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}
.games-list li .game-info .playtime {
    color: #555;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.games-list li .game-info .playtime .label {
    font-weight: 600;
    color: #666;
}
.games-list li .game-info .playtime .value {
    color: #ff6b35;
    font-weight: 500;
}
.games-list li .game-info .game-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.games-list li .game-info .game-links a {
    flex: 1;
    background: #66c0f4;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}
.games-list li .game-info .game-links a:hover {
    background: #36acf1;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .container {
        padding: 15px;
   }
    .header h1 {
        font-size: 2rem;
   }
    .header h2 {
        font-size: 1.2rem;
   }
    .user-stats {
        gap: 15px;
   }
    .user-stats .stat-item {
        min-width: 120px;
        padding: 12px 20px;
   }
    .user-stats .stat-item .stat-number {
        font-size: 1.5rem;
   }
    .search-bar .search-controls {
        flex-direction: column;
   }
    .search-bar .search-controls input, .search-bar .search-controls select {
        width: 100%;
        max-width: none;
   }
    .games-list {
        grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
        gap: 20px;
   }
    .nav-links {
        flex-direction: column;
        align-items: center;
   }
    .nav-links a {
        width: 100%;
        max-width: 300px;
   }
}
@media (max-width: 480px) {
    .games-list {
        grid-template-columns: 1fr;
   }
    .header h1 {
        font-size: 1.8rem;
   }
    .user-stats {
        flex-direction: column;
        align-items: center;
   }
    .user-stats .stat-item {
        width: 100%;
        max-width: 200px;
   }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
   }
    to {
        opacity: 1;
        transform: translateY(0);
   }
}
.games-list li {
    animation: fadeIn 0.6s ease-out;
}
.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #f5c6cb;
}
