/*
 * News. — "Pop" design style (entertainment / celebrity), News. — Theme & Colors → Design style.
 * Loaded after the base styles. Preset: black one-row header (logo left), hot pink brand color,
 * Oswald headlines, Poppins text. Front-page top section: template-parts/home/featured-pop.php.
 */

.style-pop{
  --pop-pink: var(--red);
  --pop-yellow: #FFE45C;
  --pop-violet: #6B3FA0;
  --pop-ink: #0E0E10;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 18px;
}
html:not([data-theme="dark"]) .style-pop{ --paper:#FFFFFF; --paper-2:#FFF5FA; --line:#F3D9E6; --border-bottom:#F1DCE7; }
html[data-theme="dark"] .style-pop{ --pop-ink:#F7F2F5; }

/* ---- Type: loud condensed uppercase headlines ---- */
.style-pop h1, .style-pop h2, .style-pop h3,
.style-pop .featured__headline, .style-pop .story-card__headline, .style-pop .article-title,
.style-pop .feature-title, .style-pop .cover-card h3, .style-pop .showbiz-card__title,
.style-pop .studio__feature-headline, .style-pop .cat-lead__copy h2{
  font-family:var(--display); letter-spacing:0;
}
.style-pop .article-title, .style-pop .feature-title, .style-pop .cat-head__title, .style-pop .cat-hero h1{
  text-transform:uppercase; font-weight:700; line-height:1.02;
}

/* ---- Section heads: big uppercase title on a pink sticker ---- */
.style-pop .section__dot{ display:none; }
.style-pop .section__head{ border:0; align-items:center; }
.style-pop .section__title,
.style-pop .shead__title{
  font-family:var(--display); font-size:clamp(22px, 2.2vw, 30px); font-weight:700; text-transform:uppercase;
  letter-spacing:.01em; line-height:1;
}
.style-pop .section__title::after,
.style-pop .shead__title::after{
  content:""; display:inline-block; width:.42em; height:.42em; margin-left:.3em; border-radius:50%;
  background:var(--pop-pink); vertical-align:.08em;
}
.style-pop .see-all{ font-weight:700; text-transform:uppercase; letter-spacing:.06em; font-size:12.5px; }

/* ---- Tags: skewed stickers ---- */
.style-pop .tag,
.pop-tag{
  display:inline-block; border-radius:3px; background:var(--pop-pink) !important; color:#fff !important;
  font-family:var(--sans); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  padding:4px 9px; transform:skew(-8deg);
}
.pop-tag--sm{ font-size:10px; padding:3px 8px; }
.style-pop .kicker{ color:color-mix(in srgb, var(--pop-pink) 85%, #000); font-weight:800; letter-spacing:.08em; }

/* ---- Header ---- */
.style-pop .nav-link{ font-family:var(--display); font-size:15px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.style-pop .nav-link::after{ height:4px; background:var(--pop-pink); }
.style-pop .nav-link.is-active, .style-pop .nav-item.is-open .nav-link{ color:var(--pop-pink); }
.style-pop .brand-bar__premium{ background:var(--pop-yellow); color:#111; padding:0 14px; height:34px; border-radius:99px; font-weight:800; }
.style-pop .brand-bar__premium:hover{ opacity:1; background:#fff; }
.style-pop .brand-bar__premium svg{ color:#111; }
.style-pop .ticker{ background:var(--pop-pink); }
.style-pop .topic-row{ background:var(--paper-2); }

/* ---- Buttons: pills ---- */
.style-pop .btn{ border-radius:99px; font-weight:800; }

/* ---- Cards: rounded, bouncy hover ---- */
.style-pop .story-card, .style-pop .cover-card, .style-pop .featured__mini, .style-pop .featured__thumb,
.style-pop .showbiz-card__media, .style-pop .scitech-card__media, .style-pop .tv-card__media,
.style-pop .studio__feature, .style-pop .studio__gallery, .style-pop .market-card__media{ border-radius:var(--radius-m); overflow:hidden; }

/* =====================================================================
   FRONT PAGE TOP (featured-pop.php)
   ===================================================================== */
.pop-top{ padding-top:clamp(18px, 2vw, 28px); }

/* Story bubbles (News Shorts): dark full-width band under the header (stories-pop.php) */
.pop-band{
  background:radial-gradient(120% 140% at 0% 0%, #3A1030 0%, transparent 55%), radial-gradient(120% 140% at 100% 100%, #26124A 0%, transparent 55%), #121014;
  color:#fff;
}
.pop-stories{
  display:flex; gap:20px; overflow-x:auto; scrollbar-width:none; padding-top:18px; padding-bottom:16px;
}
.pop-stories::-webkit-scrollbar{ display:none; }
.pop-stories{ margin-block:0; list-style:none; }
.pop-stories > li{ flex:none; }
.pop-story{
  flex:none; display:flex; flex-direction:column; align-items:center; gap:8px; width:86px;
  border:0; background:none; padding:0; cursor:pointer; color:#fff;
}
.pop-story__ring{
  display:block; width:78px; height:78px; border-radius:50%; padding:3px;
  background:conic-gradient(from 210deg, var(--pop-yellow), var(--pop-pink), var(--pop-violet), var(--pop-yellow));
  transition:transform .2s cubic-bezier(.3,1.6,.5,1);
}
.pop-story__ring img{ display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; border:3px solid #121014; background:#2a272c; }
.pop-story:hover .pop-story__ring, .pop-story:focus-visible .pop-story__ring{ transform:scale(1.07) rotate(-3deg); }
.pop-story__label{
  font-family:var(--sans); font-size:12px; font-weight:600; line-height:1.25; text-align:center; color:rgba(255,255,255,.88);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.pop-story:hover .pop-story__label{ color:#fff; }

/* Hero: lead | two stacked | trending */
.pop-hero{
  display:grid; grid-template-columns:minmax(0,1.9fr) minmax(0,1fr) minmax(0,1fr); gap:18px; align-items:stretch;
}
.pop-lead{
  position:relative; display:block; min-height:520px; border-radius:var(--radius-l); overflow:hidden; color:#fff;
  background:var(--pop-violet); isolation:isolate;
}
.pop-lead img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.pop-lead:hover img{ transform:scale(1.04); }
.pop-lead__scrim{ position:absolute; inset:0; background:linear-gradient(180deg, transparent 35%, rgba(14,14,16,.88)); }
.pop-lead__body{ position:absolute; left:0; right:0; bottom:0; padding:clamp(20px, 2.4vw, 34px); display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.pop-lead__title{ margin:0; font-family:var(--display); font-size:clamp(28px, 3vw, 30px); font-weight:700; line-height:1.34; text-transform:uppercase; color:#111;
}
/* Marker highlight per line: the line height leaves a small gap between the yellow boxes, so a
   box never covers the letters of the line above. */
.pop-lead__title span{
  background:var(--pop-yellow); padding:0 .2em; box-decoration-break:clone; -webkit-box-decoration-break:clone;
}
.pop-lead:hover .pop-lead__title span{ background:#fff; }
.pop-lead__dek{ margin:0; max-width:60ch; font-size:15px; line-height:1.5; color:rgba(255,255,255,.9); }
.pop-lead .live-badge{ position:absolute; top:18px; left:18px; z-index:2; }

.pop-stack{ display:grid; grid-template-rows:1fr 1fr; gap:18px; min-width:0; }

/* Cards */
.pop-card{ display:flex; flex-direction:column; gap:10px; min-width:0; color:var(--ink); }
.pop-card__media{ position:relative; display:block; aspect-ratio:4/3; border-radius:var(--radius-m); overflow:hidden; background:var(--paper-2); }
.pop-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.pop-card:hover .pop-card__media img{ transform:scale(1.05); }
.pop-card__body{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.pop-card__title{ margin:0; font-family:var(--display); font-size:19px; font-weight:600; line-height:1.18; text-transform:uppercase; }
.pop-card:hover .pop-card__title{ color:var(--pop-pink); }
.pop-card__meta{ font-size:12px; color:var(--muted); }

/* Stacked cards: text over the picture */
.pop-card--over{ position:relative; border-radius:var(--radius-m); overflow:hidden; color:#fff; min-height:0; }
.pop-card--over .pop-card__media{ position:absolute; inset:0; aspect-ratio:auto; border-radius:0; }
.pop-card--over .pop-card__media::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 30%, rgba(14,14,16,.85)); }
.pop-card--over .pop-card__body{ position:relative; margin-top:auto; padding:16px; z-index:1; }
.pop-card--over .pop-card__title{ font-size:18px; color:#fff; }
.pop-card--over:hover .pop-card__title{ color:var(--pop-yellow); }

/* Trending */
.pop-trend{
  background:var(--pop-ink); color:#fff; border-radius:var(--radius-l); padding:20px 18px 10px; min-width:0;
}
html[data-theme="dark"] .pop-trend{ background:#1C1A1E; }
.pop-trend__title{ margin:0 0 8px; font-family:var(--display); font-size:26px; font-weight:700; text-transform:uppercase; line-height:1; color:#fff; }
.pop-trend__list{ list-style:none; margin:0; padding:0; counter-reset:pop; }
.pop-trend__list li{ counter-increment:pop; border-top:1px solid rgba(255,255,255,.12); }
.pop-trend__list li:first-child{ border-top:0; }
.pop-trend__list a{ display:grid; grid-template-columns:34px minmax(0,1fr) 52px; gap:10px; align-items:center; padding:11px 0; color:#fff; }
.pop-trend__list a::before{
  content:counter(pop); font-family:var(--display); font-size:34px; font-weight:700; line-height:1;
  color:transparent; -webkit-text-stroke:1.5px var(--pop-pink);
}
.pop-trend__list li:first-child a::before{ color:var(--pop-pink); }
.pop-trend__text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.pop-trend__kicker{ font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--pop-yellow); }
.pop-trend__headline{ font-size:13.5px; font-weight:600; line-height:1.3; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.pop-trend__list a:hover .pop-trend__headline{ color:var(--pop-pink); }
.pop-trend__thumb{ display:block; width:52px; height:52px; border-radius:10px; overflow:hidden; background:#2a272c; }
.pop-trend__thumb img{ width:100%; height:100%; object-fit:cover; }

/* Row of four */
.pop-row{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:18px; margin-top:26px; }
.pop-top .ad-wrap{ margin-top:26px; }

@media (max-width:1100px){
  .pop-hero{ grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .pop-trend{ grid-column:1 / -1; }
  .pop-trend__list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); column-gap:24px; }
  .pop-trend__list li:nth-child(2){ border-top:0; }
}
@media (max-width:860px){
  .pop-hero{ grid-template-columns:minmax(0,1fr); }
  .pop-lead{ min-height:440px; }
  .pop-stack{ grid-template-rows:none; grid-template-columns:1fr 1fr; gap:12px; }
  .pop-card--over{ aspect-ratio:3/4; }
  .pop-row{ grid-template-columns:1fr 1fr; gap:14px; }
  .pop-card__title{ font-size:16px; }
  .pop-card--over .pop-card__title{ font-size:15px; }
  .pop-story{ width:70px; }
  .pop-story__ring{ width:64px; height:64px; }
  .pop-stories{ gap:12px; padding-top:14px; padding-bottom:12px; }
}
@media (prefers-reduced-motion: reduce){
  .pop-story__ring, .pop-lead img, .pop-card__media img{ transition:none; }
}
