/* style.css */

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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.access-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.rate-limit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.rate-limit-modal {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.rate-limit-header {
    padding: 24px 24px 20px;
    background: rgba(255, 82, 82, 0.1);
    border-bottom: 1px solid rgba(255, 82, 82, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
}

.rate-limit-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 82, 82, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.rate-limit-icon i {
    font-size: 22px;
    color: #ff5252;
}

.rate-limit-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.rate-limit-title p {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}

.rate-limit-content {
    padding: 24px;
}

.rate-limit-message {
    font-size: 14px;
    line-height: 1.5;
    color: #b0b0b0;
    margin-bottom: 24px;
    text-align: center;
}

.rate-limit-timer-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.timer-label {
    font-size: 13px;
    color: #888888;
    margin-bottom: 8px;
}

.timer-display {
    font-size: 24px;
    font-weight: 700;
    color: #ff5252;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.timer-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff5252, #ff8a80);
    border-radius: 3px;
    width: 100%;
    transition: width 1s linear;
}

.rate-limit-actions {
    margin-top: 24px;
}

.rate-limit-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255, 82, 82, 0.15);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: 8px;
    color: #ff5252;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rate-limit-btn:hover {
    background: rgba(255, 82, 82, 0.25);
    transform: translateY(-1px);
}

.rate-limit-btn:active {
    transform: translateY(0);
}

.rate-limit-footer {
    padding: 16px 24px;
    border-top: 1px solid #1a1a1a;
    background: rgba(255, 255, 255, 0.02);
}

.rate-limit-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #666666;
}

.rate-limit-note i {
    color: #ffa726;
}

.access-modal {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.access-header {
    padding: 24px 24px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 16px;
}

.access-logo {
    width: 48px;
    height: 48px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.access-logo i {
    font-size: 22px;
    color: #4caf50;
}

.access-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.access-title p {
    font-size: 12px;
    color: #888888;
    font-weight: 500;
}

.access-challenge {
    padding: 24px;
}

.challenge-text {
    font-size: 16px;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.challenge-text strong {
    color: #4caf50;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.challenge-input-group {
    position: relative;
    margin-bottom: 16px;
}

.challenge-input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.challenge-input:focus {
    border-color: #4caf50;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 16px;
}

.clear-input {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-input:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.attempts-info {
    text-align: center;
    font-size: 12px;
    color: #888888;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.attempts-info .clock-icon {
    color: #ffa726;
    font-size: 12px;
}

#attemptsCount {
    color: #ffa726;
    font-weight: 600;
    font-size: 14px;
}

.access-submit {
    width: 100%;
    padding: 14px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
    color: #4caf50;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.access-submit:hover {
    background: rgba(76, 175, 80, 0.25);
    transform: translateY(-1px);
}

.access-submit:active {
    transform: translateY(0);
}

.access-warning {
    display: flex;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.access-warning i {
    color: #4caf50;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.access-warning p {
    font-size: 12px;
    color: #888888;
    line-height: 1.4;
    margin: 0;
}

.access-footer {
    padding: 16px 24px;
    border-top: 1px solid #1a1a1a;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.security-badge {
    color: #666666;
    font-size: 12px;
    font-weight: 500;
}

.block-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
}

.block-overlay.hidden {
    display: none !important;
}

.block-modal {
    background: #111111;
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.block-header {
    padding: 24px 24px 20px;
    background: rgba(255, 82, 82, 0.1);
    border-bottom: 1px solid rgba(255, 82, 82, 0.2);
    text-align: center;
}

.block-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 82, 82, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.block-icon i {
    font-size: 22px;
    color: #ff5252;
}

.block-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.block-title p {
    font-size: 13px;
    color: #ff5252;
    font-weight: 500;
}

.block-content {
    padding: 24px;
}

.block-message {
    font-size: 14px;
    line-height: 1.5;
    color: #b0b0b0;
    margin-bottom: 24px;
    text-align: center;
}

.block-timer-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.block-timer-label {
    font-size: 13px;
    color: #888888;
    margin-bottom: 8px;
}

.block-timer-display {
    font-size: 24px;
    font-weight: 700;
    color: #ff5252;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.block-timer-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
}

.block-timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff5252, #ff8a80);
    border-radius: 3px;
    width: 0%;
    transition: width 1s linear;
}

.block-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.block-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.block-detail-item i {
    color: #ffa726;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.block-detail-item span {
    font-size: 12px;
    color: #888888;
    line-height: 1.4;
}

.block-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 82, 82, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.block-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #888888;
}

.block-note i {
    color: #ffa726;
}

.block-note strong {
    color: #ff5252;
    font-weight: 600;
}

.app-container {
    display: flex;
    height: 100vh;
    max-height: 1080px;
    min-height: 900px;
    background: #0a0a0a;
}

.sidebar {
    width: 280px;
    background: #111111;
    border-right: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.3));
    animation: logo-pulse 3s infinite ease-in-out;
}

@keyframes logo-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.6));
    }
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.tagline {
    font-size: 11px;
    color: #4caf50;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.catalog-info {
    padding: 16px;
    background: rgba(76, 175, 80, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    margin-bottom: 24px;
}

.catalog-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.catalog-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.donate-link, .url-safely-link {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    font-size: 11px;
    transition: color 0.2s ease;
}

.donate-link:hover, .url-safely-link:hover {
    color: #66bb6a;
    text-decoration: underline;
}

.catalog-links .divider {
    color: #666666;
    font-size: 11px;
}

.search-container {
    margin-bottom: 24px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #666666;
    font-size: 14px;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: #666666;
}

.search-input:focus {
    outline: none;
    border-color: #4caf50;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.search-clear {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.search-clear:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-section {
    margin-bottom: 24px;
}

.nav-title {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #b0b0b0;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-family: inherit;
    position: relative;
}

.sort-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    border-radius: 6px;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.sort-option:hover::before {
    opacity: 1;
}

.sort-option:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.sort-option.active {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.sort-option.active::before {
    opacity: 1;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15), transparent);
}

.option-bullet {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
}

.sort-option.active .option-bullet {
    opacity: 1;
}

.option-text {
    flex: 1;
    z-index: 1;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 6px;
    color: #4caf50;
    font-size: 14px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.stat-label {
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
    text-align: center;
}

.social-links-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.social-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-link-footer:hover {
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.social-link-footer:hover::before {
    opacity: 1;
}

.social-link-footer i {
    color: #b0b0b0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link-footer:hover i {
    color: #4caf50;
}

.copyright {
    font-size: 11px;
    color: #666666;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.copyright-note {
    color: #4caf50;
    font-size: 10px;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    background: #0a0a0a;
}

.content-wrapper {
    max-width: 100%;
    padding: 24px 40px;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 32px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-input-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-input {
    width: 50px;
    height: 36px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.page-input:focus {
    outline: none;
    border-color: #4caf50;
}

.page-total {
    font-size: 13px;
    color: #888888;
}

.results-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-per-page label {
    font-size: 13px;
    color: #888888;
}

.per-page-select {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.per-page-select:focus {
    outline: none;
    border-color: #4caf50;
}

.per-page-select option {
    background: #111111;
    color: #ffffff;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.loading-state.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-state p {
    color: #888888;
    font-size: 13px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.game-card:hover {
    border-color: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.game-card:hover::before {
    opacity: 1;
}

.game-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.game-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.game-icon i {
    color: #4caf50;
    font-size: 18px;
}

.game-title {
    flex: 1;
}

.game-title h3 {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

.game-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 12px;
    color: #b0b0b0;
    font-weight: 500;
    word-break: break-word;
}

.game-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    flex: 1;
}

.btn-primary {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    margin-bottom: 40px;
}

.no-results.hidden {
    display: none;
}

.no-results i {
    font-size: 40px;
    color: #666666;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
}

.no-results p {
    color: #888888;
    font-size: 13px;
    max-width: 300px;
}

.bottom-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid #1a1a1a;
    margin-top: 32px;
}

.bottom-pagination:not(.hidden) {
    display: flex;
}

.bottom-pagination.hidden {
    display: none;
}

.pagination-info {
    font-size: 13px;
    color: #888888;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn-large {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn-large:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.pagination-btn-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.page-number.active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
}

.page-number.ellipsis {
    background: transparent;
    border: none;
    cursor: default;
    min-width: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #1a1a1a;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin-right: 16px;
}

.modal-close {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-info-item label {
    font-size: 11px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info-item span {
    font-size: 13px;
    color: #b0b0b0;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-download {
    width: 100%;
    text-align: center;
}

.modal-warning {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
}

.modal-warning i {
    color: #ffb300;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-warning p {
    font-size: 12px;
    color: #e0e0e0;
    line-height: 1.4;
    margin: 0;
}

.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

.notification.hidden {
    display: none;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.notification i {
    color: #4caf50;
    font-size: 14px;
}

.notification span {
    font-size: 13px;
    color: #ffffff;
}

.sidebar-content::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1200px) {
    .sidebar {
        width: 260px;
    }
    
    .content-wrapper {
        padding: 24px 32px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 400px;
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
    }
    
    .sidebar-content {
        overflow-y: visible;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .content-header {
        justify-content: space-between;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-details {
        grid-template-columns: 1fr;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-pagination {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .pagination-buttons {
        width: 100%;
        justify-content: center;
    }
}

.hidden {
    display: none !important;
}