/* kfbeta16 — top (from template-top-views.php) */
    .top-posts-archive { 
        max-width: 800px; margin: 20px auto; padding: 20px; 
        font-family: sans-serif; background-color: #1e1e1e; color: #e0e0e0; 
        border: 1px solid #444; border-radius: 8px; 
    }
    .top-header { 
        display: flex; flex-direction: column; align-items: center; 
        border-bottom: 2px solid #444; padding-bottom: 15px; margin-bottom: 20px; 
    }
    .top-header h1 { margin: 0 0 15px 0; color: #fff; font-size: 1.8em; }
    .top-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
    .top-tab-btn {
        background: #2c2c2c; color: #aaa; border: 1px solid #444;
        padding: 8px 16px; border-radius: 20px; cursor: pointer;
        font-weight: bold; transition: all 0.2s;
    }
    .top-tab-btn:hover { background: #3f3f3f; color: #fff; }
    .top-tab-btn.active { 
        background: #0073aa; color: #fff; border-color: #0073aa; 
        box-shadow: 0 0 10px rgba(0, 115, 170, 0.5);
    }

 
    .top-posts-list { list-style: none; padding: 0; margin: 0; }
    .top-posts-list li { 
        display: flex; align-items: center; padding: 15px 10px; 
        border-bottom: 1px solid #333; transition: background 0.2s; 
    }
    .top-posts-list li:last-child { border-bottom: none; }
    .top-posts-list li:hover { background-color: #252525; }

    .rank-number { 
        font-size: 1.5em; font-weight: bold; color: #666; 
        width: 50px; text-align: center; flex-shrink: 0; margin-right: 15px; 
    }
    .rank-1 { color: #ffd700 !important; text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    .rank-2 { color: #c0c0c0 !important; }
    .rank-3 { color: #cd7f32 !important; }

    .rank-thumbnail { 
        width: 39%; height: 170px; margin-right: 15px; flex-shrink: 0; 
        background-color: #111; border-radius: 4px; overflow: hidden; position: relative;
    }
    .rank-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }

    .post-info { flex-grow: 1; min-width: 0; }
    .post-title { 
        font-size: 1.1em; font-weight: 600; color: #eee; display: block; 
        text-decoration: none; margin-bottom: 8px;
          /* white-space: nowrap; */ overflow: hidden; text-overflow: ellipsis;
    }
    .post-title:hover { color: #3a96e0; }
    .post-views { 
        font-size: 0.9em; color: #888; background: #111; 
        padding: 3px 8px; border-radius: 4px; display: inline-block;
    }

 
    @keyframes skeleton-shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }
    .skeleton {
        background: #2a2a2a;
        background-image: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.5s infinite;
        border-radius: 4px;
    }
 
    .sk-item { display: flex; align-items: center; padding: 15px 10px; border-bottom: 1px solid #333; }
    .sk-rank { width: 40px; height: 30px; margin-right: 15px; flex-shrink: 0; margin-left: 5px; }
    .sk-thumb { width: 80px; height: 120px; margin-right: 15px; flex-shrink: 0; }
    .sk-info { flex: 1; }
    .sk-title { height: 20px; width: 70%; margin-bottom: 10px; }
    .sk-meta { height: 16px; width: 30%; }

    .pagination-container { 
        display: flex; justify-content: center; align-items: center; gap: 8px; 
        margin-top: 30px; padding-top: 20px; border-top: 1px solid #444; 
    }
    .page-btn { 
        padding: 8px 14px; background: #2c2c2c; border: 1px solid #444; 
        color: #aaa; border-radius: 4px; cursor: pointer; 
    }
    .page-btn:hover:not(:disabled) { background: #3f3f3f; color: #fff; }
    .page-btn.active { background: #0073aa; color: #fff; border-color: #0073aa; }
    
    .status-msg { text-align: center; padding: 40px; color: #888; font-style: italic; }
    @media (max-width: 600px) {
        .top-posts-archive { padding: 10px; margin: 10px; }
        .rank-thumbnail, .sk-thumb { width: 40%; height: 90px; }
        .rank-number, .sk-rank { width: 30px; font-size: 1.2em; margin-right: 10px; }
        .post-title { font-size: 1em; }
    }
