:root{
    --primary:#03dac6; --primary-dark:#02b8a8;
    --bg:#121212; --surface:#1e1e1e; --surface-light:#2a2a2a;
    --text:#e0e0e0; --text-muted:#a0a0a0;
    --border:#333; --radius:12px; --radius-lg:16px;
    --shadow:0 4px 12px rgba(0,0,0,.3); --shadow-lg:0 8px 24px rgba(0,0,0,.4);
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.7;min-height:100vh}
a{text-decoration:none;color:inherit;transition:all .2s}
img{max-width:100%;display:block}
.container{max-width:1200px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{background:var(--surface);border-bottom:1px solid var(--border);padding:15px 0;position:sticky;top:0;z-index:100;box-shadow:var(--shadow)}
.header-content{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.logo span{font-size:24px;font-weight:800;color:var(--primary)}
.main-nav ul{display:flex;list-style:none;gap:20px}
.main-nav a{color:var(--text-muted);font-weight:500;padding:8px 12px;border-radius:8px}
.main-nav a:hover,.main-nav a.active{color:var(--primary);background:rgba(3,218,198,.1)}
.header-search .search-form{display:flex;align-items:center;background:var(--bg);border:1px solid var(--border);border-radius:25px;padding:6px 14px;width:260px}
.header-search input{flex:1;background:transparent;border:none;outline:none;color:var(--text);padding:6px 8px;font-family:inherit;font-size:14px}
.header-search button{background:none;border:none;cursor:pointer;color:var(--text-muted);font-size:16px}
.mobile-menu-btn{display:none;background:none;border:none;color:var(--primary);font-size:24px;cursor:pointer}

/* Hero */
.hero-section,.page-header{text-align:center;padding:60px 20px;background:var(--surface);border-bottom:1px solid var(--border)}
.hero-section h1,.page-header h1{font-size:2.3rem;margin-bottom:12px;color:var(--primary);font-weight:800}
.hero-section p,.page-header p{color:var(--text-muted);font-size:1.05rem;max-width:600px;margin:0 auto}

/* Sections */
.section{padding:50px 0}
.section-alt{background:var(--surface)}
.section-title{font-size:1.6rem;margin-bottom:26px;border-left:4px solid var(--primary);padding-left:14px;font-weight:700}

/* Names grid */
.names-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:18px}
.name-card{background:var(--surface);border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);transition:all .25s}
.name-card:hover{transform:translateY(-4px);border-color:var(--primary);box-shadow:var(--shadow-lg)}
.name-card .thumb{width:100%;aspect-ratio:1/1;overflow:hidden;background:var(--surface-light);position:relative}
.name-card .thumb img{width:100%;height:100%;object-fit:cover}
.name-info{padding:14px;text-align:center}
.name-info h3{font-size:16px;font-weight:700;margin-bottom:4px}
.name-info span{font-size:13px;color:var(--text-muted)}

/* Name page */
.name-page{padding:40px 0}
.name-page .breadcrumb{margin-bottom:22px;color:var(--text-muted);font-size:14px}
.name-page .breadcrumb a{color:var(--primary)}
.name-page .page-title{font-size:2rem;font-weight:800;margin-bottom:18px;line-height:1.4}
.name-page .page-intro{color:var(--text-muted);font-size:1.05rem;line-height:1.9;max-width:820px;margin:0 auto 40px;text-align:center}

/* Image block */
.image-block{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:24px;margin-bottom:28px;box-shadow:var(--shadow)}
.image-block .img-title{font-size:1.3rem;font-weight:700;color:var(--primary);margin-bottom:16px;border-left:3px solid var(--primary);padding-left:12px}
.image-block .img-wrap{background:var(--surface-light);border-radius:var(--radius);overflow:hidden;margin-bottom:16px;max-height:600px;display:flex;justify-content:center;align-items:center}
.image-block .img-wrap img{max-height:600px;width:auto;object-fit:contain}
.image-block .img-desc{color:var(--text);line-height:1.9;margin-bottom:18px;font-size:1rem}
.image-block .img-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn-download,.btn-share{padding:12px 26px;border-radius:10px;font-weight:700;font-size:15px;cursor:pointer;border:none;font-family:inherit;transition:all .2s}
.btn-download{background:var(--primary);color:#000}
.btn-download:hover{background:var(--primary-dark);transform:translateY(-2px)}
.btn-share{background:var(--surface-light);color:var(--text);border:1px solid var(--border)}
.btn-share:hover{background:var(--border)}

/* Empty state */
.empty-state{text-align:center;padding:80px 20px;color:var(--text-muted)}
.empty-state h2{color:var(--primary);margin-bottom:12px}

/* Footer */
.site-footer{background:var(--surface);border-top:1px solid var(--border);padding:50px 0 20px;margin-top:60px}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:30px;margin-bottom:30px}
.footer-col h3{color:var(--primary);margin-bottom:14px;font-size:16px}
.footer-col p,.footer-col li{color:var(--text-muted);font-size:14px;margin-bottom:8px;line-height:1.7}
.footer-col ul{list-style:none}
.footer-col a:hover{color:var(--primary)}
.footer-bottom{text-align:center;padding-top:20px;border-top:1px solid var(--border);color:var(--text-muted);font-size:13px}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:40px;flex-wrap:wrap}
.pagination a,.pagination span{padding:8px 14px;border-radius:8px;background:var(--surface);border:1px solid var(--border);color:var(--text-muted);font-weight:600;min-width:40px;text-align:center}
.pagination a:hover{border-color:var(--primary);color:var(--primary)}
.pagination .active{background:var(--primary);color:#000;border-color:var(--primary)}

/* Anchor highlight */
.image-block { scroll-margin-top: 90px; transition: box-shadow 0.4s, border-color 0.4s; }
.image-block:target { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3, 218, 198, 0.3), var(--shadow-lg); }

/* All-images badge */
.name-badge {
    position: absolute; top: 10px; right: 10px;
    background: rgba(3, 218, 198, 0.95); color: #000;
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 800;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Pagination Prev/Next */
.pagination-simple { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 50px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 15px; transition: all 0.2s; min-width: 120px; }
.page-btn:hover { background: var(--primary); color: #000; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(3, 218, 198, 0.3); }
.page-btn.disabled { opacity: 0.35; cursor: not-allowed; background: var(--surface-light); }
.page-btn.disabled:hover { transform: none; background: var(--surface-light); color: var(--text); border-color: var(--border); box-shadow: none; }
.page-info { color: var(--text-muted); font-size: 15px; padding: 0 10px; }
.page-info strong { color: var(--primary); font-weight: 800; font-size: 17px; padding: 0 4px; }
.pagination-count { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 14px; }

/* Search form large */
.search-form-large { max-width: 680px; margin: 30px auto 0; display: flex; gap: 8px; background: var(--surface-light); border: 2px solid var(--border); border-radius: 50px; padding: 6px; transition: border-color 0.3s, box-shadow 0.3s; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
.search-form-large:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(3, 218, 198, 0.15), 0 4px 16px rgba(0, 0, 0, 0.2); }
.search-form-large input[type="search"] { flex: 1 1 auto; min-width: 0; padding: 14px 26px; background: transparent; border: none; color: var(--text); font-size: 16px; font-family: inherit; outline: none; }
.search-form-large input[type="search"]::placeholder { color: var(--text-muted); }
.search-form-large button { flex: 0 0 auto; padding: 12px 32px; background: var(--primary); color: #000; border: none; border-radius: 40px; font-weight: 800; font-size: 15px; font-family: inherit; cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.search-form-large button:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(3, 218, 198, 0.4); }

/* Responsive */
@media (max-width: 768px){
    .mobile-menu-btn{display:block}
    .main-nav{display:none;width:100%;order:3}
    .main-nav.active{display:block}
    .main-nav ul{flex-direction:column;gap:0;background:var(--surface);border-radius:8px;padding:10px}
    .header-search{width:100%;order:4}
    .header-search .search-form{width:100%}
    .hero-section h1,.page-header h1{font-size:1.8rem}
    .name-page .page-title{font-size:1.5rem}
    .image-block{padding:16px}
    .names-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px}
}
@media (max-width: 640px){
    .search-form-large { flex-direction: column; border-radius: 24px; padding: 10px; gap: 8px; }
    .search-form-large input[type="search"] { padding: 12px 18px; text-align: center; }
    .search-form-large button { width: 100%; padding: 13px; }
}
@media (max-width: 480px){
    .pagination-simple { gap: 10px; }
    .page-btn { padding: 10px 18px; font-size: 14px; min-width: 100px; }
    .page-info { font-size: 13px; width: 100%; text-align: center; order: -1; }
    .name-badge { font-size: 11px; padding: 3px 9px; }
}