/*
Theme Name: AzigiVideo
Author: AzigiVideo
Description: AzigiVideo responsive WordPress theme with light mode and working night mode.
Version: 2.6.0
Text Domain: azigivideo
*/
:root{
 --bg:#f4f5f7;--panel:#fff;--panel2:#f8f9fa;--line:#e6e7e9;
 --text:#292d33;--muted:#9aa0a8;--accent:#d9462f;--header:#fff;
 --shadow:0 2px 9px rgba(24,32,40,.07)
}
html.az-night, body.az-night{
 --bg:#07131f;--panel:#0d1d2b;--panel2:#112638;--line:#1c3447;
 --text:#edf3f7;--muted:#8fa4b5;--accent:#e84b4b;--header:#081521;
}
html:not(.az-night), body:not(.az-night){
 --bg:#f4f5f7;--panel:#fff;--panel2:#f8f9fa;--line:#e6e7e9;
 --text:#292d33;--muted:#7f8791;--accent:#d9462f;--header:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.4;transition:background .2s,color .2s}
a{color:inherit;text-decoration:none} img{max-width:100%;height:auto;display:block}
button,input{font:inherit}.az-container{width:min(1120px,94%);margin:auto}

/* Header */
.az-header{position:sticky;top:0;z-index:100;background:var(--header);border-bottom:1px solid var(--line);box-shadow:0 2px 8px rgba(0,0,0,.06)}
.az-header-inner{min-height:68px;display:flex;align-items:center;gap:13px}
.az-logo{display:flex;align-items:center;flex:0 0 auto;text-decoration:none;line-height:0}
.az-logo img{display:block;width:auto;height:58px;max-width:430px;object-fit:contain;border-radius:8px}
@media(max-width:680px){.az-logo img{height:50px;max-width:290px}}
.az-actions{margin-left:auto;display:flex;align-items:center;gap:2px}
.az-icon{width:40px;height:40px;border:0;border-radius:9px;background:transparent;color:var(--text);display:grid;place-items:center;cursor:pointer;font-size:24px;line-height:1}
.az-icon:hover{background:var(--panel2)}
.az-menu-btn{font-size:27px}.az-search-wrap{display:none;padding:0 0 12px}
.az-search-wrap form{display:flex;gap:8px}.az-search-wrap input{width:100%;background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:8px;padding:11px 13px;outline:0}
.az-search-wrap button{border:0;border-radius:8px;background:var(--accent);color:#fff;padding:0 16px}

/* Notice */
.az-notice{margin:28px 0 35px;background:var(--panel);border:1px solid var(--line);border-radius:7px;padding:20px 20px;box-shadow:var(--shadow);color:var(--text);font-size:16px}
.az-notice strong{font-size:18px;font-weight:500}

/* Section and category chips */
.az-section{padding:0 0 28px}.az-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}
.az-section-title{font-size:22px;margin:0;font-weight:600}.az-section-link{font-size:12px;color:var(--muted)}
.az-chips{display:flex;gap:10px;overflow:auto;padding:0 0 5px;margin-bottom:18px;scrollbar-width:none}
.az-chips::-webkit-scrollbar{display:none}
.az-chip{flex:0 0 auto;background:var(--panel);border:1px solid #dfe3e7;color:#87909a;border-radius:999px;padding:9px 15px;font-size:12px}
body.az-night .az-chip{border-color:var(--line)}
.az-chip:hover,.az-chip.active{background:var(--accent);border-color:var(--accent);color:#fff}

/* Cards: close to supplied NaijaRED reference */
.az-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.az-card{background:var(--panel);border:1px solid #eceef0;border-radius:8px;overflow:hidden;box-shadow:var(--shadow);transition:transform .18s,border-color .18s}
body.az-night .az-card{border-color:var(--line)}
.az-card:hover{transform:translateY(-2px)}
.az-thumb{aspect-ratio:1.08/1;position:relative;background:#e9edf0;overflow:hidden}
.az-thumb img{width:100%;height:100%;object-fit:cover}
.az-no-thumb{height:100%;display:grid;place-items:center;color:var(--muted);font-size:13px}
.az-badge{position:absolute;left:8px;top:8px;background:rgba(0,0,0,.72);color:#fff;border-radius:5px;padding:5px 7px;font-size:9px}
.az-card-body{padding:12px 14px 14px}
.az-title{font-size:17px;line-height:1.23;margin:0;min-height:42px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.az-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:2px solid var(--line);margin-top:13px;padding-top:10px;color:var(--muted);font-size:11px}
.az-meta span{background:var(--panel2);border-radius:3px;padding:9px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.az-meta strong{display:block;color:var(--muted);font-weight:400;margin-top:1px}

/* Drawer */
.az-overlay{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:199;display:none}
.az-overlay.open{display:block}
.az-drawer{position:fixed;top:0;right:0;height:100%;width:min(310px,86vw);background:var(--header);z-index:200;transform:translateX(100%);transition:.22s ease;box-shadow:-15px 0 40px rgba(0,0,0,.22);padding:18px}
.az-drawer.open{transform:translateX(0)}.az-drawer-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.az-drawer h3{margin:0;font-size:16px}.az-drawer ul{list-style:none;margin:0;padding:0}
.az-drawer li{border-bottom:1px solid var(--line)}.az-drawer a{display:block;padding:12px 4px;color:var(--text);font-size:13px}

/* Single */
.az-single{max-width:820px;margin:28px auto}.az-single h1{font-size:25px;line-height:1.2;margin:0 0 10px}
.az-single-meta{color:var(--muted);font-size:12px;margin-bottom:16px}.az-featured{border-radius:9px;overflow:hidden;border:1px solid var(--line);background:#000;margin-bottom:18px}
.az-content{font-size:15px;color:var(--text)}.az-content a{color:var(--accent)}.az-content p{margin:0 0 16px}
.az-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:18px}.az-tags a{font-size:11px;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:6px 9px;color:var(--muted)}

/* Footer */
.az-footer{border-top:1px solid var(--line);margin-top:35px;padding:25px 0;color:var(--muted);font-size:12px}
.az-footer-inner{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

@media(min-width:700px){
 .az-search-wrap{display:block;padding:0;flex:1;max-width:500px;margin-left:18px}
 .az-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.az-thumb{aspect-ratio:1.08/1}
}
@media(min-width:1000px){.az-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* v1.3 hardening: keep the visible theme state and post titles from being hidden by
   cached/plugin styles. */
html, body { background-color: var(--bg) !important; color: var(--text) !important; }
.az-header, .az-drawer { background-color: var(--header) !important; color: var(--text) !important; }
.az-card { background-color: var(--panel) !important; color: var(--text) !important; }
.az-card-body { display:block !important; visibility:visible !important; opacity:1 !important; }
.az-title, .az-title a { display:-webkit-box !important; visibility:visible !important; opacity:1 !important; color:var(--text) !important; }
.az-meta { visibility:visible !important; opacity:1 !important; }
body.az-night .az-title, body.az-night .az-title a { color:#edf3f7 !important; }
body:not(.az-night) .az-title, body:not(.az-night) .az-title a { color:#292d33 !important; }

/* v1.4: explicit post-title block. Some WordPress/plugin styles were overriding h2
   elements, so the card title now uses a dedicated class and is a normal block. */
.az-card-body{display:block !important;min-width:0 !important;}
.az-post-title{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  z-index:2 !important;
  color:var(--text) !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:17px !important;
  line-height:1.25 !important;
  font-weight:600 !important;
  min-height:42px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}
.az-post-title a{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  color:var(--text) !important;
  text-decoration:none !important;
  white-space:normal !important;
  overflow:hidden !important;
}
body.az-night .az-post-title,
body.az-night .az-post-title a{color:#edf3f7 !important;}
body:not(.az-night) .az-post-title,
body:not(.az-night) .az-post-title a{color:#292d33 !important;}
.az-thumb{aspect-ratio:1.15/1 !important;}
@media(max-width:699px){
  .az-thumb{aspect-ratio:1.15/1 !important;}
  .az-card-body{padding:11px 13px 13px !important;}
}

/* v1.7 hard title fix */
.az-post-title-direct{display:block !important;visibility:visible !important;opacity:1 !important;color:var(--text) !important;font-family:Arial,Helvetica,sans-serif !important;font-size:17px !important;line-height:1.25 !important;font-weight:600 !important;min-height:42px !important;margin:0 !important;padding:12px 14px 0 !important;overflow:hidden !important;position:relative !important;z-index:3 !important;}
.az-post-title-direct a{display:block !important;visibility:visible !important;opacity:1 !important;color:var(--text) !important;text-decoration:none !important;white-space:normal !important;overflow:hidden !important;}
body.az-night .az-post-title-direct,body.az-night .az-post-title-direct a{color:#edf3f7 !important;}
body:not(.az-night) .az-post-title-direct,body:not(.az-night) .az-post-title-direct a{color:#292d33 !important;}
.az-meta-direct{margin-top:13px !important;padding:10px 14px 14px !important;}

/* v1.7: title is intentionally visible even when a plugin/theme adds aggressive
   card/heading rules. */
.az-post-title-direct{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  height:auto !important;
  min-height:42px !important;
  overflow:visible !important;
}
.az-post-title-direct a{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  height:auto !important;
  color:#292d33 !important;
}
body.az-night .az-post-title-direct,
body.az-night .az-post-title-direct a{color:#edf3f7 !important;background:transparent !important;}

/* V1.8 FINAL CARD LAYOUT */
.az-card{min-width:0 !important;background:var(--panel) !important;overflow:hidden !important;}
.az-card-link{display:block !important;color:inherit !important;text-decoration:none !important;visibility:visible !important;opacity:1 !important;}
.az-thumb{
  position:relative !important;
  width:100% !important;
  height:170px !important;
  aspect-ratio:auto !important;
  overflow:hidden !important;
  background:#e9edf0 !important;
}
.az-thumb img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
}
.az-card-title{
  display:block !important;
  width:100% !important;
  min-height:44px !important;
  height:auto !important;
  padding:10px 12px 4px !important;
  margin:0 !important;
  background:var(--panel) !important;
  color:#292d33 !important;
  font-family:Arial,Helvetica,sans-serif !important;
  font-size:16px !important;
  line-height:1.28 !important;
  font-weight:700 !important;
  white-space:normal !important;
  overflow:visible !important;
  visibility:visible !important;
  opacity:1 !important;
  position:relative !important;
  z-index:5 !important;
}
body.az-night .az-card-title{color:#edf3f7 !important;background:var(--panel) !important;}
.az-meta{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:7px !important;
  margin:7px 12px 12px !important;
  padding-top:9px !important;
  border-top:1px solid var(--line) !important;
}
.az-meta span{
  display:block !important;
  min-width:0 !important;
  padding:7px 8px !important;
  background:var(--panel2) !important;
  color:var(--muted) !important;
  border-radius:4px !important;
  font-size:10px !important;
}
.az-meta strong{display:block !important;color:var(--muted) !important;font-weight:400 !important;}
@media(max-width:699px){
  .az-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:14px !important;}
  .az-thumb{height:155px !important;}
  .az-card-title{font-size:15px !important;line-height:1.28 !important;padding:9px 10px 3px !important;}
  .az-meta{margin:7px 10px 10px !important;}
}
@media(min-width:700px){
  .az-thumb{height:185px !important;}
}

/* v1.9: homepage intro, Latest heading, and category filters removed. */
.az-section{padding-top:28px !important;}

/* v2.0: post cards show thumbnail, category badge and title only. */
.az-meta{display:none !important;}

/* v2.1: clean single-post layout. The featured thumbnail is not shown on the post page; only the category, title, and actual post content are displayed. */
.az-single-category{display:inline-block;margin:0 0 12px;padding:8px 12px;border-radius:7px;background:var(--accent);color:#fff;font-size:13px;font-weight:600;line-height:1.2;}
.az-single h1{font-size:30px;line-height:1.22;margin:0 0 22px;color:var(--text);}
.az-single .az-single-meta,.az-single .az-featured{display:none !important;}
.az-single .az-content{font-size:16px;line-height:1.7;color:var(--text);}
.az-single .az-content img{max-width:100%;height:auto;border-radius:8px;}
.az-single .az-content video,.az-single .az-content iframe{max-width:100%;}
@media(max-width:640px){
  .az-single{margin:22px auto;}
  .az-single-category{font-size:12px;padding:7px 10px;margin-bottom:10px;}
  .az-single h1{font-size:25px;margin-bottom:18px;}
  .az-single .az-content{font-size:15px;line-height:1.65;}
}

/* v2.2: single-post sharing and related posts. */
.az-share{display:grid;grid-template-columns:repeat(6,1fr);margin:28px 0 22px;overflow:hidden;border:1px solid var(--line);}
.az-share a{display:flex;align-items:center;justify-content:center;min-height:58px;padding:10px 6px;color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:600;border-right:1px solid rgba(255,255,255,.16);}
.az-share a:last-child{border-right:0;}
.az-share-x{background:#4a4b4e;}.az-share-wa{background:#45d27b;}.az-share-tg{background:#32a9d8;}.az-share-fb{background:#637cb7;}.az-share-sms{background:#35ad5b;}.az-share-mail{background:#5d5e60;}
.az-related{margin-top:34px;}
.az-related h2{font-size:23px;line-height:1.2;margin:0 0 18px;color:var(--text);}
.az-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.az-related-card{margin:0;min-width:0;}
.az-related-card .az-thumb{height:170px;aspect-ratio:auto!important;}
.az-related-card .az-card-title{padding:12px 14px 15px!important;min-height:52px;}
@media(max-width:640px){
  .az-share{grid-template-columns:repeat(3,1fr);}
  .az-share a{min-height:52px;}
  .az-related-grid{gap:12px;}
  .az-related-card .az-thumb{height:145px;}
  .az-related h2{font-size:20px;}
}


/* v2.4: keep uploaded videos smaller in the normal post view. Fullscreen remains available from the player controls. */
.az-single .az-content .wp-video,
.az-single .az-content .wp-block-video {
  width:92% !important;
  max-width:600px !important;
  margin:0 auto 20px !important;
}
.az-single .az-content video {
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:100% !important;
  max-height:70vh !important;
  object-fit:contain !important;
  background:#000;
}
.az-single .az-content .mejs-container {
  width:100% !important;
  max-width:600px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media(max-width:640px){
  .az-single .az-content .wp-video,
  .az-single .az-content .wp-block-video,
  .az-single .az-content .mejs-container {
    width:92% !important;
    max-width:92% !important;
  }
  .az-single .az-content video {
    max-height:68vh !important;
  }
}


/* Telegram banner */
.az-telegram-wrap{width:min(1120px,94%);margin:12px auto 0}
.az-telegram-banner{
  display:flex;align-items:center;gap:12px;min-height:60px;padding:9px 13px;
  background:#1687d9;color:#fff;border-radius:9px;
  box-shadow:0 3px 12px rgba(0,0,0,.10);
  transition:transform .16s ease,filter .16s ease;
}
.az-telegram-banner:hover{transform:translateY(-1px);filter:brightness(1.04)}
.az-telegram-icon{
  width:39px;height:39px;flex:0 0 39px;display:grid;place-items:center;
  border-radius:50%;background:rgba(255,255,255,.18);font-size:20px
}
.az-telegram-text{min-width:0;display:flex;flex-direction:column;gap:2px}
.az-telegram-text strong{font-size:15px;line-height:1.2;font-weight:700}
.az-telegram-text small{font-size:11px;line-height:1.25;opacity:.9}
.az-telegram-arrow{margin-left:auto;font-size:29px;line-height:1}
.az-badge,.az-single-category{background:#1687D9 !important;color:#fff !important}
@media(max-width:680px){
  .az-telegram-wrap{margin-top:9px}
  .az-telegram-banner{min-height:56px;padding:8px 10px}
  .az-telegram-icon{width:35px;height:35px;flex-basis:35px;font-size:18px}
  .az-telegram-text strong{font-size:13px}
  .az-telegram-text small{font-size:10px}
  .az-telegram-arrow{font-size:26px}
}

/* Comments */
.az-comments{
  margin-top:30px;padding-top:24px;border-top:1px solid var(--line);
}
.az-comments #comments{color:var(--text)}
.az-comments .comments-title,
.az-comments .comment-reply-title{font-size:21px;line-height:1.25;margin:0 0 18px;color:var(--text)}
.az-comments .comment-list{list-style:none;margin:0 0 24px;padding:0}
.az-comments .comment-list .comment{margin:0 0 14px;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:9px}
.az-comments .comment-author{font-weight:700;color:var(--text)}
.az-comments .comment-meta{font-size:11px;color:var(--muted);margin:3px 0 8px}
.az-comments .comment-content{font-size:14px;line-height:1.6;color:var(--text)}
.az-comments .comment-content p:last-child{margin-bottom:0}
.az-comments .reply{margin-top:9px}
.az-comments .reply a{font-size:12px;color:var(--accent)}
.az-comments .comment-respond{margin-top:20px}
.az-comments .comment-form p{margin:0 0 12px}
.az-comments .comment-form label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}
.az-comments .comment-form input[type="text"],
.az-comments .comment-form input[type="email"],
.az-comments .comment-form input[type="url"],
.az-comments .comment-form textarea{
  width:100%;border:1px solid var(--line);background:var(--panel);
  color:var(--text);border-radius:8px;padding:10px 11px;outline:0;
}
.az-comments .comment-form textarea{min-height:120px;resize:vertical}
.az-comments .comment-form input:focus,
.az-comments .comment-form textarea:focus{border-color:var(--accent)}
.az-comments .comment-form .submit{
  border:0;border-radius:8px;background:#1687D9;color:#fff;
  padding:10px 16px;font-weight:700;cursor:pointer;
}

/* v3.8 AllViralPost logo-matched palette: blue + gold */
.az-badge,
.az-single-category{
  background:#1687D9 !important;
  color:#fff !important;
}
.az-header{
  border-bottom-color:#1E5FA8;
}
.az-icon:hover{
  color:#FFD21A;
}
.az-card:hover .az-card-title,
.az-post-title a:hover{
  color:#1687D9;
}
.az-telegram-banner{
  background:linear-gradient(135deg,#0B4F9C,#1687D9) !important;
}
.az-telegram-banner strong{
  color:#FFD21A;
}
.az-comments .comment-form .submit{
  background:#1687D9 !important;
}


/* v4.0 Footer Telegram + category blocks */
.az-footer{
  border-top:1px solid var(--line);
  margin-top:35px;
  padding:0 0 24px;
  color:var(--muted);
  font-size:12px;
  background:var(--bg);
}
.az-footer-telegram{padding:22px 0 28px}
.az-footer-telegram-banner{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  gap:13px;
  min-height:66px;
  padding:10px 14px;
  border-radius:12px;
  color:#fff!important;
  text-decoration:none!important;
  background:linear-gradient(135deg,#0756b8,#1687d9 55%,#0b4f9c);
  box-shadow:0 7px 22px rgba(0,91,180,.20);
}
.az-footer-telegram-banner::after{
  content:"";
  position:absolute;
  top:-55%;
  left:-28%;
  width:30%;
  height:210%;
  transform:rotate(24deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
  animation:azTelegramShine 3.1s ease-in-out infinite;
  pointer-events:none;
}
@keyframes azTelegramShine{
  0%{left:-30%;opacity:0}
  12%{opacity:1}
  48%{left:115%;opacity:1}
  55%,100%{left:115%;opacity:0}
}
.az-footer-telegram-icon{
  position:relative;
  z-index:1;
  width:43px;height:43px;flex:0 0 43px;
  display:grid;place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.18);
}
.az-telegram-plane{
  display:block;
  font-size:22px;
  color:#fff;
  transform:rotate(-28deg);
  animation:azTelegramFloat 1.5s ease-in-out infinite;
}
@keyframes azTelegramFloat{
  0%,100%{transform:rotate(-28deg) translateY(0) scale(1)}
  50%{transform:rotate(-28deg) translateY(-3px) scale(1.08)}
}
.az-footer-telegram-text{
  position:relative;z-index:1;
  min-width:0;display:flex;flex-direction:column;gap:3px;
}
.az-footer-telegram-text strong{font-size:16px;line-height:1.2;font-weight:800}
.az-footer-telegram-text small{font-size:11px;line-height:1.25;opacity:.9}
.az-footer-telegram-arrow{
  position:relative;z-index:1;margin-left:auto;font-size:30px;line-height:1;
}
.az-footer-heading{
  display:flex;align-items:center;justify-content:space-between;
  margin:0 0 14px;
}
.az-footer-heading h3{
  margin:0;color:var(--text);font-size:20px;font-weight:800;
}
.az-footer-category-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.az-footer-category{
  min-width:0;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.az-footer-category-cover{
  position:relative;display:block;aspect-ratio:1.45/1;overflow:hidden;
  text-decoration:none!important;background:#07152b;
}
.az-footer-category-cover img{
  width:100%;height:100%;display:block;object-fit:cover;
  transition:transform .25s ease,filter .25s ease;
}
.az-footer-category-cover:hover img{
  transform:scale(1.045);filter:brightness(.88);
}
.az-footer-category-shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.78));
}
.az-footer-category-name{
  position:absolute;left:11px;right:11px;bottom:10px;
  color:#fff;font-size:14px;font-weight:800;line-height:1.2;
  text-shadow:0 1px 5px rgba(0,0,0,.7);
}
.az-footer-latest-label{
  padding:9px 11px 5px;
  color:#1687D9;font-size:10px;text-transform:uppercase;
  letter-spacing:.6px;font-weight:900;
}
.az-footer-latest{
  display:flex;gap:9px;align-items:center;
  padding:0 11px 11px;
  color:var(--text)!important;text-decoration:none!important;
}
.az-footer-latest img{
  width:62px;height:46px;flex:0 0 62px;
  border-radius:7px;object-fit:cover;
}
.az-footer-latest span{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;font-size:12px;line-height:1.35;font-weight:700;
}
.az-footer-bottom{
  border-top:1px solid var(--line);
  margin-top:24px;padding-top:18px;
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
}
@media(min-width:700px){
  .az-footer-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
}
@media(min-width:1000px){
  .az-footer-category-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
}
@media(max-width:480px){
  .az-footer-telegram-banner{min-height:62px;padding:9px 10px}
  .az-footer-telegram-icon{width:38px;height:38px;flex-basis:38px}
  .az-footer-telegram-text strong{font-size:13px}
  .az-footer-telegram-text small{font-size:10px}
  .az-footer-category-grid{gap:10px}
  .az-footer-category-name{font-size:12px}
  .az-footer-latest img{width:55px;height:42px;flex-basis:55px}
}

/* v4.1: six-category footer pages + Previous/Next navigation */
.az-footer-category-cover{position:relative}
.az-footer-play-icon{
  position:absolute;left:11px;bottom:10px;
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(22,135,217,.94);
  color:#fff;font-size:14px;
  box-shadow:0 3px 10px rgba(0,0,0,.28);
  z-index:2;
}
.az-footer-latest-thumb{
  position:relative;display:block;width:62px;height:46px;flex:0 0 62px;
}
.az-footer-latest-thumb img{width:100%!important;height:100%!important}
.az-footer-play-small{
  left:50%;top:50%;bottom:auto;
  width:24px;height:24px;
  transform:translate(-50%,-50%);
  font-size:10px;
}
.az-footer-pagination{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin-top:20px;
}
.az-footer-page-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:38px;padding:0 14px;border-radius:9px;
  background:#1687D9;color:#fff!important;text-decoration:none!important;
  font-size:12px;font-weight:800;
  box-shadow:0 3px 10px rgba(22,135,217,.18);
}
.az-footer-page-btn.is-disabled{
  background:var(--panel2);color:var(--muted)!important;
  box-shadow:none;opacity:.6;
}
.az-footer-page-count{
  min-width:44px;text-align:center;color:var(--muted);
  font-size:12px;font-weight:800;
}

/* Play marker on every post card */
.az-thumb{position:relative}
.az-card-play{
  position:absolute;left:10px;bottom:10px;
  width:36px;height:36px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(22,135,217,.94);
  color:#fff;font-size:14px;
  box-shadow:0 3px 12px rgba(0,0,0,.30);
  z-index:3;
  pointer-events:none;
  transition:transform .18s ease,background .18s ease;
}
.az-card-link:hover .az-card-play{
  transform:scale(1.08);
  background:#FFD21A;color:#07152b;
}

/* Header Telegram: blue/gold style with moving shine */
.az-telegram-banner{position:relative;overflow:hidden}
.az-telegram-banner::after{
  content:"";position:absolute;top:-60%;left:-28%;width:28%;height:220%;
  transform:rotate(24deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
  animation:azHeaderTelegramShine 3.1s ease-in-out infinite;
  pointer-events:none;
}
@keyframes azHeaderTelegramShine{
  0%{left:-30%;opacity:0}
  12%{opacity:1}
  48%{left:115%;opacity:1}
  55%,100%{left:115%;opacity:0}
}
.az-telegram-icon{
  animation:azHeaderTelegramFloat 1.5s ease-in-out infinite;
}
@keyframes azHeaderTelegramFloat{
  0%,100%{transform:translateY(0) rotate(-12deg)}
  50%{transform:translateY(-3px) rotate(-12deg) scale(1.07)}
}

.az-telegram-icon svg{
  width:23px;height:23px;display:block;
}
@media(max-width:680px){
  .az-telegram-icon svg{width:21px;height:21px}
}

/* v4.3: center play button on video thumbnails */
.az-card-play{
  left:50% !important;
  top:50% !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  width:48px !important;
  height:48px !important;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:18px;
}
.az-card-link:hover .az-card-play{
  transform:translate(-50%,-50%) scale(1.08) !important;
}

/* v4.4: footer shows six video posts, not categories */
.az-footer-posts{padding-top:2px}
.az-footer-heading h3{
  margin:0 0 22px;
  font-size:30px;
  line-height:1.15;
  color:var(--text);
  font-weight:800;
}
.az-footer-post-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.az-footer-post{
  min-width:0;
}
.az-footer-post-link{
  display:block;
  text-decoration:none!important;
}
.az-footer-post-thumb{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:12px;
  background:#c9cdd2;
  box-shadow:var(--shadow);
  isolation:isolate;
}
.az-footer-post-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:blur(3.5px);
  transform:scale(1.045);
}
.az-footer-post-blur{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.10);
  z-index:1;
}
.az-footer-post-title{
  position:absolute;
  left:16px;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:#fff;
  font-size:19px;
  line-height:1.3;
  font-weight:500;
  text-shadow:0 2px 7px rgba(0,0,0,.72);
  z-index:2;
}
.az-footer-post-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:58px;
  height:58px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.90);
  color:#111;
  font-size:23px;
  z-index:3;
  box-shadow:0 3px 14px rgba(0,0,0,.22);
}
.az-footer-post-title + .az-footer-post-play{margin-top:0}
.az-footer-post:hover .az-footer-post-play{
  transform:translate(-50%,-50%) scale(1.06);
}
.az-footer-no-thumb{
  width:100%;height:100%;
  background:linear-gradient(135deg,#c9ced4,#9299a2);
}
@media(min-width:700px){
  .az-footer-post-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
}
@media(min-width:1000px){
  .az-footer-post-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
}
@media(max-width:480px){
  .az-footer-post-grid{gap:14px}
  .az-footer-post-thumb{border-radius:10px}
  .az-footer-post-title{left:11px;right:10px;font-size:16px}
  .az-footer-post-play{width:48px;height:48px;font-size:19px}
}

/* Search inside the side menu: input is above the categories */
.az-drawer-search{
  display:flex;
  gap:8px;
  margin:0 0 12px;
  padding:0 0 12px;
  border-bottom:1px solid var(--line);
}
.az-drawer-search input{
  min-width:0;
  flex:1;
  height:44px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  color:var(--text);
  outline:none;
  font-size:14px;
}
.az-drawer-search input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(22,135,217,.12);
}
.az-drawer-search button{
  width:44px;
  height:44px;
  border:0;
  border-radius:9px;
  background:var(--accent);
  color:#fff;
  cursor:pointer;
  font-size:17px;
}
.az-drawer-search + ul{margin-top:0}

/* Mobile header search: make sure the actual form is visible when the search icon is tapped */
.az-search-wrap[data-az-mobile-search]{
  display:none !important;
  width:100%;
  padding:10px 0 12px;
}
.az-search-wrap[data-az-mobile-search].az-search-visible{
  display:block !important;
}
.az-search-wrap[data-az-mobile-search] form{
  display:flex !important;
  width:100%;
}
.az-search-wrap[data-az-mobile-search] input{
  flex:1;
  min-width:0;
  height:44px;
}
.az-search-wrap[data-az-mobile-search] button{
  min-width:70px;
}
