/*
 * Latimp: the whole look, from the approved mockup (design/mockup-1-template.html).
 * A dark "theatre hall", dark only: velvet red for actions, gilt for small details.
 * Order: tokens, fonts, base, header, layout, chips and cards, home, lists, post page,
 * players, text, pages, footer, narrow screens.
 */

/* Tokens (the mockup's :root) */
:root {
	--bg: #100D10;
	--bg-2: #181318;
	--card: #1F191F;
	--card-2: #2A222A;
	--line: #382E37;
	--ink: #F2EBE4;
	--muted: #B8ADB2;
	--faint: #8C8187;
	--velvet: #B4232F;
	--velvet-deep: #8E1A25;
	--on-velvet: #FFF5EE;
	--gilt: #E2B866;
	--shade: rgba(12, 9, 12, .82);
	--font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
	--font-ui: "Barlow", "Segoe UI", Arial, sans-serif;
	--font-label: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
	--radius: 8px;
	--gap: 16px;
	color-scheme: dark;
}

/* Fonts: served from the theme, latin and latin-ext (ă â î ș ț) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-condensed-500-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/barlow-condensed-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-700-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/dm-serif-display-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/dm-serif-display-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/dm-serif-display-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/dm-serif-display-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font-ui); }
body.has-dock { padding-bottom: 64px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gilt); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--velvet); color: var(--on-velvet); padding: 10px 16px; border-radius: 0 0 6px 6px; font-weight: 600; }
.skip-link:focus { top: 0; }

/* Header */
.top { background: var(--bg-2); }
.top .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.logo { flex: none; }
.logo img { height: 46px; width: auto; border-radius: 4px; }
.logo-text { font: 400 28px/1 var(--font-display); color: var(--gilt); }
.searchbox { position: relative; flex: 1; min-width: 0; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 0 6px 0 16px; }
.searchbox:focus-within { border-color: var(--gilt); }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 0; }
.searchbox input::placeholder { color: var(--faint); }
.searchbox input:focus { outline: none; }
.searchbox input::-webkit-search-cancel-button { filter: invert(.7); }
.searchbox button { flex: none; border: 0; background: var(--velvet); color: var(--on-velvet); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.searchbox button:hover { background: var(--velvet-deep); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 45; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.suggest a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.suggest a:hover, .suggest [aria-selected="true"] a { background: var(--card-2); color: var(--ink); }
.suggest .all a { color: var(--gilt); border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 6px 6px; }
.suggest .none { padding: 8px 10px; color: var(--faint); font-size: 14px; }

.nav { background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a { display: flex; align-items: center; gap: 5px; font: 600 16px/1 var(--font-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); padding: 14px 12px 12px; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav-item > a:hover, .nav-item:focus-within > a { color: var(--gilt); }
.nav-item > a.on { border-bottom-color: var(--velvet); }
.nav-item .caret { width: 9px; height: 9px; fill: var(--faint); }
.drop { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; margin: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); padding: 8px; }
.nav-item:hover .drop, .nav-item:focus-within .drop { display: block; }
.drop a { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; border-radius: 6px; color: var(--muted); font-size: 14.5px; }
.drop a:hover { background: var(--card-2); color: var(--ink); }
.drop .num { color: var(--faint); font-size: 13px; }
.drop .all { color: var(--gilt); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; border-radius: 0 0 6px 6px; }

/* Page grid: content + 300px sidebar; one column on phones */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-block: 22px 48px; align-items: start; }
.layout.full { grid-template-columns: minmax(0, 1fr); }
.main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.crumbs { font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gilt); }

/* Labels and chips */
.eyebrow { font: 600 13px/1.2 var(--font-label); text-transform: uppercase; letter-spacing: .12em; color: var(--gilt); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip { flex: none; font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; background: transparent; white-space: nowrap; }
.chip .num { color: var(--faint); margin-left: 4px; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.on .num { color: var(--card-2); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { font: 600 12px/1 var(--font-label); text-transform: uppercase; letter-spacing: .07em; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 4px 7px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
a.badge:hover { border-color: var(--muted); color: var(--ink); }
.badge.audio { color: var(--gilt); border-color: rgba(226, 184, 102, .45); }
.badge.lang { color: var(--ink); }

/* Rows that scroll sideways (menu on phones, chips, shelves) fade at the side
   that has more; assets/js/site.js sets the classes. */
.more-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.more-start { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 48px), transparent); }
.more-start.more-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

/* Cards */
.shelf { display: flex; flex-direction: column; gap: 12px; }
.shelf-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.shelf-head h2 { font: 700 24px/1.1 var(--font-label); text-transform: uppercase; letter-spacing: .05em; }
.shelf-head .count { color: var(--faint); font-size: 14px; }
.shelf-head .more { margin-left: auto; color: var(--gilt); font: 600 14px var(--font-label); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.shelf-head .more:hover { text-decoration: underline; }
.row { --cols: 6; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 22px var(--gap); }

.card { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--card-2); max-width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 30% 30%, var(--card-2), var(--card) 70%); }
.thumb .fmt { position: absolute; left: 6px; top: 6px; background: var(--shade); border: 0; }
.thumb .yr { position: absolute; right: 6px; bottom: 6px; font: 600 12.5px/1 var(--font-label); letter-spacing: .04em; background: var(--shade); color: var(--ink); padding: 4px 6px; border-radius: 3px; }
.card .t { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .by { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -5px; }
.card .meta { color: var(--faint); font-size: 12.5px; margin-top: -4px; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.card:hover .t { color: var(--gilt); }
.card .ep { color: var(--ink); font-size: 13px; margin-top: -4px; }
.card .ep b { color: var(--gilt); font-weight: 600; }

/* Home: the newest radio play and "Adăugate recent" */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature .thumb { border-radius: 10px; }
.feature .play { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; background: var(--velvet); color: var(--on-velvet); border-radius: 99px; padding: 11px 20px 11px 14px; font: 700 15px/1 var(--font-label); text-transform: uppercase; letter-spacing: .08em; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.feature .thumb:hover .play { background: var(--velvet-deep); }
.feature h1 { font: 400 clamp(30px, 3.6vw, 44px)/1.08 var(--font-display); }
.feature h1 a:hover { color: var(--gilt); }
.byline { font: italic 400 19px/1.35 var(--font-display); color: var(--muted); }
.feature p { margin: 0; color: var(--muted); max-width: 62ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--faint); font-size: 13.5px; }
.facts b { color: var(--ink); font-weight: 500; }
.latest { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.latest h2 { font: 700 18px/1.1 var(--font-label); text-transform: uppercase; letter-spacing: .08em; }
.mini { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.mini .thumb { border-radius: 5px; }
.mini .thumb .fmt { left: 4px; top: 4px; font-size: 10.5px; padding: 3px 5px; }
.mini .t { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover .t { color: var(--gilt); }
.mini .meta { display: block; color: var(--faint); font-size: 12.5px; margin-top: 3px; }

/* Ranked list */
.ranked { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.rank { display: grid; grid-template-columns: 40px 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rank .n { font: 400 32px/1 var(--font-display); color: var(--gilt); text-align: center; }
.rank .thumb { border-radius: 4px; }
.rank .t { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.rank:hover .t { color: var(--gilt); }
.rank .meta { display: block; color: var(--faint); font-size: 12.5px; }

/* List pages: head, filters, pages */
.page-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.page-head.has-image { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.page-head-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.page-head h1 { font: 400 clamp(32px, 4vw, 48px)/1.05 var(--font-display); }
.page-head p { margin: 0; color: var(--muted); }
.term-text { color: var(--muted); max-width: 68ch; }
.term-text p { margin: 0 0 .6em; }
.searchbox-wide { max-width: 560px; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.filter { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; }
.seg a { flex: none; white-space: nowrap; color: var(--muted); border-radius: 99px; padding: 6px 14px; font-size: 14px; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current] { background: var(--card-2); color: var(--ink); }
.flabel { flex: none; font: 600 13px var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.pager .page-numbers { min-width: 38px; text-align: center; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pager a.page-numbers:hover { border-color: var(--muted); color: var(--ink); }
.pager .current { background: var(--velvet); border-color: var(--velvet); color: var(--on-velvet); }
.pager .dots { border: 0; min-width: 0; }
.pager-note { text-align: center; color: var(--faint); font-size: 13px; margin: -18px 0 0; }
.empty { margin: 0; color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Sidebar */
.box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.box h2 { font: 700 16px/1.1 var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.box .rank { grid-template-columns: 26px 80px minmax(0, 1fr); gap: 10px; padding: 0; border: 0; }
.box .rank .n { font-size: 24px; }
.box .rank .t { font-size: 14px; }

/* Post page: the audio stage */
.stage { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.stage .thumb { border-radius: 0; aspect-ratio: auto; min-height: 100%; }
.stage .thumb img, .stage .thumb .noimg { position: absolute; inset: 0; }
.stage-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.stage h1 { font: 400 clamp(28px, 3.2vw, 40px)/1.08 var(--font-display); }
.stage-audio { width: 100%; margin-top: auto; }
.ctrl { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.pp { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--velvet); color: var(--on-velvet); display: grid; place-items: center; cursor: pointer; flex: none; }
.pp:hover { background: var(--velvet-deep); }
.pp svg { width: 24px; height: 24px; }
.skip { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 600 12.5px var(--font-label); display: grid; place-items: center; padding: 0; }
.skip:hover { border-color: var(--muted); }
.speed { margin-left: auto; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); padding: 6px 12px; cursor: pointer; font-size: 13.5px; }
.speed:hover { border-color: var(--muted); color: var(--ink); }
.seek { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; }
.seek::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--velvet), var(--gilt)) 0 0 / var(--p) 100% no-repeat, var(--card-2); }
.seek::-moz-range-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--velvet), var(--gilt)) 0 0 / var(--p) 100% no-repeat, var(--card-2); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -4px; border-radius: 50%; background: var(--ink); border: 0; }
.seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 0; }
.times { display: flex; justify-content: space-between; color: var(--faint); font-size: 12.5px; margin-top: -9px; }
.resume { margin: 0; color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.resume svg { color: var(--gilt); }
.bar { height: 6px; background: var(--card-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--velvet), var(--gilt)); }

/* Mini-player at the bottom while the stage is out of sight */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--card-2); border-top: 1px solid var(--line); padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; }
.dock .bar { position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: 0; }
.dock img, .dock .noimg { width: 64px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; flex: none; }
.dock .tt { min-width: 0; flex: 1; }
.dock .tt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.dock .tt .num { color: var(--faint); font-size: 12.5px; }
.dock .pp { width: 42px; height: 42px; }
.dock .pp svg { width: 18px; height: 18px; }

/* Post page: video, external players (latimp-site, loaded on click), no player */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; max-width: 100%; }
.video > img, .video > .noimg { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-file video { display: block; width: 100%; height: 100%; background: #000; }
.latimp-player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--card); }
.video .latimp-player { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: transparent; }
.latimp-player.is-playing { background: #000; }
.latimp-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.latimp-player__start { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.latimp-player__poster { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.latimp-player__start::before { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; background: var(--velvet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFF5EE' d='M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z'/%3E%3C/svg%3E") 54% 50% / 32px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.latimp-player__start:hover::before { background-color: var(--velvet-deep); }
.latimp-player__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.latimp-player__host { position: absolute; left: 12px; bottom: 10px; font-size: 12.5px; color: var(--muted); background: var(--shade); padding: 4px 8px; border-radius: 4px; }
.noplayer { margin: 0; padding: 18px 20px; background: var(--bg-2); border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.noplayer a { color: var(--gilt); }
.noplayer a:hover { text-decoration: underline; }

/* Post page: title, actions, text, credits, previous/next */
.post-head, .post-sec { display: flex; flex-direction: column; gap: 10px; }
.post-head h1 { font: 400 clamp(30px, 3.6vw, 44px)/1.08 var(--font-display); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.act { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: 14px; }
.act:hover { border-color: var(--muted); }
.act svg { width: 15px; height: 15px; }
.act[aria-pressed="true"] { border-color: var(--velvet); color: var(--gilt); }
.share-note { color: var(--gilt); font-size: 13px; }
.share-note:empty { display: none; }
.nextprev { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.np { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np:hover { border-color: var(--muted); }
.np small { font: 600 12.5px var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.np span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np.next { text-align: right; grid-column: 2; }
.section-title { font: 700 20px/1.1 var(--font-label); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.credits { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr); border-top: 1px solid var(--line); margin: 0; max-width: 68ch; }
.credits dt, .credits dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.credits dt { font: 600 13px/1.6 var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding-right: 20px; }
.credits dd { color: var(--ink); }
.credits dd a { color: var(--gilt); }
.credits dd a:hover { text-decoration: underline; }

/* Text of posts and pages: one readable style; colours and fonts pasted
   into old texts are ignored on display (the stored text is unchanged). */
.prose { font-size: 16.5px; line-height: 1.65; color: var(--ink); max-width: 68ch; overflow-wrap: break-word; }
.prose [style] { color: inherit !important; background: transparent !important; font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.prose font { color: inherit !important; font: inherit !important; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure, .prose details { margin: 0 0 .8em; }
.prose h2 { margin: 1.2em 0 .5em; font: 700 20px/1.2 var(--font-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
/* Many old texts (943 posts) hold whole paragraphs in h3–h5: bold text, not labels. */
.prose h3, .prose h4, .prose h5, .prose h6 { margin: 1em 0 .6em; font-size: 17px; font-weight: 600; line-height: 1.55; }
.prose a { color: var(--gilt); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--ink); }
.prose img { height: auto; border-radius: 6px; }
.prose img.aligncenter, .prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: 4px 18px 10px 0; }
.prose .alignright { float: right; margin: 4px 0 10px 18px; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text, .prose figcaption { color: var(--faint); font-size: 13.5px; margin-top: 6px; }
.prose blockquote { border-left: 3px solid var(--velvet); padding-left: 16px; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.prose summary { cursor: pointer; font-weight: 600; }
.prose iframe, .prose video, .prose audio { max-width: 100%; }
.prose audio { width: 100%; }
.prose .latimp-player { margin: 0 0 .8em; }
.prose::after { content: ""; display: block; clear: both; }
.latimp-ad { margin: 0 0 1em; }

/* Pages: contents list, contact form (latimp-site) */
.page-main .prose, .page-main .toc { max-width: 72ch; }
.toc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc h2 { font: 700 16px/1.1 var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { padding: 3px 0; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--gilt); }
.prose h2[id] { scroll-margin-top: 16px; }
.latimp-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 1.4em; }
.latimp-contact p { margin: 0 0 10px; }
.latimp-contact label { display: block; font: 600 13px/1.6 var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.latimp-contact input, .latimp-contact select, .latimp-contact textarea { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: inherit; font-size: 16px; padding: 10px 12px; }
.latimp-contact textarea { min-height: 140px; resize: vertical; }
.latimp-contact__hint { color: var(--faint); font-size: 13.5px; text-transform: none; letter-spacing: 0; font-family: var(--font-ui); font-weight: 400; }
.latimp-contact__ok, .latimp-contact__error { padding: 10px 14px; border-radius: 6px; border: 1px solid var(--line); }
.latimp-contact__ok { border-color: var(--gilt); color: var(--gilt); }
.latimp-contact__error { border-color: var(--velvet); color: var(--ink); background: rgba(180, 35, 47, .15); }
.latimp-contact button { align-self: flex-start; border: 0; background: var(--velvet); color: var(--on-velvet); border-radius: 99px; padding: 10px 18px; font: 700 14px var(--font-label); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.latimp-contact button:hover { background: var(--velvet-deep); }

/* Footer */
.site-foot { background: var(--bg-2); border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; padding-block: 28px; }
.site-foot h2 { margin: 0 0 8px; font: 700 14px var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.site-foot a { display: block; color: var(--muted); padding: 3px 0; }
.site-foot a:hover { color: var(--gilt); }
.site-foot img { height: 40px; width: auto; border-radius: 4px; }
.site-foot p { margin: 10px 0 0; max-width: 34ch; }
.copy { border-top: 1px solid var(--line); }
.copy .wrap { display: block; padding-block: 12px; font-size: 13px; }

@media (max-width: 1100px) {
	.row { --cols: 4; }
	.hero { grid-template-columns: minmax(0, 1fr); }
	.latest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
	.latest h2 { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.side { position: static; }
	.ranked { grid-template-columns: minmax(0, 1fr); }
	.stage { grid-template-columns: minmax(0, 1fr); }
	.stage .thumb { aspect-ratio: 16 / 9; min-height: 0; }
	.site-foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.row { --cols: 2.3; }
	.top .wrap { gap: 12px; padding-block: 10px; }
	.logo img { height: 34px; }
	.top .searchbox { max-width: none; }
	.searchbox input { font-size: 16px; }
	.nav-list { overflow-x: auto; scrollbar-width: none; }
	.nav-item > a { font-size: 15px; padding-inline: 10px; }
	.nav-item .caret, .drop { display: none !important; }
	.latest { display: flex; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.page-head.has-image { grid-template-columns: minmax(0, 1fr); }
	.filter { flex-wrap: wrap; }
	.nextprev { grid-template-columns: minmax(0, 1fr); }
	.np.next { text-align: left; grid-column: auto; }
	.credits { grid-template-columns: minmax(0, 1fr); }
	.credits dt { border-bottom: 0; padding-bottom: 0; }
	.credits dd { padding-top: 2px; }
	.stage-body { padding: 18px; }
	.speed { margin-left: 0; }
	.ctrl { flex-wrap: wrap; }
	.rank { grid-template-columns: 30px 84px minmax(0, 1fr); }
	.shelf-head h2 { font-size: 21px; }
	.prose .alignleft, .prose .alignright { float: none; margin: 0 0 .8em; }
}
@media (prefers-reduced-motion: no-preference) {
	.thumb img { transition: transform .35s ease; }
	.card:hover .thumb img, .mini:hover .thumb img { transform: scale(1.04); }
}
