/* GossipTheme — entertainment-news portal layout (header nav, hero + Latest,
   category sections with billboards between them, side rails). Accent colour
   comes from SiteTheme.primary_color via --gp-accent (set in base.html). */

:root {
  --gp-accent: #e5157a;
  --gp-ink: #141414;
  --gp-ink-2: #555;
  --gp-muted: #8a8a8a;
  --gp-line: #ececec;
  --gp-bg: #ffffff;
  --gp-soft: #f6f6f6;
  --gp-highlight: #fff6cc;
  --gp-highlight-line: #f5c400;
  --gp-footer-bg: #151515;
  --gp-radius: 6px;
  --gp-wrap: 1200px;
  --gp-anchor-h: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.gp-body {
  margin: 0;
  background: var(--gp-bg);
  color: var(--gp-ink);
  font: 400 15px/1.55 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  padding-bottom: var(--gp-anchor-h);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
[hidden] { display: none !important; }

.gp-wrap { max-width: var(--gp-wrap); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.gp-muted { color: var(--gp-muted); margin: 0; }

/* ── Header ─────────────────────────────────────────────── */
.gp-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--gp-line);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .04);
}
.gp-header-bar { display: flex; align-items: center; gap: 18px; height: 60px; }
.gp-brand { flex: 0 0 auto; display: flex; align-items: center; }
.gp-brand-logo { max-height: 36px; width: auto; }
.gp-brand-text {
  font-weight: 700; font-size: 22px; letter-spacing: .5px;
  color: var(--gp-accent);
}
.gp-nav {
  flex: 1 1 auto; display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.gp-nav::-webkit-scrollbar { display: none; }
.gp-nav-link {
  flex: 0 0 auto; padding: 8px 10px;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px;
  color: var(--gp-ink); border-bottom: 2px solid transparent;
}
.gp-nav-link:hover, .gp-nav-link.is-active { color: var(--gp-accent); border-bottom-color: var(--gp-accent); }
.gp-icon-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; color: var(--gp-ink); cursor: pointer; font-size: 24px;
}
.gp-icon-btn:hover { background: var(--gp-soft); }
.gp-search-btn { margin-left: auto; }
.gp-menu-btn { display: none; }
.gp-search { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 12px; }
.gp-search input {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px;
  border: 1px solid var(--gp-line); border-radius: 20px; font: inherit;
}
.gp-search input:focus { outline: 2px solid var(--gp-accent); outline-offset: -1px; }
.gp-btn {
  height: 40px; padding: 0 18px; border: 0; border-radius: 20px;
  background: var(--gp-accent); color: #fff; font: 600 14px 'Poppins', sans-serif; cursor: pointer;
}

/* Mobile drawer */
.gp-drawer { position: fixed; inset: 0; z-index: 100; }
.gp-drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.gp-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(300px, 85vw);
  background: #fff; overflow-y: auto; padding: 8px 0 24px;
  display: flex; flex-direction: column;
}
.gp-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 12px; border-bottom: 1px solid var(--gp-line); }
.gp-drawer-panel > a { padding: 12px 20px; font-weight: 600; border-bottom: 1px solid var(--gp-line); }
.gp-drawer-panel > a:hover { color: var(--gp-accent); }

/* ── Ads ────────────────────────────────────────────────── */
.gp-ad { text-align: center; margin: 24px auto; }
.gp-ad.is-empty { display: none; }
.gp-ad-label {
  display: block; margin-bottom: 4px;
  font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--gp-muted);
}
.gp-ad-slot { display: inline-block; max-width: 100%; }
.gp-ad--top { margin-top: 14px; margin-bottom: 14px; min-height: 108px; }
.gp-ad--section { padding: 12px 0; background: var(--gp-soft); border-radius: var(--gp-radius); min-height: 120px; }
.gp-ad--sidebar { margin-top: 20px; min-height: 270px; }
.gp-rail { display: none; }
@media (min-width: 1560px) {
  .gp-rail {
    display: block; position: fixed; top: 80px; margin: 0; width: 160px; z-index: 10;
  }
  .gp-rail.is-empty { display: none; }
  .gp-rail--left  { left:  calc(50% - var(--gp-wrap) / 2 - 180px); }
  .gp-rail--right { right: calc(50% - var(--gp-wrap) / 2 - 180px); }
}

.gp-anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; justify-content: center;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--gp-line);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .08); padding: 4px 0;
}
.gp-anchor.is-empty { display: none; }
.gp-anchor-close {
  position: absolute; top: -24px; right: 8px; width: 28px; height: 24px;
  border: 1px solid var(--gp-line); border-bottom: 0; border-radius: 6px 6px 0 0;
  background: #fff; color: var(--gp-ink-2); font-size: 18px; line-height: 20px; cursor: pointer;
}

/* ── Shared bits ────────────────────────────────────────── */
.gp-main { padding-top: 8px; padding-bottom: 40px; }
.gp-date { font-size: 12px; color: var(--gp-muted); }
.gp-tag {
  display: inline-block; padding: 3px 10px; border-radius: 3px;
  background: var(--gp-accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.gp-noimg {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gp-accent), #7a1f6b); color: #fff;
  font-size: 32px; font-weight: 700;
}
.gp-flash { margin: 12px 0; padding: 10px 14px; border-radius: var(--gp-radius); background: var(--gp-soft); }
.gp-empty { padding: 60px 0; text-align: center; color: var(--gp-muted); }

/* Lead card: headline overlaid on the image */
.gp-lead { position: relative; display: block; border-radius: var(--gp-radius); overflow: hidden; background: #222; }
.gp-lead-media { aspect-ratio: 16 / 9; }
.gp-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gp-lead:hover .gp-lead-media img { transform: scale(1.03); }
.gp-lead-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, 0));
  color: #fff;
}
.gp-lead-title { margin: 8px 0 4px; font-size: 22px; font-weight: 700; }
.gp-lead-body .gp-date { color: rgba(255, 255, 255, .75); }

/* Grid card */
.gp-grid { display: grid; gap: 20px 16px; margin-top: 18px; }
.gp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gp-card-media { aspect-ratio: 16 / 10; border-radius: var(--gp-radius); overflow: hidden; background: var(--gp-soft); }
.gp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gp-card:hover .gp-card-media img { transform: scale(1.04); }
.gp-card-cat { font-size: 11px; font-weight: 700; color: var(--gp-accent); text-transform: uppercase; letter-spacing: .4px; }
.gp-card-title {
  font-size: 14px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gp-card:hover .gp-card-title, .gp-li:hover .gp-li-title { color: var(--gp-accent); }

/* List row */
.gp-li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gp-line); }
.gp-li:last-child { border-bottom: 0; }
.gp-li-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gp-li-title {
  font-size: 14px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gp-li-media { flex: 0 0 110px; height: 72px; border-radius: 4px; overflow: hidden; background: var(--gp-soft); }
.gp-li-media img { width: 100%; height: 100%; object-fit: cover; }
.gp-li-media .gp-noimg { font-size: 20px; }

/* Section header + View All */
.gp-section { margin-top: 36px; }
.gp-section-head { display: flex; align-items: center; gap: 12px; }
.gp-section-head::after { content: ''; flex: 1; height: 1px; background: var(--gp-line); }
.gp-section-title {
  font-size: 22px; font-weight: 700;
  padding-left: 10px; border-left: 4px solid var(--gp-accent);
}
.gp-section-title a:hover { color: var(--gp-accent); }
.gp-viewall-wrap { text-align: center; margin-top: 20px; }
.gp-viewall {
  display: inline-block; padding: 8px 28px; border: 1px solid var(--gp-ink); border-radius: 20px;
  background: #fff; font: 600 12px 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: .6px;
  cursor: pointer;
}
.gp-viewall:hover { background: var(--gp-accent); border-color: var(--gp-accent); color: #fff; }
.gp-viewall[disabled] { opacity: .5; cursor: default; }

/* ── Home hero ──────────────────────────────────────────── */
.gp-hero { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 28px; margin-top: 12px; }
.gp-hero .gp-lead-title { font-size: 26px; }
.gp-latest { border: 1px solid var(--gp-line); border-radius: var(--gp-radius); padding: 14px 16px 6px; }
.gp-latest-title {
  font-size: 18px; font-weight: 700; padding-bottom: 8px;
  border-bottom: 3px solid var(--gp-accent); display: inline-block;
}
.gp-latest .gp-li-media { flex-basis: 84px; height: 60px; }
.gp-latest .gp-li-title { font-size: 13px; }

/* Home sections: lead + list, mirrored, or a card grid */
.gp-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 18px; align-items: start; }
.gp-split-list { display: flex; flex-direction: column; }
.gp-split-list .gp-li:first-child { padding-top: 0; }
.gp-section--flip .gp-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.gp-section--flip .gp-split-lead { order: 2; }
.gp-section--flip .gp-split-list {
  background: var(--gp-highlight); border-left: 4px solid var(--gp-highlight-line);
  padding: 4px 16px; border-radius: 0 var(--gp-radius) var(--gp-radius) 0;
}
.gp-section--flip .gp-split-list .gp-li { border-bottom-color: rgba(0, 0, 0, .08); }
.gp-section--flip .gp-split-list .gp-li:first-child { padding-top: 12px; }

/* ── Category / article two-column layout ───────────────── */
.gp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 6px; font-size: 12px; color: var(--gp-muted); }
.gp-crumbs a:hover { color: var(--gp-accent); }
.gp-page-head { margin: 4px 0 18px; }
.gp-page-title { font-size: 30px; font-weight: 700; padding-left: 12px; border-left: 5px solid var(--gp-accent); }
.gp-page-head .gp-muted { margin-top: 6px; }
.gp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 32px; align-items: start; }
.gp-sticky { position: sticky; top: 76px; }

/* ── Article ────────────────────────────────────────────── */
.gp-article-head { margin-bottom: 14px; }
.gp-article-title { margin-top: 10px; font-size: 32px; font-weight: 700; line-height: 1.25; }
.gp-byline { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--gp-line); border-bottom: 1px solid var(--gp-line); margin-bottom: 18px; }
.gp-byline-mark {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gp-accent); color: #fff; font-weight: 700;
}
.gp-byline-name { margin: 0; font-weight: 600; font-size: 14px; }
.gp-byline .gp-muted { font-size: 12px; }
.gp-article-banner { width: 100%; border-radius: var(--gp-radius); margin-bottom: 18px; aspect-ratio: 16 / 9; object-fit: cover; }
.gp-article-lede { font-size: 17px; font-weight: 500; color: var(--gp-ink-2); margin: 0 0 18px; }
.gp-article-body { font-size: 17px; line-height: 1.75; color: #222; overflow-wrap: break-word; }
.gp-article-body h2 { font-size: 23px; margin: 30px 0 12px; }
.gp-article-body h3 { font-size: 19px; margin: 24px 0 10px; }
.gp-article-body p { margin: 0 0 18px; }
.gp-article-body a { color: var(--gp-accent); text-decoration: underline; }
.gp-article-body img { height: auto; border-radius: var(--gp-radius); margin: 12px 0; }
.gp-article-body blockquote {
  margin: 22px 0; padding: 12px 18px; border-left: 4px solid var(--gp-accent);
  background: var(--gp-soft); font-style: italic;
}
.gp-article-body ul, .gp-article-body ol { padding-left: 22px; margin: 0 0 18px; }
.gp-article--page { max-width: 820px; margin: 0 auto; }

/* ── Footer ─────────────────────────────────────────────── */
.gp-footer { background: var(--gp-footer-bg); color: #cfcfcf; margin-top: 40px; }
.gp-footer-inner { display: grid; grid-template-columns: 1.4fr 2fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.gp-footer-brand .gp-brand-logo { max-height: 40px; }
.gp-footer-tag { font-size: 13px; color: #9a9a9a; margin: 12px 0 0; max-width: 300px; }
.gp-footer-col { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 18px; }
.gp-footer-col h3 { flex-basis: 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #fff; margin-bottom: 4px; }
.gp-footer-col a { font-size: 13px; }
.gp-footer-col a:hover { color: var(--gp-accent); }
.gp-footer-copy { margin: 0; padding: 14px 16px; text-align: center; font-size: 12px; color: #8a8a8a; border-top: 1px solid #2a2a2a; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gp-hero, .gp-layout { grid-template-columns: minmax(0, 1fr); }
  .gp-hero-side, .gp-layout-side { max-width: 640px; }
  .gp-sticky { position: static; }
  .gp-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gp-menu-btn { display: inline-flex; margin-left: -8px; }
  .gp-nav { display: none; }
  .gp-header-bar { height: 54px; gap: 8px; }
  .gp-brand-text { font-size: 19px; }
  .gp-grid--4, .gp-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .gp-split, .gp-section--flip .gp-split { grid-template-columns: minmax(0, 1fr); }
  .gp-section--flip .gp-split-lead { order: 0; }
  .gp-lead-title, .gp-hero .gp-lead-title { font-size: 18px; }
  .gp-lead-body { padding: 36px 14px 12px; }
  .gp-section-title { font-size: 19px; }
  .gp-page-title { font-size: 24px; }
  .gp-article-title { font-size: 24px; }
  .gp-article-body { font-size: 16px; }
  .gp-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gp-ad--top { min-height: 66px; }
  .gp-ad--section { min-height: 270px; }
}
@media (max-width: 380px) {
  .gp-li-media { flex-basis: 90px; height: 60px; }
}

/* "Latest" sidebar link + /latest pager */
.gp-latest-more { display: block; padding: 10px 0 8px; font-size: 12px; font-weight: 600; color: var(--gp-accent); text-transform: uppercase; letter-spacing: .4px; }
.gp-latest-more:hover { text-decoration: underline; }
.gp-pager { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

