:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo-icon {
    color: var(--primary);
}

.brand-color {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    flex: 0 0 280px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    padding: 8px 15px;
    flex: 1;
    font-size: 0.9rem;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--gray);
}

.search-box button:hover {
    color: var(--primary);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-sub {
    font-size: 1.15rem;
    opacity: 0.9;
    font-style: italic;
}

/* ===== Categories strip ===== */
.category-strip {
    padding: 40px 20px 10px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.category-chip small {
    color: var(--gray);
    font-size: 0.8rem;
}

/* ===== Quotes grid ===== */
section.container {
    padding: 40px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.quotes-grid.masonry-ready {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.quotes-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.quotes-col .quote-card {
    height: auto;
    flex: 0 0 auto;
}

.quote-card {
    background: var(--white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quote-image {
    margin: -28px -28px 0;
    height: 180px;
    overflow: hidden;
}

.quote-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.quote-card:hover .quote-image img {
    transform: scale(1.04);
}

.quote-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    flex: 1;
}

/* ===== Language Mode Button (Header) ===== */
.lang-mode-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.lang-mode-btn:hover,
.lang-mode-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* ===== Hindi Mode (body class) ===== */
/* English mode: show English, hide Hindi parts */
body.lang-en .quote-text-hi-main { display: none; }
body.lang-en .quote-text-en-sub { display: none; }
body.lang-en .quote-text-en { display: block; }

/* Hindi mode: Hindi big, English small below */
body.lang-hindi .quote-text-en { display: none; }
body.lang-hindi .quote-card[data-no-hindi] .quote-text-en { display: block; }
body.lang-hindi .quote-text-hi-main {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
}
body.lang-hindi .quote-text-en-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--gray);
    line-height: 1.5;
    margin-top: 4px;
    font-style: italic;
}

/* Hindi translation card in English mode: main English text from en-sub not needed;
   quote-text-en is always present as primary English */
body.lang-en .quote-card[data-has-hindi] .quote-text-en {
    display: block;
}

.quote-text-hi-main {
    font-family: 'Noto Sans Devanagari', 'Mangal', sans-serif;
    line-height: 1.8;
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
}

.quote-author:hover {
    color: var(--primary);
}

.author-avatar,
.author-avatar-lg,
.author-avatar-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.author-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.author-avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.author-avatar-xl {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
}

.author-avatar-lg img,
.author-avatar-xl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.quote-actions {
    display: flex;
    gap: 8px;
}

.like-btn,
.copy-btn {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--gray);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.like-btn:hover {
    color: #e0245e;
    border-color: #e0245e;
}

.like-btn.liked {
    color: #e0245e;
    background: #ffe4ea;
    border-color: #e0245e;
}

.copy-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ===== Page header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 45px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.page-header p {
    opacity: 0.9;
}

.count-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.author-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: left;
}

/* ===== Author profile / classification card ===== */
.author-profile-section {
    margin-top: 28px;
    margin-bottom: 8px;
}

.author-profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: var(--shadow);
}

.author-profile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.author-profile-head i {
    color: var(--primary);
    font-size: 1.1rem;
}

.author-profile-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
}

.author-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px 18px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
}

.profile-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    word-break: break-word;
}

.profile-confidence {
    grid-column: span 2;
}

.confidence-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.confidence-bar {
    flex: 1;
    height: 8px;
    background: var(--light);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 50px;
}

.confidence-pct {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
    text-align: right;
}

.author-profile-lists {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.profile-chip-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-chip {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .author-profile-card {
        padding: 18px 16px;
    }

    .author-profile-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-confidence {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .author-profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-confidence {
        grid-column: span 1;
    }
}

/* ===== Category & author grids ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-card,
.author-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.category-card:hover,
.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
    border-color: var(--primary);
}

.category-card-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.category-card h3,
.author-card h3 {
    margin-bottom: 4px;
}

.category-card p,
.author-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

.author-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.author-card .author-avatar-lg {
    margin: 0 auto 14px;
}

/* ===== Not found / no results ===== */
.not-found {
    text-align: center;
    color: var(--gray);
    padding: 60px 20px;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 16px;
}

.no-results h3 {
    color: var(--dark);
    margin-bottom: 8px;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: var(--light);
    padding: 50px 20px 20px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.copyright {
    opacity: 0.6;
    font-size: 0.85rem;
}

/* ===== Quote tags ===== */
.quote-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-badge:hover {
    background: var(--primary);
    color: var(--white);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    padding: 20px 0;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.tag-cloud-item small {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.tag-cloud-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.tag-cloud-item:hover small {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: var(--white);
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Author list ===== */
.author-list-header {
    margin-bottom: 20px;
}

.alpha-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.alpha-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.alpha-filter a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.alpha-filter a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.author-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.author-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.author-list-item:last-child {
    border-bottom: none;
}

.author-list-item:hover {
    background: var(--light);
}

.author-list-name {
    font-weight: 500;
}

.author-list-count {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.page-dots {
    color: var(--gray);
    padding: 0 4px;
}

.page-info {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* ===== Authors Hero ===== */
.authors-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 50%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 20px 40px;
    text-align: center;
}

.authors-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.authors-hero h1 i {
    font-size: 1.6rem;
    opacity: 0.85;
}

.authors-hero-sub {
    font-size: 1.1rem;
    opacity: 0.88;
    margin-bottom: 28px;
}

.alpha-filter-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.alpha-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.25s;
    backdrop-filter: blur(4px);
}

.alpha-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.alpha-chip.active {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== Authors Section ===== */
.authors-section {
    padding: 36px 20px 60px;
}

.authors-letter-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--gray);
}

.letter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ===== Authors Grid ===== */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.author-card-v2 {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.author-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s;
    border-radius: 4px 0 0 4px;
}

.author-card-v2:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.author-card-v2:hover::before {
    background: var(--primary);
}

.author-card-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.author-card-info {
    flex: 1;
    min-width: 0;
}

.author-card-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-card-meta {
    font-size: 0.82rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-card-meta i {
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0.7;
}

.author-card-arrow {
    color: var(--border);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.author-card-v2:hover .author-card-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

/* ===== Pagination V2 ===== */
.pagination-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s;
    gap: 6px;
}

.page-btn-v2:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.page-btn-v2.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.page-btn-v2.prev,
.page-btn-v2.next {
    font-weight: 600;
}

.page-dots-v2 {
    color: var(--gray);
    padding: 0 4px;
    font-size: 0.9rem;
}

.page-info-v2 {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 14px;
}

/* ===== Zero Author Notice ===== */
.zero-author-notice {
    margin-top: 32px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 14px;
    padding: 20px 24px;
}

.zero-author-notice-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.zero-author-notice-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.zero-author-notice-text {
    flex: 1;
    font-size: 0.95rem;
    color: #92400e;
}

.zero-author-notice-text strong {
    color: #78350f;
}

.zero-author-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.zero-author-notice-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .search-box {
        flex: 1 0 100%;
        order: 3;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .quotes-grid.masonry-ready {
        flex-direction: column;
    }

    .quotes-col {
        width: 100%;
    }

    .author-hero {
        flex-direction: column;
        text-align: center;
    }

    .alpha-filter {
        gap: 4px;
    }

    .alpha-filter a {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .authors-hero {
        padding: 36px 16px 30px;
    }

    .authors-hero h1 {
        font-size: 1.7rem;
    }

    .alpha-chip {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .authors-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .author-card-v2 {
        padding: 14px 16px;
    }

    .author-card-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 0.85rem;
    }

    .pagination-v2 {
        gap: 6px;
    }

    .page-btn-v2 {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .page-btn-v2.prev,
    .page-btn-v2.next {
        padding: 0 12px;
    }
}
/* ===== Quote classification (topic / theme / tone / sentiment / type) ===== */
.quote-classification {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
}

.cls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.cls-label {
    color: var(--gray);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.cls-topic {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 3px 12px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.cls-topic:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cls-subtopic {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.8rem;
}

.cls-domain {
    color: var(--gray);
    font-size: 0.78rem;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 2px 10px;
    background: var(--white);
    transition: all 0.3s;
}

.cls-domain:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cls-chip {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.cls-chip:hover {
    background: var(--primary);
    color: var(--white);
}

.cls-meta {
    gap: 12px;
    color: var(--gray);
    font-size: 0.78rem;
}

.cls-meta-item i {
    color: var(--primary);
    margin-right: 2px;
}

.cls-meta-item b {
    color: var(--dark);
    font-weight: 600;
}

.cls-sentiment-positive b { color: #16a34a; }
.cls-sentiment-negative b { color: #dc2626; }
.cls-sentiment-mixed b { color: #d97706; }
.cls-sentiment-neutral b { color: var(--gray); }

.cls-confidence b,
.cls-confidence { color: var(--accent); }

/* ===== Topics browse (topics.php / topic.php) ===== */
.topic-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.count-badge-soft {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.topic-domain-block {
    margin-bottom: 34px;
}

.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: var(--shadow);
    transition: all 0.25s;
}

.topic-chip small {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 50px;
    padding: 1px 9px;
    font-size: 0.75rem;
    font-weight: 700;
}

.topic-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.topic-chip-empty {
    opacity: 0.55;
}

.topic-chip-empty small {
    background: var(--border);
    color: var(--gray);
}

.domain-title-link {
    color: inherit;
    text-decoration: none;
}

.domain-title-link:hover {
    color: var(--primary);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
