﻿.lt-rel { padding: 20px 0 8px; }

.lt-rel-tabs {
    display: flex;
    flex-wrap: nowrap;
    margin: 0 0 22px;
    border-bottom: 1px solid #E1E4EB;
    overflow-x: auto;
    scrollbar-width: none;
}

.lt-rel-tabs::-webkit-scrollbar { display: none; }

.lt-rel-tab {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 0;
    background: none;
    color: #1A2B3C;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color .3s ease;
}

.lt-rel-tab + .lt-rel-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 16px;
    background: #DDE2E9;
    transform: translateY(-50%);
}

.lt-rel-tab::after {
    content: '';
    position: absolute;
    left: 14px;
    bottom: 0;
    width: 0;
    height: 3px;
    background: #FF6F0F;
    transition: width .3s ease;
}

.lt-rel-tab:hover,
.lt-rel-tab.is-active { color: #FF6F0F; }

.lt-rel-tab:focus-visible { outline: none; color: #FF6F0F; }

.lt-rel-tab:not(.is-active):hover::after,
.lt-rel-tab.is-active::after { width: calc(100% - 28px); }

.lt-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.lt-rel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #E3E7ED;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease;
}

.lt-rel-card:hover,
.lt-rel-card:focus-visible { border-color: #FFC9A3; outline: none; }

.lt-rel-cover {
    display: block;
    flex: 0 0 114px;
    width: 114px;
    aspect-ratio: 2 / 3;
    border-radius: 4px 8px 8px 4px;
    overflow: hidden;
    background: #F1F4F8;
    box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .35), 0 2px 6px rgba(15, 23, 42, .06);
}

.lt-rel-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lt-rel-img:not(.is-loaded),
.lt-rel-card.is-skeleton .lt-rel-cover,
.lt-rel-line {
    background: linear-gradient(90deg, #F1F5F9, #E6EBF2, #F1F5F9);
    background-size: 200% 100%;
    animation: lt-rel-shimmer 1.2s linear infinite;
}

.lt-rel-img.is-broken { background: #EEF1F5; animation: none; }

.lt-rel-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }

.lt-rel-title {
    display: -webkit-box;
    overflow: hidden;
    color: #1A2B3C;
    font-size: 15.5px;
    line-height: 1.4;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.lt-rel-card:hover .lt-rel-title { color: #E56000; }

.lt-rel-pub { margin-top: 5px; overflow: hidden; color: #6B7280; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }

.lt-rel-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; color: #4A5568; font-size: 13px; }

.lt-rel-facts > span { display: inline-flex; align-items: center; gap: 5px; }

.lt-rel-facts i { color: #E56000; font-size: 14px; }

.lt-rel-line { display: block; height: 10px; margin-bottom: 8px; border-radius: 4px; }

.lt-rel-line.is-short { width: 60%; }

.lt-rel-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-top: 22px; }

.lt-rel-pager { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }

.lt-rel-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #E3E7ED;
    border-radius: 10px;
    background: #fff;
    color: #1A2B3C;
    font-size: 15px;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}

.lt-rel-page:hover:not(:disabled):not(.is-active) { border-color: #FFC9A3; color: #E56000; }

.lt-rel-page.is-active { border-color: #FF6F0F; background: #FF6F0F; color: #fff; }

.lt-rel-page:disabled { opacity: .45; cursor: default; }

.lt-rel-page:focus-visible { outline: 2px solid #FFC9A3; outline-offset: 2px; }

.lt-rel-size { margin: 0; }

.lt-rel-size select {
    height: 42px;
    padding: 0 36px 0 14px;
    border: 1px solid #E3E7ED;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: #1A2B3C;
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.lt-rel-size select:focus-visible { border-color: #FFC9A3; outline: none; }

.lt-rel-empty { margin: 8px 0; color: #6B7280; font-size: 14.5px; }

.lt-rel-lead { margin: 0 0 6px; color: #6B7280; font-size: 14px; }

.lt-rel-rank { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.lt-rel-rank.is-split { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 64px; }
.lt-rel-rank.is-split::before { content: ''; position: absolute; top: 14%; bottom: 14%; left: 50%; width: 1px; background: #E6EAF0; }
.lt-rel-rank-item { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 66px; padding: 10px 0; }
.lt-rel-rank-item + .lt-rel-rank-item { box-shadow: inset 0 1px 0 #EDF0F4; }
.lt-rel-rank.is-split .lt-rel-rank-item:nth-child(6) { box-shadow: none; }
.lt-rel-rank-no { flex: 0 0 22px; color: #8A94A3; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; }
.lt-rel-rank-item:nth-child(-n+3) .lt-rel-rank-no { color: #E56000; }
.lt-rel-rank-logo { display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border: 1px solid #E6EAF0; border-radius: 10px; background: #fff; }
.lt-rel-rank-logo img { display: block; max-width: 100%; max-height: 100%; padding: 4px; object-fit: contain; }
.lt-rel-rank-body { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.lt-rel-rank-body .lt-bc-sk { width: 70%; margin: 0; }
.lt-rel-rank-body .lt-bc-sk--short { width: 40%; }
.lt-rel-rank-name { color: #1A2B3C; font-size: 15px; font-weight: 500; line-height: 1.4; }
.lt-rel-rank-name a { color: inherit; text-decoration: none; }
.lt-rel-rank-name a:hover { color: #E56000; }
.lt-rel-rank-name a svg { display: inline-block; width: 13px; height: 13px; margin-left: 3px; color: #A0A8B4; vertical-align: -1px; transition: color .15s ease; }
.lt-rel-rank-name a:hover svg { color: #E56000; }
.lt-rel-rank-role { color: #6B7280; font-size: 13px; font-weight: 400; }
.lt-rel-rank-count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #F1F4F8; color: #4A5568; font-size: 12.5px; font-weight: 400; line-height: 1.5; vertical-align: 1px; }
.lt-rel-rank-meta { overflow: hidden; color: #6B7280; font-size: 13px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.lt-rel-rank-meta a { color: #374151; text-decoration: none; }
.lt-rel-rank-meta a:hover { color: #E56000; }

.lt-rel-note { margin: -8px 0 14px; color: #6B7280; font-size: 13.5px; }

@keyframes lt-rel-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 1199.98px) {
    .lt-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .lt-rel-rank.is-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
    .lt-rel-rank.is-split::before { display: none; }
    .lt-rel-rank.is-split .lt-rel-rank-item:nth-child(6) { box-shadow: inset 0 1px 0 #EDF0F4; }
}

@media (max-width: 575.98px) {
    .lt-rel-grid { grid-template-columns: 1fr; gap: 12px; }
    .lt-rel-card { gap: 12px; padding: 12px; }
    .lt-rel-cover { flex-basis: 84px; width: 84px; }
    .lt-rel-foot { flex-direction: column-reverse; gap: 12px; }
    .lt-rel-pager { justify-content: center; margin-left: 0; }
    .lt-rel-rank-item { gap: 12px; min-height: 60px; }
    .lt-rel-rank-logo { flex-basis: 38px; width: 38px; height: 38px; }
}
