/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', 'Segoe UI', sans-serif; color: #333; line-height: 1.6; background: #fafafa; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TOPBAR ===== */
.topbar {
    background: linear-gradient(90deg, #0f0c29, #302b63, #24243e);
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: auto; height: 42px;
}
.topbar-left { }
.social-icons { display: flex; align-items: center; gap: .4rem; }
.social-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; color: #fff;
    border: 1.5px solid rgba(255,255,255,.5); background: transparent;
    transition: all .25s ease;
}
.social-icon:hover { transform: translateY(-2px) scale(1.1); border-color: transparent; color: #fff; }
.social-icon[title="Facebook"]:hover { background: #1877f2; }
.social-icon[title="Instagram"]:hover { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.social-icon[title="YouTube"]:hover { background: #ff0000; }
.social-icon[title="Twitter"]:hover { background: #000; border-color: rgba(255,255,255,.3); }
.social-icon[title="Telegram"]:hover { background: #0088cc; }
.topbar-right { display: flex; align-items: center; gap: .6rem; }
.topbar-divider { width: 1px; height: 16px; background: rgba(255,255,255,.15); }
.topbar-btn {
    color: rgba(255,255,255,.7); font-size: .78rem; font-weight: 500;
    padding: .3rem .8rem; border-radius: 6px; transition: all .25s ease;
    display: flex; align-items: center; gap: .35rem;
}
.topbar-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar-btn-login, .topbar-btn-logout {
    background: linear-gradient(135deg, #e94560, #c62a71);
    color: #fff; border-radius: 20px; padding: .3rem .9rem;
}
.topbar-btn-login:hover, .topbar-btn-logout:hover {
    background: linear-gradient(135deg, #ff6b81, #e94560);
    transform: translateY(-1px); box-shadow: 0 4px 15px rgba(233,69,96,.4);
}
.lang-toggle {
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.12);
    padding: .28rem .7rem; border-radius: 20px; cursor: pointer;
    font-size: .75rem; font-weight: 600; transition: all .25s ease;
    font-family: 'Poppins', sans-serif;
    display: flex; align-items: center; gap: .3rem;
}
.lang-toggle:hover {
    background: rgba(255,255,255,.15); color: #fff;
    border-color: rgba(255,255,255,.3);
    transform: translateY(-1px);
}
.search-box { display: flex; border-radius: 24px; overflow: hidden; }
.search-box input {
    padding: .5rem 1rem; border: none;
    font-size: .9rem; outline: none; width: 220px;
    background: rgba(255,255,255,.1); color: #fff;
    transition: all .3s ease; font-family: 'Poppins', sans-serif;
}
.search-box input::placeholder { color: rgba(255,255,255,.4); }
.search-box input:focus { background: rgba(255,255,255,.18); width: 280px; }
.search-box button {
    padding: .5rem .85rem; border: none;
    background: linear-gradient(135deg, #e94560, #c62a71); color: #fff;
    cursor: pointer; font-size: .9rem; transition: all .25s ease;
}
.search-box button:hover { background: linear-gradient(135deg, #ff6b81, #e94560); }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 0 2rem;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,.06);
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: auto; height: 72px;
}
.logo {
    display: flex; align-items: center; gap: .5rem;
    transition: transform .2s ease;
}
.logo:hover { transform: scale(1.03); }
.logo-icon { font-size: 1.6rem; filter: drop-shadow(0 2px 4px rgba(233,69,96,.3)); }
.logo-text {
    font-size: 1.45rem; font-weight: 800; color: #e94560;
    letter-spacing: -.5px;
}
.logo-text span { color: #1a1a2e; }
.nav-links-desktop { display: flex; gap: .4rem; align-items: center; }
.nav-links-desktop a {
    color: #333; font-size: .95rem; padding: .5rem .9rem;
    border-radius: 10px; transition: all .25s ease; font-weight: 600;
    position: relative; display: flex; align-items: center; gap: .5rem;
    letter-spacing: .2px;
}
.nav-icon {
    width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; transition: all .25s ease;
}
/* --- Per-link colors --- */
.nav-home .nav-icon  { background: #eef7ff; color: #3b82f6; }
.nav-home:hover       { background: #eef7ff; color: #3b82f6; }
.nav-series .nav-icon { background: #f3eeff; color: #8b5cf6; }
.nav-series:hover     { background: #f3eeff; color: #8b5cf6; }
.nav-stories .nav-icon{ background: #fef3e2; color: #f59e0b; }
.nav-stories:hover    { background: #fef3e2; color: #f59e0b; }
.nav-quote .nav-icon  { background: #e8faf0; color: #10b981; }
.nav-quote:hover      { background: #e8faf0; color: #10b981; }
.nav-audio .nav-icon  { background: #fce4ec; color: #e94560; }
.nav-audio:hover      { background: #fce4ec; color: #e94560; }
.nav-contests .nav-icon{ background: #fff8e1; color: #f59e0b; }
.nav-contests:hover   { background: #fff8e1; color: #d97706; }
.nav-awards .nav-icon { background: #fef2f4; color: #ec4899; }
.nav-awards:hover     { background: #fef2f4; color: #ec4899; }
.nav-buy .nav-icon    { background: #e0f7fa; color: #0891b2; }
.nav-buy:hover        { background: #e0f7fa; color: #0891b2; }
.nav-links-desktop a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.07);
}
.nav-links-desktop a:hover .nav-icon {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0,0,0,.1);
}
.nav-links-desktop a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2.5px;
    border-radius: 2px; transition: all .3s ease; transform: translateX(-50%);
}
.nav-home:hover::after  { width: 50%; background: #3b82f6; }
.nav-series:hover::after { width: 50%; background: #8b5cf6; }
.nav-stories:hover::after{ width: 50%; background: #f59e0b; }
.nav-quote:hover::after  { width: 50%; background: #10b981; }
.nav-audio:hover::after  { width: 50%; background: #e94560; }
.nav-contests:hover::after{ width: 50%; background: #d97706; }
.nav-awards:hover::after { width: 50%; background: #ec4899; }
.nav-buy:hover::after    { width: 50%; background: #0891b2; }
.hamburger {
    display: none; background: none; border: none;
    color: #1a1a2e; font-size: 1.3rem; cursor: pointer;
    width: 40px; height: 40px; border-radius: 10px;
    transition: all .25s ease;
}
.hamburger:hover { background: #fef2f4; color: #e94560; }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #0f3460, #533483, #e94560);
    color: #fff; text-align: center;
    padding: 5rem 1.5rem 4rem;
}
.hero h1 { font-size: 2.6rem; margin-bottom: .5rem; }
.hero h2 { font-size: 1.3rem; font-weight: 400; opacity: .9; margin-bottom: 1rem; }
.hero p { max-width: 700px; margin: 0 auto 2rem; opacity: .85; font-size: 1rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: .7rem 1.6rem; border-radius: 6px; font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: .2s; }
.btn-primary { background: #f7c948; color: #1a1a2e; }
.btn-primary:hover { background: #e6b830; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #1a1a2e; }
.btn-danger { background: #e94560; color: #fff; }
.btn-danger:hover { background: #d63851; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }

/* ===== SECTIONS ===== */
.section { max-width: 1200px; margin: auto; padding: 3rem 1.5rem; }
.section-title { font-size: 1.8rem; text-align: center; margin-bottom: 2rem; color: #1a1a2e; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: #e94560; margin: .5rem auto 0; border-radius: 2px; }

/* ===== CATEGORIES ===== */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; max-width: 1100px; margin: 0 auto; }
@media (max-width: 768px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
.cat-card {
    background: #fff; text-align: center;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    cursor: pointer; transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.cat-img {
    width: 100%; aspect-ratio: 1; overflow: hidden;
    background: #f8f4ff;
    display: flex; align-items: center; justify-content: center;
}
.cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.cat-card:hover .cat-img img { transform: scale(1.08); }
.cat-img i { font-size: 2.5rem; color: #ccc; }
.cat-card > span {
    padding: .6rem .5rem; font-size: .9rem; font-weight: 700;
    color: #1a1a2e;
}

/* ===== STORY CARDS ===== */
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.story-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s;
    display: flex; flex-direction: row; color: inherit;
}
.story-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.story-card-img {
    width: 180px; overflow: hidden;
    background: #f3eeff; flex-shrink: 0;
}
.story-card-img img { width: 100%; height: 100%; object-fit: contain; background: #f3eeff; display: block; transition: transform .3s ease; }
.story-card:hover .story-card-img img { transform: scale(1.05); }
.story-card-body { padding: 1rem 1.2rem; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.story-card-body h3 { font-size: 1.05rem; margin-bottom: .3rem; color: #1a1a2e; }
.story-card-body .cat-tag {
    display: inline-block; width: fit-content; background: #f0e6ff; color: #533483;
    padding: .15rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 600; margin-bottom: .4rem;
}
.story-card-body p { font-size: .85rem; color: #666; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-card-body .read-more { color: #e94560; font-weight: 600; font-size: .85rem; margin-top: auto; }
.story-more { display: flex; justify-content: center; margin-top: 1.5rem; }
.btn-more {
    display: inline-flex; align-items: center; gap: .5rem;
    background: linear-gradient(135deg, #533483, #e94560); color: #fff;
    padding: .75rem 2.5rem; border-radius: 30px; font-size: .95rem; font-weight: 600;
    transition: all .25s ease;
}
.btn-more:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,.35); }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
    padding: .5rem 1rem; border-radius: 8px; font-size: .88rem; font-weight: 600;
    background: #fff; color: #333; border: 1.5px solid #ddd; transition: all .2s;
}
.page-btn:hover { border-color: #e94560; color: #e94560; }
.page-btn.active { background: linear-gradient(135deg, #533483, #e94560); color: #fff; border-color: transparent; }
@media (max-width: 768px) {
    .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
    .story-card { flex-direction: column; }
    .story-card-img { width: 100%; height: 200px; }
    .story-card-img img { object-fit: contain; }
}

/* ===== STORY DETAIL ===== */
.story-detail { max-width: 800px; margin: auto; padding: 2rem 1.5rem; }
.story-detail h1 { font-size: 2rem; color: #1a1a2e; margin-bottom: .5rem; }
.story-meta { color: #888; font-size: .85rem; margin-bottom: 1.5rem; }
.story-content { font-size: 1.05rem; line-height: 1.9; color: #444; white-space: pre-line; }

/* ===== AUTHOR CARD ===== */
.author-card {
    position: relative; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,.1);
}
.author-card-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #0f3460, #533483, #e94560);
    opacity: .95;
}
.author-card-content {
    position: relative; z-index: 1; text-align: center;
    padding: 2.5rem 2rem;
}
.author-card-avatar {
    width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 1rem;
    background: rgba(255,255,255,.15); border: 3px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #f7c948;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.author-card-name {
    font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: .3rem;
}
.author-card-tagline {
    font-size: .9rem; color: rgba(255,255,255,.7); font-style: italic; margin-bottom: 1rem;
}
.author-card-divider {
    width: 60px; height: 3px; background: #f7c948; margin: 0 auto 1rem; border-radius: 2px;
}
.author-card-bio {
    font-size: .92rem; color: rgba(255,255,255,.8); line-height: 1.8;
    max-width: 650px; margin: 0 auto 1.5rem;
}
.author-card-stats {
    display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.author-stat {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
}
.author-stat i {
    font-size: 1.3rem; color: #f7c948; margin-bottom: .3rem;
}
.author-stat-num {
    font-size: 1.6rem; font-weight: 800; color: #fff;
}
.author-stat-label {
    font-size: .75rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px;
}
@media (max-width: 576px) {
    .author-card-content { padding: 2rem 1.2rem; }
    .author-card-name { font-size: 1.2rem; }
    .author-card-stats { gap: 1.5rem; }
}

/* ===== AD PLACEHOLDER ===== */
.ad-banner { background: #f0f0f0; border: 2px dashed #ccc; border-radius: 8px; padding: 2rem; text-align: center; color: #999; margin: 2rem 0; }
.ad-slot {
    margin: 1rem 0; text-align: center; overflow: hidden; border-radius: 8px;
    max-width: 100%; line-height: 0;
}
.ad-slot img { max-width: 100%; height: auto; display: block; margin: 0 auto; border-radius: 8px; }
.ad-slot a { display: block; }
.ad-slot iframe, .ad-slot video, .ad-slot embed {
    max-width: 100%; border-radius: 8px;
}
.ad-slot ins { display: block; text-align: center; }
@media (max-width: 768px) {
    .ad-slot { margin: .8rem 0; }
    .ad-slot iframe, .ad-slot video { height: auto; min-height: 200px; }
}

/* ===== ADMIN FORM ===== */
.admin-wrap { max-width: 900px; margin: auto; padding: 2rem 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .3rem; color: #1a1a2e; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: .6rem .8rem; border: 1px solid #ddd; border-radius: 6px; font-size: .95rem; font-family: inherit;
}
.form-group textarea { min-height: 200px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #533483; outline: none; box-shadow: 0 0 0 3px rgba(83,52,131,.1); }
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.checkbox-label input { width: auto; }
.alert { padding: .8rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* ===== ADMIN TABLE ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
th, td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid #eee; font-size: .9rem; }
th { background: #1a1a2e; color: #fff; }
td .featured-badge { background: #f7c948; color: #1a1a2e; padding: .1rem .5rem; border-radius: 10px; font-size: .75rem; font-weight: 600; }

/* ===== LOGIN ===== */
.login-wrap { max-width: 400px; margin: 4rem auto; padding: 2rem; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.login-wrap h2 { text-align: center; margin-bottom: 1.5rem; color: #1a1a2e; }

/* ===== FOOTER ===== */
.footer { background: linear-gradient(180deg, #1a1a2e 0%, #0f0c29 100%); color: #aaa; margin-top: 0; }
.footer-main {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem; max-width: 1200px; margin: 0 auto;
    padding: 3rem 2rem 2rem;
}
.footer-col h4 {
    color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 1rem;
    padding-bottom: .5rem; border-bottom: 2px solid #e94560; display: inline-block;
}
.footer-logo {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: 1.2rem; color: #e94560; font-weight: 700; margin-bottom: .8rem;
}
.footer-logo strong { color: #fff; }
.footer-about { font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
    width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.6); font-size: .8rem; transition: all .25s;
}
.footer-social a:hover { background: #e94560; border-color: #e94560; color: #fff; transform: translateY(-2px); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a {
    color: rgba(255,255,255,.55); font-size: .82rem; transition: all .2s;
    display: flex; align-items: center; gap: .4rem;
}
.footer-col ul li a i { font-size: .65rem; color: #e94560; transition: transform .2s; }
.footer-col ul li a:hover { color: #f7c948; padding-left: .3rem; }
.footer-col ul li a:hover i { transform: translateX(3px); }
.footer-contact li a i { font-size: .8rem !important; width: 16px; }
.footer-visitor {
    margin-top: 1.2rem; padding: .7rem 1rem; border-radius: 8px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    font-size: .8rem; color: rgba(255,255,255,.5);
    display: flex; align-items: center; gap: .5rem;
}
.footer-visitor i { color: #f7c948; }
.footer-visitor strong { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.2rem 2rem; max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }
.dev-credit { font-size: .8rem !important; color: rgba(255,255,255,.4) !important; }
.dev-credit a { color: #f7c948 !important; font-weight: 600; text-decoration: none; transition: color .2s; }
.dev-credit a:hover { color: #ffd700 !important; text-decoration: underline; }
.footer::after {
    content: 'Developed by Web Mahek India'; display: block;
    font-size: 0; height: 0; overflow: hidden; visibility: hidden;
}

@media (max-width: 992px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-main { grid-template-columns: 1fr; padding: 2rem 1.2rem 1.5rem; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 1rem 1.2rem; }
}

/* ===== POLICY PAGE ===== */
.policy-page { max-width: 860px; margin: 2rem auto; padding: 0 1.5rem; }
.policy-container { background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.07); overflow: hidden; }
.policy-title {
    background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff;
    padding: 1.5rem 2rem; font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; gap: .7rem; margin: 0;
}
.policy-title i { color: #f7c948; }
.policy-content { padding: 2rem; font-size: .95rem; line-height: 2; color: #444; }

/* ===== AUTHOR DASHBOARD LAYOUT ===== */
.author-layout { display: flex; min-height: calc(100vh - 120px); max-width: 1300px; margin: 0 auto; gap: 0; }

/* Sidebar */
.author-sidebar {
    width: 270px; flex-shrink: 0; background: #fff;
    border-right: 1px solid #eee; padding: 1.5rem 0;
    display: flex; flex-direction: column; gap: .5rem;
}
.author-profile-card {
    text-align: center; padding: 0 1.2rem 1.2rem;
    border-bottom: 1px solid #f0f0f0; margin-bottom: .5rem;
}
.author-avatar {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto .7rem;
    background: linear-gradient(135deg, #e94560, #533483);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem; overflow: hidden;
    box-shadow: 0 4px 15px rgba(233,69,96,.3);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-profile-card h3 { font-size: 1rem; color: #1a1a2e; margin-bottom: .2rem; }
.author-role { font-size: .78rem; color: #e94560; font-weight: 600; margin-bottom: .4rem; }
.author-role i { margin-right: .2rem; }
.author-email, .author-phone { font-size: .75rem; color: #888; margin-bottom: .15rem; }
.author-email i, .author-phone i { margin-right: .3rem; width: 14px; text-align: center; }

/* Sidebar Menu */
.author-menu { display: flex; flex-direction: column; padding: 0 .6rem; }
.author-menu a {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem 1rem; font-size: .88rem; font-weight: 500;
    color: #555; border-radius: 10px; transition: all .2s ease;
}
.author-menu a i { width: 18px; text-align: center; font-size: .85rem; }
.author-menu a:hover { background: #fef2f4; color: #e94560; }
.author-menu a.active { background: linear-gradient(135deg, #e94560, #c62a71); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(233,69,96,.25); }
.author-menu .logout-link { margin-top: auto; color: #999; }
.author-menu .logout-link:hover { background: #fff5f5; color: #e94560; }

/* Content Area */
.author-content { flex: 1; padding: 2rem; background: #f8f9fb; min-width: 0; }
.ac-title { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; margin-bottom: 1.5rem; }
.ac-subtitle { font-size: 1.1rem; font-weight: 600; color: #1a1a2e; margin: 1.5rem 0 1rem; }
.ac-card { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.05); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border-radius: 12px; padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.05); border-left: 4px solid;
    transition: all .3s ease; cursor: default;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.stat-card:hover .sc-icon { transform: scale(1.18) rotate(-5deg); }
.sc-blue:hover { border-color: #2563eb; background: linear-gradient(135deg, #fff, #eef7ff); }
.sc-yellow:hover { border-color: #d97706; background: linear-gradient(135deg, #fff, #fff8e1); }
.sc-green:hover { border-color: #059669; background: linear-gradient(135deg, #fff, #e8faf0); }
.sc-red:hover { border-color: #dc2626; background: linear-gradient(135deg, #fff, #fef2f4); }
.sc-purple:hover { border-color: #7c3aed; background: linear-gradient(135deg, #fff, #f3eeff); }
.sc-blue { border-color: #3b82f6; } .sc-blue .sc-icon { background: #eef7ff; color: #3b82f6; }
.sc-yellow { border-color: #f59e0b; } .sc-yellow .sc-icon { background: #fff8e1; color: #f59e0b; }
.sc-green { border-color: #10b981; } .sc-green .sc-icon { background: #e8faf0; color: #10b981; }
.sc-red { border-color: #e94560; } .sc-red .sc-icon { background: #fef2f4; color: #e94560; }
.sc-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; transition: all .3s ease; }
.sc-info { display: flex; flex-direction: column; }
.sc-num { font-size: 1.4rem; font-weight: 800; color: #1a1a2e; line-height: 1; }
.sc-label { font-size: .78rem; color: #888; margin-top: .2rem; }

/* Badges */
.badge { padding: .15rem .5rem; border-radius: 10px; font-size: .75rem; font-weight: 600; }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-green { background: #d4edda; color: #155724; }
.badge-red { background: #f8d7da; color: #721c24; }

/* Profile Photo Preview */
.profile-photo-preview {
    width: 100px; height: 100px; border-radius: 50%; margin: 0 auto;
    background: linear-gradient(135deg, #e94560, #533483);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2.5rem; overflow: hidden;
    box-shadow: 0 4px 15px rgba(233,69,96,.3);
}
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Author Dashboard Responsive */
@media (max-width: 768px) {
    .author-layout { flex-direction: column; }
    .author-sidebar {
        width: 100%; border-right: none; border-bottom: 1px solid #eee;
        padding: 1rem 0;
    }
    .author-profile-card { padding: 0 1rem .8rem; }
    .author-avatar { width: 60px; height: 60px; font-size: 1.5rem; }
    .author-menu { flex-direction: row; overflow-x: auto; padding: .5rem .8rem; gap: .3rem; }
    .author-menu a { white-space: nowrap; padding: .5rem .8rem; font-size: .8rem; border-radius: 20px; }
    .author-menu .logout-link { margin-top: 0; }
    .author-content { padding: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== ADMIN DASHBOARD LAYOUT ===== */
.admin-layout { display: flex; min-height: calc(100vh - 120px); max-width: 1400px; margin: 0 auto; }

/* Admin Sidebar */
.admin-sidebar {
    width: 270px; flex-shrink: 0; background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    padding: 1.5rem 0; display: flex; flex-direction: column; gap: .5rem;
}
.admin-profile-card {
    text-align: center; padding: 0 1.2rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .5rem;
}
.admin-avatar {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto .7rem;
    background: linear-gradient(135deg, #f7c948, #f59e0b);
    display: flex; align-items: center; justify-content: center;
    color: #1a1a2e; font-size: 2rem;
    box-shadow: 0 4px 20px rgba(247,201,72,.35);
}
.admin-profile-card h3 { font-size: 1rem; color: #fff; margin-bottom: .3rem; }
.admin-role-badge {
    display: inline-block; font-size: .72rem; font-weight: 700;
    background: linear-gradient(135deg, #f7c948, #f59e0b); color: #1a1a2e;
    padding: .2rem .7rem; border-radius: 20px; margin-bottom: .5rem;
}
.admin-role-badge i { margin-right: .2rem; }
.admin-email { font-size: .75rem; color: rgba(255,255,255,.5); }
.admin-email i { margin-right: .3rem; }

/* Admin Sidebar Menu */
.admin-menu { display: flex; flex-direction: column; padding: 0 .6rem; }
.admin-menu a {
    display: flex; align-items: center; gap: .6rem;
    padding: .75rem 1rem; font-size: .88rem; font-weight: 500;
    color: rgba(255,255,255,.6); border-radius: 10px; transition: all .2s ease;
}
.admin-menu a i { width: 18px; text-align: center; font-size: .85rem; }
.admin-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu a.active {
    background: linear-gradient(135deg, #f7c948, #f59e0b); color: #1a1a2e;
    font-weight: 700; box-shadow: 0 4px 15px rgba(247,201,72,.3);
}
.admin-menu .logout-link { margin-top: auto; color: rgba(255,255,255,.35); }
.admin-menu .logout-link:hover { background: rgba(233,69,96,.15); color: #e94560; }

/* Admin Content */
.admin-content { flex: 1; padding: 2rem; background: #f8f9fb; min-width: 0; }

/* Admin Filter Tabs */
.admin-filter-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-tab {
    padding: .5rem 1.2rem; border-radius: 25px; font-size: .82rem; font-weight: 600;
    background: #fff; color: #555; border: 1.5px solid #e0e0e0;
    transition: all .2s ease; cursor: pointer;
}
.filter-tab:hover { border-color: #aaa; transform: translateY(-1px); }
.filter-tab.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.filter-tab.tab-yellow.active { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.filter-tab.tab-green.active { background: #10b981; border-color: #10b981; color: #fff; }
.filter-tab.tab-red.active { background: #e94560; border-color: #e94560; color: #fff; }

/* Stat card purple */
.sc-purple { border-color: #8b5cf6; } .sc-purple .sc-icon { background: #f3eeff; color: #8b5cf6; }

/* Admin action buttons */
.btn-success { background: #10b981; color: #fff; border: none; }
.btn-success:hover { background: #059669; }
.btn-outline-danger { background: #fff; color: #e94560; border: 1.5px solid #e94560; }
.btn-outline-danger:hover { background: #e94560; color: #fff; }
.btn-star { background: #fff8e1; color: #f59e0b; border: 1.5px solid #f59e0b; }
.btn-star:hover { background: #f59e0b; color: #fff; }
.badge-star { background: #fff8e1; color: #f59e0b; }
.badge-blue { background: #eef7ff; color: #3b82f6; }

/* User mini avatar */
.user-mini-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #e94560, #533483);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .7rem; overflow: hidden;
}
.user-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Empty state */
.empty-state {
    text-align: center; padding: 3rem 1rem; color: #bbb;
    background: #fff; border-radius: 12px; margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.empty-state i { font-size: 2.5rem; margin-bottom: .8rem; display: block; color: #10b981; }
.empty-state p { font-size: 1rem; color: #888; }

/* Read Story Card */
.read-story-card {
    background: #fff; border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07); overflow: hidden;
}
.read-story-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 1.8rem 2rem; color: #fff;
}
.read-story-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .8rem; line-height: 1.4; }
.read-story-meta {
    display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem;
    color: rgba(255,255,255,.65);
}
.read-story-meta i { margin-right: .3rem; color: #f7c948; }
.read-story-body {
    padding: 2rem; font-size: 1.05rem; line-height: 2;
    color: #444; white-space: pre-line; max-height: 60vh;
    overflow-y: auto; border-bottom: 1px solid #f0f0f0;
}
.read-story-actions {
    padding: 1.2rem 2rem; display: flex; gap: .7rem; flex-wrap: wrap;
    background: #fafafa;
}
.read-story-actions .btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .6rem 1.3rem; font-size: .88rem; border-radius: 8px;
}
.btn-outline-back {
    background: #fff; color: #555; border: 1.5px solid #ddd;
    font-size: .82rem; border-radius: 8px; padding: .45rem .9rem;
    transition: all .2s ease;
}
.btn-outline-back:hover { border-color: #1a1a2e; color: #1a1a2e; }
.btn-read {
    background: #eef7ff; color: #3b82f6; border: 1.5px solid #3b82f6;
}
.btn-read:hover { background: #3b82f6; color: #fff; }
.btn-edit {
    background: #f3eeff; color: #8b5cf6; border: 1.5px solid #8b5cf6;
}
.btn-edit:hover { background: #8b5cf6; color: #fff; }

/* User Profile Card */
.user-profile-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.07); margin-bottom: 1.5rem;
}
.user-profile-header {
    display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; flex-wrap: wrap;
}
.user-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #e94560, #533483);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem; overflow: hidden;
    border: 3px solid rgba(255,255,255,.2); box-shadow: 0 4px 15px rgba(0,0,0,.3);
}
.user-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-profile-info h2 { font-size: 1.3rem; font-weight: 700; }
.upi-role { font-size: .82rem; color: #f7c948; margin-top: .2rem; }
.upi-role i { margin-right: .3rem; }
.user-profile-details {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; padding: 1.5rem 2rem; border-bottom: 1px solid #f0f0f0;
}
.upd-item {
    display: flex; align-items: flex-start; gap: .7rem;
}
.upd-item > i {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #f3eeff; color: #8b5cf6; font-size: .85rem;
}
.upd-label { display: block; font-size: .72rem; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.upd-value { display: block; font-size: .92rem; font-weight: 600; color: #1a1a2e; margin-top: .1rem; }
.user-profile-bio { padding: 1.5rem 2rem; }
.user-profile-bio h4 { font-size: .95rem; color: #1a1a2e; margin-bottom: .5rem; }
.user-profile-bio p { font-size: .9rem; color: #555; line-height: 1.7; }

/* Admin Dashboard Responsive */
@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar {
        width: 100%; padding: 1rem 0;
        background: linear-gradient(90deg, #1a1a2e, #16213e);
    }
    .admin-profile-card { padding: 0 1rem .8rem; }
    .admin-avatar { width: 55px; height: 55px; font-size: 1.4rem; }
    .admin-menu { flex-direction: row; overflow-x: auto; padding: .5rem .8rem; gap: .3rem; }
    .admin-menu a { white-space: nowrap; padding: .5rem .8rem; font-size: .8rem; border-radius: 20px; }
    .admin-menu .logout-link { margin-top: 0; }
    .admin-content { padding: 1rem; }
    .admin-filter-tabs { gap: .3rem; }
    .filter-tab { padding: .4rem .8rem; font-size: .75rem; }
}

/* ===== MOBILE SIDEBAR ===== */

/* Books Grid */
.books-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem; justify-items: center;
}
.book-card-item {
    width: 100%; max-width: 250px;
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: all .3s ease; position: relative;
}
.book-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.book-featured { border: 2px solid #f7c948; }
.book-featured-badge {
    position: absolute; top: .6rem; right: .6rem; z-index: 2;
    background: linear-gradient(135deg, #f7c948, #f59e0b); color: #1a1a2e;
    font-size: .68rem; font-weight: 700; padding: .2rem .6rem;
    border-radius: 20px; box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.book-cover {
    width: 100%; height: 300px; overflow: hidden;
    background: linear-gradient(135deg, #f3eeff, #fef2f4);
}
.book-cover img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; transition: transform .3s ease; }
.book-card-item:hover .book-cover img { transform: scale(1.05); }
.book-cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #ccc;
}
.book-info { padding: 1rem 1.2rem 1.2rem; }
.book-info h3 { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: .3rem; line-height: 1.3; }
.book-author { font-size: .78rem; color: #888; margin-bottom: .4rem; }
.book-author i { margin-right: .3rem; color: #8b5cf6; }
.book-desc { font-size: .82rem; color: #666; line-height: 1.5; margin-bottom: .8rem; }
.btn-buy {
    display: inline-block; width: 100%; text-align: center;
    background: linear-gradient(135deg, #e94560, #c62a71); color: #fff;
    padding: .55rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
    transition: all .25s ease;
}
.btn-buy:hover {
    background: linear-gradient(135deg, #ff6b81, #e94560);
    transform: translateY(-1px); box-shadow: 0 4px 15px rgba(233,69,96,.35);
}

@media (max-width: 768px) {
    .books-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
    .book-cover { height: 220px; }
}
@media (max-width: 480px) {
    .books-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
    .book-card-item { max-width: 100%; }
    .book-cover { height: 200px; }
}

/* Disclaimer Popup */
.disc-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 1rem;
}
.disc-overlay.show { display: flex; }
.disc-popup {
    background: #fff; border-radius: 16px; max-width: 520px; width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden;
    animation: discSlide .3s ease;
}
@keyframes discSlide { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.disc-header {
    background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
    padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: .7rem;
}
.disc-header i { font-size: 1.4rem; }
.disc-header h3 { font-size: 1.1rem; font-weight: 700; }
.disc-body { padding: 1.5rem; max-height: 40vh; overflow-y: auto; font-size: .9rem; line-height: 1.8; color: #444; }
.disc-footer { padding: 1rem 1.5rem 1.3rem; border-top: 1px solid #f0f0f0; background: #fafafa; }
.disc-check {
    display: flex; align-items: flex-start; gap: .5rem; cursor: pointer;
    font-size: .85rem; color: #333; margin-bottom: 1rem; line-height: 1.4;
}
.disc-check input { margin-top: .2rem; accent-color: #e94560; width: 18px; height: 18px; flex-shrink: 0; }
.disc-btns { display: flex; gap: .6rem; }
.disc-continue {
    flex: 1; background: linear-gradient(135deg, #10b981, #059669); color: #fff;
    border: none; padding: .65rem 1rem; border-radius: 8px; font-weight: 700;
    font-size: .9rem; cursor: pointer; transition: all .2s;
}
.disc-continue:disabled { opacity: .4; cursor: not-allowed; }
.disc-continue:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(16,185,129,.35); }
.disc-cancel {
    background: #fff; color: #666; border: 1.5px solid #ddd;
    padding: .65rem 1.2rem; border-radius: 8px; font-weight: 600;
    font-size: .9rem; cursor: pointer; transition: all .2s;
}
.disc-cancel:hover { border-color: #e94560; color: #e94560; }

/* Admin Toggle Switch */
.disc-toggle-label {
    display: flex; align-items: center; gap: .7rem; cursor: pointer;
    font-weight: 600; font-size: .9rem;
}
.disc-toggle-label input { display: none; }
.disc-toggle-switch {
    width: 44px; height: 24px; background: #ddd; border-radius: 12px;
    position: relative; transition: background .25s; flex-shrink: 0;
}
.disc-toggle-switch::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; background: #fff; border-radius: 50%;
    transition: transform .25s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.disc-toggle-label input:checked + .disc-toggle-switch { background: #10b981; }
.disc-toggle-label input:checked + .disc-toggle-switch::after { transform: translateX(20px); }

@media (max-width: 480px) {
    .disc-popup { margin: .5rem; }
    .disc-body { max-height: 35vh; }
    .disc-btns { flex-direction: column; }
}

.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
    z-index: 2000;
}
.sidebar-overlay.show { display: block; }
.sidebar {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
    background: #fff; z-index: 2001;
    box-shadow: 5px 0 30px rgba(0,0,0,.2);
    transition: left .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto; display: flex; flex-direction: column;
}
.sidebar.open { left: 0; }
.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem; border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fef2f4, #fff);
    flex-shrink: 0;
}
.sidebar-header .logo { gap: .4rem; }
.sidebar-header .logo-icon { font-size: 1.2rem; }
.sidebar-header .logo-text { font-size: 1.15rem; }
.sidebar-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: #fef2f4; color: #e94560;
    font-size: 1.1rem; cursor: pointer; transition: all .2s ease;
}
.sidebar-close:hover { background: #e94560; color: #fff; }
.sidebar-links { display: flex; flex-direction: column; padding: .5rem 0; }
.sidebar-links a {
    display: flex; align-items: center; gap: .6rem;
    padding: .9rem 1.3rem; font-size: .95rem; font-weight: 600;
    color: #333; border-bottom: 1px solid #f5f5f5;
    transition: all .2s ease;
}
.sidebar-links a:hover { background: #f9f9f9; padding-left: 1.6rem; }

/* ===== QUOTES GRID ===== */
.quotes-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.quote-card {
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,.07);
    transition: all .3s ease;
    width: 100%; height: 350px;
}
.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

/* Image-only card */
.quote-card-img { background: linear-gradient(135deg, #f0fdf4, #e8faf0); }
.quote-card-img img {
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    padding: .3rem;
}

/* Text-only card */
.quote-card-text {
    background: linear-gradient(135deg, #f0fdf4, #fff);
    border-left: 4px solid #10b981;
}
.quote-body {
    padding: 1.5rem; height: 100%;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.quote-icon { color: #10b981; font-size: 1.3rem; margin-bottom: .5rem; flex-shrink: 0; }
.quote-text {
    font-size: .92rem; line-height: 1.8; color: #444;
    flex: 1; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical;
    font-style: italic;
}
.quote-author {
    font-size: .82rem; font-weight: 700; color: #10b981;
    flex-shrink: 0; margin-top: .6rem;
    padding-top: .5rem; border-top: 1px solid rgba(16,185,129,.15);
}

@media (max-width: 992px) {
    .quotes-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 768px) {
    .quotes-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .quote-card { height: 300px; }
}
@media (max-width: 480px) {
    .quotes-grid { grid-template-columns: 1fr; }
    .quote-card { height: 320px; }
}

/* ===== MEDIA (AUDIO/VIDEO) GRID ===== */
.media-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.media-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,.07);
    transition: all .3s ease;
    display: flex; flex-direction: column;
}
.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.media-embed {
    position: relative; width: 100%; padding-top: 56.25%; overflow: hidden;
    background: #000;
}
.media-embed iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.media-thumb {
    position: relative; width: 100%; height: 200px; overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.media-card:hover .media-thumb img { transform: scale(1.05); }
.media-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(233,69,96,.9); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; transition: all .3s;
}
.media-card:hover .media-play { transform: translate(-50%,-50%) scale(1.15); background: #e94560; }
.media-thumb-placeholder {
    font-size: 3rem; color: rgba(255,255,255,.3);
}
.media-info { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.media-type-badge {
    display: inline-block; width: fit-content;
    padding: .2rem .7rem; border-radius: 20px;
    font-size: .72rem; font-weight: 700; margin-bottom: .6rem;
}
.badge-audio { background: #eef7ff; color: #3b82f6; }
.badge-video { background: #fef2f4; color: #e94560; }
.media-info h3 { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: .4rem; line-height: 1.3; }
.media-info p { font-size: .85rem; color: #666; line-height: 1.5; margin-bottom: .8rem; flex: 1; }
.btn-media {
    display: inline-block; width: 100%; text-align: center;
    background: linear-gradient(135deg, #e94560, #c62a71); color: #fff;
    padding: .55rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
    transition: all .25s ease; margin-top: auto;
}
.btn-media:hover {
    background: linear-gradient(135deg, #ff6b81, #e94560);
    transform: translateY(-1px); box-shadow: 0 4px 15px rgba(233,69,96,.35);
}
@media (max-width: 480px) {
    .media-grid { grid-template-columns: 1fr; }
    .media-thumb { height: 180px; }
}

/* ===== CONTESTS GRID ===== */
.contest-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.contest-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,.07);
    transition: all .3s ease;
}
.contest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.contest-img {
    width: 100%; height: 200px; overflow: hidden;
    background: linear-gradient(135deg, #fff8e1, #fef3e2);
}
.contest-img img { width: 100%; height: 100%; object-fit: cover; }
.contest-info { padding: 1.2rem 1.5rem 1.5rem; }
.contest-info h3 { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin-bottom: .5rem; }
.contest-dates {
    font-size: .82rem; color: #f59e0b; font-weight: 600; margin-bottom: .6rem;
}
.contest-dates i { margin-right: .3rem; }
.contest-desc { font-size: .88rem; color: #555; line-height: 1.7; margin-bottom: 1rem; }
.btn-contest {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
    padding: .55rem 1.5rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
    transition: all .25s ease;
}
.btn-contest:hover {
    transform: translateY(-1px); box-shadow: 0 4px 15px rgba(245,158,11,.35);
}

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

/* ===== AWARDS GRID ===== */
.awards-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.award-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,.07);
    transition: all .3s ease; text-align: center;
}
.award-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.award-img {
    width: 100%; height: 200px; overflow: hidden;
    background: linear-gradient(135deg, #fef2f4, #f3eeff);
}
.award-img img { width: 100%; height: 100%; object-fit: cover; }
.award-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; color: #ec4899;
}
.award-info { padding: 1.2rem 1.5rem 1.5rem; }
.award-info h3 { font-size: 1.05rem; font-weight: 700; color: #1a1a2e; margin-bottom: .5rem; }
.award-recipient {
    font-size: .88rem; color: #8b5cf6; font-weight: 600; margin-bottom: .3rem;
}
.award-recipient i { margin-right: .3rem; }
.award-date { font-size: .8rem; color: #999; margin-bottom: .6rem; }
.award-date i { margin-right: .3rem; }
.award-desc { font-size: .85rem; color: #555; line-height: 1.6; }

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .topbar { padding: 0 1rem; }
    .topbar-inner { height: auto; flex-wrap: wrap; padding: .5rem 0; justify-content: center; gap: .4rem; }
    .topbar-left { display: flex; }
    .social-icons { gap: .3rem; }
    .topbar-right { flex-wrap: wrap; gap: .5rem; justify-content: center; }
    .topbar-divider { display: none; }
    .search-box input { width: 140px; }
    .search-box input:focus { width: 180px; }
    .navbar { padding: 0 1rem; }
    .nav-inner { height: 56px; }
    .nav-links-desktop { display: none; }
    .hamburger { display: flex; align-items: center; justify-content: center; }
    .hero h1 { font-size: 1.8rem; }
    .hero h2 { font-size: 1rem; }
    .author-section { flex-direction: column; text-align: center; }
}
