.widget_cspp_popular_posts {
  --cspp-bg: #0c101b;
  --cspp-surface: #131929;
  --cspp-surface-2: #181f32;
  --cspp-text: #f4f2ed;
  --cspp-muted: #9da3b2;
  --cspp-gold: #d3aa55;
  --cspp-border: rgba(211,170,85,.24);
}

.cspp-list { display: grid; gap: 0; }
.cspp-item { position: relative; display: flex; gap: 14px; min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--cspp-border); }
.cspp-item:first-child { padding-top: 4px; }
.cspp-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.cspp-thumb { flex: 0 0 78px; width: 78px; height: 66px; overflow: hidden; background: var(--cspp-surface); }
.cspp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease, opacity .25s ease; }
.cspp-thumb:hover img { transform: scale(1.04); opacity: .9; }
.cspp-content { flex: 1; min-width: 0; align-self: center; }
.cspp-title { margin: 0 !important; font-size: 15px !important; line-height: 1.42 !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }
.cspp-title a { color: var(--cspp-text); text-decoration: none; transition: color .2s ease; }
.cspp-title a:hover { color: var(--cspp-gold); }
.cspp-category { display: block; margin-bottom: 5px; color: var(--cspp-gold); font-size: 10px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.cspp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; color: var(--cspp-muted); font-size: 11px; line-height: 1.4; }
.cspp-meta-sep { color: var(--cspp-gold); opacity: .6; }
.cspp-excerpt { margin: 7px 0 0; color: var(--cspp-muted); font-size: 12px; line-height: 1.55; }
.cspp-rank { flex: 0 0 auto; color: var(--cspp-gold); font-family: Georgia, serif; font-size: 25px; line-height: 1; opacity: .85; }
.cspp-empty { color: var(--cspp-muted); font-size: 13px; }
.cspp-rounded .cspp-thumb, .cspp-rounded.cspp-style-cards .cspp-item { border-radius: 8px; }
.cspp-compact .cspp-item { padding: 10px 0; gap: 10px; }
.cspp-compact .cspp-thumb { width: 62px; height: 54px; flex-basis: 62px; }

/* 1. Minimalista */
.cspp-style-minimal .cspp-thumb { display: none; }
.cspp-style-minimal .cspp-item { padding-left: 18px; }
.cspp-style-minimal .cspp-item::before { content: ''; position: absolute; left: 0; top: 24px; width: 8px; height: 1px; background: var(--cspp-gold); }

/* 2. Kártyák */
.cspp-style-cards { gap: 10px; }
.cspp-style-cards .cspp-item { padding: 13px; border: 1px solid var(--cspp-border); background: linear-gradient(145deg, var(--cspp-surface), rgba(19,25,41,.55)); }
.cspp-style-cards .cspp-item:first-child, .cspp-style-cards .cspp-item:last-child { padding: 13px; }

/* 3. Toplista */
.cspp-style-ranked .cspp-item { align-items: center; }
.cspp-style-ranked .cspp-rank { min-width: 34px; padding-right: 10px; border-right: 1px solid var(--cspp-border); }
.cspp-style-ranked .cspp-thumb { display: none; }

/* 4. Kiemelt képes */
.cspp-style-thumbnail .cspp-item:first-child { display: block; padding-top: 0; }
.cspp-style-thumbnail .cspp-item:first-child .cspp-thumb { display: block; width: 100%; height: 150px; margin-bottom: 12px; }
.cspp-style-thumbnail .cspp-item:first-child .cspp-title { font-size: 17px !important; }

/* 5. Magazin */
.cspp-style-editorial .cspp-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; }
.cspp-style-editorial .cspp-thumb { grid-row: 1; width: 42px; height: 42px; border-radius: 50%; }
.cspp-style-editorial .cspp-content { grid-column: 2; }
.cspp-style-editorial .cspp-category { font-family: Georgia, serif; font-style: italic; letter-spacing: .05em; text-transform: none; }

/* 6. Csillagászati */
.cspp-style-celestial .cspp-item { padding-left: 24px; }
.cspp-style-celestial .cspp-item::before { content: '✦'; position: absolute; left: 0; top: 19px; color: var(--cspp-gold); font-size: 10px; }
.cspp-style-celestial .cspp-item::after { content: ''; position: absolute; left: 3px; top: 32px; width: 1px; height: calc(100% - 34px); background: linear-gradient(var(--cspp-border), transparent); }
.cspp-style-celestial .cspp-item:last-child::after { display: none; }

@media (max-width: 480px) {
  .cspp-thumb { flex-basis: 68px; width: 68px; height: 58px; }
  .cspp-style-thumbnail .cspp-item:first-child .cspp-thumb { height: 135px; }
}
