/* Page-specific components for the cyber-arcade portal. */
.featured-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(15,19,28,.78); transition: border-color var(--dur-normal), transform var(--dur-normal); }
.featured-card:hover { border-color: rgba(0,240,255,.3); transform: translateY(-2px); }
.featured-card__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; background: linear-gradient(135deg, rgba(0,240,255,.18), rgba(189,0,255,.1)); }
.featured-card__media::after { position: absolute; inset: 30% 0 0; content: ''; background: linear-gradient(0deg, rgba(11,14,20,.72), transparent); pointer-events: none; }
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms var(--ease-out); }
.featured-card:hover .featured-card__media img { transform: scale(1.035); }
.featured-card__badge { position: absolute; z-index: 1; top: 9px; left: 9px; padding: 4px 7px; border: 1px solid rgba(195,244,0,.26); border-radius: var(--radius-sm); color: var(--accent); background: rgba(11,14,20,.78); font: 600 8px/1.3 var(--font-label); letter-spacing: .08em; text-transform: uppercase; }
.featured-card__body { padding: 12px; }
.featured-card__title { margin: 0 0 6px; color: var(--text-main); font: 600 16px/1.3 var(--font-display); overflow-wrap: anywhere; }
.featured-card__desc { display: -webkit-box; margin: 0; overflow: hidden; color: var(--text-soft); font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.featured-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.kpi { min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: linear-gradient(145deg,rgba(39,42,49,.76),rgba(17,20,27,.72)); }
.kpi b { display: block; color: var(--primary); font: 700 21px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi span { display: block; margin-top: 6px; color: var(--text-faint); font: 500 8px/1.4 var(--font-label); letter-spacing: .035em; text-transform: uppercase; overflow-wrap: anywhere; }
.detail-title { min-width: 0; margin: 0; color: var(--text-main); font: 700 clamp(25px,6vw,42px)/1.08 var(--font-display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.detail-category { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 8px; border: 1px solid var(--border-accent); border-radius: var(--radius-sm); color: var(--primary); background: rgba(0,240,255,.045); font: 600 9px/1.4 var(--font-label); letter-spacing: .06em; text-transform: uppercase; }
.detail-cover { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(135deg,rgba(0,240,255,.16),rgba(189,0,255,.08)); }
.detail-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.detail-copy { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(150deg,rgba(29,32,38,.82),rgba(17,20,27,.78)); }
.detail-copy h2 { margin: 0 0 9px; color: var(--text-main); font: 600 17px/1.25 var(--font-display); }
.detail-copy p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-copy + .detail-copy { margin-top: 10px; }
.link-list { display: grid; gap: 7px; }
.link-list a { min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-soft); background: rgba(255,255,255,.025); font-size: 11px; overflow-wrap: anywhere; transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast); }
.link-list a:hover { color: var(--primary); border-color: var(--border-accent); background: rgba(0,240,255,.04); }
.warn-box { padding: 12px; border: 1px solid rgba(255,85,120,.35); border-radius: var(--radius-md); color: #ffc2d0; background: rgba(255,85,120,.065); font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-soft); background: rgba(0,0,0,.24); font: 500 9px/1.35 var(--font-label); }
.search-empty { margin-top: 18px; }
body[data-template-preview="true"] .template-raw { display: none !important; }
body[data-template-preview="true"] .ad-slot__unit { color: transparent; }
body[data-template-preview="true"] .ad-slot__unit::after { content: 'AD SPACE · RESPONSIVE SLOT'; color: var(--text-dim); }
.ad-slot__unit iframe, .ad-slot__unit ins, .ad-slot__unit > div { max-width: 100%; }
.ad-slot__unit iframe { border: 0; }
@media (max-width: 359px) {
  .ad-slot { min-height: 84px; }
  .ad-slot__unit { min-height: 46px; }
}
