/* TMO Cards */
.tmo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .tmo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.tmo-card {
    background: #181920;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #232530;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tmo-card:hover {
    transform: translateY(-4px);
    border-color: #8b5cf6;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.25);
}

.tmo-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.3;
    overflow: hidden;
    background: #111217;
}

.tmo-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tmo-card:hover .tmo-poster img {
    transform: scale(1.05);
}

.tmo-badge-score {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.78);
    color: #facc15;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
}

.tmo-badge-type {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #8b5cf6;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.tmo-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tmo-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    text-decoration: none;
}

.tmo-title:hover {
    color: #a855f7;
}

.tmo-chapters-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    border-top: 1px solid #232530;
    padding-top: 8px;
}

.tmo-chapter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #121318;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    transition: background 0.2s;
}

.tmo-chapter-row:hover {
    background: #232532;
}

.tmo-chapter-row a {
    color: #cbd5e1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65%;
    text-decoration: none;
}

.tmo-chapter-row a:hover {
    color: #a855f7;
}

.tmo-chapter-time {
    color: #64748b;
    font-size: 0.7rem;
    flex-shrink: 0;
}
