
    :root {
        --bg-color: #0f172a;
        --card-bg: #1e293b;
        --text-main: #f1f5f9;
        --text-dim: #94a3b8;
        --accent: #ef4444;
        --link-color: #60a5fa;
    }

    body {
        font-family: 'Inter', -apple-system, system-ui, sans-serif;
        background-color: var(--bg-color);
        color: var(--text-main);
        margin: 0;
        padding: 15px;
        line-height: 1.5;
    }

    h1 { text-align: center; font-size: 1.3rem; margin: 20px 0; color: var(--text-main); font-weight: 800; }

    /* menu */
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 25px;
    }

    .nav-container a {
        background: var(--card-bg);
        color: var(--text-main);
        padding: 8px 12px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 13px;
        border: 1px solid #334155;
        transition: 0.2s;
    }

    .nav-container a:hover { background: var(--accent); border-color: var(--accent); }

    /* Setka prewu */
    .preview-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        max-width: 1000px;
        margin: 0 auto 30px;
    }

    .preview-item {
        background: var(--card-bg);
        border-radius: 12px;
        overflow: hidden;
        transition: transform 0.2s;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    }
    
    .preview-item:hover { transform: translateY(-3px); }

    .preview-item img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 3/4;
        object-fit: cover;
    }

    /* spisok faylov */
    .file-list {
        max-width: 1000px;
        margin: 0 auto 40px;
        background: var(--card-bg);
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #334155;
    }

    .file-row {
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 12px 18px;
        border-bottom: 1px solid #334155;
        text-decoration: none;
        color: var(--text-main);
        align-items: center;
        transition: background 0.2s;
    }

    .file-row:last-child { border-bottom: none; }
    .file-row:hover { background: #2d3a4f; }

    .file-name { color: var(--link-color); font-weight: 600; font-size: 14px; }
    
    .file-meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: block; }

    .new-badge {
        color: var(--accent);
        font-weight: bold;
        font-size: 10px;
        margin-left: 5px;
        border: 1px solid var(--accent);
        padding: 1px 4px;
        border-radius: 4px;
    }

    .old-footer { 
        width: 100%; 
        margin-top: 40px; 
        padding: 20px 0; 
        border-top: 1px solid #334155; 
        text-align: center;
    }

    @media (max-width: 600px) {
        .file-row { grid-template-columns: 1fr; }
        .file-meta { margin-top: 6px; }
    }

    /* futer */
    .main-footer {
        background: #0F172A;
        padding: 40px 20px;
        text-align: center;
        font-size: 13px;
        color: #999;
        border-top: 2px solid var(--accent);
    }

    .main-footer a { color: #ccc; text-decoration: underline; }
    .main-footer a:hover { color: var(--accent); }
    
    .footer-links {
        margin-top: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-links a {
        background: #222;
        padding: 5px 12px;
        border-radius: 4px;
        text-decoration: none;
        font-weight: bold;
    }

    @media (max-width: 600px) {
        .file-item { flex-direction: column; align-items: flex-start; }
        .file-meta { margin-top: 10px; }
    }


