:root {
    --primary-color: #2563eb; /* Modern Blue */
    --primary-hover: #1d4ed8;
    --accent-color: #0f172a; /* Dark Slate */
    --bg-color: #f8fafc; /* Very light blue-grey */
    --card-bg: #ffffff;
    --text-color: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sticky Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: -0.025em;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #f1f5f9;
    color: var(--primary-hover);
}

.main-content {
    padding-bottom: 4rem;
}

/* Search Form */
#search-form {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    gap: 0.5rem;
}

#search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

#search-input:focus {
    border-color: var(--primary-color);
    outline: 3px solid rgba(37, 99, 235, 0.1);
}

/* Filters Block */
.filters-block {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

/* Grid Layout */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem; 
    padding-bottom: 3rem;
}

@media (min-width: 640px) {
    .bio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* For JS animation */
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin-top: 0;
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Single View Typography */
.bio-full-content {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.bio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bio-header img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    max-height: 400px;
}

.bio-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.bio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-section {
    margin-top: 3rem;
}

.gallery-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Like Button */
.like-btn {
    background: white;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.like-btn:hover { background: #fceceb; }
.like-btn.liked { background: #e74c3c; color: white; }
.like-btn .heart { font-size: 1.3rem; }
.like-btn:active { transform: scale(0.95); }

/* Share Block */
.share-block {
    margin-top: 1.5rem;
}

.share-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.share-btn.vk { background-color: #0077FF; }
.share-btn.tg { background-color: #229ED9; }
.share-btn.wa { background-color: #25D366; }

/* Comments */
.comments-section {
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.no-comments {
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
}

.reply-label {
    display: none;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cancel-reply-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
    margin-left: 0.5rem;
}

@keyframes fadeInComment {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    animation: fadeInComment 0.4s ease-out;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
}

.comment-date {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 400;
}

.comment-form {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.comment-form input, .comment-form textarea {
    margin-bottom: 10px;
}

.replies {
    margin-left: 2rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
    margin-top: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    margin-top: 5px;
    text-decoration: underline;
}

.reply-btn:hover {
    color: #2980b9;
}

.similar-bios-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.similar-bios-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Filmography Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.filmography-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filmography-table th, .filmography-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.filmography-table th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
}

.filmography-table tr:last-child td {
    border-bottom: none;
}

.filmography-table tr:hover {
    background-color: #f8fafc;
}

/* Admin Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th, .admin-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--text-light);
}

/* Footer */
footer {
    background: white;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 3rem 0;
    margin-top: auto;
}

/* Alphabet Navigation */
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 30px;
    justify-content: center;
}

.alphabet-nav a {
    text-decoration: none;
    color: var(--text-light);
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}

.alphabet-nav a:hover, .alphabet-nav a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Category Navigation */
.category-nav {
    margin-bottom: 20px;
}

.desktop-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.desktop-cats a {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: white;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.desktop-cats a:hover, .desktop-cats a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.mobile-cats {
    display: none;
    text-align: center;
}

.mobile-cats select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .desktop-cats { display: none; }
    .mobile-cats { display: block; }
}

/* Sort Navigation */
.sort-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.sort-nav a {
    text-decoration: none;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.sort-nav a:hover, .sort-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

.pagination a:hover, .pagination a.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination span {
    display: inline-block;
    padding: 8px 12px;
    color: var(--text-light);
}

/* --- Admin Panel Styles --- */

/* Admin Navbar */
.admin-navbar {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 0 auto;
}

.brand-logo { display:inline-flex; align-items:center; gap:.68rem; }
.brand-logo span { text-transform:none; }
.brand-logo-mark { display:block; width:42px; height:42px; flex:0 0 42px; }

/* Homepage — editorial concept E */
body.home-editorial {
    --editorial-ink: #081a3a;
    --editorial-coral: #f05645;
    --editorial-blue: #1976d2;
    --editorial-paper: #fbfaf6;
    --editorial-line: #dedbd3;
    background: var(--editorial-paper);
    color: var(--editorial-ink);
}

.home-editorial .main-nav {
    position: relative;
    padding: 1.15rem 0;
    background: rgba(251, 250, 246, .96);
    border-color: var(--editorial-line);
    backdrop-filter: none;
}

.home-editorial .logo {
    color: var(--editorial-coral);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    font-weight: 500;
    letter-spacing: .015em;
    text-transform: uppercase;
}

.home-editorial .nav-links { display: flex; align-items: center; }
.home-editorial .nav-links a {
    color: var(--editorial-ink);
    font-size: .95rem;
    margin-left: 2.25rem;
}
.home-editorial .nav-links a:hover,
.home-editorial .nav-links a.active { color: var(--editorial-coral); }

.editorial-home { overflow: hidden; }
.editorial-hero {
    border-bottom: 1px solid var(--editorial-line);
    padding: clamp(2.5rem, 4vw, 4rem) 0 2.3rem;
    background: var(--editorial-paper);
}
.editorial-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    align-items: center;
    gap: 3rem;
}
.editorial-kicker {
    display: block;
    margin-bottom: 1rem;
    color: var(--editorial-coral);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.editorial-hero-copy h1 {
    max-width: 760px;
    margin: 0;
    color: var(--editorial-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.35rem, 5vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -.055em;
    line-height: .94;
}
.editorial-hero-copy > p {
    max-width: 610px;
    margin: 1.6rem 0 2rem;
    color: #536078;
    font-size: 1.05rem;
    line-height: 1.65;
}
.editorial-search {
    display: grid;
    grid-template-columns: 27px 1fr auto;
    align-items: center;
    max-width: 650px;
    min-height: 68px;
    padding-left: 1.3rem;
    background: var(--editorial-blue);
    box-shadow: 8px 8px 0 #d8e8f7;
}
.editorial-search svg { width: 24px; fill: none; stroke: white; stroke-width: 1.8; }
.editorial-search input {
    min-width: 0;
    height: 68px;
    padding: 0 1rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 1.12rem;
}
.editorial-search input::placeholder { color: rgba(255,255,255,.86); }
.editorial-search button {
    height: 46px;
    margin-right: .7rem;
    padding: 0 1.25rem;
    border: 1px solid rgba(255,255,255,.65);
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 700;
}
.editorial-search button span { margin-left: .55rem; }
.editorial-collage { position: relative; min-height: 490px; }
.collage-shape { position: absolute; display: block; transform: rotate(-5deg); }
.collage-coral { inset: 10% 2% 8% 16%; background: var(--editorial-coral); clip-path: polygon(8% 2%, 95% 9%, 100% 88%, 10% 100%, 0 25%); }
.collage-blue { width: 53%; height: 64%; left: 0; bottom: 0; background: #2b7fc4; clip-path: polygon(9% 5%, 85% 0, 100% 88%, 6% 100%, 0 25%); transform: rotate(6deg); }
.collage-portrait {
    position: absolute;
    z-index: 2;
    object-fit: cover;
    filter: grayscale(1) contrast(1.06);
    border: 7px solid var(--editorial-paper);
    box-shadow: 0 12px 35px rgba(8,26,58,.13);
}
.collage-portrait-1 { width: 43%; height: 72%; right: 20%; top: 0; transform: rotate(3deg); }
.collage-portrait-2 { width: 37%; height: 59%; left: 3%; bottom: 0; transform: rotate(-4deg); }
.collage-portrait-3 { width: 39%; height: 55%; right: 0; bottom: -1%; transform: rotate(4deg); }
.collage-star { position: absolute; z-index: 3; right: 2%; top: 6%; color: var(--editorial-ink); font-size: 4rem; transform: rotate(12deg); }

.editorial-content { padding-top: 0; }
.editorial-categories { border-bottom: 1px solid var(--editorial-line); }
.editorial-categories .desktop-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0 clamp(1.2rem, 3vw, 3.2rem);
    overflow: visible;
}
.editorial-categories .desktop-cats a {
    position: relative;
    flex: 0 0 auto;
    padding: 1.35rem .1rem 1.15rem;
    color: var(--editorial-ink);
    border: 0;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    font-weight: 650;
}
.editorial-categories .desktop-cats a.active,
.editorial-categories .desktop-cats a:hover { color: var(--editorial-coral); background: transparent; }
.editorial-categories .desktop-cats a.active::after { content: ""; position: absolute; height: 3px; left: 0; right: 0; bottom: -1px; background: var(--editorial-coral); }
.editorial-catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 3.8rem 0 1.5rem; }
.home-editorial .section-title { margin: 0; color: var(--editorial-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4vw, 3.7rem); font-weight: 400; letter-spacing: -.035em; text-align: left; }
.home-editorial .sort-nav { display: flex; gap: 1.2rem; margin: 0; }
.home-editorial .sort-nav a { color: #667085; text-decoration: none; font-size: .9rem; }
.home-editorial .sort-nav a.active { color: var(--editorial-coral); border-bottom: 1px solid currentColor; }
.home-editorial .alphabet-nav { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0; overflow-x: auto; margin: 0 0 1.5rem; padding: 0; border: 1px solid var(--editorial-line); background: #fffefa; }
.home-editorial .alphabet-nav a { flex: 1 0 38px; padding: .72rem .45rem; border: 0; border-right: 1px solid #ece9e1; border-radius: 0; color: var(--editorial-ink); text-align: center; text-decoration: none; font-size: .82rem; }
.home-editorial .alphabet-nav a.active,
.home-editorial .alphabet-nav a:hover { background: var(--editorial-coral); color: white; }
.home-editorial .bio-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 1px; background: var(--editorial-line); }
.home-editorial .editorial-card {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 300px;
    border: 0;
    border-radius: 0;
    background: var(--editorial-paper);
    box-shadow: none;
}
.home-editorial .editorial-card:hover { border-color: transparent; box-shadow: none; transform: translateY(-3px); }
.editorial-card-image { display: block; min-height: 100%; overflow: hidden; }
.home-editorial .editorial-card img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; filter: grayscale(1); transition: filter .3s, transform .45s; }
.home-editorial .editorial-card:hover img { filter: grayscale(0); transform: scale(1.025); }
.home-editorial .editorial-card .card-content { display: flex; flex-direction: column; padding: 1.4rem 1.25rem; }
.editorial-card-category { color: var(--editorial-coral); font-size: .69rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.home-editorial .editorial-card .card-title { margin: .45rem 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; line-height: 1.08; }
.home-editorial .editorial-card .card-title a { color: inherit; text-decoration: none; }
.home-editorial .editorial-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #5f6570; font-size: .84rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.editorial-card-footer { display: flex; justify-content: space-between; align-items: end; gap: .7rem; margin-top: auto; padding-top: 1rem; }
.editorial-read { color: var(--editorial-coral); font-weight: 700; text-decoration: none; }
.editorial-read span { margin-left: .35rem; }
.editorial-views { color: #9297a0; font-size: .68rem; text-align: right; }
.home-editorial .pagination { margin: 2.8rem 0 0; }
.home-editorial .pagination a { border-radius: 50%; color: var(--editorial-ink); background: transparent; }
.home-editorial .pagination a.active { background: var(--editorial-coral); color: white; }

@media (max-width: 1050px) {
    .editorial-hero-grid { grid-template-columns: 1fr .75fr; gap: 1.5rem; }
    .editorial-collage { min-height: 400px; }
    .home-editorial .bio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .home-editorial .main-nav { padding: .8rem 0; }
    .home-editorial .nav-links a { margin-left: 1rem; font-size: .82rem; }
    .home-editorial .nav-links a:nth-child(3), .home-editorial .nav-links a:nth-child(4) { display: none; }
    .editorial-hero { padding-top: 2.7rem; }
    .editorial-hero-grid { grid-template-columns: 1fr; }
    .editorial-hero-copy h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
    .editorial-search { grid-template-columns: 24px 1fr; box-shadow: 5px 5px 0 #d8e8f7; }
    .editorial-search button { grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; border-width: 1px 0 0; }
    .editorial-collage { min-height: 365px; margin-top: 1.5rem; }
    .editorial-catalog-head { display: block; padding-top: 2.7rem; }
    .home-editorial .sort-nav { margin-top: 1rem; overflow-x: auto; }
    .home-editorial .bio-grid { grid-template-columns: 1fr; }
    .home-editorial .editorial-card { min-height: 270px; }
    .home-editorial .editorial-card img { min-height: 270px; }
}
@media (max-width: 430px) {
    .home-editorial .container { padding-left: 1rem; padding-right: 1rem; }
    .editorial-collage { min-height: 310px; }
    .home-editorial .editorial-card { grid-template-columns: 42% 58%; }
    .home-editorial .editorial-card .card-content { padding: 1rem; }
    .home-editorial .editorial-card .card-title { font-size: 1.2rem; }
    .editorial-views { display: none; }
}

/* Biography page — editorial concept E */
body.bio-editorial {
    --editorial-ink: #081a3a;
    --editorial-coral: #f05645;
    --editorial-blue: #1976d2;
    --editorial-paper: #fbfaf6;
    --editorial-line: #dedbd3;
    background: var(--editorial-paper);
    color: var(--editorial-ink);
}
.bio-editorial .main-nav {
    position: relative;
    padding: 1.15rem 0;
    background: rgba(251,250,246,.97);
    border-color: var(--editorial-line);
    backdrop-filter: none;
}
.bio-editorial .logo {
    color: var(--editorial-coral);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem,2.5vw,2.05rem);
    font-weight: 500;
    letter-spacing: .015em;
    text-transform: uppercase;
}
.bio-editorial .nav-links { display:flex; align-items:center; }
.bio-editorial .nav-links a { margin-left:2.25rem; color:var(--editorial-ink); font-size:.95rem; }
.bio-editorial .nav-links a:hover { color:var(--editorial-coral); }
.bio-editorial-page { padding-bottom: 4rem; overflow:hidden; }
.bio-editorial .breadcrumbs {
    display:flex;
    gap:.65rem;
    align-items:center;
    overflow:hidden;
    padding:1.15rem 0;
    border-bottom:1px solid var(--editorial-line);
    color:#8a8f98;
    font-size:.78rem;
    white-space:nowrap;
}
.bio-editorial .breadcrumbs a { color:var(--editorial-ink); text-decoration:none; }
.bio-editorial .breadcrumbs > *:last-child { overflow:hidden; text-overflow:ellipsis; }
.bio-editorial-hero {
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(380px,.78fr);
    align-items:center;
    gap:clamp(2rem,6vw,6.5rem);
    min-height:570px;
    padding:3.5rem 0 4.5rem;
    border-bottom:1px solid var(--editorial-line);
}
.bio-editorial-category {
    display:inline-block;
    margin-bottom:1rem;
    color:var(--editorial-coral);
    font-size:.75rem;
    font-weight:800;
    letter-spacing:.13em;
    text-decoration:none;
    text-transform:uppercase;
}
.bio-editorial-copy h1 {
    max-width:760px;
    margin:0;
    color:var(--editorial-ink);
    font-family:Georgia,"Times New Roman",serif;
    font-size:clamp(3.6rem,6.2vw,6.7rem);
    font-weight:400;
    letter-spacing:-.055em;
    line-height:.93;
}
.bio-editorial-lead {
    max-width:680px;
    margin:1.6rem 0 2rem;
    color:#586579;
    font-size:1.05rem;
    line-height:1.7;
}
.bio-editorial .bio-meta { justify-content:flex-start; gap:2.5rem; margin:0; }
.bio-editorial .bio-meta span { display:block; color:var(--editorial-ink); font-size:.95rem; }
.bio-editorial .bio-meta small { display:block; margin-bottom:.15rem; color:#8b9098; font-size:.65rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.bio-editorial-portrait { position:relative; min-height:470px; }
.bio-editorial-portrait .portrait-coral,
.bio-editorial-portrait .portrait-blue { position:absolute; display:block; }
.bio-editorial-portrait .portrait-coral { inset:6% -5% 4% 9%; background:var(--editorial-coral); clip-path:polygon(7% 0,100% 8%,92% 100%,0 91%); transform:rotate(3deg); }
.bio-editorial-portrait .portrait-blue { width:48%; height:62%; left:-5%; bottom:-3%; background:var(--editorial-blue); transform:rotate(-6deg); }
.bio-editorial-portrait img {
    position:absolute;
    z-index:2;
    inset:0;
    width:88%;
    height:100%;
    margin:auto;
    border:8px solid var(--editorial-paper);
    border-radius:0;
    object-fit:cover;
    filter:grayscale(1) contrast(1.04);
    box-shadow:0 18px 45px rgba(8,26,58,.15);
    transform:rotate(1.5deg);
}
.bio-editorial-layout { display:grid; grid-template-columns:minmax(0,780px); justify-content:center; padding:4.5rem 0 1rem; }
.bio-editorial .bio-full-content { max-width:none; color:#27364a; font-family:Georgia,"Times New Roman",serif; font-size:1.12rem; line-height:1.85; }
.bio-editorial .bio-full-content > p:first-child::first-letter { float:left; margin:.08em .12em 0 0; color:var(--editorial-coral); font-size:4.2em; line-height:.72; }
.bio-editorial .bio-full-content p { margin:0 0 1.4rem; }
.bio-editorial .bio-full-content h2,
.bio-editorial .bio-full-content h3 { margin:2.8rem 0 1rem; color:var(--editorial-ink); font-family:Georgia,"Times New Roman",serif; font-weight:400; line-height:1.15; }
.bio-editorial .bio-full-content h3 { padding-left:1rem; border-left:4px solid var(--editorial-coral); font-size:1.75rem; }
.bio-editorial .bio-full-content .bio-image { margin:2.3rem calc(50% - 50vw) !important; text-align:center; }
.bio-editorial .bio-full-content .bio-image img { max-width:min(900px,calc(100vw - 2rem)) !important; max-height:650px; border-radius:0 !important; object-fit:contain; filter:grayscale(.15); }
.bio-editorial .table-responsive { overflow-x:auto; margin:2rem 0; border-top:2px solid var(--editorial-ink); }
.bio-editorial .filmography-table { width:100%; border-collapse:collapse; font-family:system-ui,sans-serif; font-size:.88rem; }
.bio-editorial .filmography-table th,
.bio-editorial .filmography-table td { padding:.85rem .7rem; border-bottom:1px solid var(--editorial-line); text-align:left; }
.bio-editorial .bio-actions { display:flex; justify-content:space-between; align-items:center; gap:2rem; margin:4rem 0 1rem !important; padding:1.5rem 0; border-top:1px solid var(--editorial-line); border-bottom:1px solid var(--editorial-line); text-align:left !important; }
.bio-editorial .like-btn { border:1px solid var(--editorial-coral); border-radius:0; background:transparent; color:var(--editorial-coral); }
.bio-editorial .like-btn.liked,
.bio-editorial .like-btn:hover { background:var(--editorial-coral); color:white; }
.bio-editorial .share-block { display:flex; align-items:center; gap:1rem; margin:0; }
.bio-editorial .share-label { margin:0; }
.bio-editorial .share-btn { width:2.25rem; height:2.25rem; border-radius:0; background:var(--editorial-ink); box-shadow:none; font-size:.7rem; }
.bio-editorial .gallery-section { margin:4rem 0 0; }
.bio-editorial .gallery-section h3,
.bio-editorial .comments-section > h3,
.bio-editorial .similar-bios-section > h3 { color:var(--editorial-ink); font-family:Georgia,"Times New Roman",serif; font-size:2.4rem; font-weight:400; }
.bio-editorial .gallery-grid { grid-template-columns:repeat(3,1fr); gap:1px; background:var(--editorial-line); }
.bio-editorial .gallery-grid img { height:250px; border:0; border-radius:0; box-shadow:none; filter:grayscale(1); }
.bio-editorial .gallery-grid img:hover { transform:none; filter:grayscale(0); box-shadow:none; }
.bio-editorial .comments-section,
.bio-editorial .similar-bios-section { max-width:980px; margin:5rem auto 0; padding-top:2.5rem; border-top:1px solid var(--editorial-line); }
.bio-editorial .comment { border-color:var(--editorial-line); border-radius:0; background:#fffefa; box-shadow:none; }
.bio-editorial .comment-form { border:1px solid var(--editorial-line); border-radius:0; background:#fffefa; box-shadow:none; }
.bio-editorial .comment-form input,
.bio-editorial .comment-form textarea { border-radius:0; background:var(--editorial-paper); }
.bio-editorial .comment-form .btn { border:0; border-radius:0; background:var(--editorial-coral); }
.bio-editorial .similar-bios-section .bio-grid { grid-template-columns:repeat(3,1fr); gap:1px; padding:1px; background:var(--editorial-line); }
.bio-editorial .similar-bios-section .card { border:0; border-radius:0; box-shadow:none; background:var(--editorial-paper); }
.bio-editorial .similar-bios-section .card img { height:300px; filter:grayscale(1); }
.bio-editorial .similar-bios-section .card:hover img { filter:grayscale(0); }
.bio-editorial .similar-bios-section .card-title { color:var(--editorial-ink); font-family:Georgia,"Times New Roman",serif; font-size:1.35rem !important; font-weight:400; }
.bio-editorial footer { background:var(--editorial-paper); border-color:var(--editorial-line); }

@media(max-width:900px){
    .bio-editorial-hero{grid-template-columns:1fr minmax(280px,.7fr);gap:2rem;min-height:500px}
    .bio-editorial-copy h1{font-size:clamp(3.2rem,8vw,5rem)}
    .bio-editorial-portrait{min-height:390px}
}
@media(max-width:700px){
    .bio-editorial .nav-links a{margin-left:1rem;font-size:.82rem}.bio-editorial .nav-links a:nth-child(3),.bio-editorial .nav-links a:nth-child(4){display:none}
    .bio-editorial-hero{grid-template-columns:1fr;padding:2.5rem 0 3rem}.bio-editorial-copy h1{font-size:clamp(3.15rem,15vw,5.2rem)}
    .bio-editorial-portrait{min-height:430px;margin-top:1rem}.bio-editorial-layout{padding-top:3rem}
    .bio-editorial .bio-full-content{font-size:1.02rem;line-height:1.75}.bio-editorial .bio-actions{align-items:flex-start;flex-direction:column}
    .bio-editorial .gallery-grid{grid-template-columns:repeat(2,1fr)}.bio-editorial .similar-bios-section .bio-grid{grid-template-columns:1fr}
}

.zoomable-image { cursor:zoom-in; }
.zoomable-image:focus-visible { outline:3px solid var(--editorial-blue,#1976d2); outline-offset:4px; }
body.lightbox-open { overflow:hidden; }
.image-lightbox {
    position:fixed;
    inset:0;
    z-index:5000;
    display:none;
    place-items:center;
    padding:4.5rem 2rem 2rem;
    background:rgba(8,26,58,.94);
    backdrop-filter:blur(7px);
}
.image-lightbox.open { display:grid; }
.image-lightbox img {
    display:block;
    max-width:min(1180px,94vw);
    max-height:calc(100vh - 8rem);
    width:auto;
    height:auto;
    object-fit:contain;
    border:6px solid #fbfaf6;
    box-shadow:0 24px 80px rgba(0,0,0,.45);
}
.image-lightbox-close {
    position:absolute;
    top:1rem;
    right:1.25rem;
    width:3.25rem;
    height:3.25rem;
    padding:0;
    border:1px solid rgba(255,255,255,.55);
    border-radius:50%;
    background:transparent;
    color:white;
    cursor:pointer;
    font:300 2.2rem/1 Arial,sans-serif;
}
.image-lightbox-close:hover { background:#f05645; border-color:#f05645; }
.image-lightbox-caption { position:absolute; bottom:.7rem; left:1rem; right:1rem; margin:0; color:rgba(255,255,255,.82); font-size:.85rem; text-align:center; }
@media(max-width:600px){.image-lightbox{padding:4rem .75rem 2.5rem}.image-lightbox img{max-width:96vw;max-height:calc(100vh - 7rem);border-width:3px}}

.admin-nav {
    background: transparent;
    box-shadow: none;
    padding: 0;
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 16px;
    max-width: 100%;
}

.admin-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
}

.admin-nav a {
    color: #bdc3c7;
    text-decoration: none;
    margin-left: 0;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-weight: 500;
}

.admin-nav a:hover, .admin-nav a.active {
    color: #fff;
}

.admin-nav .logout-btn {
    background: #c0392b;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    margin-left: 8px;
}

@media (max-width: 900px) {
    .admin-navbar .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-nav {
        justify-content: flex-start;
    }
}

.admin-nav .logout-btn:hover {
    background: #e74c3c;
}

/* Admin Header & Layout */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.admin-header h2 {
    margin: 0;
    color: #2c3e50;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.admin-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 15px;
    border-bottom: 2px solid #eee;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background-color: #f9f9f9;
}

/* Admin Forms */
.admin-form-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    margin-bottom: 15px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

/* Dashboard Stats */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    margin: 10px 0;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* File Manager Styles */
.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.file-card {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.file-card img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.file-name {
    font-size: 0.85em;
    word-break: break-all;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

.file-size {
    font-size: 0.75em;
    color: #999;
    margin-bottom: 10px;
}

/* Categories Styles */
.cat-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cat-list {
    list-style: none;
    padding: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cat-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.cat-item:hover {
    background: #f9f9f9;
}

.cat-item:last-child {
    border-bottom: none;
}

/* Action Links */
.action-links a {
    margin-right: 15px;
    text-decoration: none;
    font-weight: 500;
}

.btn-edit { color: #3498db; }
.btn-edit:hover { text-decoration: underline; }
.btn-danger { color: #e74c3c; }
.btn-danger:hover { text-decoration: underline; }

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s, visibility 0.3s;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* ===== Admin UI v3 — sidebar dashboard ===== */
.admin-body { margin:0; background:#f4f7fb; color:#142033; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.admin-icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
.admin-shell { min-height:100vh; display:flex; }
.admin-sidebar { position:fixed; inset:0 auto 0 0; z-index:50; width:256px; box-sizing:border-box; display:flex; flex-direction:column; padding:22px 12px 18px; color:#d7e3ef; background:linear-gradient(180deg,#0c2943 0%,#071e34 100%); box-shadow:8px 0 30px rgba(12,41,67,.08); }
.admin-brand { display:flex; align-items:center; gap:11px; padding:0 10px 24px; color:#fff; font-size:20px; font-weight:750; letter-spacing:-.3px; text-decoration:none; }
.admin-brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; color:#06243b; background:#31d4c4; font-weight:900; box-shadow:0 8px 22px rgba(49,212,196,.25); }
.admin-brand-logo { display:block; width:38px; height:38px; flex:0 0 38px; filter:drop-shadow(0 8px 16px rgba(240,86,69,.22)); }
.admin-nav { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; flex-wrap:nowrap; gap:5px; max-width:none; }
.admin-nav a,.admin-sidebar-bottom a { display:flex; align-items:center; gap:13px; min-height:44px; box-sizing:border-box; padding:9px 12px; margin:0; border-radius:8px; color:#bcd0e1; font-size:14px; font-weight:600; text-decoration:none; transition:background .18s,color .18s,transform .18s; }
.admin-nav a svg,.admin-sidebar-bottom a svg { width:20px; height:20px; flex:0 0 20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.admin-nav a:hover,.admin-nav a.active,.admin-sidebar-bottom a:hover { color:#fff; background:rgba(255,255,255,.08); transform:translateX(2px); }
.admin-nav a.active { background:#0fa59f; box-shadow:0 8px 22px rgba(15,165,159,.25); }
.admin-nav-badge { min-width:20px; margin-left:auto; padding:2px 5px; border-radius:10px; color:#fff; background:#ed5b5b; text-align:center; font-size:11px; }
.admin-sidebar-bottom { display:flex; flex-direction:column; gap:5px; margin-top:auto; padding-top:16px; border-top:1px solid rgba(255,255,255,.09); }
.admin-sidebar .admin-logout { color:#f5c9c9; }
.admin-workspace { display:flex; flex-direction:column; width:calc(100% - 256px); min-height:100vh; margin-left:256px; }
.admin-topbar { position:sticky; top:0; z-index:35; display:flex; align-items:center; gap:24px; min-height:72px; padding:0 30px; border-bottom:1px solid #e4eaf1; background:rgba(255,255,255,.96); backdrop-filter:blur(10px); }
.admin-global-search { position:relative; width:min(600px,55vw); margin:0; }
.admin-global-search svg { position:absolute; top:50%; left:15px; width:19px; height:19px; transform:translateY(-50%); fill:none; stroke:#8492a5; stroke-width:2; }
.admin-global-search input[type="search"] { width:100%; height:42px; box-sizing:border-box; margin:0; padding:0 15px 0 45px; border:1px solid #dce4ed; border-radius:9px; outline:none; color:#1b2a40; background:#f9fbfd; font-size:14px; }
.admin-global-search input:focus { border-color:#16aaa3; box-shadow:0 0 0 3px rgba(22,170,163,.1); background:#fff; }
.admin-profile { display:flex; align-items:center; gap:10px; margin-left:auto; color:#1c293b; }
.admin-profile>span:last-child { display:flex; flex-direction:column; line-height:1.25; }
.admin-profile b { font-size:13px; }.admin-profile small { color:#8592a3; font-size:11px; }
.admin-avatar { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; color:#fff; background:linear-gradient(135deg,#16aaa3,#0a6d86); font-weight:800; }
.admin-avatar-small { width:24px; height:24px; flex:0 0 24px; font-size:11px; }
.admin-menu-toggle { display:none; width:40px; height:40px; border:1px solid #dce4ed; border-radius:8px; background:#fff; color:#17324b; font-size:20px; cursor:pointer; }
.admin-content { flex:1; padding:30px; }
.admin-content>.container { width:100%; max-width:1440px; box-sizing:border-box; margin:0 auto; padding:0; }
.admin-footer { padding:18px 30px; color:#8a97a8; text-align:center; font-size:12px; }
.admin-header { margin:0 0 24px; padding:0; border:0; }
.admin-header h2 { color:#122238; font-size:27px; letter-spacing:-.5px; }
.admin-header p { margin:6px 0 0; color:#7c899a; }
.admin-page-title { margin:0; font-size:28px; letter-spacing:-.6px; }.admin-page-subtitle { margin:5px 0 0; color:#7f8c9e; font-size:14px; }
.admin-panel { overflow:hidden; border:1px solid #e0e7ef; border-radius:12px; background:#fff; box-shadow:0 2px 8px rgba(20,45,75,.04); }
.admin-panel-header { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px; border-bottom:1px solid #e8edf3; }
.admin-panel-header h3 { margin:0; color:#16263a; font-size:17px; }.admin-panel-body { padding:22px; }
.dashboard-grid { grid-template-columns:repeat(4,minmax(170px,1fr)); gap:18px; margin:0 0 20px; }
.stat-card { display:flex; align-items:center; gap:16px; min-height:108px; box-sizing:border-box; padding:20px; border:1px solid #e1e8ef; border-radius:12px; box-shadow:0 2px 7px rgba(19,45,72,.035); text-align:left; transform:none; }
.stat-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(20,47,75,.08); }
.stat-icon { display:grid; place-items:center; width:48px; height:48px; flex:0 0 48px; border-radius:50%; color:#0d9993; background:#dff7f4; font-size:22px; }
.stat-icon.blue { color:#1769d2; background:#e6f0ff; }.stat-icon.orange { color:#dc7800; background:#fff0db; }.stat-icon.green { color:#149044; background:#e2f6e8; }
.stat-card-content { min-width:0; }.stat-label { color:#566476; font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; }
.stat-number { margin:4px 0 1px; color:#0e8583; font-size:30px; line-height:1; }.stat-card small { color:#8a96a5; font-size:12px; }
.admin-dashboard-main { display:grid; grid-template-columns:minmax(0,2fr) minmax(300px,1fr); gap:20px; margin-bottom:20px; }
.crawler-progress-track { overflow:hidden; height:10px; border-radius:10px; background:#e8eef3; }.crawler-progress-bar { height:100%; border-radius:inherit; background:#12a8a2; }
.crawler-progress-row { display:flex; align-items:center; gap:14px; }.crawler-progress-row .crawler-progress-track { flex:1; }.crawler-progress-row strong { color:#0b8e89; }
.crawler-mini-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:22px; padding-top:20px; border-top:1px solid #edf1f5; }
.crawler-mini-stat { display:flex; gap:10px; align-items:center; }.crawler-mini-stat b { display:block; font-size:22px; }.crawler-mini-stat small { color:#7d8998; }
.admin-activity { list-style:none; margin:0; padding:0; }.admin-activity li { display:flex; gap:11px; padding:11px 0; border-bottom:1px solid #edf1f5; }.admin-activity li:last-child{border:0}.activity-dot { width:9px;height:9px;margin-top:6px;border-radius:50%;background:#13a55b;box-shadow:0 0 0 5px #e4f7ec}.activity-dot.orange{background:#e88b16;box-shadow:0 0 0 5px #fff1df}.admin-activity p{margin:0;font-size:13px}.admin-activity small{color:#8b97a5}
.admin-table { overflow:hidden; border:1px solid #e1e7ef; border-radius:10px; box-shadow:none; }
.admin-table th { padding:12px 15px; border-bottom:1px solid #e4eaf0; color:#758294; background:#f8fafc; font-size:11px; letter-spacing:.4px; text-align:left; }
.admin-table td { padding:12px 15px; border-bottom-color:#edf1f5; color:#344256; font-size:13px; }.admin-table tr:hover{background:#f8fbfc}
.admin-form-card,.cat-form,.cat-list { max-width:none; border:1px solid #e1e7ef; border-radius:12px; box-shadow:0 2px 8px rgba(20,45,75,.04); }
.admin-form-card { padding:24px; }
.admin-body input[type="text"],.admin-body input[type="password"],.admin-body input[type="date"],.admin-body input[type="file"],.admin-body input[type="number"],.admin-body input[type="url"],.admin-body select,.admin-body textarea { border-color:#dbe3ec; border-radius:8px; font-size:14px; }
.admin-body input:focus,.admin-body select:focus,.admin-body textarea:focus { border-color:#16aaa3; box-shadow:0 0 0 3px rgba(22,170,163,.1); }
.admin-body .btn { border-radius:8px; background:#0fa59f; box-shadow:none; font-weight:650; }.admin-body .btn:hover{background:#0b8e89;transform:none}
.admin-status { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:6px; font-size:12px; font-weight:650; }.admin-status.done{color:#12823c;background:#e2f5e8}.admin-status.pending{color:#1762bc;background:#e8f1ff}.admin-status.processing{color:#7247c4;background:#f0e8ff}.admin-status.failed{color:#c43a3a;background:#ffe9e9}.admin-status.skipped{color:#6c7682;background:#edf0f3}
.admin-sidebar-overlay { display:none; position:fixed; inset:0; z-index:45; background:rgba(7,23,38,.55); }
@media(max-width:1100px){.dashboard-grid{grid-template-columns:repeat(2,1fr)}.admin-dashboard-main{grid-template-columns:1fr}.admin-topbar{padding:0 20px}.admin-content{padding:24px 20px}}
@media(max-width:900px){.admin-sidebar{transform:translateX(-105%);transition:transform .22s}.admin-menu-open .admin-sidebar{transform:none}.admin-menu-open .admin-sidebar-overlay{display:block}.admin-workspace{width:100%;margin-left:0}.admin-menu-toggle{display:block}.admin-profile>span:last-child{display:none}.admin-global-search{width:auto;flex:1}}
@media(max-width:640px){.admin-content{padding:20px 14px}.admin-topbar{gap:10px;padding:0 14px}.dashboard-grid{grid-template-columns:1fr}.admin-dashboard-main{display:block}.admin-dashboard-main>.admin-panel{margin-bottom:16px}.crawler-mini-stats{grid-template-columns:1fr}.admin-table{display:block;overflow-x:auto;white-space:nowrap}.admin-header{align-items:flex-start;gap:12px;flex-direction:column}.admin-profile{display:none}}
