/* სერიალების არქივი — ბარათი ge.movie-ს სტილის მსგავსად (template-parts/content/tv_shows/layout/kk-card.php)
 * წინა ვერსია ("კინო-ბარათი"): Desktop\scan\backups\2026-10-01-tv-cards-v2 */
.kk-tvgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 10px !important; }
.kk-tvgrid > .kk-tvgrid-item { min-width: 0; padding: 0 !important; width: auto !important; max-width: none !important; }

.kk-tvc { height: 100%; padding: 0 0 12px; border-radius: 10px; background: transparent; transition: background .25s; }
.kk-tvc:hover { background: #12153a; }
.kk-tvc a { color: #fff; text-decoration: none; }

.kk-tvc-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px 10px 4px 4px; background: #111; }
.kk-tvc-media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s, filter .3s; }
/* ზედა და ქვედა ზოლი წარწერებისთვის — რომ ნებისმიერ კადრზე იკითხებოდეს */
.kk-tvc-media::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .75) 100%);
}
.kk-tvc:hover .kk-tvc-media img { transform: scale(1.05); filter: brightness(.7); }

.kk-tvc-top { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; }
.kk-tvc-tag {
    display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .25);
    font: 600 11px/1 "KK Latin", Arial, sans-serif !important; color: #fff; letter-spacing: .02em; white-space: nowrap;
}
.kk-tvc-imdb { gap: 5px; padding-left: 0; overflow: hidden; border-color: #f5c518; }
.kk-tvc-imdb b { display: inline-flex; align-items: center; height: 100%; padding: 0 4px; background: #f5c518; color: #000; font: 900 10px Arial, sans-serif !important; }

.kk-tvc-bottom {
    position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.kk-tvc-bottom i { font-style: normal; opacity: .8; }
/* წელი — ქვედა მარჯვენა კუთხეში, ენების ჩიპების სტილით */
.kk-tvc-year {
    margin-left: auto; display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .25);
    font: 600 11px/1 "KK Latin", Arial, sans-serif !important; letter-spacing: .02em; text-shadow: none;
}

.kk-tvc-play {
    position: absolute; left: 50%; top: 50%; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%) scale(.6);
    background: rgba(123, 97, 255, .95); box-shadow: 0 8px 22px rgba(123, 97, 255, .5); opacity: 0; transition: .3s;
}
.kk-tvc-play::before { content: ""; margin-left: 4px; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.kk-tvc:hover .kk-tvc-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.kk-tvc-text { display: block; padding: 10px 10px 0; }
.kk-tvc-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-tvc-orig { margin: 3px 0 0; font-size: 13px; font-weight: 500; color: #b9bbcc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ტაბლეტი / მობილური */
@media (max-width: 1199px) { .kk-tvgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* სეზონი/ეპიზოდი: კომპიუტერზე სრულად, ტელეფონზე მოკლედ — S02E07 */
.kk-tvc-short { display: none; font: 700 12px/1 "KK Latin", Arial, sans-serif !important; letter-spacing: .03em; }
@media (max-width: 767px)  { .kk-tvc-long { display: none !important; } .kk-tvc-short { display: inline; } }
@media (max-width: 767px)  { .kk-tvgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .kk-tvc-tag:nth-child(n+3) { display: none; } }
@media (hover: none) { .kk-tvc-play { display: none; } }
