/* Kvikmyndalistar — /kvikmyndalistar/ (template-kvikmyndalistar.php). Builds on css/streymi-nytt.css. */

/* Hero extras (hero is dark) */
.kl-back { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); text-decoration: none; }
.kl-back:hover { color: #fff; text-decoration: none; }
.kl-kicker {
    display: block; margin-bottom: 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--sn-teal, #62b0ba);
}
.kl-muted { opacity: .75; font-weight: 500; }
.kl-progress { display: inline-flex; align-items: center; gap: 10px; }
.kl-progress__bar { display: inline-block; width: 90px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.kl-progress__bar span { display: block; height: 100%; border-radius: 99px; background: var(--sn-seen, #62b0ba); transition: width .25s ease; }

.kl-admin-note { margin: 18px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 13px; }
.kl-admin-note code { font-size: 12px; }
.sn-section .kl-admin-note + .sn-grid { margin-top: 14px; }

/* List tiles (hub + "Fleiri listar") */
.kl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding: 26px 0 40px; }
.kl-tiles--row { padding-top: 0; }
.kl-tile {
    display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--sn-ink, #1a1f24);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .05); transition: box-shadow .15s ease, transform .15s ease;
}
.kl-tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, .1), 0 14px 30px rgba(0, 0, 0, .1); }
.kl-tile__art { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 8 / 3; background: linear-gradient(135deg, #2b3034, #2f4b50); overflow: hidden; }
.kl-tile__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kl-tile__art--3 { grid-template-columns: repeat(3, 1fr); }
.kl-tile__art--2 { grid-template-columns: repeat(2, 1fr); }
.kl-tile__art--1 { grid-template-columns: 1fr; }
.kl-tile__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.kl-tile__kicker { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sn-teal-dark, #0d9488); }
.kl-tile__title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.kl-tile__count { font-size: 13px; color: var(--sn-muted, #6b7280); }

@media (max-width: 560px) {
    .kl-tiles { grid-template-columns: 1fr; gap: 14px; padding-top: 18px; }
    .kl-progress__bar { width: 60px; }
}

/* List pages: denser grid (shorter posters) + a quiet "why it's here" line */
.kl-page .sn-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .kl-page .sn-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 920px)  { .kl-page .sn-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 740px)  { .kl-page .sn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
.kl-page .sn-card__body { gap: 4px; padding: 8px 10px 10px; }
.kl-page .sn-card__title { font-size: 14px; }
.kl-page .sn-card__meta { font-size: 12px; }
.kl-page .sn-card__genre {
    font-size: 12px; line-height: 1.35; color: var(--sn-muted, #6b7280); font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kl-page .sn-card__svcs { margin-top: auto; }
.kl-page .sn-svc { height: 26px; }
.kl-page .sn-svc img { width: 19px; height: 19px; }
.kl-page .kca-rate { padding-top: 5px; }
.kl-page .kca-star { font-size: 17px; }
@media (max-width: 560px) {
    .kl-page .sn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .kl-page .kca-star { font-size: 21px; }   /* keep the mobile tap size */
}
