/* ==========================================================================
   ExpertPulse — Trending page card styles
   podium · scoreboard · chart · mosaic · ticker · pulse (classic list lives in grids.css)
   All colours, fonts and corners come from the active demo's tokens.
   ========================================================================== */

.ept-page { --ept-r: var(--sk-radius, var(--radius, 12px)); --ept-soft: var(--bg-section-alt, rgba(127, 127, 127, .08)); }
.ept-page .ep-trending-page-title { margin: 0 0 8px; }
.ept-page .ep-trending-page-desc { margin: 0; color: var(--text-muted); font-size: 1.05rem; }
.ept-page:not(.ept-page--list) .ep-trending-container { max-width: 1240px; background: transparent; overflow: visible; }
.ept-page:not(.ept-page--list) .ep-trending-header { padding: 0 0 22px; margin-bottom: 28px; }

:where(.ept-page) a { color: inherit; text-decoration: none; }
.ept-page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ept-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ept-soft); color: var(--text-muted); font-size: 1.6rem; }
.ept-kicker { display: inline-block; color: var(--accent-text, var(--accent)); font: 800 .72rem/1.2 var(--sk-label-font, var(--font-body)); letter-spacing: .08em; text-transform: uppercase; }
.ept-meta { color: var(--text-muted); font-size: .85rem; }
.ept-meta strong { color: var(--text-main); }
.ept-bar { position: relative; display: block; height: 6px; overflow: hidden; border-radius: 99px; background: var(--ept-soft); }
.ept-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); }

.ept-move { display: inline-flex; align-items: center; gap: 1px; min-width: 34px; justify-content: center; height: 22px; padding: 0 6px; border-radius: 99px; font: 800 .72rem/1 var(--font-body); white-space: nowrap; }
.ept-move i { font-size: 1rem; }
.ept-move--up { background: rgba(22, 163, 74, .12); color: #16a34a; }
.ept-move--down { background: rgba(225, 29, 72, .1); color: #e11d48; }
.ept-move--same { background: var(--ept-soft); color: var(--text-muted); }
.ept-move--new { background: var(--accent); color: var(--eph-on-accent, var(--on-accent-fill, #fff)); letter-spacing: .06em; }

/* --------------------------------------------------------------------------
   PODIUM — editorial: lead story, two runners-up, numbered columns
   -------------------------------------------------------------------------- */
.ept-podium { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 3px double var(--text-main); }
.ept-lead { display: grid; gap: 18px; }
.ept-lead__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ept-r); background: var(--ept-soft); }
.ept-lead__media img { transition: transform .6s ease; }
.ept-lead:hover .ept-lead__media img { transform: scale(1.03); }
.ept-lead__body { display: grid; gap: 10px; }
.ept-lead__rank { font: italic 700 .95rem/1 var(--font-heading); color: var(--accent); letter-spacing: .02em; }
.ept-lead__title { font: 900 clamp(1.7rem, 3vw, 2.5rem)/1.12 var(--font-heading); letter-spacing: -.02em; color: var(--text-main); }
.ept-lead:hover .ept-lead__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ept-lead__dek { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }
.ept-runners { display: grid; gap: 26px; align-content: start; padding-left: 32px; border-left: 1px solid var(--border); }
.ept-runner { display: grid; gap: 8px; }
.ept-runner__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--ept-r); background: var(--ept-soft); }
.ept-runner__media em { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: var(--bg-card, #fff); color: var(--text-main); font: italic 900 1.4rem/1 var(--font-heading); border-top-right-radius: var(--ept-r); }
.ept-runner__title { font: 800 1.2rem/1.3 var(--font-heading); color: var(--text-main); }
.ept-runner:hover .ept-runner__title { color: var(--accent-text, var(--accent)); }
.ept-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin: 0; padding: 12px 0 0; list-style: none; }
.ept-cols li { border-bottom: 1px solid var(--border); }
.ept-cols a { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 0; }
.ept-cols__num { color: var(--border); font: italic 900 2rem/1 var(--font-heading); transition: color .2s; }
.ept-cols a:hover .ept-cols__num { color: var(--accent-text, var(--accent)); }
.ept-cols__text strong { display: block; color: var(--text-main); font: 700 1.02rem/1.35 var(--font-heading); }
.ept-cols__text em { display: block; margin-top: 3px; color: var(--text-muted); font-size: .82rem; font-style: normal; }

/* --------------------------------------------------------------------------
   SCOREBOARD — dark tiles, giant outlined ranks, slanted tags
   -------------------------------------------------------------------------- */
.ept-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 12px; }
.ept-tile { position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--ept-r); background: #0e0e12; color: #fff; isolation: isolate; }
.ept-tile.is-top { grid-column: span 2; grid-row: span 2; }
.ept-tile__img { position: absolute; inset: 0; z-index: -2; opacity: .75; transition: transform .6s ease, opacity .3s; }
.ept-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .88) 100%); }
.ept-tile:hover .ept-tile__img { transform: scale(1.06); opacity: .9; }
.ept-tile__rank { position: absolute; top: 4px; right: 10px; font: italic 900 4.2rem/1 var(--font-heading); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .85); letter-spacing: -.04em; }
.ept-tile.is-top .ept-tile__rank { font-size: 8.5rem; -webkit-text-stroke-color: var(--accent); }
.ept-tile:nth-child(-n+3):not(.is-top) .ept-tile__rank { -webkit-text-stroke-color: var(--accent); }
.ept-tile__body { display: grid; gap: 8px; width: 100%; padding: 16px 18px 18px; }
.ept-tile__tag { justify-self: start; padding: 4px 12px; background: var(--accent); color: var(--eph-on-accent, var(--on-accent-fill, #fff)); font: 800 .7rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; transform: skewX(-12deg); }
.ept-tile__title { font: italic 900 1.05rem/1.2 var(--font-heading); text-transform: uppercase; letter-spacing: .01em; }
.ept-tile.is-top .ept-tile__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.ept-tile__stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: rgba(255, 255, 255, .8); font-size: .8rem; font-weight: 700; }
.ept-tile__stats > span:first-child i { color: var(--accent-text, var(--accent)); margin-right: 3px; }
.ept-tile .ept-move--same { background: rgba(255, 255, 255, .14); color: #fff; }

/* --------------------------------------------------------------------------
   CHART — music/podcast/film weekly chart
   -------------------------------------------------------------------------- */
.ept-chart-top { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; overflow: hidden; border-radius: calc(var(--ept-r) * 1.5); background: #0b0b10; color: #fff; isolation: isolate; }
.ept-chart-top__bg { position: absolute; inset: -40px; z-index: -1; filter: blur(40px) saturate(1.4); opacity: .55; }
.ept-chart-top__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2)); }
.ept-chart-top__cover { aspect-ratio: 1; overflow: hidden; border-radius: var(--ept-r); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.ept-chart-top__body { display: grid; gap: 12px; }
.ept-chart-top__label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text, var(--accent)); font: 800 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.ept-chart-top__title { font: 900 clamp(1.6rem, 3.2vw, 2.6rem)/1.1 var(--font-heading); letter-spacing: -.02em; }
.ept-chart-top__by { color: rgba(255, 255, 255, .72); font-weight: 600; }
.ept-chart-top__stats { display: flex; gap: 22px; flex-wrap: wrap; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.ept-chart-top__stats strong { color: #fff; font-size: 1.25rem; margin-right: 4px; }
.ept-chart { margin: 18px 0 0; padding: 0; list-style: none; }
.ept-chart li { border-bottom: 1px solid var(--border); }
.ept-chart a { display: grid; grid-template-columns: 44px 52px 60px minmax(0, 1fr) 180px; gap: 16px; align-items: center; padding: 12px 10px; border-radius: var(--ept-r); transition: background .2s; }
.ept-chart a:hover { background: var(--ept-soft); }
.ept-chart__pos { font: 900 1.4rem/1 var(--font-heading); color: var(--text-main); text-align: center; }
.ept-chart__cover { position: relative; width: 60px; height: 60px; overflow: hidden; border-radius: calc(var(--ept-r) * .6); }
.ept-chart__cover i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.5rem; opacity: 0; transition: opacity .2s; }
.ept-chart a:hover .ept-chart__cover i { opacity: 1; }
.ept-chart__text strong { display: block; overflow: hidden; color: var(--text-main); font: 700 1rem/1.3 var(--font-heading); text-overflow: ellipsis; white-space: nowrap; }
.ept-chart__text em { display: block; margin-top: 3px; color: var(--text-muted); font-size: .82rem; font-style: normal; }
.ept-chart__plays { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; color: var(--text-muted); font: 700 .82rem/1 var(--font-body); }

/* --------------------------------------------------------------------------
   MOSAIC — lifestyle / travel / food cards
   -------------------------------------------------------------------------- */
.ept-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ept-card { display: flex; flex-direction: column; overflow: hidden; border-radius: calc(var(--ept-r) * 1.3); background: var(--bg-card, #fff); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 30px -18px rgba(0, 0, 0, .25); transition: transform .3s ease, box-shadow .3s ease; }
.ept-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .35); }
.ept-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.ept-card__rank { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card, #fff); color: var(--text-main); font: 800 1rem/1 var(--font-heading); font-style: normal; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.ept-card:nth-child(-n+3) .ept-card__rank { background: var(--accent); color: var(--eph-on-accent, var(--on-accent-fill, #fff)); }
.ept-card__body { display: grid; gap: 8px; padding: 16px 18px 18px; }
.ept-card__title { color: var(--text-main); font: 700 1.05rem/1.35 var(--font-heading); font-style: var(--sk-title-style, normal); }
.ept-card:hover .ept-card__title { color: var(--accent-text, var(--accent)); }
.ept-card__dek { color: var(--text-muted); line-height: 1.6; }
.ept-card .ept-meta { display: flex; align-items: center; gap: 5px; }
.ept-card .ept-meta i { color: var(--accent-text, var(--accent)); }
.ept-card.is-feature { grid-column: span 2; grid-row: span 2; position: relative; }
.ept-card.is-feature .ept-card__media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.ept-card.is-feature .ept-card__rank { width: 54px; height: 54px; font-size: 1.4rem; }
.ept-card.is-feature .ept-card__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }

/* --------------------------------------------------------------------------
   TICKER — tech data table with momentum
   -------------------------------------------------------------------------- */
.ept-table { overflow: hidden; border: 1px solid var(--border); border-radius: var(--ept-r); background: var(--bg-card, #fff); font-variant-numeric: tabular-nums; }
.ept-table__head, .ept-table__row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 200px 110px 100px; gap: 16px; align-items: center; padding: 0 20px; }
.ept-table__head { height: 44px; border-bottom: 1px solid var(--border); background: var(--ept-soft); color: var(--text-muted); font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.ept-table__head span:nth-child(n+4) { text-align: right; }
.ept-table__row { min-height: 76px; border-bottom: 1px solid var(--border); transition: background .15s; }
.ept-table__row:last-child { border-bottom: 0; }
.ept-table__row:hover { background: var(--ept-soft); }
.ept-table__rank { color: var(--text-muted); font: 700 1.05rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ept-table__row.is-top .ept-table__rank { color: var(--accent-text, var(--accent)); }
.ept-table__story { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ept-table__story img, .ept-table__story .ept-noimg { width: 52px; height: 52px; flex: 0 0 52px; border-radius: calc(var(--ept-r) * .6); }
.ept-table__story strong { display: block; overflow: hidden; color: var(--text-main); font: 700 .98rem/1.35 var(--font-heading); text-overflow: ellipsis; white-space: nowrap; }
.ept-table__story em { display: block; margin-top: 2px; color: var(--text-muted); font-size: .8rem; font-style: normal; }
.ept-table__row:hover strong { color: var(--accent-text, var(--accent)); }
.ept-table__mom { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.ept-table__num { color: var(--text-main); font: 700 .95rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: right; }
.ept-table__chip { justify-self: end; padding: 5px 9px; border-radius: 6px; background: rgba(22, 163, 74, .1); color: #16a34a; font: 700 .78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .ept-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ept-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ept-table__head, .ept-table__row { grid-template-columns: 48px minmax(0, 1fr) 150px 90px; }
    .ept-table__head span:last-child, .ept-table__chip { display: none; }
}
@media (max-width: 782px) {
    .ept-podium { grid-template-columns: minmax(0, 1fr); }
    .ept-runners { grid-template-columns: 1fr 1fr; padding-left: 0; border-left: 0; }
    .ept-cols { grid-template-columns: minmax(0, 1fr); }
    .ept-board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
    .ept-chart-top { grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 20px; }
    .ept-chart a { grid-template-columns: 30px 44px 52px minmax(0, 1fr); gap: 10px; }
    .ept-chart__cover { width: 52px; height: 52px; }
    .ept-chart__plays { display: none; }
    .ept-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .ept-card.is-feature .ept-card__media { min-height: 240px; }
    .ept-table__head { display: none; }
    .ept-table__head, .ept-table__row { grid-template-columns: 36px minmax(0, 1fr) 70px; padding: 10px 14px; gap: 10px; }
    .ept-table__mom { display: none; }
}
@media (max-width: 480px) {
    .ept-runners { grid-template-columns: minmax(0, 1fr); }
    .ept-board { grid-template-columns: minmax(0, 1fr); }
    .ept-tile.is-top { grid-column: auto; grid-row: span 2; }
    .ept-mosaic { grid-template-columns: minmax(0, 1fr); }
    .ept-card.is-feature { grid-column: auto; grid-row: auto; }
    .ept-chart-top { grid-template-columns: minmax(0, 1fr); }
    .ept-chart-top__cover { width: 140px; }
}

/* --------------------------------------------------------------------------
   PULSE — ExpertPulse: a quiet ranked index. Three leads, then one clean column.
   -------------------------------------------------------------------------- */
.ept-pulse-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--border-color, rgba(127, 127, 127, .18)); }
.ept-pulse-lead { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ept-pulse-lead__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--ept-r); background: var(--ept-soft); }
.ept-pulse-lead__media img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ept-pulse-lead:hover .ept-pulse-lead__media img { transform: scale(1.03); }
.ept-pulse-lead__row { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.ept-pulse-lead__rank { color: var(--accent); font: 800 .95rem/1 var(--font-heading); font-variant-numeric: tabular-nums; }
.ept-pulse-kicker { color: var(--text-muted); font: 700 .72rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.ept-pulse-lead__title { font: 800 1.3rem/1.25 var(--font-heading); letter-spacing: -.02em; color: var(--text-main); }
.ept-pulse-lead:hover .ept-pulse-lead__title { color: var(--accent); }
.ept-pulse-meta { color: var(--text-muted); font-size: .85rem; }

.ept-pulse-list { max-width: 880px; margin: 16px auto 0; padding: 0; list-style: none; counter-reset: none; }
.ept-pulse-list li { border-bottom: 1px solid var(--border-color, rgba(127, 127, 127, .18)); }
.ept-pulse-list li:last-child { border-bottom: 0; }
.ept-pulse-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 64px; align-items: center; gap: 18px; padding: 18px 0; }
.ept-pulse-list__rank { color: var(--text-muted); font: 700 .95rem/1 var(--font-heading); font-variant-numeric: tabular-nums; }
.ept-pulse-list__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ept-pulse-list__text strong { font: 700 1.05rem/1.35 var(--font-heading); letter-spacing: -.01em; color: var(--text-main); }
.ept-pulse-list__text em { font-style: normal; color: var(--text-muted); font-size: .84rem; }
.ept-pulse-list a:hover strong { color: var(--accent-text, var(--accent)); }
.ept-pulse-list__thumb { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: calc(var(--ept-r) * .7); background: var(--ept-soft); }
.ept-pulse-list .ept-move { background: none; padding: 0; min-width: 0; }
.ept-pulse-list .ept-move--new { color: var(--accent-text, var(--accent)); }

@media (max-width: 900px) {
	.ept-pulse-top { grid-template-columns: 1fr; gap: 28px; }
	.ept-pulse-lead__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
	.ept-pulse-list a { grid-template-columns: 30px minmax(0, 1fr) 56px; gap: 12px; }
	.ept-pulse-list .ept-move { display: none; }
	.ept-pulse-list__thumb { width: 56px; height: 56px; }
}
