/* Black & white AV News layout inspired by screenshot */
:root{--bg:#000;--panel:#0b0b0b;--muted:#bfbfbf;--accent:#fff}
body{font-family:Segoe UI,Arial,Helvetica,sans-serif;margin:0;background:var(--bg);color:var(--accent);min-height:100vh;display:flex;flex-direction:column}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;background:#000;border-bottom:1px solid #111}
.brand h1{margin:0;font-size:22px;letter-spacing:0.5px}
.brand .meta{color:var(--muted);font-size:13px;margin-top:6px}
.actions{display:flex;align-items:center;gap:12px}
.menu-btn{background:transparent;border:0;color:var(--accent);display:flex;align-items:center;justify-content:center;padding:8px 10px;margin-right:8px;cursor:pointer}
.menu-btn:focus{outline:2px solid rgba(11,110,246,0.25);outline-offset:2px}
.hamburger{display:inline-block;width:22px;height:18px;position:relative}
.hamburger span{display:block;position:absolute;height:2px;background:var(--accent);left:0;right:0;border-radius:2px}
.hamburger span:nth-child(1){top:0}
.hamburger span:nth-child(2){top:8px}
.hamburger span:nth-child(3){bottom:0}
.btn{background:var(--accent);color:var(--bg);padding:8px 14px;border-radius:6px;text-decoration:none;font-weight:600}
.fetched{color:var(--muted);font-size:12px}

.container{display:flex;gap:24px;padding:24px;max-width:1100px;margin:auto;align-items:stretch}
.main-col{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:space-between}
.side-col{min-width:0;flex:0 0 320px}

.hero{background:linear-gradient(180deg,#111 0%,#0b0b0b 100%);padding:28px;border-radius:10px;overflow:hidden;background-size:cover;background-position:center}
.hero a{color:inherit;text-decoration:none}
.hero-inner{display:flex;flex-direction:column;justify-content:flex-end;height:320px}
.hero-inner h2{font-size:26px;margin:0 0 10px 0;font-weight:700}
.hero .info{color:var(--muted);font-size:13px}

.card-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.card{background:#0a0a0a;border-radius:8px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.6);position:relative;background-size:cover;background-position:center;aspect-ratio:16/9;min-height:120px}
.card a{color:inherit;text-decoration:none;display:block;height:100%;width:100%}
.card-inner{position:absolute;left:12px;right:12px;bottom:12px;padding:12px;min-height:64px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.6) 100%);border-radius:6px}
.card-inner h3{font-size:15px;margin:0 0 8px 0;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .info{color:var(--muted);font-size:12px}

.side-box{background:#080808;padding:14px;border-radius:8px}
.side-box h4{margin:0 0 12px 0;font-size:14px}
.side-list{list-style:none;padding:8px 0 8px 36px;margin:0;position:relative}
.side-list:before{content:'';position:absolute;left:18px;top:18px;bottom:18px;width:2px;background:#252525;border-radius:2px;z-index:1}
.side-list li{position:relative;padding:14px 0;border-bottom:1px solid #101010}
.side-list li:last-child{border-bottom:none}
.side-list .li-content{padding-left:6px}
.timeago{color:var(--muted);font-size:12px;margin-bottom:8px}
.side-list a.title{color:var(--accent);text-decoration:none;font-weight:700;display:block;line-height:1.2}
.side-list .meta.small{color:var(--muted);font-size:11px;margin-top:8px}

.empty{padding:40px;background:#050505;border-radius:8px;text-align:center;color:var(--muted)}
.foot{padding:14px;text-align:center;color:var(--muted);font-size:13px}

/* Off-canvas side menu styles (left hamburger) */
.menu-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.45);opacity:0;visibility:hidden;transition:opacity .22s ease;z-index:60}
.menu-overlay.active{opacity:1;visibility:visible}
.side-menu{position:fixed;left:0;top:0;bottom:0;width:280px;background:#050505;color:var(--accent);transform:translateX(-110%);transition:transform .28s cubic-bezier(.2,.9,.2,1);z-index:70;box-shadow:4px 0 20px rgba(0,0,0,0.6);overflow:auto}
.side-menu.open{transform:translateX(0)}
.side-menu-inner{padding:18px}
.menu-close{background:transparent;border:0;color:var(--muted);font-size:28px;position:absolute;right:10px;top:6px;cursor:pointer}
.menu-list{list-style:none;padding:18px 0;margin:0}
.menu-list .menu-item a{color:var(--accent);text-decoration:none;display:block;padding:12px 8px;border-radius:8px;font-weight:700}
.menu-list .menu-item a:hover{background:rgba(255,255,255,0.02)}
.menu-list .menu-sep{color:var(--muted);margin-top:12px;padding:10px 8px;font-weight:600}
.menu-list .menu-sub{padding:8px 12px;color:var(--muted);cursor:pointer}
.menu-list .menu-sub:hover{color:var(--accent);background:rgba(255,255,255,0.02);border-radius:6px}

/* ensure hamburger sits left on small screens */
@media (max-width:900px){
	.topbar{justify-content:flex-start;gap:8px}
}

/* Latest list at bottom */
.latest-list{max-width:1100px;margin:28px auto;padding:18px;border-radius:8px}
.latest-list .filters{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.filter{background:#202020;border:1px solid #2b2b2b;color:var(--accent);padding:6px 10px;border-radius:6px;cursor:pointer}
.filter.active{background:#0b6ef6;border-color:#0b6ef6;color:#fff}
.latest-rows{display:flex;flex-direction:column;gap:18px}
.latest-row{background:transparent;border-radius:8px;overflow:hidden}
.latest-row a{display:flex;gap:16px;align-items:flex-start;text-decoration:none;color:inherit;padding:10px;border-radius:8px}
.latest-row .thumb{width:160px;height:110px;border-radius:8px;background-size:cover;background-position:center;flex:0 0 160px}
.latest-row .thumb.noimg{background:#111;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.latest-row .thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px;display:block}
.latest-row .row-content{flex:1}
.latest-row h3{margin:4px 0 8px 0;font-size:20px}
.latest-row .timeago{color:var(--muted);font-size:12px;margin-bottom:6px}
.latest-row .meta.small{color:var(--muted);font-size:13px}

@media (max-width:900px){
	.latest-row a{flex-direction:row}
	.latest-row .thumb{width:140px;height:90px;flex:0 0 140px}
}
@media (max-width:520px){
	.latest-list .filters{flex-wrap:wrap}
	.latest-row a{flex-direction:row}
	.latest-row .thumb{width:110px;height:80px;flex:0 0 110px}
	.latest-row h3{font-size:16px}
}

@media (max-width:900px){
	.container{grid-template-columns:1fr;padding:16px}
	.card-row{grid-template-columns:repeat(2,1fr)}
	.hero-inner{height:220px}
	.card-inner{min-height:56px}
	.card{min-height:100px}
}
/* Mobile: keep two cards side-by-side and hide the third for compact layout */
@media (max-width:640px){
	.container{padding:12px}
	.card-row{grid-template-columns:repeat(2,1fr);gap:12px}
	.card{min-height:90px}
	.card-inner{min-height:48px}
	/* hide any third card so mobile shows exactly two cards in the row */
	.card-row .card:nth-child(n+3){ display: none !important; }
	/* Latest box visual tweaks for mobile */
	.side-box{padding:12px;border-radius:10px;background:#080808;margin-top:12px}
	.side-box h4{font-size:15px;margin-bottom:8px}
	.side-list li{padding:10px 0}
}
@media (max-width:520px){
	.hero-inner{height:160px}
	.card-inner{min-height:48px}
	.card{min-height:80px}
}

/* Article page specific tweaks */
body.article-page .hero{height:420px;border-radius:10px;margin-bottom:18px}
body.article-page .hero .hero-inner{height:100%;justify-content:center;padding:40px}
body.article-page .hero .hero-inner h2{font-size:40px;line-height:1.05;margin:0}
body.article-page .article-title{font-size:36px;margin:18px 0 6px 0}
body.article-page .byline{color:var(--muted);font-size:13px;margin-bottom:6px}
body.article-page .article-body .card-inner{max-width:900px;margin:0 auto;font-size:16px;line-height:1.7}
body.article-page .side-col{flex:0 0 360px}
@media (max-width:900px){
  body.article-page .hero{height:220px}
  body.article-page .hero .hero-inner h2{font-size:22px}
  body.article-page .article-title{font-size:20px}
  body.article-page .side-col{display:none}
}
